1 #include <sys/cdefs.h> 2 #include "namespace.h" 3 #include <lib.h> 4 5 #include <unistd.h> 6 #include <string.h> 7 getsid(pid_t p)8 pid_t getsid(pid_t p) 9 { 10 message m; 11 12 memset(&m, 0, sizeof(m)); 13 m.m_lc_pm_getsid.pid = p; 14 return(_syscall(PM_PROC_NR, PM_GETSID, &m)); 15 } 16