diff options
Diffstat (limited to 'substdio.h')
| -rw-r--r-- | substdio.h | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,12 +1,14 @@ | |||
| 1 | #ifndef SUBSTDIO_H | 1 | #ifndef SUBSTDIO_H |
| 2 | #define SUBSTDIO_H | 2 | #define SUBSTDIO_H |
| 3 | 3 | ||
| 4 | #include <unistd.h> | ||
| 5 | |||
| 4 | typedef struct substdio { | 6 | typedef struct substdio { |
| 5 | char *x; | 7 | char *x; |
| 6 | int p; | 8 | int p; |
| 7 | int n; | 9 | int n; |
| 8 | int fd; | 10 | int fd; |
| 9 | int (*op)(); | 11 | ssize_t (*op)(); |
| 10 | } substdio; | 12 | } substdio; |
| 11 | 13 | ||
| 12 | #define SUBSTDIO_FDBUF(op,fd,buf,len) { (buf), 0, (len), (fd), (op) } | 14 | #define SUBSTDIO_FDBUF(op,fd,buf,len) { (buf), 0, (len), (fd), (op) } |
