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 /posix/gawkmisc.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 'posix/gawkmisc.c')
-rw-r--r-- | posix/gawkmisc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c index 8c40f538..6290ff57 100644 --- a/posix/gawkmisc.c +++ b/posix/gawkmisc.c @@ -234,6 +234,14 @@ os_restore_mode(int fd) /* no-op */ return; } + +/* os_isatty --- return true if fd is a tty */ + +int +os_isatty(int fd) +{ + return isatty(fd); +} /* files_are_same --- return true if files are identical */ |