newlib-cygwin/newlib/libc/syscalls/sysfork.c

20 lines
271 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/* connector for fork */
/* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */
#ifndef NO_FORK
#include <reent.h>
int
_DEFUN_VOID (fork)
2000-02-18 03:39:52 +08:00
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _fork_r (_REENT);
#else
return _fork ();
#endif
}
#endif