diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-15 08:46:06 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-07-15 08:46:06 +0000 |
commit | de39b5127d773a9babc9fee51125c4a465ced86e (patch) | |
tree | 93b738b3398408643f783afe35e6a1517fa3fd37 /cpukit/libcsupport | |
parent | 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-de39b5127d773a9babc9fee51125c4a465ced86e.tar.bz2 |
2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_null_handlers.
* libcsupport/src/fs_null_handlers.c: Removed file.
* libcsupport/Makefile.am: Reflect change above.
* libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_creat.c,
libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c: Use
rtems_filesystem_handlers_default instead of
rtems_filesystem_null_handlers.
* libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c:
Initialize handler and operations table with proper defaults.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio_.h | 1 | ||||
-rw-r--r-- | cpukit/libcsupport/src/fs_null_handlers.c | 41 |
3 files changed, 1 insertions, 43 deletions
diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index a1f29ad112..c3150e7fa6 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -45,7 +45,7 @@ ASSOCIATION_C_FILES = src/assoclocalbyname.c \ BASE_FS_C_FILES = src/base_fs.c src/mount.c src/unmount.c src/libio.c \ src/mount-mgr.c src/mount-mktgt.c src/libio_init.c \ - src/eval.c src/fs_null_handlers.c src/privateenv.c \ + src/eval.c src/privateenv.c \ src/open_dev_console.c src/__usrenv.c src/rtems_mkdir.c if LIBNETWORKING diff --git a/cpukit/libcsupport/include/rtems/libio_.h b/cpukit/libcsupport/include/rtems/libio_.h index cb9770faea..f5cb537210 100644 --- a/cpukit/libcsupport/include/rtems/libio_.h +++ b/cpukit/libcsupport/include/rtems/libio_.h @@ -37,7 +37,6 @@ extern "C" { #define RTEMS_LIBIO_IOP_SEM(n) rtems_build_name('L', 'B', 'I', n) extern rtems_id rtems_libio_semaphore; -extern const rtems_filesystem_file_handlers_r rtems_filesystem_null_handlers; /* * File descriptor Table Information diff --git a/cpukit/libcsupport/src/fs_null_handlers.c b/cpukit/libcsupport/src/fs_null_handlers.c deleted file mode 100644 index 72c5b2c2b1..0000000000 --- a/cpukit/libcsupport/src/fs_null_handlers.c +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Null Filesystem Operations Tables - * - * COPYRIGHT (c) 1989-1999. - * 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$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <errno.h> - -#include <rtems/libio.h> - -/* - * Set of null operations handlers. - */ - -const rtems_filesystem_file_handlers_r rtems_filesystem_null_handlers = { - NULL, /* open */ - NULL, /* close */ - NULL, /* read */ - NULL, /* write */ - NULL, /* ioctl */ - NULL, /* lseek */ - NULL, /* fstat */ - NULL, /* fchmod */ - NULL, /* ftruncate */ - NULL, /* fpathconf */ - NULL, /* fsync */ - NULL, /* fdatasync */ - NULL, /* fcntl */ - NULL /* rmnod */ -}; |