2005-10-12 17:10:14 +02:00
|
|
|
#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)
|
2005-10-12 17:10:14 +02:00
|
|
|
{
|
|
|
|
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);
|
2005-10-12 17:10:14 +02:00
|
|
|
}
|