commit 79c5a756c6242c6eec864221af966a485c5ad903
parent 5482ec029bbf25bae1db03fe5520dadf934afd45
Author: Sebastian <sebastian@sebsite.pw>
Date: Mon, 10 Oct 2022 17:26:40 -0400
rt+linux: add tee
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/rt/+linux/syscalls.ha b/rt/+linux/syscalls.ha
@@ -857,3 +857,9 @@ export fn splice(
fd_out: u64, off_out: uintptr: u64,
ln: u64, flags: u64))?: size;
};
+
+export fn tee(fd_in: int, fd_out: int, ln: size, flags: uint) (size | errno) = {
+ return wrap_return(syscall4(SYS_tee,
+ fd_in: u64, fd_out: u64,
+ ln: u64, flags: u64))?: size;
+};