diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-01 20:18:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-01 20:18:41 +0000 |
commit | 962571e914bf79f7befae0d68a83858058605438 (patch) | |
tree | be39a0437a89a4d321da8cd85a6f032cb871022f /cpukit/libfs | |
parent | 2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-962571e914bf79f7befae0d68a83858058605438.tar.bz2 |
2010-07-01 Joel Sherrill <joel.sherrilL@OARcorp.com>
* libfs/src/dosfs/msdos_handlers_dir.c,
libfs/src/dosfs/msdos_handlers_file.c, libfs/src/imfs/imfs_fifo.c,
libfs/src/imfs/imfs_handlers_device.c,
libfs/src/imfs/imfs_handlers_directory.c,
libfs/src/imfs/imfs_handlers_link.c,
libfs/src/imfs/imfs_handlers_memfile.c,
libfs/src/imfs/miniimfs_init.c, libfs/src/rfs/rtems-rfs-rtems-dev.c,
libfs/src/rfs/rtems-rfs-rtems-dir.c,
libfs/src/rfs/rtems-rfs-rtems-file.c: Turn NULLs into default
handlers.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_handlers_dir.c | 10 | ||||
-rw-r--r-- | cpukit/libfs/src/dosfs/msdos_handlers_file.c | 4 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_fifo.c | 8 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_handlers_device.c | 8 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_handlers_directory.c | 10 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_handlers_link.c | 24 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_handlers_memfile.c | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/miniimfs_init.c | 24 | ||||
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c | 8 | ||||
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c | 10 | ||||
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c | 2 |
11 files changed, 55 insertions, 55 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_handlers_dir.c b/cpukit/libfs/src/dosfs/msdos_handlers_dir.c index 66e4e8c531..cc32af86d4 100644 --- a/cpukit/libfs/src/dosfs/msdos_handlers_dir.c +++ b/cpukit/libfs/src/dosfs/msdos_handlers_dir.c @@ -22,15 +22,15 @@ const rtems_filesystem_file_handlers_r msdos_dir_handlers = { msdos_dir_open, msdos_dir_close, msdos_dir_read, - NULL, /* msdos_dir_write */ - NULL, /* msdos_dir_ioctl */ + rtems_filesystem_default_write, + rtems_filesystem_default_ioctl, msdos_dir_lseek, msdos_dir_stat, msdos_dir_chmod, - NULL, /* msdos_dir_ftruncate */ - NULL, + rtems_filesystem_default_ftruncate, + rtems_filesystem_default_fpathconf, msdos_dir_sync, msdos_dir_sync, - NULL, /* msdos_dir_fcntl */ + rtems_filesystem_default_fcntl, msdos_dir_rmnod }; diff --git a/cpukit/libfs/src/dosfs/msdos_handlers_file.c b/cpukit/libfs/src/dosfs/msdos_handlers_file.c index 5dd89849c7..18d4fdd018 100644 --- a/cpukit/libfs/src/dosfs/msdos_handlers_file.c +++ b/cpukit/libfs/src/dosfs/msdos_handlers_file.c @@ -28,9 +28,9 @@ const rtems_filesystem_file_handlers_r msdos_file_handlers = { msdos_file_stat, msdos_file_chmod, msdos_file_ftruncate, - NULL, + rtems_filesystem_default_fpathconf, msdos_file_sync, msdos_file_datasync, - NULL, /* msdos_file_fcntl */ + rtems_filesystem_default_fcntl, msdos_file_rmnod }; diff --git a/cpukit/libfs/src/imfs/imfs_fifo.c b/cpukit/libfs/src/imfs/imfs_fifo.c index 4563ff840a..1c9d032c79 100644 --- a/cpukit/libfs/src/imfs/imfs_fifo.c +++ b/cpukit/libfs/src/imfs/imfs_fifo.c @@ -140,10 +140,10 @@ const rtems_filesystem_file_handlers_r IMFS_fifo_handlers = { IMFS_fifo_lseek, IMFS_stat, IMFS_fchmod, - NULL, /* ftruncate */ - NULL, /* fpathconf */ - NULL, /* fsync */ - NULL, /* fdatasync */ + rtems_filesystem_default_ftruncate, + rtems_filesystem_default_fpathconf, + rtems_filesystem_default_fsync, + rtems_filesystem_default_fdatasync, IMFS_fcntl, IMFS_rmnod, }; diff --git a/cpukit/libfs/src/imfs/imfs_handlers_device.c b/cpukit/libfs/src/imfs/imfs_handlers_device.c index 4c265ea391..025fb985cf 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_device.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_device.c @@ -33,9 +33,9 @@ const rtems_filesystem_file_handlers_r IMFS_device_handlers = { IMFS_stat, IMFS_fchmod, device_ftruncate, - NULL, /* fpathconf */ - NULL, /* fsync */ - NULL, /* fdatasync */ - NULL, /* fcntl */ + rtems_filesystem_default_fpathconf, + rtems_filesystem_default_fsync, + rtems_filesystem_default_fdatasync, + rtems_filesystem_default_fcntl, IMFS_rmnod }; diff --git a/cpukit/libfs/src/imfs/imfs_handlers_directory.c b/cpukit/libfs/src/imfs/imfs_handlers_directory.c index 18ec588876..17407cc5c6 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_directory.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_directory.c @@ -27,14 +27,14 @@ const rtems_filesystem_file_handlers_r IMFS_directory_handlers = { imfs_dir_open, imfs_dir_close, imfs_dir_read, - NULL, /* write */ - NULL, /* ioctl */ + rtems_filesystem_default_write, + rtems_filesystem_default_ioctl, imfs_dir_lseek, imfs_dir_fstat, IMFS_fchmod, - NULL, /* ftruncate */ - NULL, /* fpathconf */ - NULL, /* fsync */ + rtems_filesystem_default_ftruncate, + rtems_filesystem_default_fpathconf, + rtems_filesystem_default_fsync, IMFS_fdatasync, IMFS_fcntl, imfs_dir_rmnod diff --git a/cpukit/libfs/src/imfs/imfs_handlers_link.c b/cpukit/libfs/src/imfs/imfs_handlers_link.c index 038da475fc..74f93e1a53 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_link.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_link.c @@ -24,18 +24,18 @@ */ const rtems_filesystem_file_handlers_r IMFS_link_handlers = { - NULL, /* open */ - NULL, /* close */ - NULL, /* read */ - NULL, /* write */ - NULL, /* ioctl */ - NULL, /* lseek */ + rtems_filesystem_default_open, + rtems_filesystem_default_close, + rtems_filesystem_default_read, + rtems_filesystem_default_write, + rtems_filesystem_default_ioctl, + rtems_filesystem_default_lseek, IMFS_stat, /* stat */ - NULL, /* fchmod */ - NULL, /* ftruncate */ - NULL, /* fpathconf */ - NULL, /* fsync */ - NULL, /* fdatasync */ - NULL, /* fcntl */ + rtems_filesystem_default_fchmod, + rtems_filesystem_default_ftruncate, + rtems_filesystem_default_fpathconf, + rtems_filesystem_default_fsync, + rtems_filesystem_default_fdatasync, + rtems_filesystem_default_fcntl, IMFS_rmnod }; diff --git a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c index 37c74fd49e..a64bff668d 100644 --- a/cpukit/libfs/src/imfs/imfs_handlers_memfile.c +++ b/cpukit/libfs/src/imfs/imfs_handlers_memfile.c @@ -33,7 +33,7 @@ const rtems_filesystem_file_handlers_r IMFS_memfile_handlers = { IMFS_stat, IMFS_fchmod, memfile_ftruncate, - NULL, /* fpathconf */ + rtems_filesystem_default_fpathconf, IMFS_fdatasync, /* fsync */ IMFS_fdatasync, IMFS_fcntl, diff --git a/cpukit/libfs/src/imfs/miniimfs_init.c b/cpukit/libfs/src/imfs/miniimfs_init.c index c13a071fa5..aa8110225f 100644 --- a/cpukit/libfs/src/imfs/miniimfs_init.c +++ b/cpukit/libfs/src/imfs/miniimfs_init.c @@ -28,22 +28,22 @@ static const rtems_filesystem_operations_table miniIMFS_ops = { .evalpath_h = IMFS_eval_path, .evalformake_h = IMFS_evaluate_for_make, - .link_h = NULL, - .unlink_h = NULL, + .link_h = rtems_filesystem_default_link, + .unlink_h = rtems_filesystem_default_unlink, .node_type_h = IMFS_node_type, .mknod_h = IMFS_mknod, - .chown_h = NULL, - .freenod_h = NULL, + .chown_h = rtems_filesystem_default_chown, + .freenod_h = rtems_filesystem_default_freenode, .mount_h = IMFS_mount, .fsmount_me_h = miniIMFS_initialize, - .unmount_h = NULL, - .fsunmount_me_h = NULL, - .utime_h = NULL, - .eval_link_h = NULL, - .symlink_h = NULL, - .readlink_h = NULL, - .rename_h = NULL, - .statvfs_h = NULL + .unmount_h = rtems_filesystem_default_unmount, + .fsunmount_me_h = rtems_filesystem_default_unmount, + .utime_h = rtems_filesystem_default_utime, + .eval_link_h = rtems_filesystem_default_evaluate_link, + .symlink_h = rtems_filesystem_default_symlink, + .readlink_h = rtems_filesystem_default_readlink, + .rename_h = rtems_filesystem_default_rename, + .statvfs_h = rtems_filesystem_default_statvfs }; int miniIMFS_initialize( diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c index 7e4ee60a7f..0c2e37de50 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c @@ -263,9 +263,9 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_device_handlers = { .fstat_h = rtems_rfs_rtems_stat, .fchmod_h = rtems_rfs_rtems_fchmod, .ftruncate_h = rtems_rfs_rtems_device_ftruncate, - .fpathconf_h = NULL, - .fsync_h = NULL, - .fdatasync_h = NULL, - .fcntl_h = NULL, + .fpathconf_h = rtems_filesystem_default_fpathconf, + .fsync_h = rtems_filesystem_default_fsync, + .fdatasync_h = rtems_filesystem_default_fdatasync, + .fcntl_h = rtems_filesystem_default_fcntl, .rmnod_h = rtems_rfs_rtems_rmnod }; diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c index 452e1b6b3c..46a2f4f894 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c @@ -230,14 +230,14 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_dir_handlers = { .open_h = rtems_rfs_rtems_dir_open, .close_h = rtems_rfs_rtems_dir_close, .read_h = rtems_rfs_rtems_dir_read, - .write_h = NULL, - .ioctl_h = NULL, + .write_h = rtems_filesystem_default_write, + .ioctl_h = rtems_filesystem_default_ioctl, .lseek_h = rtems_rfs_rtems_dir_lseek, .fstat_h = rtems_rfs_rtems_stat, .fchmod_h = rtems_rfs_rtems_fchmod, - .ftruncate_h = NULL, - .fpathconf_h = NULL, - .fsync_h = NULL, + .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_rfs_rtems_fcntl, .rmnod_h = rtems_rfs_rtems_dir_rmnod diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c index 0c918a9fb1..d62e65254a 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c @@ -338,7 +338,7 @@ const rtems_filesystem_file_handlers_r rtems_rfs_rtems_file_handlers = { .fstat_h = rtems_rfs_rtems_stat, .fchmod_h = rtems_rfs_rtems_fchmod, .ftruncate_h = rtems_rfs_rtems_file_ftruncate, - .fpathconf_h = NULL, + .fpathconf_h = rtems_filesystem_default_fpathconf, .fsync_h = rtems_rfs_rtems_fdatasync, .fdatasync_h = rtems_rfs_rtems_fdatasync, .fcntl_h = rtems_rfs_rtems_fcntl, |