From 6996c5c48239852d4bd398c8ee98fa1d5602cc7c Mon Sep 17 00:00:00 2001 From: David McCullough Date: Mon, 6 Aug 2001 12:46:12 +0000 Subject: Fixup the pipe system call for the SH target. The FD's are returned in registers. --- libc/sysdeps/linux/common/syscalls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libc/sysdeps/linux/common') 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 +/* + * 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 -- cgit v1.2.3