summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'file.h')
-rw-r--r--file.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/file.h b/file.h
new file mode 100644
index 0000000..15d6b78
--- /dev/null
+++ b/file.h
@@ -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;
+};