From e45c9f27416958f2d189c690baab74ec3f80b41b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 17 Nov 2005 01:23:33 +0000 Subject: [PATCH] Synonyms for helping porting applications. --- include/sys/stat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/sys/stat.h b/include/sys/stat.h index 41cedb35c..e792f6c5b 100755 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -53,6 +53,11 @@ struct stat { #define S_IWOTH 00002 /* others: -------w- */ #define S_IXOTH 00001 /* others: --------x */ +/* Synonyms for above. */ +#define S_IEXEC S_IXUSR +#define S_IWRITE S_IWUSR +#define S_IREAD S_IRUSR + /* The following macros test st_mode (from POSIX Sec. 5.6.1.1). */ #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) /* is a reg file */ #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) /* is a directory */ -- 2.44.0