Files

22 lines
612 B
C
Raw Permalink Normal View History

2017-06-13 11:09:01 +01:00
/*
* Stub version of fork.
*/
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
#include <errno.h>
#ifdef REENTRANT_SYSCALLS_PROVIDED
//---------------------------------------------------------------------------------
int _fork_r (struct _reent * r) {
//---------------------------------------------------------------------------------
#else
//---------------------------------------------------------------------------------
int _fork(void) {
//---------------------------------------------------------------------------------
struct _reent *r = _REENT;
#endif
r->_errno = ENOSYS;
return -1;
}