. service tells you which device it couldn't stat
[minix3.git] / lib / other / _getnpid.c
blobf9c03c27eb705f65b16cabdaea1537a5858f4f12
1 #include <lib.h>
2 #define getnpid _getnpid
3 #include <unistd.h>
5 PUBLIC pid_t getnpid(int proc_nr)
7 message m;
8 m.m1_i1 = proc_nr; /* search pid for this process */
9 if (_syscall(MM, GETPID, &m) < 0) return ( (pid_t) -1);
10 return( (pid_t) m.m2_i2); /* return search result */