Permission is granted to use, modify, and / or redistribute at will.
*/
-/* This is an example implementation of _PDCLIB_close() fit for use with POSIX
- kernels.
+/* This is a stub example implementation of _PDCLIB_close()
*/
#include <stdio.h>
#ifndef REGTEST
#include <_PDCLIB_glue.h>
-
-extern int close( int fd );
+#include <errno.h>
int _PDCLIB_close( int fd )
{
- return close( fd );
+ errno = ENOTSUP;
+ return 1;
}
#endif