From eaee27b0b9b9dd243512e10ff8988ec66751474a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 8 Jun 2010 12:59:51 +0000 Subject: 2010-06-08 Sebastian Huber 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(). --- cpukit/libcsupport/include/rtems/libio.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cpukit/libcsupport/include/rtems/libio.h') 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 -- cgit v1.2.3