source:
rtems/testsuites/psxtests/psxhdrs/pthread/pthread_exit.c
@
68c8a197
Last change on this file since 68c8a197 was 68c8a197, checked in by Joel Sherrill <joel@…>, on 11/14/18 at 23:30:57 | |
---|---|
|
|
File size: 619 bytes |
Rev | Line | |
---|---|---|
[2328475] | 1 | /* |
2 | * This test file is used to verify that the header files associated with | |
[2a53f31] | 3 | * invoking this function are correct. |
[68c8a197] | 4 | */ |
5 | ||
6 | /* | |
[7a9030a0] | 7 | * COPYRIGHT (c) 1989-2009. |
[2328475] | 8 | * On-Line Applications Research Corporation (OAR). |
9 | * | |
[98e4ebf5] | 10 | * The license and distribution terms for this file may be |
11 | * found in the file LICENSE in this distribution or at | |
[c499856] | 12 | * http://www.rtems.org/license/LICENSE. |
[2328475] | 13 | */ |
14 | ||
[cafefbf] | 15 | #ifdef HAVE_CONFIG_H |
16 | #include "config.h" | |
17 | #endif | |
18 | ||
[2328475] | 19 | #include <pthread.h> |
20 | ||
[9854e336] | 21 | #ifndef _POSIX_THREADS |
22 | #error "rtems is supposed to have pthread_exit" | |
23 | #endif | |
24 | ||
[7a9030a0] | 25 | void test( void ); |
26 | ||
[2328475] | 27 | void test( void ) |
28 | { | |
29 | void *status = NULL; | |
30 | ||
31 | pthread_exit( status ); | |
32 | } |
Note: See TracBrowser
for help on using the repository browser.