1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

LibC: Implement getsid()

We've had a declaration, but not a definition.
This commit is contained in:
Sergey Bugaev 2020-02-03 18:52:23 +03:00 committed by Andreas Kling
parent a6e7797a31
commit 589bd0a7de

View file

@ -206,6 +206,12 @@ pid_t getppid()
return syscall(SC_getppid);
}
pid_t getsid(pid_t pid)
{
int rc = syscall(SC_getsid, pid);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
pid_t setsid()
{
int rc = syscall(SC_setsid);