OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [src/] [pthreadatfork.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  pthread_atfork() - POSIX 1003.1b 3.1.3
3
 *
4
 *  3.1.3 Register Fork Handlers, P1003.1c/Draft 10, P1003.1c/Draft 10, p. 27
5
 *
6
 *  RTEMS does not support processes, so we fall under this and do not
7
 *  provide this routine:
8
 *
9
 *  "Either the implementation shall support the pthread_atfork() function
10
 *   as described above or the pthread_atfork() funciton shall not be
11
 *   provided."
12
 *
13
 *  $Id: pthreadatfork.c,v 1.2 2001-09-27 11:59:17 chris Exp $
14
 */
15
 
16
#include <sys/types.h>
17
#include <errno.h>
18
 
19
int pthread_atfork(
20
  void (*prepare)(void),
21
  void (*parent)(void),
22
  void (*child)(void)
23
)
24
{
25
  errno = ENOSYS;
26
  return -1;
27
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.