added isatty.c: it is reasonably standard on UNIX systems
authoreck <none@none>
Mon, 3 Dec 1990 14:13:31 +0000 (14:13 +0000)
committereck <none@none>
Mon, 3 Dec 1990 14:13:31 +0000 (14:13 +0000)
lang/cem/libcc.ansi/misc/.distr
lang/cem/libcc.ansi/misc/Makefile
lang/cem/libcc.ansi/misc/isatty.c [new file with mode: 0644]

index adb670e..334b04a 100644 (file)
@@ -8,6 +8,7 @@ getopt.c
 getpass.c
 getpw.c
 getw.c
+isatty.c
 opendir.c
 popen.c
 putenv.c
index 3980c58..b191a6e 100644 (file)
@@ -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 (file)
index 0000000..007fab5
--- /dev/null
@@ -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);
+}