mirror of
https://github.com/encounter/newlib.git
synced 2026-03-30 11:31:09 -07:00
20 lines
589 B
C
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;
|
|
}
|
|
|