summaryrefslogtreecommitdiff
path: root/fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'fd.h')
-rw-r--r--fd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fd.h b/fd.h
new file mode 100644
index 0000000..c8d0c34
--- /dev/null
+++ b/fd.h
@@ -0,0 +1,9 @@
+struct fd {
+ enum { FD_CLOSED, FD_NONE, FD_PIPE } type;
+ int count; // reference count
+ char readable;
+ char writeable;
+ struct pipe *pipe;
+};
+
+extern struct fd fds[NFD];