OSDN Git Service

Add missing <sys/stat.h> macros.
authorElliott Hughes <enh@google.com>
Tue, 16 Aug 2016 20:26:35 +0000 (13:26 -0700)
committerElliott Hughes <enh@google.com>
Tue, 16 Aug 2016 20:26:35 +0000 (13:26 -0700)
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html

Change-Id: I8c31f3a6fae2c4955c5fba3d880a416d03dfafb7

libc/include/sys/stat.h

index 775fb08..cc9dd91 100644 (file)
@@ -141,6 +141,12 @@ struct stat64 { __STAT64_BODY };
 #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);