sys/stat.h: Add S_IREAD, S_IWRITE and S_IEXEC macro
to be more compatible with BSD libc Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I4067f8cac6c465a3f1b06906e2e274a660792d93
This commit is contained in:
parent
b16d5341d8
commit
c82c7b6685
@ -62,6 +62,10 @@
|
||||
#define S_IRUSR (1 << 8)
|
||||
#define S_IRWXU (7 << 6)
|
||||
|
||||
#define S_IREAD S_IRUSR /* Obsolete synonym provided for BSD compatibility. */
|
||||
#define S_IWRITE S_IWUSR /* Obsolete synonym provided for BSD compatibility. */
|
||||
#define S_IEXEC S_IXUSR /* Obsolete synonym provided for BSD compatibility. */
|
||||
|
||||
#define S_ISVTX (1 << 9) /* "Sticky" bit (not used) */
|
||||
#define S_ISGID (1 << 10) /* Set group ID bit (not used)*/
|
||||
#define S_ISUID (1 << 11) /* Set UID bit (not used) */
|
||||
|
Loading…
Reference in New Issue
Block a user