Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ustat(2) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fstat(2)

stat(2)

fs(4)

ustat(5)



     ustat(2)                   DG/UX 4.30                    ustat(2)



     NAME
          ustat - Get file system device statistics.

     SYNOPSIS
          #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.

     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.




     Licensed material--property of copyright holder(s)         Page 1





     ustat(2)                   DG/UX 4.30                    ustat(2)



          EINTR          Interrupted ustat call.

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

















































     Licensed material--property of copyright holder(s)         Page 2



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