aboutsummaryrefslogtreecommitdiffstats
path: root/posix/gawkmisc.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-04-01 11:52:37 +0300
committerArnold D. Robbins <arnold@skeeve.com>2011-04-01 11:52:37 +0300
commit6aed27e0a553cb31800bbaeee1bf8e96a98abb12 (patch)
tree6da50e73f4ef581b3e66dbcec614d39a3dbf23db /posix/gawkmisc.c
parentb1746329b7749a8f760bab04c12e5127a23e46ed (diff)
downloadegawk-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.c8
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 */