]> pd.if.org Git - pdclib.old/blob - platform/example/functions/_PDCLIB/_Exit.c
Porting current working set from CVS.
[pdclib.old] / platform / example / functions / _PDCLIB / _Exit.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* _PDCLIB_exit( int )
6
7    This file is part of the Public Domain C Library (PDCLib).
8    Permission is granted to use, modify, and / or redistribute at will.
9 */
10
11 /* This is an example implementation of _PDCLIB_exit() fit for use with POSIX
12    kernels.
13 */
14
15 #include <stdlib.h>
16
17 #ifndef REGTEST
18 #include <_PDCLIB_glue.h>
19 #include <unistd.h>
20
21 void _PDCLIB_Exit( int status )
22 {
23     _exit( status );
24 }
25
26 #endif
27
28 #ifdef TEST
29 #include <_PDCLIB_test.h>
30
31 int main( void )
32 {
33     TESTCASE( NO_TESTDRIVER );
34     return TEST_RESULTS;
35 }
36
37 #endif