forked from Imagelibrary/rtems
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:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 =
|
||||
|
||||
24
cpukit/libfs/src/defaults/default_mknod.c
Normal file
24
cpukit/libfs/src/defaults/default_mknod.c
Normal 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 );
|
||||
}
|
||||
Reference in New Issue
Block a user