14 lines
223 B
C
14 lines
223 B
C
#include <sys/cdefs.h>
|
|
#include <lib.h>
|
|
#include "namespace.h"
|
|
|
|
#include <unistd.h>
|
|
|
|
pid_t getsid(pid_t p)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.PM_GETSID_PID = p;
|
|
return(_syscall(PM_PROC_NR, PM_GETSID, &m));
|
|
}
|