mirror of https://github.com/mkerrisk/man-pages
statfs.2: Use __fsword_t in statfs structure definition
This more closely matches modern glibc reality. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8645dc8689
commit
35c69c1e34
|
@ -47,27 +47,21 @@ structure defined approximately as follows:
|
|||
|
||||
.in +4n
|
||||
.nf
|
||||
#if __WORDSIZE == 32 /* System word size */
|
||||
# define __SWORD_TYPE int
|
||||
#else /* __WORDSIZE == 64 */
|
||||
# define __SWORD_TYPE long int
|
||||
#endif
|
||||
|
||||
struct statfs {
|
||||
__SWORD_TYPE f_type; /* Type of filesystem (see below) */
|
||||
__SWORD_TYPE f_bsize; /* Optimal transfer block size */
|
||||
fsblkcnt_t f_blocks; /* Total data blocks in filesystem */
|
||||
fsblkcnt_t f_bfree; /* Free blocks in filesystem */
|
||||
fsblkcnt_t f_bavail; /* Free blocks available to
|
||||
unprivileged user */
|
||||
fsfilcnt_t f_files; /* Total file nodes in filesystem */
|
||||
fsfilcnt_t f_ffree; /* Free file nodes in filesystem */
|
||||
fsid_t f_fsid; /* Filesystem ID */
|
||||
__SWORD_TYPE f_namelen; /* Maximum length of filenames */
|
||||
__SWORD_TYPE f_frsize; /* Fragment size (since Linux 2.6) */
|
||||
__SWORD_TYPE f_flags; /* Mount flags of filesystem
|
||||
(since Linux 2.6.36) */
|
||||
__SWORD_TYPE f_spare[xxx];
|
||||
__fsword_t f_type; /* Type of filesystem (see below) */
|
||||
__fsword_t f_bsize; /* Optimal transfer block size */
|
||||
fsblkcnt_t f_blocks; /* Total data blocks in filesystem */
|
||||
fsblkcnt_t f_bfree; /* Free blocks in filesystem */
|
||||
fsblkcnt_t f_bavail; /* Free blocks available to
|
||||
unprivileged user */
|
||||
fsfilcnt_t f_files; /* Total file nodes in filesystem */
|
||||
fsfilcnt_t f_ffree; /* Free file nodes in filesystem */
|
||||
fsid_t f_fsid; /* Filesystem ID */
|
||||
__fsword_t f_namelen; /* Maximum length of filenames */
|
||||
__fsword_t f_frsize; /* Fragment size (since Linux 2.6) */
|
||||
__fsword_t f_flags; /* Mount flags of filesystem
|
||||
(since Linux 2.6.36) */
|
||||
__fsword_t f_spare[xxx];
|
||||
/* Padding bytes reserved for future use */
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue