Remove building with NOCRYPTO option
[minix.git] / minix / lib / libsys / getprocnr.c
blobddaa52f375a1b87f3e84201d7d114eb0adc441a0
1 #include "syslib.h"
2 #include <unistd.h>
3 #include <string.h>
5 int
6 getprocnr(pid_t pid, endpoint_t *proc_e)
8 message m;
9 int r;
11 memset(&m, 0, sizeof(m));
12 m.m_lsys_pm_getprocnr.pid = pid;
14 if ((r = _taskcall(PM_PROC_NR, PM_GETPROCNR, &m)) < 0)
15 return r;
17 *proc_e = m.m_pm_lsys_getprocnr.endpt;
18 return r;