]> pd.if.org Git - pdclib.old/blobdiff - platform/example/functions/_PDCLIB/isinteractive.c
Merged branch stdio_rewrite back into trunk.
[pdclib.old] / platform / example / functions / _PDCLIB / isinteractive.c
diff --git a/platform/example/functions/_PDCLIB/isinteractive.c b/platform/example/functions/_PDCLIB/isinteractive.c
deleted file mode 100644 (file)
index ec3e778..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* $Id$ */
-
-/* _PDCLIB_isinteractive( _PDCLIB_fd_t fd )
-
-   This file is part of the Public Domain C Library (PDCLib).
-   Permission is granted to use, modify, and / or redistribute at will.
-*/
-
-/* This is an example implementation of _PDCLIB_isinteractive() (declared in
-   _PDCLIB_glue.h), fit for use in POSIX kernels.
-   If you do not have an equivalent function, replace this with a return (1)
-   and you will have all streams line-buffered by default.
-*/
-
-#ifndef REGTEST
-#include <_PDCLIB_glue.h>
-
-int isatty( int );
-
-int _PDCLIB_isinteractive( int fd )
-{
-    return isatty( fd );
-}
-
-#endif
-
-#ifdef TEST
-/* TODO: Work around the following undef */
-#undef SEEK_SET
-#include <_PDCLIB_test.h>
-
-int main( void )
-{
-    TESTCASE( NO_TESTDRIVER );
-    return TEST_RESULTS;
-}
-
-#endif