From 740ae2e69995df37c44fe61f57642ee642982ca2 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sun, 16 Sep 2018 11:39:36 +0200 Subject: cleanup and starting improve mounts and file access (pipes, sysfiles, ext2) --- fs/fd.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'fs/fd.h') diff --git a/fs/fd.h b/fs/fd.h index a3bdb5a..429387b 100644 --- a/fs/fd.h +++ b/fs/fd.h @@ -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 -- cgit v1.2.3