OSDN Git Service

fix for pipe() on sparc
authorWaldemar Brodkorb <wbx@openadk.org>
Tue, 19 Aug 2014 19:11:16 +0000 (21:11 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 20 Aug 2014 08:08:33 +0000 (10:08 +0200)
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>
libc/sysdeps/linux/sparc/pipe.S

index 09ef322..b085faf 100644 (file)
@@ -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 */