Kernel: Remove SYS_DUP and implement it using fcntl F_DUPFD

This commit is contained in:
2025-01-17 19:22:53 +02:00
parent 82978da5e3
commit 9893c90e74
6 changed files with 22 additions and 26 deletions

View File

@@ -29,7 +29,6 @@ namespace Kernel
BAN::ErrorOr<void> pipe(int fds[2]);
BAN::ErrorOr<int> dup(int);
BAN::ErrorOr<int> dup2(int, int);
BAN::ErrorOr<int> fcntl(int fd, int cmd, int extra);

View File

@@ -138,7 +138,6 @@ namespace Kernel
BAN::ErrorOr<long> sys_pselect(sys_pselect_t* arguments);
BAN::ErrorOr<long> sys_pipe(int fildes[2]);
BAN::ErrorOr<long> sys_dup(int fildes);
BAN::ErrorOr<long> sys_dup2(int fildes, int fildes2);
BAN::ErrorOr<long> sys_fcntl(int fildes, int cmd, int extra);