diff options
author | Ron Yorston <rmy@pobox.com> | 2014-01-06 12:05:09 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2014-01-06 12:05:09 +0000 |
commit | 81d958ea6cc8ce98b69148896ebced6458a9715a (patch) | |
tree | 89bca683c049a98fa1967f02a23dba2918f19af9 /win32/sys | |
parent | 5e8fad1617439c6dacfa04e677f4664b0377e340 (diff) | |
download | busybox-w32-81d958ea6cc8ce98b69148896ebced6458a9715a.tar.gz busybox-w32-81d958ea6cc8ce98b69148896ebced6458a9715a.tar.bz2 busybox-w32-81d958ea6cc8ce98b69148896ebced6458a9715a.zip |
Extend WIN32 statfs to include type, fsid and namelen
Diffstat (limited to 'win32/sys')
-rw-r--r-- | win32/sys/statfs.h | 23 | ||||
-rw-r--r-- | win32/sys/vfs.h | 18 |
2 files changed, 24 insertions, 17 deletions
diff --git a/win32/sys/statfs.h b/win32/sys/statfs.h new file mode 100644 index 000000000..7cef6df73 --- /dev/null +++ b/win32/sys/statfs.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef _SYS_STATFS_H | ||
2 | #define _SYS_STATFS_H 1 | ||
3 | |||
4 | #include <stdint.h> | ||
5 | |||
6 | struct statfs { | ||
7 | int f_type; | ||
8 | uint64_t f_bsize; | ||
9 | uint64_t f_frsize; | ||
10 | uint64_t f_blocks; | ||
11 | uint64_t f_bfree; | ||
12 | uint64_t f_bavail; | ||
13 | uint64_t f_files; | ||
14 | uint64_t f_ffree; | ||
15 | uint64_t f_favail; | ||
16 | uint64_t f_fsid; | ||
17 | uint64_t f_flag; | ||
18 | uint64_t f_namelen; | ||
19 | }; | ||
20 | |||
21 | extern int statfs(const char *file, struct statfs *buf); | ||
22 | |||
23 | #endif | ||
diff --git a/win32/sys/vfs.h b/win32/sys/vfs.h index cb7bda9af..a899db276 100644 --- a/win32/sys/vfs.h +++ b/win32/sys/vfs.h | |||
@@ -1,17 +1 @@ | |||
1 | #include <stdint.h> | #include <sys/statfs.h> | |
2 | |||
3 | struct statfs { | ||
4 | uint64_t f_bsize; | ||
5 | uint64_t f_frsize; | ||
6 | uint64_t f_blocks; | ||
7 | uint64_t f_bfree; | ||
8 | uint64_t f_bavail; | ||
9 | uint64_t f_files; | ||
10 | uint64_t f_ffree; | ||
11 | uint64_t f_favail; | ||
12 | uint64_t f_fsid; | ||
13 | uint64_t f_flag; | ||
14 | uint64_t f_namemax; | ||
15 | }; | ||
16 | |||
17 | extern int statfs(const char *file, struct statfs *buf); | ||