summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-12 12:01:20 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-12 12:01:20 -0400
commit7ecab79f581c9bd2369dc00a7649bb5af9089302 (patch)
tree03dbd0259db844af08af7ffa25b1041beaeadf74 /include/sys
parente514228043c2618f925bcfe8db71b0ff4e2b2113 (diff)
downloadmusl-7ecab79f581c9bd2369dc00a7649bb5af9089302.tar.gz
musl-7ecab79f581c9bd2369dc00a7649bb5af9089302.tar.bz2
musl-7ecab79f581c9bd2369dc00a7649bb5af9089302.tar.xz
musl-7ecab79f581c9bd2369dc00a7649bb5af9089302.zip
add some traditional aliases to stat.h
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/stat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/stat.h b/include/sys/stat.h
index ec69f54d..5e339d5c 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -90,6 +90,12 @@ int utimensat(int, const char *, const struct timespec [2], int);
int lchmod(const char *, mode_t);
#endif
+#ifdef _GNU_SOURCE
+#define S_IREAD S_IRUSR
+#define S_IWRITE S_IWUSR
+#define S_IEXEC S_IXUSR
+#endif
+
#ifdef __cplusplus
}
#endif