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)
commit3a085a2a64d372f87e4af379fd760bb574f57871
treed7a88b1af276775c373f70ad20a2c488431e64e6
parent94246e65e20b5390d53858447526b231ef1afd67
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>
libc/sysdeps/linux/sparc/pipe.S