diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-12 19:08:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-12 19:08:55 +0000 |
commit | 578a41501456b14f7718e445a57bf121d30b2a8c (patch) | |
tree | b9c8f78f89ebb1928881a321ccaa4301d8d02a2a /c/src/lib/libc/imfs_handlers.c | |
parent | Added call to freenod to let each filesystem free its own internal (diff) | |
download | rtems-578a41501456b14f7718e445a57bf121d30b2a8c.tar.bz2 |
Corrected mistakes in the IMFS file handlers table and added the missing
routine imfs_fcntl.c
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/imfs_handlers.c | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/c/src/lib/libc/imfs_handlers.c b/c/src/lib/libc/imfs_handlers.c index d34cac79eb..97e47fb8ea 100644 --- a/c/src/lib/libc/imfs_handlers.c +++ b/c/src/lib/libc/imfs_handlers.c @@ -30,9 +30,10 @@ rtems_filesystem_file_handlers_r memfile_handlers = { IMFS_stat, IMFS_fchmod, memfile_ftruncate, - NULL, + NULL, /* fpathconf */ + NULL, /* fsync */ IMFS_fdatasync, - IMFS_fdatasync + IMFS_fcntl }; /* @@ -43,14 +44,16 @@ rtems_filesystem_file_handlers_r dir_handlers = { imfs_dir_open, imfs_dir_close, imfs_dir_read, - NULL, - NULL, + NULL, /* write */ + NULL, /* ioctl */ imfs_dir_lseek, imfs_dir_fstat, IMFS_fchmod, - NULL, + NULL, /* ftruncate */ + NULL, /* fpathconf */ + NULL, /* fsync */ IMFS_fdatasync, - IMFS_fdatasync + IMFS_fcntl }; /* @@ -66,27 +69,9 @@ rtems_filesystem_file_handlers_r device_handlers = { device_lseek, IMFS_stat, IMFS_fchmod, - NULL, - NULL, - NULL, - NULL -}; - -/* - * Set of null operations handlers. - */ - -rtems_filesystem_file_handlers_r null_handlers = { - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL, - NULL + NULL, /* ftruncate */ + NULL, /* fpathconf */ + NULL, /* fsync */ + NULL, /* fdatasync */ + NULL /* fcntl */ }; |