From c41f1de5d41a527a3fa2d1e94215766130eac456 Mon Sep 17 00:00:00 2001 From: rtm Date: Tue, 27 Jun 2006 14:35:53 +0000 Subject: file descriptors pipes --- fd.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fd.h (limited to 'fd.h') 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]; -- cgit v1.2.3