#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