]> Zhao Yanbai Git Server - minix.git/commitdiff
Synonyms for helping porting applications.
authorBen Gras <ben@minix3.org>
Thu, 17 Nov 2005 01:23:33 +0000 (01:23 +0000)
committerBen Gras <ben@minix3.org>
Thu, 17 Nov 2005 01:23:33 +0000 (01:23 +0000)
include/sys/stat.h

index 41cedb35cbe63a182450f017ce95b8050b7d7bba..e792f6c5b333411e7981cdbfdca04314b71dac3f 100755 (executable)
@@ -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 */