projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dynamically allocate storage for gethostby* buffers
[musl]
/
include
/
sys
/
stat.h
diff --git
a/include/sys/stat.h
b/include/sys/stat.h
index
e16a968
..
c6abab5
100644
(file)
--- a/
include/sys/stat.h
+++ b/
include/sys/stat.h
@@
-4,11
+4,7
@@
extern "C" {
#endif
extern "C" {
#endif
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
#define __NEED_dev_t
#define __NEED_ino_t
#define __NEED_dev_t
#define __NEED_ino_t
@@
-92,11
+88,8
@@
int mkfifoat(int, const char *, mode_t);
int futimens(int, const struct timespec [2]);
int utimensat(int, const char *, const struct timespec [2], int);
int futimens(int, const struct timespec [2]);
int utimensat(int, const char *, const struct timespec [2], int);
-#ifdef _BSD_SOURCE
-int lchmod(const char *, mode_t);
-#endif
-
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+int lchmod(const char *, mode_t);
#define S_IREAD S_IRUSR
#define S_IWRITE S_IWUSR
#define S_IEXEC S_IXUSR
#define S_IREAD S_IRUSR
#define S_IWRITE S_IWUSR
#define S_IEXEC S_IXUSR