diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-08 12:59:51 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-08 12:59:51 +0000 |
commit | eaee27b0b9b9dd243512e10ff8988ec66751474a (patch) | |
tree | 3265b365c2285f4060b8ad97c6428da020de72d8 /cpukit/libcsupport | |
parent | 2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-eaee27b0b9b9dd243512e10ff8988ec66751474a.tar.bz2 |
2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1524/filesystem
* libcsupport/src/rtems_mkdir.c: New file.
* libcsupport/src/Makefile.am: Reflect change above.
* libcsupport/include/rtems/libio.h: Added rtems_mkdir().
* libmisc/fsmount/fsmount.h, libmisc/fsmount/fsmount.c,
libblock/src/bdpart-mount.c, libnetworking/rtems/mkrootfs.h,
libnetworking/rtems/mkrootfs.c, libfs/src/pipe/pipe.c: Use
rtems_mkdir(). Removed rtems_fsmount_create_mount_point() and
rtems_rootfs_mkdir().
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index 6b74f0e052..3e80056408 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -46,7 +46,7 @@ ASSOCIATION_C_FILES = src/assoclocalbyname.c \ BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \ src/mount-mgr.c src/libio_init.c \ src/libio_sockets.c src/eval.c src/fs_null_handlers.c src/privateenv.c \ - src/open_dev_console.c src/__usrenv.c + src/open_dev_console.c src/__usrenv.c src/rtems_mkdir.c TERMIOS_C_FILES = src/cfgetispeed.c src/cfgetospeed.c src/cfsetispeed.c \ src/cfsetospeed.c src/tcgetattr.c src/tcsetattr.c src/tcdrain.c \ diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index da9fa884a0..04fdc6898f 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -735,6 +735,17 @@ extern rtems_libio_supp_functions_t rtems_libio_supp_helper; typedef void (*rtems_fs_init_functions_t)(void); extern rtems_fs_init_functions_t rtems_fs_init_helper; +/** + * @brief Creates a directory and all its parrent directories according to + * @a path. + * + * The @a mode value selects the access permissions of the directory. + * + * @retval 0 Successful operation. + * @retval -1 An error occured. @c errno indicates the error. + */ +extern int rtems_mkdir(const char *path, mode_t mode); + #ifdef __cplusplus } #endif |