From: eck Date: Mon, 3 Dec 1990 14:13:31 +0000 (+0000) Subject: added isatty.c: it is reasonably standard on UNIX systems X-Git-Tag: release-5-5~1369 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=36861e70ac45a1308185c1b4a7b11036ca942feb;p=ack.git added isatty.c: it is reasonably standard on UNIX systems --- diff --git a/lang/cem/libcc.ansi/misc/.distr b/lang/cem/libcc.ansi/misc/.distr index adb670e90..334b04a22 100644 --- a/lang/cem/libcc.ansi/misc/.distr +++ b/lang/cem/libcc.ansi/misc/.distr @@ -8,6 +8,7 @@ getopt.c getpass.c getpw.c getw.c +isatty.c opendir.c popen.c putenv.c diff --git a/lang/cem/libcc.ansi/misc/Makefile b/lang/cem/libcc.ansi/misc/Makefile index 3980c58b7..b191a6ed6 100644 --- a/lang/cem/libcc.ansi/misc/Makefile +++ b/lang/cem/libcc.ansi/misc/Makefile @@ -2,4 +2,4 @@ clean: rm -f getgrent.o getopt.o getpass.o getpw.o getw.o putw.o putenv.o \ environ.o popen.o sleep.o termcap.o fdopen.o closedir.o \ getdents.o opendir.o readdir.o rewinddir.o seekdir.o \ - telldir.o OLIST + telldir.o isatty.o OLIST diff --git a/lang/cem/libcc.ansi/misc/isatty.c b/lang/cem/libcc.ansi/misc/isatty.c new file mode 100644 index 000000000..007fab56e --- /dev/null +++ b/lang/cem/libcc.ansi/misc/isatty.c @@ -0,0 +1,11 @@ +/* + * isatty - check if a file descriptor is associated with a terminal + */ +/* $Header$ */ + +int _isatty(int d); + +int isatty(int d) +{ + return _isatty(d); +}