瀏覽代碼

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 11 年之前
父節點
當前提交
3a085a2a64
共有 1 個文件被更改,包括 0 次插入2 次删除
  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