From: Jarkko Hietaniemi Date: Thu, 16 Nov 2000 01:34:18 +0000 (+0000) Subject: Add fwalk() probe to the configuration files and regen perltoc. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=74cac757131a44f884c4728708d3a2e5d87b32d3;p=p5sagit%2Fp5-mst-13.2.git Add fwalk() probe to the configuration files and regen perltoc. p4raw-id: //depot/perl@7705 --- diff --git a/Configure b/Configure index bd36af8..688d534 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 Wed Nov 15 03:54:52 EET 2000 [metaconfig 3.0 PL70] +# Generated on Thu Nov 16 03:18:20 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.org) cat >/tmp/c1$$ <$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #$d_setpgrp HAS_SETPGRP /**/ #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ +/* HAS__FWALK: + * This symbol, if defined, indicates that the _fwalk system call is + * available to apply a function to all the file handles. + */ +#$d__fwalk HAS__FWALK /**/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/configure.com b/configure.com index 14a5bef..6514b71 100644 --- a/configure.com +++ b/configure.com @@ -4742,6 +4742,7 @@ $ WC "cppminus='" + cppminus + "'" $ WC "cpprun='" + cpprun + "'" $ WC "cppstdin='" + cppstdin + "'" $ WC "crosscompile='undef'" +$ WC "d__fwalk='undef'" $ WC "d_Gconvert='my_gconvert(x,n,t,b)'" $ WC "d_PRId64='" + d_PRId64 + "'" $ WC "d_PRIEldbl='" + d_PRIEUldbl + "'" diff --git a/epoc/config.sh b/epoc/config.sh index 226a5e3..1767946 100644 --- a/epoc/config.sh +++ b/epoc/config.sh @@ -78,6 +78,7 @@ cppsymbols='' crosscompile='define' cryptlib='' csh='csh' +d__fwalk='undef' d_Gconvert='epoc_gcvt((x),(n),(b))' d_PRIEUldbl='undef' d_PRIFUldbl='undef' diff --git a/pod/perltoc.pod b/pod/perltoc.pod index 87737b3..4133ccc 100644 --- a/pod/perltoc.pod +++ b/pod/perltoc.pod @@ -5688,8 +5688,7 @@ C<-Duse64bitint>, C<-Duselongdouble>, C<-Dusethreads>, C<-Duselargefiles> =item Suspicious Warnings -I, Win9x and C, Checking how std your stdio is.., -Compiler/Preprocessor defines +I, Win9x and C, Compiler/Preprocessor defines =back @@ -6092,9 +6091,13 @@ C, F =item Build, test, install +=item build anomalies + +=item testing anomalies + =item Usage Hints -=item Extensions +=item Modules and Extensions =back @@ -6227,6 +6230,8 @@ DATAMODEL_NATIVE specified", sh: ar: not found =item BSD::Resource +=item Net::SSLeay + =back =item AUTHOR @@ -8113,26 +8118,27 @@ C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, -C, C, C, C, -C, C, C, C, -C, C, C, C, -C, C, C, C, C, -C, C, C, C, -C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, C, -C, C, C, C, -C, C, C, C, C, -C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, +C, C, C, C, +C, C, C, C, +C, C, C, C, +C, C, C, C, C, +C, C, C, C, +C, C, C, C, +C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, +C, C, C, C, +C, C, C, C, C, +C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, C, @@ -10300,7 +10306,9 @@ IO ), handles( [ EVENT_MASK ] ) =item DESCRIPTION -=item SEE ALSO +$io->getpos, $io->setpos, $io->setpos ( POS, WHENCE ), WHENCE=0 (SEEK_SET), +WHENCE=1 (SEEK_CUR), WHENCE=1 (SEEK_END), $io->sysseek( POS, WHENCE ), +$io->tell =item HISTORY @@ -10536,7 +10544,9 @@ I/O objects =item DESCRIPTION -=item SEE ALSO +$io->getpos, $io->setpos, $io->setpos ( POS, WHENCE ), WHENCE=0 (SEEK_SET), +WHENCE=1 (SEEK_CUR), WHENCE=1 (SEEK_END), $io->sysseek( POS, WHENCE ), +$io->tell =item HISTORY diff --git a/uconfig.h b/uconfig.h index b303890..218dc55 100644 --- a/uconfig.h +++ b/uconfig.h @@ -3187,6 +3187,12 @@ /*#define HAS_SETPGRP / **/ /*#define USE_BSD_SETPGRP / **/ +/* HAS__FWALK: + * This symbol, if defined, indicates that the _fwalk system call is + * available to apply a function to all the file handles. + */ +/*#define HAS__FWALK / **/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/uconfig.sh b/uconfig.sh index d54e608..fe1f935 100755 --- a/uconfig.sh +++ b/uconfig.sh @@ -15,6 +15,7 @@ charsize='1' clocktype='clock_t' cpp_stuff='42' crosscompile='undef' +d__fwalk='undef' d_Gconvert='sprintf((b),"%.*g",(n),(x))' d_SCNfldbl='undef' d_PRIEUldbl='undef' diff --git a/util.c b/util.c index fe88f23..6a68fe6 100644 --- a/util.c +++ b/util.c @@ -3876,30 +3876,36 @@ Perl_get_vtbl(pTHX_ int vtbl_id) I32 Perl_my_fflush_all(pTHX) { -#ifdef FFLUSH_NULL +#if defined(FFLUSH_NULL) return PerlIO_flush(NULL); #else +# if defined(HAS__FWALK) + /* undocumented, unprototyped, but very useful BSDism */ + extern void _fwalk(int (*)(FILE *)); + _fwalk(&fflush); + return 0; +# else long open_max = -1; -# if defined(FFLUSH_ALL) && defined(HAS_STDIO_STREAM_ARRAY) -# ifdef PERL_FFLUSH_ALL_FOPEN_MAX +# if defined(FFLUSH_ALL) && defined(HAS_STDIO_STREAM_ARRAY) +# ifdef PERL_FFLUSH_ALL_FOPEN_MAX open_max = PERL_FFLUSH_ALL_FOPEN_MAX; -# else -# if defined(HAS_SYSCONF) && defined(_SC_OPEN_MAX) +# else +# if defined(HAS_SYSCONF) && defined(_SC_OPEN_MAX) open_max = sysconf(_SC_OPEN_MAX); -# else -# ifdef FOPEN_MAX - open_max = FOPEN_MAX; # else -# ifdef OPEN_MAX - open_max = OPEN_MAX; +# ifdef FOPEN_MAX + open_max = FOPEN_MAX; # else -# ifdef _NFILE +# ifdef OPEN_MAX + open_max = OPEN_MAX; +# else +# ifdef _NFILE open_max = _NFILE; +# endif # endif # endif # endif -# endif -# endif +# endif if (open_max > 0) { long i; for (i = 0; i < open_max; i++) @@ -3909,9 +3915,10 @@ Perl_my_fflush_all(pTHX) PerlIO_flush(&STDIO_STREAM_ARRAY[i]); return 0; } -# endif +# endif SETERRNO(EBADF,RMS$_IFI); return EOF; +# endif #endif } diff --git a/vos/config.alpha.def b/vos/config.alpha.def index 31504f3..8212ce1 100644 --- a/vos/config.alpha.def +++ b/vos/config.alpha.def @@ -16,6 +16,7 @@ $cppminus='-' $cpprun='cc -E -' $cppstdin='cc -E' $crosscompile='undef' +$d__fwalk='undef' $d_access='undef' $d_accessx='undef' $d_alarm='define' diff --git a/vos/config.alpha.h b/vos/config.alpha.h index 656395b..5736d92 100644 --- a/vos/config.alpha.h +++ b/vos/config.alpha.h @@ -165,6 +165,12 @@ */ #define HAS_FCNTL /**/ +/* HAS__FWALK: + * This symbol, if defined, indicates that the _fwalk system call is + * available to apply a function to all the file handles. + */ +/*#define HAS__FWALK / **/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/vos/config.ga.def b/vos/config.ga.def index efc8c1a..88cd755 100644 --- a/vos/config.ga.def +++ b/vos/config.ga.def @@ -16,6 +16,7 @@ $cppminus='-' $cpprun='cc -E -' $cppstdin='cc -E' $crosscompile='undef' +$d__fwalk='undef' $d_access='define' $d_accessx='undef' $d_alarm='define' diff --git a/vos/config.ga.h b/vos/config.ga.h index f0b49de..8a259a3 100644 --- a/vos/config.ga.h +++ b/vos/config.ga.h @@ -165,6 +165,12 @@ */ #define HAS_FCNTL /**/ +/* HAS__FWALK: + * This symbol, if defined, indicates that the _fwalk system call is + * available to apply a function to all the file handles. + */ +/*#define HAS__FWALK / **/ + /* FCNTL_CAN_LOCK: * This symbol, if defined, indicates that fcntl() can be used * for file locking. Normally on Unix systems this is defined. diff --git a/win32/config.bc b/win32/config.bc index 0bd59dd..6d8f7cd 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -70,6 +70,7 @@ cppsymbols='' crosscompile='undef' cryptlib='' csh='undef' +d__fwalk='undef' d_Gconvert='gcvt((x),(n),(b))' d_PRIEUldbl='undef' d_PRIFUldbl='undef' diff --git a/win32/config.gc b/win32/config.gc index 4cdfd15..320e87e 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -70,6 +70,7 @@ cppsymbols='' crosscompile='undef' cryptlib='' csh='undef' +d__fwalk='undef' d_Gconvert='sprintf((b),"%.*g",(n),(x))' d_PRIEUldbl='undef' d_PRIFUldbl='undef' diff --git a/win32/config.vc b/win32/config.vc index d8843fd..c29b799 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -70,6 +70,7 @@ cppsymbols='' crosscompile='undef' cryptlib='' csh='undef' +d__fwalk='undef' d_Gconvert='sprintf((b),"%.*g",(n),(x))' d_PRIEUldbl='undef' d_PRIFUldbl='undef'