diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-10 09:07:28 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-10 09:07:28 +0000 |
commit | b813d632b09171f2fd8e05042d90061c5a42a7bd (patch) | |
tree | 101e2e7132982622af91d66c80119327073a8e29 /cpukit/libcsupport/include/rtems/libio.h | |
parent | Regenerate. (diff) | |
download | rtems-b813d632b09171f2fd8e05042d90061c5a42a7bd.tar.bz2 |
2010-06-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount-mktgt.c: New file.
* libcsupport/Makefile.am: Reflect change above.
* libcsupport/include/rtems/libio.h: Declare
mount_and_make_target_path().
Diffstat (limited to 'cpukit/libcsupport/include/rtems/libio.h')
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index cc28c7b42d..d705228c4b 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -704,6 +704,25 @@ int mount( const void *data ); +/** + * @brief Mounts a file system and makes the @a target path. + * + * The @a target path will be created with rtems_mkdir() and must not be + * @c NULL. + * + * @see mount(). + * + * @retval 0 Successful operation. + * @retval -1 An error occured. The @c errno indicates the error. + */ +int mount_and_make_target_path( + const char *source, + const char *target, + const char *filesystemtype, + rtems_filesystem_options_t options, + const void *data +); + /* * Boot Time Mount Table Structure */ @@ -736,7 +755,7 @@ extern rtems_fs_init_functions_t rtems_fs_init_helper; * 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. + * @retval -1 An error occured. The @c errno indicates the error. */ extern int rtems_mkdir(const char *path, mode_t mode); |