jehanne: getppid

This commit is contained in:
Giacomo Tesio 2017-04-22 00:41:39 +02:00
parent 595d23fca2
commit 34fe847918
1 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,13 @@ _getpid_r(struct _reent *r)
return POSIX_getpid(errnop);
}
int
getppid(void)
{
int *errnop = &_REENT->_errno;
return POSIX_getppid(errnop);
}
int
_isatty_r(struct _reent *r, int file)
{