From 7ecab79f581c9bd2369dc00a7649bb5af9089302 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 12 Apr 2011 12:01:20 -0400 Subject: [PATCH] add some traditional aliases to stat.h --- include/sys/stat.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.25.1