mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibC: Implement getsid()
We've had a declaration, but not a definition.
This commit is contained in:
parent
a6e7797a31
commit
589bd0a7de
Notes:
sideshowbarker
2024-07-19 09:40:54 +09:00
Author: https://github.com/bugaevc
Commit: 589bd0a7de
Pull-request: https://github.com/SerenityOS/serenity/pull/1171
1 changed files with 6 additions and 0 deletions
|
@ -206,6 +206,12 @@ pid_t getppid()
|
||||||
return syscall(SC_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()
|
pid_t setsid()
|
||||||
{
|
{
|
||||||
int rc = syscall(SC_setsid);
|
int rc = syscall(SC_setsid);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue