1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 22:34:59 +00:00

Add umask().

This commit is contained in:
Andreas Kling 2018-11-06 13:40:23 +01:00
parent 77fe8e8363
commit b2d23f83ab
6 changed files with 23 additions and 0 deletions

View file

@ -1320,6 +1320,13 @@ pid_t Process::sys$getppid()
return m_ppid;
}
mode_t Process::sys$umask(mode_t mask)
{
auto old_mask = m_umask;
m_umask = mask;
return old_mask;
}
pid_t Process::sys$waitpid(pid_t waitee, int* wstatus, int options)
{
if (wstatus)