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 /awk.h | |
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 'awk.h')
-rw-r--r-- | awk.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -163,11 +163,6 @@ typedef int off_t; #define O_BINARY 0 #endif -/* Windows needs a separate definition, see pc/config.h. */ -#ifndef ISATTY -# define ISATTY(fd) isatty(fd) -#endif - #ifndef HAVE_VPRINTF #error "you lose: you need a system with vfprintf" #endif /* HAVE_VPRINTF */ @@ -1279,6 +1274,7 @@ extern char *gawk_name(const char *filespec); extern void os_arg_fixup(int *argcp, char ***argvp); extern int os_devopen(const char *name, int flag); extern void os_close_on_exec(int fd, const char *name, const char *what, const char *dir); +extern int os_isatty(int fd); extern int os_isdir(int fd); extern int os_is_setuid(void); extern int os_setbinmode(int fd, int mode); |