X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=2bfc8c90623057182779167bb03df4b3ec92abb3;hb=a18343e497615802f47e0f6876b5bed73af674e0;hp=5c95fca8c03379452931b1fda5beaa6b9e38afb3;hpb=b76c255d42904c10ce65f884429b4bf2f9b4f4a4;p=pdclib diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index 5c95fca..2bfc8c9 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -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 #ifndef REGTEST #include <_PDCLIB_glue.h> - -extern void _exit( int status ) _PDCLIB_NORETURN; +#include void _PDCLIB_Exit( int status ) { - _exit( status ); + errno = ENOTSUP; } #endif