projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add usr mode flags
[yaffs2.git]
/
direct
/
yportenv.h
diff --git
a/direct/yportenv.h
b/direct/yportenv.h
index 8a5cb4e8edefad764e9705fc145fef610e745ebc..5b7d1887adfeaec791375559b9af8a4504d294a8 100644
(file)
--- a/
direct/yportenv.h
+++ b/
direct/yportenv.h
@@
-272,7
+272,6
@@
struct iattr {
#endif
#endif
-
#ifndef S_IRUSR
#define S_IRUSR 0000400
#endif
#ifndef S_IRUSR
#define S_IRUSR 0000400
#endif
@@
-281,10
+280,23
@@
struct iattr {
#define S_IWUSR 0000200
#endif
#define S_IWUSR 0000200
#endif
+#ifndef S_IXUSR
+#define S_IXUSR 0000100
+#endif
+
+#ifndef S_IREAD
+#define S_IREAD 0000400
+#endif
+
+#ifndef S_IWRITE
+#define S_IWRITE 0000200
+#endif
+
#ifndef S_IEXEC
#define S_IEXEC 0000100
#endif
#ifndef S_IEXEC
#define S_IEXEC 0000100
#endif
+
#else
#include <errno.h>
#include <sys/stat.h>
#else
#include <errno.h>
#include <sys/stat.h>