ack/mach/minix/libsys/_getppid.c

13 lines
205 B
C
Raw Normal View History

#include <lib.h>
#define getppid _getppid
1991-09-19 12:46:16 +00:00
#include <unistd.h>
PUBLIC int getppid()
{
int p;
p = _callm1(MM, GETPID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
if (p < 0) return(p);
return(_M.m2_i1);
}