Files
2018-02-18 14:39:59 +00:00

20 lines
589 B
C

#include "config.h"
#include <_ansi.h>
#include <_syslist.h>
#include <errno.h>
#ifdef REENTRANT_SYSCALLS_PROVIDED
//---------------------------------------------------------------------------------
int _getpid_r(struct _reent *ptr) {
//---------------------------------------------------------------------------------
#else
//---------------------------------------------------------------------------------
int _getpid(void) {
//---------------------------------------------------------------------------------
struct _reent *ptr = _REENT;
#endif
ptr->_errno = ENOSYS;
return -1;
}