From: Jarkko Hietaniemi Date: Fri, 22 Mar 2002 15:14:09 +0000 (+0000) Subject: The I_CSD, I_S, and V_S had wrong recepting datatype. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=31ee0cb7dc5352bfe8a41a2a493a0a48e08aa12e;p=p5sagit%2Fp5-mst-13.2.git The I_CSD, I_S, and V_S had wrong recepting datatype. Also, there's no i_stdio. p4raw-id: //depot/perl@15418 --- diff --git a/Configure b/Configure index 00bc38a..d7bd1e0 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Thu Mar 21 20:56:19 EET 2002 [metaconfig 3.0 PL70] +# Generated on Fri Mar 22 17:58:57 EET 2002 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <_gethostent_struct))) == 0 ? &PL_reentrant_buffer->_gethostent_struct : 0) +# if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_I_D +# define endhostent() (((errno = endhostent_r(&PL_reentrant_buffer->_gethostent_data))) == 0 ? 1 : 0) # endif -# if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_V_S -# define endhostent() endhostent_r(&PL_reentrant_buffer->_gethostent_struct) +# if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_V_D +# define endhostent() endhostent_r(&PL_reentrant_buffer->_gethostent_data) # endif #endif /* HAS_ENDHOSTENT_R */ #ifdef HAS_ENDNETENT_R # undef endnetent -# if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_I_S -# define endnetent() (((errno = endnetent_r(&PL_reentrant_buffer->_getnetent_struct))) == 0 ? &PL_reentrant_buffer->_getnetent_struct : 0) +# if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_I_D +# define endnetent() (((errno = endnetent_r(&PL_reentrant_buffer->_getnetent_data))) == 0 ? 1 : 0) # endif -# if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_V_S -# define endnetent() endnetent_r(&PL_reentrant_buffer->_getnetent_struct) +# if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_V_D +# define endnetent() endnetent_r(&PL_reentrant_buffer->_getnetent_data) # endif #endif /* HAS_ENDNETENT_R */ #ifdef HAS_ENDPROTOENT_R # undef endprotoent -# if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_I_S -# define endprotoent() (((errno = endprotoent_r(&PL_reentrant_buffer->_getprotoent_struct))) == 0 ? &PL_reentrant_buffer->_getprotoent_struct : 0) +# if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_I_D +# define endprotoent() (((errno = endprotoent_r(&PL_reentrant_buffer->_getprotoent_data))) == 0 ? 1 : 0) # endif -# if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_V_S -# define endprotoent() endprotoent_r(&PL_reentrant_buffer->_getprotoent_struct) +# if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_V_D +# define endprotoent() endprotoent_r(&PL_reentrant_buffer->_getprotoent_data) # endif #endif /* HAS_ENDPROTOENT_R */ @@ -832,11 +832,11 @@ typedef struct { #ifdef HAS_ENDSERVENT_R # undef endservent -# if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_I_S -# define endservent() (((errno = endservent_r(&PL_reentrant_buffer->_getservent_struct))) == 0 ? &PL_reentrant_buffer->_getservent_struct : 0) +# if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_I_D +# define endservent() (((errno = endservent_r(&PL_reentrant_buffer->_getservent_data))) == 0 ? 1 : 0) # endif -# if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_V_S -# define endservent() endservent_r(&PL_reentrant_buffer->_getservent_struct) +# if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_V_D +# define endservent() endservent_r(&PL_reentrant_buffer->_getservent_data) # endif #endif /* HAS_ENDSERVENT_R */ diff --git a/reentr.pl b/reentr.pl index a92f42d..caee501 100644 --- a/reentr.pl +++ b/reentr.pl @@ -161,7 +161,14 @@ while () { if ($opts{U} && open(U, ">d_${f}_r.U")) { select U; } - my $prereqh = $h eq 'stdio' ? '' : "i_$h"; # There's no i_stdio. + my $prereqs = ''; + my $prereqh = ''; + my $prereqsh = ''; + if ($h ne 'stdio') { # There's no i_stdio. + $prereqs = "i_$h"; + $prereqh = "$h.h"; + $prereqsh = "\$$prereqs $prereqh"; + } print <) { ?RCS: ?RCS: Generated by the reentr.pl from the Perl 5.8 distribution. ?RCS: -?MAKE:d_${f}_r ${f}_r_proto: Inlibc Protochk Hasproto i_systypes $prereqh usethreads +?MAKE:d_${f}_r ${f}_r_proto: Inlibc Protochk Hasproto i_systypes i_systime $prereqs usethreads ?MAKE: -pick add \$@ %< ?S:d_${f}_r: ?S: This variable conditionally defines the HAS_${F}_R symbol, @@ -200,7 +207,7 @@ set ${f}_r d_${f}_r eval \$inlibc case "\$d_${f}_r" in "\$define") - hdrs="\$i_systypes sys/types.h define stdio.h \$i_${h} $h.h" + hdrs="\$i_systypes sys/types.h define stdio.h $prereqsh" case "$h" in time) hdrs="\$hdrs \$i_systime sys/time.h" @@ -488,6 +495,7 @@ EOF my $G = uc $g; my $D = ifprotomatch($F, grep {/D/} @p); my $d = $seend{$f}; + $d =~ s/\*$//; # snip: we need need the base type. push @struct, <