__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / getsid.c
blob7b8170e69a9ca1d1777a0a656943691575daab3d
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <unistd.h>
6 #include <string.h>
8 pid_t getsid(pid_t p)
10 message m;
12 memset(&m, 0, sizeof(m));
13 m.PM_GETSID_PID = p;
14 return(_syscall(PM_PROC_NR, PM_GETSID, &m));