Files

22 lines
614 B
C
Raw Permalink Normal View History

2018-02-23 00:57:47 +00:00
/*
* Stub version of fork.
*/
#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
#include <errno.h>
#ifdef REENTRANT_SYSCALLS_PROVIDED
//---------------------------------------------------------------------------------
2018-05-27 20:47:46 +01:00
int _fork_r( struct _reent * r) {
2018-02-23 00:57:47 +00:00
//---------------------------------------------------------------------------------
#else
//---------------------------------------------------------------------------------
2018-05-27 20:47:46 +01:00
int _fork, (void) {
2018-02-23 00:57:47 +00:00
//---------------------------------------------------------------------------------
struct _reent *r = _REENT;
#endif
r->_errno = ENOSYS;
return -1;
}