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) --- xxx/file.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 xxx/file.h (limited to 'xxx/file.h') diff --git a/xxx/file.h b/xxx/file.h new file mode 100644 index 0000000..53c96d8 --- /dev/null +++ b/xxx/file.h @@ -0,0 +1,26 @@ +#ifndef FILE_H +#define FILE_H + +#include + +#define FILE_MAX_FILES 100; + +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; + + + + + +#endif -- cgit v1.2.3