summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/isatty.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/exec/libcsupport/src/isatty.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/c/src/exec/libcsupport/src/isatty.c b/c/src/exec/libcsupport/src/isatty.c
deleted file mode 100644
index 57eeb8ca50..0000000000
--- a/c/src/exec/libcsupport/src/isatty.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.OARcorp.com/rtems/license.html.
- *
- * $Id$
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <sys/stat.h>
-
-int isatty(
- int fd
-)
-{
- struct stat buf;
-
- if (fstat (fd, &buf) < 0)
- return 0;
-
- if (S_ISCHR (buf.st_mode))
- return 1;
-
- return 0;
-}