summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-10-28 14:12:08 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:12 +0100
commitb9aa3d67de90a0340a42ce816c2b8e764f99c686 (patch)
tree2946f5b748f84555d298af53a4b24c41d5f67a66
parent70e64642088aadafb6e9aa8c3751db1e53a0c124 (diff)
s/makenonblock/makeblocking/
-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 */
/*