From 36861e70ac45a1308185c1b4a7b11036ca942feb Mon Sep 17 00:00:00 2001 From: eck Date: Mon, 3 Dec 1990 14:13:31 +0000 Subject: [PATCH] added isatty.c: it is reasonably standard on UNIX systems --- lang/cem/libcc.ansi/misc/.distr | 1 + lang/cem/libcc.ansi/misc/Makefile | 2 +- lang/cem/libcc.ansi/misc/isatty.c | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 lang/cem/libcc.ansi/misc/isatty.c 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); +} -- 2.34.1