develooper Front page | perl.perl5.porters | Postings from May 2003

$faststdio gratuitously dropped when using glibc 2.2.93

Thread Next
From:
Enache Adrian
Date:
May 1, 2003 20:49
Subject:
$faststdio gratuitously dropped when using glibc 2.2.93
Message ID:
20030502035053.GA15768@ratsnest.hole
$faststdio does work with glibc 2.2.93 ( and probably with later
versions too - there seem to be no relevant changes in the libio
code between 2.2.93 - 2.3.1 ).

In the glibc code there are even comments about tcl using directly the
_IO_* fields ( libio/libio.h:268 )

I tested it ( by removing the faulty chunk from Configure ) with
both perlio-enabled and stdio-only perls.

What was the reason to reject $staststdio with all glibc's > 2.2.9 ?

Thanks & Regards,
Adi

--- /arc/bleadperl/Configure	2003-04-26 05:31:04.000000000 +0300
+++ ./Configure	2003-05-02 06:15:29.000000000 +0300
@@ -11808,25 +11808,6 @@
 fi
 $rm -f try.c try
 
-# glibc 2.2.90 and above apparently change stdio streams so Perl's
-# direct buffer manipulation no longer works.  The Configure tests
-# should be changed to correctly detect this, but until then,
-# the following check should at least let perl compile and run.
-# (This quick fix should be updated before 5.8.1.)
-# To be defensive, reject all unknown versions, and all versions  > 2.2.9.
-# A. Dougherty, June 3, 2002.
-case "$d_gnulibc" in
-$define)
-	case "$gnulibc_version" in
-	2.[01]*)  ;;
-	2.2) ;;
-	2.2.[0-9]) ;;
-	*)  echo "But I will not snoop inside glibc $gnulibc_version stdio buffers."
-		val="$undef"
-		;;
-	esac
-	;;
-esac
 set d_stdstdio
 eval $setvar
 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About