summaryrefslogtreecommitdiff
path: root/minix/lib/libc/sys/getsid.c
blob: dbdb567832514c912748ce970d36759ed2497d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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));
}