aboutsummaryrefslogtreecommitdiffstats
path: root/posix/gawkmisc.c
diff options
context:
space:
mode:
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 */