minix/lib/libc/sys-minix/getsid.c

16 lines
248 B
C
Raw Normal View History

2011-08-02 19:22:08 +02:00
#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
2011-08-02 19:22:08 +02:00
#include <unistd.h>
#include <string.h>
2011-08-02 19:22:08 +02:00
pid_t getsid(pid_t p)
{
message m;
memset(&m, 0, sizeof(m));
m.m_lc_pm_getsid.pid = p;
2011-08-02 19:22:08 +02:00
return(_syscall(PM_PROC_NR, PM_GETSID, &m));
}