Changeset bc56f30 in mainline for uspace/lib/posix/include/posix/sys/stat.h
- Timestamp:
- 2019-05-27T12:38:26Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d14c25
- Parents:
- 4d51c60
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-13 16:06:49)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-27 12:38:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/sys/stat.h
r4d51c60 rbc56f30 39 39 #include <sys/types.h> 40 40 #include <time.h> 41 #include <_bits/decls.h> 41 42 42 43 /* values are the same as on Linux */ 43 44 44 #undef S_IFMT45 #undef S_IFSOCK46 #undef S_IFLNK47 #undef S_IFREG48 #undef S_IFBLK49 #undef S_IFDIR50 #undef S_IFCHR51 #undef S_IFIFO52 45 #define S_IFMT 0170000 /* all file types */ 53 46 #define S_IFSOCK 0140000 /* socket */ … … 59 52 #define S_IFIFO 0010000 /* FIFO */ 60 53 61 #undef S_ISUID62 #undef S_ISGID63 #undef S_ISVTX64 54 #define S_ISUID 0004000 /* SUID */ 65 55 #define S_ISGID 0002000 /* SGID */ 66 56 #define S_ISVTX 0001000 /* sticky */ 67 57 68 #undef S_IRWXU69 #undef S_IRUSR70 #undef S_IWUSR71 #undef S_IXUSR72 58 #define S_IRWXU 00700 /* owner permissions */ 73 59 #define S_IRUSR 00400 … … 75 61 #define S_IXUSR 00100 76 62 77 #undef S_IRWXG78 #undef S_IRGRP79 #undef S_IWGRP80 #undef S_IXGRP81 63 #define S_IRWXG 00070 /* group permissions */ 82 64 #define S_IRGRP 00040 … … 84 66 #define S_IXGRP 00010 85 67 86 #undef S_IRWXO87 #undef S_IROTH88 #undef S_IWOTH89 #undef S_IXOTH90 68 #define S_IRWXO 00007 /* other permissions */ 91 69 #define S_IROTH 00004 … … 93 71 #define S_IXOTH 00001 94 72 95 #undef S_ISREG96 #undef S_ISDIR97 #undef S_ISCHR98 #undef S_ISBLK99 #undef S_ISFIFO100 #undef S_ISLNK101 #undef S_ISSOCK102 73 #define S_ISREG(m) ((m & S_IFREG) != 0) 103 74 #define S_ISDIR(m) ((m & S_IFDIR) != 0) … … 107 78 #define S_ISLNK(m) ((m & S_IFLNK) != 0) /* symbolic link? (Not in POSIX.1-1996.) */ 108 79 #define S_ISSOCK(m) ((m & S_IFSOCK) != 0) /* socket? (Not in POSIX.1-1996.) */ 80 81 __C_DECLS_BEGIN; 109 82 110 83 struct stat { … … 131 104 extern int mkdir(const char *path, mode_t mode); 132 105 106 __C_DECLS_END; 107 133 108 #endif /* POSIX_SYS_STAT_H */ 134 109
Note:
See TracChangeset
for help on using the changeset viewer.