Files

20 lines
590 B
C
Raw Permalink Normal View History

2018-02-23 00:57:47 +00:00
#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 _getpid_r( struct _reent *ptr) {
2018-02-23 00:57:47 +00:00
//---------------------------------------------------------------------------------
#else
//---------------------------------------------------------------------------------
2018-05-27 20:47:46 +01:00
int _getpid(void) {
2018-02-23 00:57:47 +00:00
//---------------------------------------------------------------------------------
struct _reent *ptr = _REENT;
#endif
ptr->_errno = ENOSYS;
return -1;
}