summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2001-08-06 12:46:12 +0000
committerDavid McCullough <davidm@snapgear.com>2001-08-06 12:46:12 +0000
commit6996c5c48239852d4bd398c8ee98fa1d5602cc7c (patch)
treed5f2b9699fdd9f5afa7adc9b56e95ec33900969d /libc/sysdeps/linux/common/syscalls.c
parent7b013e6b12c7b3e750078e1b43e1312e420ee13d (diff)
Fixup the pipe system call for the SH target.
The FD's are returned in registers.
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index e7da59b63..2d2062686 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -312,8 +312,13 @@ _syscall1(int, dup, int, oldfd);
//#define __NR_pipe 42
#ifdef L_pipe
#include <unistd.h>
+/*
+ * SH has a weird register calling mechanism for pipe, see pipe.c
+ */
+#if !defined(__sh__)
_syscall1(int, pipe, int *, filedes);
#endif
+#endif
//#define __NR_times 43
#ifdef L_times