#ifndef FILE_H #define FILE_H #include typedef struct { int(* seek)(int offset, int whence); int(* read)(char *buf, int len); int(* wrtie)(char *buf, int len); int(* close)(); int(* stat)(struct stat *buf); void *data; //opaque }file; #endif