projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove LFS64 programming interfaces (macro-only) from _GNU_SOURCE
[musl]
/
include
/
sys
/
statvfs.h
diff --git
a/include/sys/statvfs.h
b/include/sys/statvfs.h
index
b9f72b7
..
57a6b80
100644
(file)
--- a/
include/sys/statvfs.h
+++ b/
include/sys/statvfs.h
@@
-5,12
+5,12
@@
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>
-#include <endian.h>
-
struct statvfs {
unsigned long f_bsize, f_frsize;
fsblkcnt_t f_blocks, f_bfree, f_bavail;
struct statvfs {
unsigned long f_bsize, f_frsize;
fsblkcnt_t f_blocks, f_bfree, f_bavail;
@@
-26,7
+26,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
@@
-40,6
+40,14
@@
int fstatvfs (int, struct statvfs *);
#define ST_IMMUTABLE 512
#define ST_NOATIME 1024
#define ST_NODIRATIME 2048
#define ST_IMMUTABLE 512
#define ST_NOATIME 1024
#define ST_NODIRATIME 2048
+#define ST_RELATIME 4096
+
+#if defined(_LARGEFILE64_SOURCE)
+#define statvfs64 statvfs
+#define fstatvfs64 fstatvfs
+#define fsblkcnt64_t fsblkcnt_t
+#define fsfilcnt64_t fsfilcnt_t
+#endif
#ifdef __cplusplus
}
#ifdef __cplusplus
}