summaryrefslogtreecommitdiff
path: root/fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'fd.h')
-rw-r--r--fd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fd.h b/fd.h
index aa03af9..442ee34 100644
--- a/fd.h
+++ b/fd.h
@@ -1,9 +1,10 @@
struct fd {
- enum { FD_CLOSED, FD_NONE, FD_PIPE } type;
+ enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_FILE } type;
int ref; // reference count
char readable;
char writeable;
struct pipe *pipe;
+ struct inode *ip;
};
extern struct fd fds[NFD];