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


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

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