aboutsummaryrefslogtreecommitdiff
path: root/system/include/compat/sys/stat.h
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2013-08-16 12:59:05 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2013-08-16 18:04:54 +0700
commit10d1cb9f3e515778e7841b61df4c6ad94c3d8352 (patch)
treec7b3f40f6e6ab7ea752886d9a1a2c441816fb5dc /system/include/compat/sys/stat.h
parent4e0c5a89b387d5f4ca8248c8b31e2db136652a64 (diff)
Add compat headers, move some things to them.
This is groundwork for landing musl includes which remove some of the deprecated functions or very old BSDisms.
Diffstat (limited to 'system/include/compat/sys/stat.h')
-rw-r--r--system/include/compat/sys/stat.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/include/compat/sys/stat.h b/system/include/compat/sys/stat.h
new file mode 100644
index 00000000..731502ea
--- /dev/null
+++ b/system/include/compat/sys/stat.h
@@ -0,0 +1,20 @@
+#ifndef _COMPAT_STAT_H
+#define _COMPAT_STAT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include_next <sys/stat.h>
+
+#define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO)
+#define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
+#define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH)
+#define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH)
+#define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif