summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--input.c2
-rw-r--r--open.c2
-rw-r--r--rc.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/input.c b/input.c
index 1c7f6e8..4275e70 100644
--- 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
index 68b1a91..2b2fb81 100644
--- 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
index 59ed0ea..6cd469e 100644
--- 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 */
/*