projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve [f]stat[v]fs functions, and possibly work around old kernels
[musl]
/
include
/
sys
/
statvfs.h
diff --git
a/include/sys/statvfs.h
b/include/sys/statvfs.h
index
0a3ac9e
..
e0839ec
100644
(file)
--- a/
include/sys/statvfs.h
+++ b/
include/sys/statvfs.h
@@
-5,6
+5,8
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
#define __NEED_fsblkcnt_t
#define __NEED_fsfilcnt_t
#include <bits/alltypes.h>
#define __NEED_fsblkcnt_t
#define __NEED_fsfilcnt_t
#include <bits/alltypes.h>
@@
-26,7
+28,7
@@
struct statvfs {
int __reserved[6];
};
int __reserved[6];
};
-int statvfs (const char *
, struct statvfs *
);
+int statvfs (const char *
__restrict, struct statvfs *__restrict
);
int fstatvfs (int, struct statvfs *);
#define ST_RDONLY 1
int fstatvfs (int, struct statvfs *);
#define ST_RDONLY 1