add some traditional aliases to stat.h
authorRich Felker <dalias@aerifal.cx>
Tue, 12 Apr 2011 16:01:20 +0000 (12:01 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 12 Apr 2011 16:01:20 +0000 (12:01 -0400)
include/sys/stat.h

index ec69f54d8ef975592e041c2a740313f9900acd97..5e339d5caeb05a2bb11debc4810d9115e267b753 100644 (file)
@@ -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