]> pd.if.org Git - pdclib.old/blobdiff - platform/example/functions/_PDCLIB/close.c
Enable per-thread locale support to be compiled out
[pdclib.old] / platform / example / functions / _PDCLIB / close.c
index fd85f4c636986b630ebafb5440fe88308a946b26..1b030c963e8bb058f1643b1934ce4aea67c70fe1 100644 (file)
@@ -6,23 +6,19 @@
    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>
+#include <errno.h>
 
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int _PDCLIB_close( _PDCLIB_fd_t fd )
+int _PDCLIB_close( int fd )
 {
-    return close( fd );
+    errno = ENOTSUP;
+    return 1;
 }
 
 #endif