summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/getsid.c
blob: c3bbbfd5e32b6d9d1d956e3b5bc538530695883c (plain)
1
2
3
4
5
6
7
8
9
10



#include <syscall.h> // for __syscall_1, syscall
#include <unistd.h>  // for pid_t, getsid

pid_t getsid(pid_t pid)
{
	return syscall(getsid, pid);
}