summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libfs/src/imfs/memfile.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-26 20:17:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-26 20:17:13 +0000
commit657e1bf66b9406cd4c18af1265443e9ebf006f39 (patch)
treec56bea6d27d9a6a19ac1f139839545db8b63347c /c/src/exec/libfs/src/imfs/memfile.c
parentPatch from Gerwin Pfab <pb@schenk.isar.de> to leave dispatching (diff)
downloadrtems-657e1bf66b9406cd4c18af1265443e9ebf006f39.tar.bz2
Added initial cut at miniIMFS which leaves out memfile and directory
readdir support. The next step is to add a mount table and configure either the miniIMFS or the full IMFS at the application level.
Diffstat (limited to 'c/src/exec/libfs/src/imfs/memfile.c')
-rw-r--r--c/src/exec/libfs/src/imfs/memfile.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/c/src/exec/libfs/src/imfs/memfile.c b/c/src/exec/libfs/src/imfs/memfile.c
index 3abaeb8f17..3468490c90 100644
--- a/c/src/exec/libfs/src/imfs/memfile.c
+++ b/c/src/exec/libfs/src/imfs/memfile.c
@@ -30,6 +30,26 @@
#define MEMFILE_STATIC
/*
+ * Set of operations handlers for operations on memfile entities.
+ */
+
+rtems_filesystem_file_handlers_r IMFS_memfile_handlers = {
+ memfile_open,
+ memfile_close,
+ memfile_read,
+ memfile_write,
+ memfile_ioctl,
+ memfile_lseek,
+ IMFS_stat,
+ IMFS_fchmod,
+ memfile_ftruncate,
+ NULL, /* fpathconf */
+ NULL, /* fsync */
+ IMFS_fdatasync,
+ IMFS_fcntl
+};
+
+/*
* Prototypes of private routines
*/