diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-08-05 15:29:05 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-05 16:04:31 +0200 |
commit | 9c3b1ca0c62fc329bdc1fb86bc7b11fc7b8791b9 (patch) | |
tree | 420c9929b556d608b8404004d487dcbb679a990d /Kernel/Process.h | |
parent | 55d7810fab79efbc9fad62566fe1f12be80856e8 (diff) | |
download | serenity-9c3b1ca0c62fc329bdc1fb86bc7b11fc7b8791b9.zip |
Kernel+LibC: Support passing O_CLOEXEC to pipe()
In the userspace, this mimics the Linux pipe2() syscall;
in the kernel, the Process::sys$pipe() now always accepts
a flags argument, the no-argument pipe() syscall is now a
userspace wrapper over pipe2().
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index dfbbfc4771..6c94322a7f 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -168,7 +168,7 @@ public: int sys$sigpending(sigset_t*); int sys$getgroups(ssize_t, gid_t*); int sys$setgroups(ssize_t, const gid_t*); - int sys$pipe(int* pipefd); + int sys$pipe(int pipefd[2], int flags); int sys$killpg(int pgrp, int sig); int sys$setgid(gid_t); int sys$setuid(uid_t); |