X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=platform%2Fexample%2Ffunctions%2F_PDCLIB%2F_Exit.c;h=2bfc8c90623057182779167bb03df4b3ec92abb3;hb=a38d56a6a13dbb89022b5448d2d5247f3f99ea41;hp=14bc18321efff3ee4d5caf868663f37687c90ba5;hpb=d9dcf16664c81809258992e1653ecb68c8079974;p=pdclib.old diff --git a/platform/example/functions/_PDCLIB/_Exit.c b/platform/example/functions/_PDCLIB/_Exit.c index 14bc183..2bfc8c9 100644 --- a/platform/example/functions/_PDCLIB/_Exit.c +++ b/platform/example/functions/_PDCLIB/_Exit.c @@ -6,19 +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> -#include +#include void _PDCLIB_Exit( int status ) { - _exit( status ); + errno = ENOTSUP; } #endif @@ -28,7 +27,9 @@ void _PDCLIB_Exit( int status ) int main( void ) { - TESTCASE( NO_TESTDRIVER ); + int UNEXPECTED_RETURN = 0; + _PDCLIB_Exit( 0 ); + TESTCASE( UNEXPECTED_RETURN ); return TEST_RESULTS; }