aboutsummaryrefslogtreecommitdiffstats
path: root/posix
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
parentb1746329b7749a8f760bab04c12e5127a23e46ed (diff)
downloadegawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.gz
egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.tar.bz2
egawk-6aed27e0a553cb31800bbaeee1bf8e96a98abb12.zip
Change ISATTY macro to os_isatty function.
Diffstat (limited to 'posix')
-rw-r--r--posix/ChangeLog4
-rw-r--r--posix/gawkmisc.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index e0cce059..ceecc6b5 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,7 @@
+Fri Apr 1 11:50:59 2011 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawkmisc.c (os_iastty): New function.
+
Sun Feb 13 20:23:34 2011 Eli Zaretskii <eliz@gnu.org>
* gawkmisc.c (files_are_same): Change arguments; call `stat' as
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 */