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 */
|
2010-06-08 15:58:01 +02:00
|
|
|
return _syscall(PM_PROC_NR, GETEPINFO, &m);
|
2005-10-12 17:10:14 +02:00
|
|
|
}
|