diff options
Diffstat (limited to 'subfdins.c')
| -rw-r--r-- | subfdins.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,8 +1,8 @@ | |||
| 1 | #include "readwrite.h" | 1 | #include <unistd.h> |
| 2 | #include "substdio.h" | 2 | #include "substdio.h" |
| 3 | #include "subfd.h" | 3 | #include "subfd.h" |
| 4 | 4 | ||
| 5 | int subfd_readsmall(fd,buf,len) int fd; char *buf; int len; | 5 | ssize_t subfd_readsmall(fd,buf,len) int fd; char *buf; int len; |
| 6 | { | 6 | { |
| 7 | if (substdio_flush(subfdoutsmall) == -1) return -1; | 7 | if (substdio_flush(subfdoutsmall) == -1) return -1; |
| 8 | return read(fd,buf,len); | 8 | return read(fd,buf,len); |
