Whamcloud - gitweb
- many fixes about using ENTRY, RETURN, GOTO and EXIT.
[fs/lustre-release.git] / lustre / include / liblustre.h
index c5446ff..dc339a4 100644 (file)
@@ -114,6 +114,12 @@ typedef unsigned short umode_t;
 #define FMODE_EXEC 4
 #endif
 
+#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)
+
 #define LBUG()                                                          \
         do {                                                            \
                 printf("!!!LBUG at %s:%d\n", __FILE__, __LINE__);       \