mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-07 13:28:05 +08:00
Use __fsblkcnt_t for some of the fields.
This commit is contained in:
parent
b64c790011
commit
eebf2c4a79
@ -23,22 +23,52 @@
|
|||||||
#ifndef _BITS_STATFS_H
|
#ifndef _BITS_STATFS_H
|
||||||
#define _BITS_STATFS_H
|
#define _BITS_STATFS_H
|
||||||
|
|
||||||
|
#include <bits/types.h> /* for __fsid_t and __fsblkcnt_t*/
|
||||||
|
|
||||||
struct statfs
|
struct statfs
|
||||||
{
|
{
|
||||||
long int f_type;
|
long int f_type;
|
||||||
#define f_fstyp f_type
|
#define f_fstyp f_type
|
||||||
long int f_bsize;
|
long int f_bsize;
|
||||||
long int f_frsize; /* Fragment size - unsupported */
|
long int f_frsize; /* Fragment size - unsupported */
|
||||||
long int f_blocks;
|
#ifndef __USE_FILE_OFFSET64
|
||||||
long int f_bfree;
|
__fsblkcnt_t f_blocks;
|
||||||
long int f_files;
|
__fsblkcnt_t f_bfree;
|
||||||
long int f_ffree;
|
__fsblkcnt_t f_files;
|
||||||
|
__fsblkcnt_t f_ffree;
|
||||||
|
__fsblkcnt_t f_bavail;
|
||||||
|
#else
|
||||||
|
__fsblkcnt64_t f_blocks;
|
||||||
|
__fsblkcnt64_t f_bfree;
|
||||||
|
__fsblkcnt64_t f_files;
|
||||||
|
__fsblkcnt64_t f_ffree;
|
||||||
|
__fsblkcnt64_t f_bavail;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Linux specials */
|
/* Linux specials */
|
||||||
long int f_bavail;
|
|
||||||
__fsid_t f_fsid;
|
__fsid_t f_fsid;
|
||||||
long int f_namelen;
|
long int f_namelen;
|
||||||
long int f_spare[6];
|
long int f_spare[6];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef __USE_LARGEFILE64
|
||||||
|
struct statfs64
|
||||||
|
{
|
||||||
|
long int f_type;
|
||||||
|
#define f_fstyp f_type
|
||||||
|
long int f_bsize;
|
||||||
|
long int f_frsize; /* Fragment size - unsupported */
|
||||||
|
__fsblkcnt64_t f_blocks;
|
||||||
|
__fsblkcnt64_t f_bfree;
|
||||||
|
__fsblkcnt64_t f_files;
|
||||||
|
__fsblkcnt64_t f_ffree;
|
||||||
|
__fsblkcnt64_t f_bavail;
|
||||||
|
|
||||||
|
/* Linux specials */
|
||||||
|
__fsid_t f_fsid;
|
||||||
|
long int f_namelen;
|
||||||
|
long int f_spare[6];
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* bits/statfs.h */
|
#endif /* bits/statfs.h */
|
||||||
|
Loading…
Reference in New Issue
Block a user