summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/arch
diff options
context:
space:
mode:
authorpeter <peter@openbsd.org>1998-07-22 10:46:32 +0000
committerpeter <peter@openbsd.org>1998-07-22 10:46:32 +0000
commit8e9a23aeed8d53b3e7f5d4c4c48f02df9076630a (patch)
tree5f7ac1fbcd4cbe0cbb6791bc64c34a391b15044d /lib/libpthread/arch
parentuse S_IXUSR instead of 0100; noted by form (diff)
downloadwireguard-openbsd-8e9a23aeed8d53b3e7f5d4c4c48f02df9076630a.tar.xz
wireguard-openbsd-8e9a23aeed8d53b3e7f5d4c4c48f02df9076630a.zip
o removed more unused or old, left over files
o general changes so that now the library compiles and many of the tests run correctly o pthreads/Makefile.inc rebuilt using libc/sys/Makefile.inc as a template. this should be kept in sync in case of new syscalls soon TODO: figure out why remaining tests fail and fix look at building .so version of library tidy up arch/i386 directory - no longer uses syscall-template.S port other arch's from libc syscall templates
Diffstat (limited to 'lib/libpthread/arch')
-rw-r--r--lib/libpthread/arch/i386/syscall.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libpthread/arch/i386/syscall.S b/lib/libpthread/arch/i386/syscall.S
index cfdbbc77f73..8f2060e61e3 100644
--- a/lib/libpthread/arch/i386/syscall.S
+++ b/lib/libpthread/arch/i386/syscall.S
@@ -235,3 +235,14 @@ _machdep_sys_longjmp:;
1: movl %ecx,0(%esp)
ret
+/* ==========================================================================
+ * machdep_sys_pipe()
+ */
+ .globl _machdep_sys_pipe;
+
+_machdep_sys_pipe:;
+ movl 4(%esp),%ecx
+ movl %eax,(%ecx)
+ movl %edx,4(%ecx)
+ xorl %eax,%eax
+ ret