blob: 5a178bba15b6379bf828ec6aa10abc134871e02a [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001/* vi: set sw=4 ts=4: */
2/*
3 * getsid() for uClibc
4 *
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
6 *
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 */
9
10#include <sys/syscall.h>
11#include <unistd.h>
12
13#ifdef __USE_XOPEN_EXTENDED
14
15#define __NR___syscall_getsid __NR_getsid
16static __inline__ _syscall1(__kernel_pid_t, __syscall_getsid, __kernel_pid_t, pid)
17
18pid_t getsid(pid_t pid)
19{
20 return (__syscall_getsid(pid));
21}
22libc_hidden_def(getsid)
23#endif