Changeset 6e5562a in mainline for uspace/lib/posix/source/sys/stat.c


Ignore:
Timestamp:
2017-03-31T19:57:38Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80743a1
Parents:
a56cef9
Message:

Introduce vfs_link_path() and replace mkdir() with it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/sys/stat.c

    ra56cef9 r6e5562a  
    143143}
    144144
     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 */
     152int 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
    145161/** @}
    146162 */
Note: See TracChangeset for help on using the changeset viewer.