From 1052242d23ab948369e63791adebfa0644122457 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 2 Feb 2012 15:45:16 +0100 Subject: Removed fpathconf file system node handler. There existed no calling function for this handler. --- cpukit/libfs/Makefile.am | 2 +- cpukit/libfs/src/defaults/default_fpathconf.c | 22 ---------------------- cpukit/libfs/src/defaults/default_handlers.c | 1 - cpukit/libfs/src/devfs/devfs_init.c | 1 - cpukit/libfs/src/dosfs/msdos_handlers_dir.c | 1 - cpukit/libfs/src/dosfs/msdos_handlers_file.c | 1 - cpukit/libfs/src/imfs/imfs_fifo.c | 1 - cpukit/libfs/src/imfs/imfs_handlers_device.c | 1 - cpukit/libfs/src/imfs/imfs_handlers_directory.c | 1 - cpukit/libfs/src/imfs/imfs_handlers_link.c | 1 - cpukit/libfs/src/imfs/imfs_handlers_memfile.c | 1 - cpukit/libfs/src/nfsclient/src/nfs.c | 3 --- cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c | 1 - cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c | 1 - cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c | 1 - cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 1 - 16 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 cpukit/libfs/src/defaults/default_fpathconf.c (limited to 'cpukit/libfs') diff --git a/cpukit/libfs/Makefile.am b/cpukit/libfs/Makefile.am index 25429cd36b..20a974c33e 100644 --- a/cpukit/libfs/Makefile.am +++ b/cpukit/libfs/Makefile.am @@ -22,7 +22,7 @@ libdefaultfs_a_SOURCES = \ src/defaults/default_fdatasync.c src/defaults/default_fstat.c \ src/defaults/default_ioctl.c src/defaults/default_mount.c \ src/defaults/default_rename.c src/defaults/default_symlink.c \ - src/defaults/default_write.c src/defaults/default_fpathconf.c \ + src/defaults/default_write.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_mknod.c \ diff --git a/cpukit/libfs/src/defaults/default_fpathconf.c b/cpukit/libfs/src/defaults/default_fpathconf.c deleted file mode 100644 index f65d7d92fc..0000000000 --- a/cpukit/libfs/src/defaults/default_fpathconf.c +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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 -#include -#include - -int rtems_filesystem_default_fpathconf( - rtems_libio_t *iop, - int name -) -{ - rtems_set_errno_and_return_minus_one( ENOTSUP ); -} diff --git a/cpukit/libfs/src/defaults/default_handlers.c b/cpukit/libfs/src/defaults/default_handlers.c index 5343875295..ce6288bbd9 100644 --- a/cpukit/libfs/src/defaults/default_handlers.c +++ b/cpukit/libfs/src/defaults/default_handlers.c @@ -31,7 +31,6 @@ const rtems_filesystem_file_handlers_r rtems_filesystem_handlers_default = { .fstat_h = rtems_filesystem_default_fstat, .fchmod_h = rtems_filesystem_default_fchmod, .ftruncate_h = rtems_filesystem_default_ftruncate, - .fpathconf_h = rtems_filesystem_default_fpathconf, .fsync_h = rtems_filesystem_default_fsync, .fdatasync_h = rtems_filesystem_default_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/devfs/devfs_init.c b/cpukit/libfs/src/devfs/devfs_init.c index 62f31e86b9..bd741e41a2 100644 --- a/cpukit/libfs/src/devfs/devfs_init.c +++ b/cpukit/libfs/src/devfs/devfs_init.c @@ -50,7 +50,6 @@ rtems_filesystem_file_handlers_r devFS_file_handlers = devFS_stat, rtems_filesystem_default_fchmod, rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/dosfs/msdos_handlers_dir.c b/cpukit/libfs/src/dosfs/msdos_handlers_dir.c index cc32af86d4..933960a3e2 100644 --- a/cpukit/libfs/src/dosfs/msdos_handlers_dir.c +++ b/cpukit/libfs/src/dosfs/msdos_handlers_dir.c @@ -28,7 +28,6 @@ const rtems_filesystem_file_handlers_r msdos_dir_handlers = { msdos_dir_stat, msdos_dir_chmod, rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, msdos_dir_sync, msdos_dir_sync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/dosfs/msdos_handlers_file.c b/cpukit/libfs/src/dosfs/msdos_handlers_file.c index 18d4fdd018..8990236303 100644 --- a/cpukit/libfs/src/dosfs/msdos_handlers_file.c +++ b/cpukit/libfs/src/dosfs/msdos_handlers_file.c @@ -28,7 +28,6 @@ const rtems_filesystem_file_handlers_r msdos_file_handlers = { msdos_file_stat, msdos_file_chmod, msdos_file_ftruncate, - rtems_filesystem_default_fpathconf, msdos_file_sync, msdos_file_datasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/imfs/imfs_fifo.c b/cpukit/libfs/src/imfs/imfs_fifo.c index 0de41409a6..e447b26a70 100644 --- a/cpukit/libfs/src/imfs/imfs_fifo.c +++ b/cpukit/libfs/src/imfs/imfs_fifo.c @@ -140,7 +140,6 @@ const rtems_filesystem_file_handlers_r IMFS_fifo_handlers = { IMFS_stat, IMFS_fchmod, rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/imfs/imfs_handlers_device.c b/cpukit/libfs/src/imfs/imfs_handlers_device.c index 025fb985cf..8e249bda33 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_device.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_device.c @@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_device_handlers = { IMFS_stat, IMFS_fchmod, device_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/imfs/imfs_handlers_directory.c b/cpukit/libfs/src/imfs/imfs_handlers_directory.c index d70957d018..5ca715825e 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_directory.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_directory.c @@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_directory_handlers = { imfs_dir_fstat, IMFS_fchmod, rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, IMFS_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/imfs/imfs_handlers_link.c b/cpukit/libfs/src/imfs/imfs_handlers_link.c index 74f93e1a53..d8bbec82d4 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_link.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_link.c @@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_link_handlers = { IMFS_stat, /* stat */ rtems_filesystem_default_fchmod, rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c index 33003ecba9..ee859ee98d 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c @@ -33,7 +33,6 @@ const rtems_filesystem_file_handlers_r IMFS_memfile_handlers = { IMFS_stat, IMFS_fchmod, memfile_ftruncate, - rtems_filesystem_default_fpathconf, IMFS_fdatasync, /* fsync */ IMFS_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c index ca2f86a932..80e757cbdf 100644 --- a/cpukit/libfs/src/nfsclient/src/nfs.c +++ b/cpukit/libfs/src/nfsclient/src/nfs.c @@ -2998,7 +2998,6 @@ struct _rtems_filesystem_file_handlers_r nfs_file_file_handlers = { nfs_fstat, /* OPTIONAL; may be defaulted */ nfs_fchmod, /* OPTIONAL; may be defaulted */ nfs_file_ftruncate, /* OPTIONAL; may be defaulted */ - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, @@ -3017,7 +3016,6 @@ struct _rtems_filesystem_file_handlers_r nfs_dir_file_handlers = { nfs_fstat, /* OPTIONAL; may be defaulted */ nfs_fchmod, /* OPTIONAL; may be defaulted */ rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, @@ -3036,7 +3034,6 @@ struct _rtems_filesystem_file_handlers_r nfs_link_file_handlers = { nfs_fstat, /* OPTIONAL; may be defaulted */ nfs_fchmod, /* OPTIONAL; may be defaulted */ rtems_filesystem_default_ftruncate, - rtems_filesystem_default_fpathconf, rtems_filesystem_default_fsync, rtems_filesystem_default_fdatasync, rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c index 04d4d7ee68..d5a5a3fcf7 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c @@ -259,7 +259,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_device_handlers = { .fstat_h = rtems_rfs_rtems_fstat, .fchmod_h = rtems_rfs_rtems_fchmod, .ftruncate_h = rtems_rfs_rtems_device_ftruncate, - .fpathconf_h = rtems_filesystem_default_fpathconf, .fsync_h = rtems_filesystem_default_fsync, .fdatasync_h = rtems_filesystem_default_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c index 76b914526a..8f9b363336 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c @@ -237,7 +237,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_dir_handlers = { .fstat_h = rtems_rfs_rtems_fstat, .fchmod_h = rtems_rfs_rtems_fchmod, .ftruncate_h = rtems_filesystem_default_ftruncate, - .fpathconf_h = rtems_filesystem_default_fpathconf, .fsync_h = rtems_filesystem_default_fsync, .fdatasync_h = rtems_rfs_rtems_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c index 9e477b5841..346ae54ff5 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c @@ -354,7 +354,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_file_handlers = { .fstat_h = rtems_rfs_rtems_fstat, .fchmod_h = rtems_rfs_rtems_fchmod, .ftruncate_h = rtems_rfs_rtems_file_ftruncate, - .fpathconf_h = rtems_filesystem_default_fpathconf, .fsync_h = rtems_rfs_rtems_fdatasync, .fdatasync_h = rtems_rfs_rtems_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c index f257c7178f..7c92a09a3c 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c @@ -1179,7 +1179,6 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_link_handlers = .fstat_h = rtems_rfs_rtems_fstat, .fchmod_h = rtems_filesystem_default_fchmod, .ftruncate_h = rtems_filesystem_default_ftruncate, - .fpathconf_h = rtems_filesystem_default_fpathconf, .fsync_h = rtems_filesystem_default_fsync, .fdatasync_h = rtems_filesystem_default_fdatasync, .fcntl_h = rtems_filesystem_default_fcntl, -- cgit v1.2.3