USTAT(2) HP Integral PC USTAT(2) USTAT(2) HP Integral PC USTAT(2) USTAT(2) HP Integral PC USTAT(2) USTAT(2) HP Integral PC USTAT(2) NAME NAME NAME NAME ustat - get file system statistics SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS #include #include int ustat (dev, buf) dev_t dev; struct ustat *buf; HP-UX COMPATIBILITY HP-UX COMPATIBILITY HP-UX COMPATIBILITY HP-UX COMPATIBILITY Level: HP-UX/RUN ONLY Origin: System III DESCRIPTION DESCRIPTION DESCRIPTION DESCRIPTION Ustat returns information about a mounted file system. Dev is a device number identifying a device containing a mounted file system. Buf is a pointer to a ustat structure (defined in ustat.h) that includes the following elements: daddr_t f_tfree; /* Total free blocks */ ino_t f_tinode; /* Number of free inodes */ char f_fname[6]; /* Filsys name */ char f_fpack[6]; /* Filsys pack name */ int f_blksize; /* Block size */ Ustat will fail if one or more of the following are true: Dev is not the device number of a device containing a mounted file system. [EINVAL] Buf points outside the process's allocated address space. [EFAULT] RETURN VALUE RETURN VALUE RETURN VALUE RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO SEE ALSO SEE ALSO SEE ALSO stat(2), fs(5). Hewlett-Packard - 1 - (printed 12/13/84)