source: rtems/cpukit/posix/src/pthreadatfork.c @ be1b8a7

4.115
Last change on this file since be1b8a7 was 5cb175bb, checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/13 at 19:22:31

cpukit/posix: Doxygen group is POSIXAPI

  • Property mode set to 100644
File size: 1.0 KB
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.com/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 */
38int pthread_atfork(
39  void (*prepare)(void) __attribute__((unused)),
40  void (*parent)(void) __attribute__((unused)),
41  void (*child)(void) __attribute__((unused))
42)
43{
44  rtems_set_errno_and_return_minus_one( ENOSYS );
45}
Note: See TracBrowser for help on using the repository browser.