repo.or.cz
/
zpugcc
/
jano.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git]
/
toolchain
/
gcc
/
newlib
/
libc
/
syscalls
/
sysfork.c
blob
96d23c7dd31244d47d8926586ac395dbb81c1f7b
1
/* connector for fork */
2
3
/* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */
4
5
#ifndef NO_FORK
6
7
#include <reent.h>
8
9
int
10
_DEFUN_VOID
(
fork
)
11
{
12
#ifdef REENTRANT_SYSCALLS_PROVIDED
13
return
_fork_r
(
_REENT
);
14
#else
15
return
_fork
();
16
#endif
17
}
18
19
#endif