Explorar el Código

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 hace 11 años
padre
commit
3a085a2a64
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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