mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +00:00
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().
This commit is contained in:
parent
55d7810fab
commit
9c3b1ca0c6
5 changed files with 17 additions and 6 deletions
|
@ -86,6 +86,7 @@ int getdtablesize();
|
|||
int dup(int old_fd);
|
||||
int dup2(int old_fd, int new_fd);
|
||||
int pipe(int pipefd[2]);
|
||||
int pipe2(int pipefd[2], int flags);
|
||||
unsigned int alarm(unsigned int seconds);
|
||||
int access(const char* pathname, int mode);
|
||||
int isatty(int fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue