5
Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
7
This library is free software; you can redistribute it and/or
8
modify it under the terms of the GNU Lesser General Public
9
License as published by the Free Software Foundation, version 2.1
12
This library is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
Lesser General Public License for more details.
17
You should have received a copy of the GNU Lesser General Public
18
License along with this library; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25
#include <common/config.h>
27
/* A pipe is described by its read and write FDs, and the data remaining in it.
28
* The FDs are valid if there are data pending. The user is not allowed to
32
int data; /* number of bytes present in the pipe */
33
int prod; /* FD the producer must write to ; -1 if none */
34
int cons; /* FD the consumer must read from ; -1 if none */
38
#endif /* _TYPES_PIPE_H */