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