Changes in uspace/lib/posix/include/posix/sys/stat.h [bc56f30:9b8be79] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/sys/stat.h
rbc56f30 r9b8be79 39 39 #include <sys/types.h> 40 40 #include <time.h> 41 #include <_bits/decls.h>42 41 43 42 /* values are the same as on Linux */ 44 43 44 #undef S_IFMT 45 #undef S_IFSOCK 46 #undef S_IFLNK 47 #undef S_IFREG 48 #undef S_IFBLK 49 #undef S_IFDIR 50 #undef S_IFCHR 51 #undef S_IFIFO 45 52 #define S_IFMT 0170000 /* all file types */ 46 53 #define S_IFSOCK 0140000 /* socket */ … … 52 59 #define S_IFIFO 0010000 /* FIFO */ 53 60 61 #undef S_ISUID 62 #undef S_ISGID 63 #undef S_ISVTX 54 64 #define S_ISUID 0004000 /* SUID */ 55 65 #define S_ISGID 0002000 /* SGID */ 56 66 #define S_ISVTX 0001000 /* sticky */ 57 67 68 #undef S_IRWXU 69 #undef S_IRUSR 70 #undef S_IWUSR 71 #undef S_IXUSR 58 72 #define S_IRWXU 00700 /* owner permissions */ 59 73 #define S_IRUSR 00400 … … 61 75 #define S_IXUSR 00100 62 76 77 #undef S_IRWXG 78 #undef S_IRGRP 79 #undef S_IWGRP 80 #undef S_IXGRP 63 81 #define S_IRWXG 00070 /* group permissions */ 64 82 #define S_IRGRP 00040 … … 66 84 #define S_IXGRP 00010 67 85 86 #undef S_IRWXO 87 #undef S_IROTH 88 #undef S_IWOTH 89 #undef S_IXOTH 68 90 #define S_IRWXO 00007 /* other permissions */ 69 91 #define S_IROTH 00004 … … 71 93 #define S_IXOTH 00001 72 94 95 #undef S_ISREG 96 #undef S_ISDIR 97 #undef S_ISCHR 98 #undef S_ISBLK 99 #undef S_ISFIFO 100 #undef S_ISLNK 101 #undef S_ISSOCK 73 102 #define S_ISREG(m) ((m & S_IFREG) != 0) 74 103 #define S_ISDIR(m) ((m & S_IFDIR) != 0) … … 78 107 #define S_ISLNK(m) ((m & S_IFLNK) != 0) /* symbolic link? (Not in POSIX.1-1996.) */ 79 108 #define S_ISSOCK(m) ((m & S_IFSOCK) != 0) /* socket? (Not in POSIX.1-1996.) */ 80 81 __C_DECLS_BEGIN;82 109 83 110 struct stat { … … 104 131 extern int mkdir(const char *path, mode_t mode); 105 132 106 __C_DECLS_END;107 108 133 #endif /* POSIX_SYS_STAT_H */ 109 134
Note:
See TracChangeset
for help on using the changeset viewer.