diff options
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,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; +}; |