/* $Id$ */
-/* Release $Name$ */
-
/* _PDCLIB_exit( int )
This file is part of the Public Domain C Library (PDCLib).
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>
-#include <unistd.h>
+#include <errno.h>
void _PDCLIB_Exit( int status )
{
- _exit( status );
+ errno = ENOTSUP;
}
#endif
int main( void )
{
- TESTCASE( NO_TESTDRIVER );
+ int UNEXPECTED_RETURN = 0;
+ _PDCLIB_Exit( 0 );
+ TESTCASE( UNEXPECTED_RETURN );
return TEST_RESULTS;
}