xv6-65oo2/file.h
2009-05-31 02:07:51 +00:00

10 lines
178 B
C

struct file {
enum { FD_NONE, FD_PIPE, FD_INODE } type;
int ref; // reference count
char readable;
char writable;
struct pipe *pipe;
struct inode *ip;
uint off;
};