diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/ChangeLog | 4 | ||||
-rw-r--r-- | posix/gawkmisc.c | 8 |
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 */ |