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.
This commit is contained in:
Jennifer Averett
2010-06-30 13:58:56 +00:00
parent 71a5e5a113
commit 6683a58d6e
4 changed files with 42 additions and 1 deletions

View File

@@ -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,

View File

@@ -916,6 +916,17 @@ int rtems_filesystem_default_unlink(
rtems_filesystem_location_info_t *pathloc /* IN */
);
/**
* @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.

View File

@@ -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 =

View File

@@ -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 );
}