rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit b9aa3d67de90a0340a42ce816c2b8e764f99c686
parent 70e64642088aadafb6e9aa8c3751db1e53a0c124
Author: tgoodwin <tgoodwin>
Date:   Wed, 28 Oct 1998 14:12:08 +0000

s/makenonblock/makeblocking/

Diffstat:
Minput.c | 2+-
Mopen.c | 2+-
Mrc.h | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/input.c b/input.c @@ -122,7 +122,7 @@ system, you lose. */ r = rc_read(istack->fd, inbuf + 2, BUFSIZE); sigchk(); if (errno == EAGAIN) { - makenonblock(istack->fd); + makeblocking(istack->fd); errno = EINTR; } } while (r < 0 && errno == EINTR); diff --git a/open.c b/open.c @@ -27,7 +27,7 @@ extern int rc_open(const char *name, redirtype m) { /* make a file descriptor non blocking. must only be called after read() has returned EAGAIN. */ -extern void makenonblock(int fd) { +extern void makeblocking(int fd) { int flags; if ((flags = fcntl(fd, F_GETFL)) == -1) { diff --git a/rc.h b/rc.h @@ -304,7 +304,7 @@ extern void restoreblock(Block *); /* open.c */ extern int rc_open(const char *, redirtype); -extern void makenonblock(int); +extern void makeblocking(int); /* print.c */ /*