Browse Source

fix for pipe() on sparc

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@openadk.org>
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Waldemar Brodkorb 10 years ago
parent
commit
3a085a2a64
1 changed files with 0 additions and 2 deletions
  1. 0 2
      libc/sysdeps/linux/sparc/pipe.S

+ 0 - 2
libc/sysdeps/linux/sparc/pipe.S

@@ -34,8 +34,6 @@ pipe:
 
 	/* sanity check arguments */
 	tst	%i0
-	be	.Lerror
-	 orcc	%i1,%g0,%o1
 	be	.Lerror
 	 mov	%i2,%o0