diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2010-06-30 13:58:56 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2010-06-30 13:58:56 +0000 |
commit | 6683a58d6ec2168e08f25ffa04febab71391371d (patch) | |
tree | 30ce93812ea002af9231890b1ef25b8ffc7d4d50 /cpukit | |
parent | 2010-06-30 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6683a58d6ec2168e08f25ffa04febab71391371d.tar.bz2 |
2010-06-30 Jennifer.Averett <Jennifer.Averett@OARcorp.com>
* libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added
filesystem default mknod method.
* libfs/src/defaults/default_mknod.c: New file.
Diffstat (limited to '')
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 11 | ||||
-rw-r--r-- | cpukit/libfs/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/defaults/default_mknod.c | 24 |
4 files changed, 42 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index ee9968877d..a63bd21c94 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2010-06-30 Jennifer.Averett <Jennifer.Averett@OARcorp.com> + + * libcsupport/include/rtems/libio.h, libfs/Makefile.am: Added + filesystem default mknod method. + * libfs/src/defaults/default_mknod.c: New file. + 2010-06-29 Jennifer.Averett <Jennifer.Averett@OARcorp.com> * libcsupport/include/rtems/libio.h, libfs/Makefile.am, diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index 3b5e373b68..d0edc1e184 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -918,6 +918,17 @@ int rtems_filesystem_default_unlink( /** * @brief Provides a defualt routine for filesystem + * implementation to create a new node. + */ +int rtems_filesystem_default_mknod( + const char *path, /* IN */ + mode_t mode, /* IN */ + dev_t dev, /* IN */ + rtems_filesystem_location_info_t *pathloc /* IN/OUT */ +); + +/** + * @brief Provides a defualt routine for filesystem * implementation of a chown command. */ int rtems_filesystem_default_chown( diff --git a/cpukit/libfs/Makefile.am b/cpukit/libfs/Makefile.am index d75c600d4a..340878a23e 100644 --- a/cpukit/libfs/Makefile.am +++ b/cpukit/libfs/Makefile.am @@ -30,7 +30,7 @@ libdefaultfs_a_SOURCES = \ src/defaults/default_write.c src/defaults/default_fpathconf.c \ src/defaults/default_unmount.c src/defaults/default_evaluate_link.c \ src/defaults/default_open.c src/defaults/default_close.c \ - src/defaults/default_fsunmount.c + src/defaults/default_fsunmount.c src/defaults/default_mknod.c noinst_LIBRARIES += libimfs.a libimfs_a_SOURCES = diff --git a/cpukit/libfs/src/defaults/default_mknod.c b/cpukit/libfs/src/defaults/default_mknod.c new file mode 100644 index 0000000000..fcd03be4c2 --- /dev/null +++ b/cpukit/libfs/src/defaults/default_mknod.c @@ -0,0 +1,24 @@ +/* + * COPYRIGHT (c) 2010. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <rtems/libio.h> +#include <rtems/libio_.h> +#include <rtems/seterr.h> + +int rtems_filesystem_default_mknod( + const char *path, /* IN */ + mode_t mode, /* IN */ + dev_t dev, /* IN */ + rtems_filesystem_location_info_t *pathloc /* IN/OUT */ +) +{ + rtems_set_errno_and_return_minus_one( ENOTSUP ); +} |