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:
Xiang Xiao 2021-03-26 21:55:01 +08:00 committed by Alan Carvalho de Assis
parent b16d5341d8
commit c82c7b6685

View File

@ -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) */