Files
2018-05-27 20:43:26 +00:00

20 lines
590 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;
}