Changeset 8fe46a0 in mainline
- Timestamp:
- 2017-04-04T20:35:43Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 59f388a
- Parents:
- a6fc88a
- Location:
- uspace/lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/sys/types.h
ra6fc88a r8fe46a0 38 38 #include <libarch/types.h> 39 39 40 typedef unsigned int mode_t;41 42 40 /** Relative offset */ 43 41 typedef int64_t off64_t; -
uspace/lib/posix/include/posix/sys/stat.h
ra6fc88a r8fe46a0 115 115 __POSIX_DEF__(dev_t) st_dev; /* ID of device containing file */ 116 116 __POSIX_DEF__(ino_t) st_ino; /* inode number */ 117 mode_tst_mode; /* protection */117 __POSIX_DEF__(mode_t) st_mode; /* protection */ 118 118 __POSIX_DEF__(nlink_t) st_nlink; /* number of hard links */ 119 119 __POSIX_DEF__(uid_t) st_uid; /* user ID of owner */ … … 131 131 extern int __POSIX_DEF__(lstat)(const char *restrict path, struct __POSIX_DEF__(stat) *restrict st); 132 132 extern int __POSIX_DEF__(stat)(const char *restrict path, struct __POSIX_DEF__(stat) *restrict st); 133 extern int __POSIX_DEF__(chmod)(const char *path, mode_tmode);134 extern mode_t __POSIX_DEF__(umask)(mode_tmask);135 extern int __POSIX_DEF__(mkdir)(const char *path, mode_tmode);133 extern int __POSIX_DEF__(chmod)(const char *path, __POSIX_DEF__(mode_t) mode); 134 extern __POSIX_DEF__(mode_t) __POSIX_DEF__(umask)(__POSIX_DEF__(mode_t) mask); 135 extern int __POSIX_DEF__(mkdir)(const char *path, __POSIX_DEF__(mode_t) mode); 136 136 137 137 -
uspace/lib/posix/include/posix/sys/types.h
ra6fc88a r8fe46a0 53 53 typedef int64_t __POSIX_DEF__(pid_t); 54 54 typedef sysarg_t __POSIX_DEF__(dev_t); 55 typedef unsigned int __POSIX_DEF__(mode_t); 55 56 56 57 /* PThread Types */ -
uspace/lib/posix/source/fcntl.c
ra6fc88a r8fe46a0 105 105 { 106 106 int rc; 107 mode_t posix_mode = 0;107 posix_mode_t posix_mode = 0; 108 108 if (posix_flags & O_CREAT) { 109 109 va_list args; 110 110 va_start(args, posix_flags); 111 posix_mode = va_arg(args, mode_t);111 posix_mode = va_arg(args, posix_mode_t); 112 112 va_end(args); 113 113 (void) posix_mode; -
uspace/lib/posix/source/sys/stat.c
ra6fc88a r8fe46a0 124 124 * @return Zero on success, -1 otherwise. 125 125 */ 126 int posix_chmod(const char *path, mode_t mode)126 int posix_chmod(const char *path, posix_mode_t mode) 127 127 { 128 128 /* HelenOS doesn't support permissions, return success. */ … … 137 137 * @return Previous file mode creation mask. 138 138 */ 139 mode_t posix_umask(mode_t mask)139 posix_mode_t posix_umask(posix_mode_t mask) 140 140 { 141 141 /* HelenOS doesn't support permissions, return empty mask. */ … … 150 150 * @return Zero on success, -1 otherwise. 151 151 */ 152 int posix_mkdir(const char *path, mode_t mode)152 int posix_mkdir(const char *path, posix_mode_t mode) 153 153 { 154 154 int rc = rcerrno(vfs_link_path, path, KIND_DIRECTORY, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.