summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc/memfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libc/memfile.c')
-rw-r--r--c/src/lib/libc/memfile.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/c/src/lib/libc/memfile.c b/c/src/lib/libc/memfile.c
index 3abaeb8f17..3468490c90 100644
--- a/c/src/lib/libc/memfile.c
+++ b/c/src/lib/libc/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
*/