summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-06 18:40:28 +0000
committerrsc <rsc>2006-09-06 18:40:28 +0000
commit9936bffa45c928ead9660a0df32d08a50b2b09c2 (patch)
tree096bfa5d4ce6dacdb540938beba5932b85a7815a /file.h
parent39593d2f1aab1355d61b75c041b31a88d2043a04 (diff)
downloadxv6-labs-9936bffa45c928ead9660a0df32d08a50b2b09c2.tar.gz
xv6-labs-9936bffa45c928ead9660a0df32d08a50b2b09c2.tar.bz2
xv6-labs-9936bffa45c928ead9660a0df32d08a50b2b09c2.zip
fd.* -> file.*
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;
+};