5
Last change
on this file since 127c20eb was
f97536d,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/16/15 at 06:21:48
|
basdefs.h: Add and use RTEMS_UNUSED
|
-
Property mode set to
100644
|
File size:
1019 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Register Fork Handlers |
---|
5 | * @ingroup POSIXAPI |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2007. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <pthread.h> |
---|
22 | |
---|
23 | #include <errno.h> |
---|
24 | #include <rtems/seterr.h> |
---|
25 | |
---|
26 | /** |
---|
27 | * POSIX 1003.1b 3.1.3 |
---|
28 | * |
---|
29 | * 3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27 |
---|
30 | * |
---|
31 | * RTEMS does not support processes, so we fall under this and do not |
---|
32 | * provide this routine: |
---|
33 | * |
---|
34 | * "Either the implementation shall support the pthread_atfork() function |
---|
35 | * as described above or the pthread_atfork() funciton shall not be |
---|
36 | * provided." |
---|
37 | */ |
---|
38 | int pthread_atfork( |
---|
39 | void (*prepare)(void), |
---|
40 | void (*parent)(void), |
---|
41 | void (*child)(void) |
---|
42 | ) |
---|
43 | { |
---|
44 | (void) prepare; |
---|
45 | (void) parent; |
---|
46 | (void) child; |
---|
47 | rtems_set_errno_and_return_minus_one( ENOSYS ); |
---|
48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.