diff options
| author | Miguel <m.i@gmx.at> | 2018-09-16 11:39:36 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-16 11:39:36 +0200 |
| commit | 740ae2e69995df37c44fe61f57642ee642982ca2 (patch) | |
| tree | b84ec79e9243fd0fe103fab1c1acc1e91e60f53d /fs/fd.h | |
| parent | e0449c5adc89eec9f378cb40a56762bf314a80ea (diff) | |
cleanup and starting improve mounts and file access (pipes, sysfiles, ext2)
Diffstat (limited to 'fs/fd.h')
| -rw-r--r-- | fs/fd.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -8,6 +8,22 @@ #include "fifo.h" +/* +typedef struct +{ + int(* seek)(int offset, int whence); + + int(* read)(char *buf, int len); + int(* wrtie)(char *buf, int len); + + int(* close)(); + int(* stat)(void *buf); + + void *data; //opaque + +}file; +*/ + enum FD_TYPE{ FD_TYPE_FIFO_BUFFERED=1, FD_TYPE_EXT2_FILE=2 |
