aboutsummaryrefslogtreecommitdiff
path: root/pflocal/pflocal.c
blob: a1813ece1a1025c0961acbfe73a762ec0bdad0a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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];
};