minix/lib/libc/other/_getnpid.c

11 lines
223 B
C
Raw Normal View History

#include <lib.h>
#define getnpid _getnpid
#include <unistd.h>
2009-10-31 15:09:28 +01:00
PUBLIC pid_t getnpid(endpoint_t proc_ep)
{
message m;
2009-10-31 15:09:28 +01:00
m.m1_i1 = proc_ep; /* search pid for this process */
return _syscall(PM_PROC_NR, GETEPINFO, &m);
}