summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/isatty.c
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2001-08-07 17:40:36 +0000
committerMystery Man <unknown@mandriva.org>2001-08-07 17:40:36 +0000
commit068d599562888a36a50e5bbdeb8b70f83fa7c287 (patch)
tree18f5eed8353b3af647412875d438b55ef8c07670 /mdk-stage1/dietlibc/lib/isatty.c
parentbe838931607e1ab14c8c699e20dd807b55579f7b (diff)
downloaddrakx-backup-do-not-use-topic/v_webmin_0_87.tar
drakx-backup-do-not-use-topic/v_webmin_0_87.tar.gz
drakx-backup-do-not-use-topic/v_webmin_0_87.tar.bz2
drakx-backup-do-not-use-topic/v_webmin_0_87.tar.xz
drakx-backup-do-not-use-topic/v_webmin_0_87.zip
This commit was manufactured by cvs2svn to create branchtopic/v_webmin_0_87
'v_webmin_0_87'.
Diffstat (limited to 'mdk-stage1/dietlibc/lib/isatty.c')
-rw-r--r--mdk-stage1/dietlibc/lib/isatty.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/mdk-stage1/dietlibc/lib/isatty.c b/mdk-stage1/dietlibc/lib/isatty.c
deleted file mode 100644
index b31609720..000000000
--- a/mdk-stage1/dietlibc/lib/isatty.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#define ioctl libc_ioctl
-#include <termios.h>
-#undef ioctl
-#include <sys/ioctl.h>
-
-extern int errno;
-
-int isatty(int fd)
-{
- int save;
- int is_tty;
- struct termios term;
-
- save = errno;
- is_tty = ioctl(fd, TCGETS, &term) == 0;
- errno = save;
-
- return is_tty;
-}
-