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.
This commit is contained in:
Joel Sherrill
2010-07-01 20:18:41 +00:00
parent 9787ee22a1
commit 962571e914
12 changed files with 68 additions and 55 deletions

View File

@@ -1,3 +1,16 @@
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.
2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/_rename_r.c, libcsupport/src/getdents.c,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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