2
This software may only be used by you under license from AT&T Corp.
3
("AT&T"). A copy of AT&T's Source Code Agreement is available at
4
AT&T's Internet website having the URL:
5
<http://www.research.att.com/sw/tools/graphviz/license/source.html>
6
If you received this software without first entering into a license
7
with AT&T, you have an infringing copy of this software and cannot use
8
it without violating AT&T's intellectual property rights.
12
/* Lefteris Koutsofios - AT&T Bell Laboratories */
18
IO_FILE, IO_PTY, IO_PIPE, IO_SOCKET,
26
int inuse, ismonitored;
34
#define IOmonitor(ioi, set) do { \
35
iop[ioi].ismonitored = TRUE; \
37
#define IOunmonitor(ioi, set) do { \
38
iop[ioi].ismonitored = FALSE; \
41
#define IOmonitor(ioi, set) do { \
42
iop[ioi].ismonitored = TRUE; \
43
FD_SET (fileno (iop[ioi].ifp), &set); \
45
#define IOunmonitor(ioi, set) do { \
46
iop[ioi].ismonitored = FALSE; \
47
FD_CLR (fileno (iop[ioi].ifp), &set); \
51
#define IOismonitored(ioi) (iop[ioi].ismonitored == TRUE)
53
#define IOSIZE sizeof (io_t)
54
#define IOBUFSIZE 2048
61
int IOopen (char *, char *, char *, char *);
62
int IOclose (int, char *);
63
int IOreadline (int, char *, int);
64
int IOread (int, char *, int);
65
int IOwriteline (int, char *);