Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ustat(2) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                 ustat(2)



        _________________________________________________________________
        ustat                                                 System Call
        Get file system device statistics.
        _________________________________________________________________


        SYNTAX

        #include <sys/types.h>
        #include <sys/ustat.h>

        int   ustat  (device, ustat_buffer)
        dev_t           device;
        struct ustat *  ustat_buffer;


        PARAMETERS

        device         Device number of a mounted file system device.


        ustat_buffer   Where the file system statistics are returned.


        DESCRIPTION

        Ustat returns information about a mounted file system device.
        <Device> is a device number identifying a device containing a
        mounted file system.  Status information concerning the file
        system device contained on <device> is returned in the location
        pointed to by <ustat_buffer>.

        If an error occurs, the contents of <ustat_buffer> are undefined.


        ACCESS CONTROL

        None.


        RETURN VALUE

        0              The file system device status information was
                       successfully returned.


        -1             An error occurred.  Errno is set to indicate the
                       error.






        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                 ustat(2)



        EXCEPTIONS

        Errno may be set to one of the following error codes:


        EINVAL         <Device> is not the device number of an active
                       file system device.


        EFAULT         Some part of the ustat structure pointed to by
                       <ustat_buffer> lies outside of the process's
                       writable address space.


        EINTR          Interrupted ustat call.


        SEE ALSO

        The related manual sections:  fstat(2), stat(2),
        fs(4),
        ustat(5).
































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026