]> pd.if.org Git - pdclib.old/blobdiff - platform/example/functions/_PDCLIB/_Exit.c
* platform/example is now a "stub" platform - it should compile anywhere, but
[pdclib.old] / platform / example / functions / _PDCLIB / _Exit.c
index 5c95fca8c03379452931b1fda5beaa6b9e38afb3..2bfc8c90623057182779167bb03df4b3ec92abb3 100644 (file)
@@ -6,20 +6,18 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-/* This is an example implementation of _PDCLIB_exit() fit for use with POSIX
-   kernels.
+/* This is a stub implementation of _PDCLIB_Exit
 */
 
 #include <stdlib.h>
 
 #ifndef REGTEST
 #include <_PDCLIB_glue.h>
-
-extern void _exit( int status ) _PDCLIB_NORETURN;
+#include <errno.h>
 
 void _PDCLIB_Exit( int status )
 {
-    _exit( status );
+    errno = ENOTSUP;
 }
 
 #endif