[PATCH] fix for pipe() on sparc

Waldemar Brodkorb wbx at openadk.org
Tue Aug 19 19:11:16 UTC 2014


When using something like this:
 $ echo foo|grep foo|wc -l
with mksh shell, you get an runtime error.

Glibc and klibc does not do these extra check.
After removing this check using double pipes work fine.
Tested with Qemu 2.1.0.

Signed-off-by: Waldemar Brodkorb <wbx at openadk.org>
Signed-off-by: Thorsten Glaser <tg at mirbsd.org>
---
 libc/sysdeps/linux/sparc/pipe.S | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libc/sysdeps/linux/sparc/pipe.S b/libc/sysdeps/linux/sparc/pipe.S
index 09ef322..b085faf 100644
--- a/libc/sysdeps/linux/sparc/pipe.S
+++ b/libc/sysdeps/linux/sparc/pipe.S
@@ -35,8 +35,6 @@ pipe:
 	/* sanity check arguments */
 	tst	%i0
 	be	.Lerror
-	 orcc	%i1,%g0,%o1
-	be	.Lerror
 	 mov	%i2,%o0
 
 	/* Do the system call */
-- 
1.8.5.2 (Apple Git-48)



More information about the uClibc mailing list