Skip to content
Snippets Groups Projects
file.h 190 B
Newer Older
rsc's avatar
rsc committed
struct file {
rsc's avatar
 
rsc committed
  enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_INODE } type;
rsc's avatar
rsc committed
  int ref; // reference count
rtm's avatar
rtm committed
  char readable;
rsc's avatar
rsc committed
  char writable;
rtm's avatar
rtm committed
  struct pipe *pipe;
rsc's avatar
 
rsc committed
  struct uinode *ip;
  uint off;
rtm's avatar
rtm committed
};