summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/getsid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/unistd/getsid.c')
-rw-r--r--lib/libc/unistd/getsid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/unistd/getsid.c b/lib/libc/unistd/getsid.c
new file mode 100644
index 00000000..e0a06780
--- /dev/null
+++ b/lib/libc/unistd/getsid.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+#include <syscall.h>
+
+pid_t getsid(pid_t pid)
+{
+ return syscall(getsid, pid);
+}