diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 20:20:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 20:20:13 +0000 |
commit | b568ccb7455fa29df50205d5fc13802598ced1d6 (patch) | |
tree | 83690f72a7978f78a2181dddf6b923c8001ee6cf /cpukit/libfs/src/imfs/imfs.h | |
parent | Split object.c into multiple files. (diff) | |
download | rtems-b568ccb7455fa29df50205d5fc13802598ced1d6.tar.bz2 |
The object memfile.o was being included in the miniIMFS even though it
should not have been. This required that IMFS_rmnod be split into
three separate (per file type) routines to avoid dependencies.
In the end, a miniIMFS application is 6K smaller than one using the
full IMFS.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs.h')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs.h | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/cpukit/libfs/src/imfs/imfs.h b/cpukit/libfs/src/imfs/imfs.h index d1be06bbf4..a88672c4b8 100644 --- a/cpukit/libfs/src/imfs/imfs.h +++ b/cpukit/libfs/src/imfs/imfs.h @@ -308,10 +308,6 @@ int IMFS_freenodinfo( rtems_filesystem_location_info_t *pathloc /* IN */ ); -int IMFS_rmnod( - rtems_filesystem_location_info_t *pathloc /* IN */ -); - int IMFS_mknod( const char *path, /* IN */ mode_t mode, /* IN */ @@ -353,92 +349,123 @@ int memfile_ftruncate( rtems_libio_t *iop, /* IN */ off_t length /* IN */ ); + int imfs_dir_open( rtems_libio_t *iop, /* IN */ const char *pathname, /* IN */ unsigned32 flag, /* IN */ unsigned32 mode /* IN */ ); + int imfs_dir_close( rtems_libio_t *iop /* IN */ ); + int imfs_dir_read( rtems_libio_t *iop, /* IN */ void *buffer, /* IN */ unsigned32 count /* IN */ ); + int imfs_dir_lseek( rtems_libio_t *iop, /* IN */ off_t offset, /* IN */ int whence /* IN */ ); + int imfs_dir_fstat( rtems_filesystem_location_info_t *loc, /* IN */ struct stat *buf /* OUT */ ); + +int imfs_dir_rmnod( + rtems_filesystem_location_info_t *pathloc /* IN */ +); + int memfile_open( rtems_libio_t *iop, /* IN */ const char *pathname, /* IN */ unsigned32 flag, /* IN */ unsigned32 mode /* IN */ ); + int memfile_close( rtems_libio_t *iop /* IN */ ); + int memfile_read( rtems_libio_t *iop, /* IN */ void *buffer, /* IN */ unsigned32 count /* IN */ ); + int memfile_write( rtems_libio_t *iop, /* IN */ const void *buffer, /* IN */ unsigned32 count /* IN */ ); + int memfile_ioctl( rtems_libio_t *iop, /* IN */ unsigned32 command, /* IN */ void *buffer /* IN */ ); + int memfile_lseek( rtems_libio_t *iop, /* IN */ off_t offset, /* IN */ int whence /* IN */ ); + +int memfile_rmnod( + rtems_filesystem_location_info_t *pathloc /* IN */ +); + int device_open( rtems_libio_t *iop, /* IN */ const char *pathname, /* IN */ unsigned32 flag, /* IN */ unsigned32 mode /* IN */ ); + int device_close( rtems_libio_t *iop /* IN */ ); + int device_read( rtems_libio_t *iop, /* IN */ void *buffer, /* IN */ unsigned32 count /* IN */ ); + int device_write( rtems_libio_t *iop, /* IN */ const void *buffer, /* IN */ unsigned32 count /* IN */ ); + int device_ioctl( rtems_libio_t *iop, /* IN */ unsigned32 command, /* IN */ void *buffer /* IN */ ); + int device_lseek( rtems_libio_t *iop, /* IN */ off_t offset, /* IN */ int whence /* IN */ ); + +int device_rmnod( + rtems_filesystem_location_info_t *pathloc /* IN */ +); + int IMFS_utime( rtems_filesystem_location_info_t *pathloc, /* IN */ time_t actime, /* IN */ time_t modtime /* IN */ ); + int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode |