commit | 9288761a26bc7f581c84155b009b59587c7a7ad3 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Aug 16 13:26:35 2016 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Aug 16 13:26:35 2016 -0700 |
tree | a1d18cf92aa9c36c9f4eb5303b820115c8500dc3 | |
parent | 228e747b6c40da2945310cda214b829f7de8cb60 [diff] [blame] |
Add missing <sys/stat.h> macros. http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html Change-Id: I8c31f3a6fae2c4955c5fba3d880a416d03dfafb7
diff --git a/libc/include/sys/stat.h b/libc/include/sys/stat.h index 775fb08..cc9dd91 100644 --- a/libc/include/sys/stat.h +++ b/libc/include/sys/stat.h
@@ -141,6 +141,12 @@ #define S_IEXEC S_IXUSR #endif +/* POSIX mandates these, but Linux doesn't implement them as distinct file types. */ +#define S_TYPEISMQ(__sb) 0 +#define S_TYPEISSEM(__sb) 0 +#define S_TYPEISSHM(__sb) 0 +#define S_TYPEISTMO(__sb) 0 + int chmod(const char*, mode_t); int fchmod(int, mode_t); int mkdir(const char*, mode_t);