|
|
HP-UX Reference > Uustat(2)HP-UX 11i Version 2: December 2007 Update |
|
NAMEustat() — get mounted file system statistics DESCRIPTIONThe ustat() system call 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: int32_t f_tfree; /* Total free blocks */ ino_t f_tinode; /* Number of free inodes */ char f_fname[6]; /* Filsys name or null */ char f_fpack[6]; /* Filsys pack name or null */ int f_blksize; /* Block size */ The value of f_tfree is the number of free blocks of size f_blksize. RETURN VALUEustat() returns the following values:
ERRORSIf ustat() fails, errno is set to one of the following values.
WARNINGSustat() is deprecated and should be used only by legacy 32-bit applications. statvfs() or statvfs64() are the recommended replacements. For some file systems, the number of free inodes does not change. Such file systems will return -1 in the field f_tinode. For some file systems, the inodes can be dynamically allocated. For such file systems, the field f_tinode contains the number of free inodes at the current time. |
|