summaryrefslogtreecommitdiff
path: root/file.h
blob: 15d6b7898940f54e6ab8ef0ee0a3dda60f61dab3 (plain)
1
2
3
4
5
6
7
8
9
struct file {
  enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_FILE } type;
  int ref; // reference count
  char readable;
  char writable;
  struct pipe *pipe;
  struct inode *ip;
  uint off;
};