ca31c1caae
Change-Id: Ife3f9f6a7b6190baca6f379f7d3c36388baf6904
15 lines
248 B
C
15 lines
248 B
C
#include <sys/cdefs.h>
|
|
#include "namespace.h"
|
|
#include <lib.h>
|
|
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
|
|
pid_t getsid(pid_t p)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.m_lc_pm_getsid.pid = p;
|
|
return(_syscall(PM_PROC_NR, PM_GETSID, &m));
|
|
}
|