mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Kernel+LibC+UserspaceEmulator: Bring back sys$dup2()
This is racy in userspace and non-racy in kernelspace so let's keep it in kernelspace. The behavior change where CLOEXEC is preserved when dup2() is called with (old_fd == new_fd) was good though, let's keep that.
This commit is contained in:
parent
bf247fb45f
commit
65f2270232
7 changed files with 59 additions and 14 deletions
|
@ -258,6 +258,7 @@ public:
|
|||
int sys$ptsname(int fd, Userspace<char*>, size_t);
|
||||
pid_t sys$fork(RegisterState&);
|
||||
int sys$execve(Userspace<const Syscall::SC_execve_params*>);
|
||||
int sys$dup2(int old_fd, int new_fd);
|
||||
int sys$sigaction(int signum, const sigaction* act, sigaction* old_act);
|
||||
int sys$sigprocmask(int how, Userspace<const sigset_t*> set, Userspace<sigset_t*> old_set);
|
||||
int sys$sigpending(Userspace<sigset_t*>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue