minix/lib/other/_getnpid.c

11 lines
215 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(MM, GETEPINFO, &m);
}