summaryrefslogtreecommitdiff
path: root/bits/statfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'bits/statfs.h')
-rw-r--r--bits/statfs.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/bits/statfs.h b/bits/statfs.h
index a92cf52315..03b92d8faa 100644
--- a/bits/statfs.h
+++ b/bits/statfs.h
@@ -35,12 +35,36 @@ struct statfs
{
unsigned int f_type;
unsigned int f_bsize;
+#ifndef __USE_FILE_OFFSET64
__fsblkcnt_t f_blocks;
__fsblkcnt_t f_bfree;
__fsblkcnt_t f_bavail;
__fsblkcnt_t f_files;
__fsblkcnt_t f_ffree;
+#else
+ __fsblkcnt64_t f_blocks;
+ __fsblkcnt64_t f_bfree;
+ __fsblkcnt64_t f_bavail;
+ __fsblkcnt64_t f_files;
+ __fsblkcnt64_t f_ffree;
+#endif
+ __fsid_t f_fsid;
+ unsigned int f_namelen;
+ unsigned int f_spare[6];
+ };
+
+#ifdef __USE_LARGEFILE64
+struct statfs64
+ {
+ unsigned int f_type;
+ unsigned int f_bsize;
+ __fsblkcnt64_t f_blocks;
+ __fsblkcnt64_t f_bfree;
+ __fsblkcnt64_t f_bavail;
+ __fsblkcnt64_t f_files;
+ __fsblkcnt64_t f_ffree;
__fsid_t f_fsid;
unsigned int f_namelen;
unsigned int f_spare[6];
};
+#endif