Changeset 6e5562a in mainline for uspace/lib/posix/source/sys/stat.c
- Timestamp:
- 2017-03-31T19:57:38Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 80743a1
- Parents:
- a56cef9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/sys/stat.c
ra56cef9 r6e5562a 143 143 } 144 144 145 /** 146 * Create a directory. 147 * 148 * @param path Path to the new directory. 149 * @param mode Permission bits to be set. 150 * @return Zero on success, -1 otherwise. 151 */ 152 int posix_mkdir(const char *path, mode_t mode) 153 { 154 int rc = rcerrno(vfs_link_path, path, KIND_DIRECTORY); 155 if (rc != EOK) 156 return -1; 157 else 158 return 0; 159 } 160 145 161 /** @} 146 162 */
Note:
See TracChangeset
for help on using the changeset viewer.