commit 0f1e8e5e70e5ef5375e0ec6f09ab865d3bdc1f41
parent 4319458ffd15489c40d498887c38e669197390ce
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 24 Oct 2021 10:10:28 +0200
rt: fix dup2 parameters
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha
@@ -14,7 +14,7 @@ export fn close(fd: int) int = syscall1(SYS_close, fd: u64): int;
export fn dup3(old: int, new: int, flags: int) int =
syscall3(SYS_dup3, old: u64, new: u64, flags: u64): int;
-export fn dup2(old: int, new: int, flags: int) int =
+export fn dup2(old: int, new: int) int =
syscall3(SYS_dup3, old: u64, new: u64, 0): int;
export fn getpid() int = syscall0(SYS_getpid): int;