summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pflocal/pflocal.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/pflocal/pflocal.c b/pflocal/pflocal.c
new file mode 100644
index 00000000..a1813ece
--- /dev/null
+++ b/pflocal/pflocal.c
@@ -0,0 +1,24 @@
+
+struct pipe_user
+{
+ struct port_info pi;
+ struct pipe_end *pe;
+};
+
+struct pipe_end
+{
+ int refcount;
+ enum { PIPE_NONE, PIPE_READ, PIPE_WRITE } type;
+ struct pipe_end *peer;
+ struct pipe *pipe;
+};
+
+struct pipe
+{
+ char *start, *end;
+ size_t chars_alloced;
+ struct stat *st;
+ struct condition pending_reads;
+ struct condition pending_selects;
+ char data[0];
+};