summaryrefslogtreecommitdiff
path: root/lib/sys/syscall+openbsd-x64.s
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-08 19:06:52 +1200
committerOri Bernstein <ori@eigenstate.org>2016-05-08 19:16:14 +1200
commit6f55ccbfe4eca08f1fa81f7cd19935ff53ac3e11 (patch)
tree372fc30a30c651a7477abb6a31796d6e4db54e0f /lib/sys/syscall+openbsd-x64.s
parentea6a106b2f1ed6748ea55f6f9730b4138ff0dbf8 (diff)
downloadmc-6f55ccbfe4eca08f1fa81f7cd19935ff53ac3e11.tar.gz
Clean up OpenBSD syscalls.
Diffstat (limited to 'lib/sys/syscall+openbsd-x64.s')
-rw-r--r--lib/sys/syscall+openbsd-x64.s19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/sys/syscall+openbsd-x64.s b/lib/sys/syscall+openbsd-x64.s
index b9d0484..827f25c 100644
--- a/lib/sys/syscall+openbsd-x64.s
+++ b/lib/sys/syscall+openbsd-x64.s
@@ -22,22 +22,3 @@ sys$syscall:
.success:
ret
-
-/*
- * pipe() syscall returns the pipes created in eax:edx, and
- * needs to copy them to the destination locations manually.
- */
-.globl sys$__freebsd_pipe
-sys$__freebsd_pipe:
- movq $0x2a,%rax
- syscall
-
- jae .pipesuccess
- negq %rax
-
-.pipesuccess:
- movl %eax,(%rdi)
- movl %edx,4(%rdi)
- xorq %rax,%rax
- ret
-