소스 검색

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