kernel/libroot: add dup3() from POSIX.1-2024

this adds a parameter to the dup2 syscall. Adjust strace.

Change-Id: Icc2d0e054365865d38e5d596843a47c95100ca59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8514
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2024-11-04 17:55:40 +00:00
committed by waddlesplash
parent 11cd4af6e1
commit 966076b273
6 changed files with 23 additions and 9 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ extern status_t _kern_write_stat(int fd, const char *path,
size_t statSize, int statMask);
extern status_t _kern_close(int fd);
extern int _kern_dup(int fd);
extern int _kern_dup2(int ofd, int nfd);
extern int _kern_dup2(int ofd, int nfd, int flags);
extern status_t _kern_lock_node(int fd);
extern status_t _kern_unlock_node(int fd);
extern status_t _kern_get_next_fd_info(team_id team, uint32 *_cookie,