ustat(2) System Calls Manual ustat(2) ustat - C (libc, -lc) #include #include /* libc[45] */ #include /* glibc2 */ [[deprecated]] int ustat(dev_t dev, struct ustat *ubuf); ustat() . dev , , . ubuf ustat, : daddr_t f_tfree; /* */ ino_t f_tinode; /* */ char f_fname[6]; /* Filsys */ char f_fpack[6]; /* Filsys pack */ The last two fields, f_fname and f_fpack, are not implemented and will always be filled with null bytes ('\0'). On success, zero is returned and the ustat structure pointed to by ubuf will be filled in. On error, -1 is returned, and errno is set to indicate the error. EFAULT ubuf . EINVAL dev , . ENOSYS The mounted filesystem referenced by dev does not support this operation, or any version of Linux before Linux 1.3.16. . SVr4. Removed in glibc 2.28. ustat() . statfs(2). , HP-UX ustat HP-UX f_blksize, . HP : (inodes) . f_tinode -1. . . stat(2), statfs(2) () Azamat Hackimov , Dmitriy Ovchinnikov , Dmitry Bolkhovskikh , Katrin Kutepova , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.17 8 2026 . ustat(2)