summaryrefslogtreecommitdiff
path: root/lib/sys/sys+netbsd-x64.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sys/sys+netbsd-x64.myr')
-rw-r--r--lib/sys/sys+netbsd-x64.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sys/sys+netbsd-x64.myr b/lib/sys/sys+netbsd-x64.myr
index c13d88a..02f9a76 100644
--- a/lib/sys/sys+netbsd-x64.myr
+++ b/lib/sys/sys+netbsd-x64.myr
@@ -1003,7 +1003,8 @@ const chdir = {dir; -> syscall(Syschdir, cstring(dir))}
const __getcwd = {buf; -> syscall(Sys__getcwd, a(buf), a(buf.len))}
/* file stuff */
-const pipe = {fds; -> syscall(Syspipe, fds)}
+extern const __netbsd_pipe : (fds : fd[2]# -> int64)
+const pipe = {fds; -> __netbsd_pipe(fds)}
const dup = {fd; -> (syscall(Sysdup, a(fd)) : fd)}
const dup2 = {src, dst; -> (syscall(Sysdup2, a(src), a(dst)) : fd)}
const fcntl = {fd, cmd, args; -> syscall(Sysfcntl, a(fd), a(cmd), a(args))}