URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 1010 |
Rev 1765 |
/* connector for fork */
|
/* connector for fork */
|
|
|
/* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */
|
/* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */
|
|
|
#ifndef NO_FORK
|
#ifndef NO_FORK
|
|
|
#include <reent.h>
|
#include <reent.h>
|
|
|
int
|
int
|
fork ()
|
fork ()
|
{
|
{
|
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
return _fork_r (_REENT);
|
return _fork_r (_REENT);
|
#else
|
#else
|
return _fork ();
|
return _fork ();
|
#endif
|
#endif
|
}
|
}
|
|
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.