summaryrefslogtreecommitdiffstats
path: root/substdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'substdio.h')
-rw-r--r--substdio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/substdio.h b/substdio.h
index c3f7f7d..bb9dac9 100644
--- a/substdio.h
+++ b/substdio.h
@@ -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
4typedef struct substdio { 6typedef 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) }