mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
LibCore: Add Core::System::setpgid()
This commit is contained in:
parent
ee46cee31f
commit
8de8a7766d
2 changed files with 8 additions and 0 deletions
|
@ -477,6 +477,13 @@ ErrorOr<void> setegid(gid_t gid)
|
|||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<void> setpgid(pid_t pid, pid_t pgid)
|
||||
{
|
||||
if (::setpgid(pid, pgid) < 0)
|
||||
return Error::from_syscall("setpgid"sv, -errno);
|
||||
return {};
|
||||
}
|
||||
|
||||
ErrorOr<bool> isatty(int fd)
|
||||
{
|
||||
int rc = ::isatty(fd);
|
||||
|
|
|
@ -76,6 +76,7 @@ ErrorOr<void> setuid(uid_t);
|
|||
ErrorOr<void> seteuid(uid_t);
|
||||
ErrorOr<void> setgid(gid_t);
|
||||
ErrorOr<void> setegid(gid_t);
|
||||
ErrorOr<void> setpgid(pid_t pid, pid_t pgid);
|
||||
ErrorOr<bool> isatty(int fd);
|
||||
ErrorOr<void> symlink(StringView target, StringView link_path);
|
||||
ErrorOr<void> mkdir(StringView path, mode_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue