diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-04-01 11:52:37 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-04-01 11:52:37 +0300 |
commit | 6aed27e0a553cb31800bbaeee1bf8e96a98abb12 (patch) | |
tree | 6da50e73f4ef581b3e66dbcec614d39a3dbf23db /io.c | |
parent | b1746329b7749a8f760bab04c12e5127a23e46ed (diff) | |
download | egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.gz egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.bz2 egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.zip |
Change ISATTY macro to os_isatty function.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -781,7 +781,7 @@ redirect(NODE *redir_exp, int redirtype, int *errflg) if (rp->fp == NULL) close(fd); } - if (rp->fp != NULL && ISATTY(fd)) + if (rp->fp != NULL && os_isatty(fd)) rp->flag |= RED_NOBUF; /* Move rp to the head of the list. */ @@ -2561,7 +2561,7 @@ iop_alloc(int fd, const char *name, IOBUF *iop, int do_openhooks) return NULL; } - if (ISATTY(iop->fd)) + if (os_isatty(iop->fd)) iop->flag |= IOP_IS_TTY; iop->readsize = iop->size = optimal_bufsize(iop->fd, & sbuf); iop->sbuf = sbuf; |