From 10bc17b68c7666cd045658934ccb75dd788c8972 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 15 Mar 2002 16:07:58 +0000 Subject: Monster _r patch: try to scan for all known _r variants, and then use them (under ithreads). May fail in HP-UX, and the op/groups is known to be fickle everywhere. Known to work in Solaris, Linux, Tru64, IRIX, AIX. (Some compiler warnings in AIX since the first arguments of getnetbyaddr and getnetbyadd_r are of different types. Thanks, IBM.) In non-Configure platforms deny the existence of any of the _r thingies. (Also add the recently introduced d_tm_* to places it wasn't already in.) TODO: the suggested glibc buffer growth retry loop in case some entries (at least for: gr*, host*) are big. Forgot win32/config.win64. p4raw-id: //depot/perl@15238 --- win32/config.bc | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 104 insertions(+), 5 deletions(-) (limited to 'win32/config.bc') diff --git a/win32/config.bc b/win32/config.bc index 4c9bcc7336..81ddddabbe 100644 --- a/win32/config.bc +++ b/win32/config.bc @@ -29,6 +29,7 @@ archlibexp='~INST_TOP~~INST_VER~\lib~INST_ARCH~' archname64='' archname='MSWin32' archobjs='' +asctime_r_proto='0' awk='awk' baserev='5' bash='' @@ -68,8 +69,11 @@ cppminus='' cpprun='cpp32 -oCON' cppstdin='cppstdin' cppsymbols='' +crypt_r_proto='0' cryptlib='' csh='undef' +ctermid_r_proto='0' +ctime_r_proto='0' d_Gconvert='gcvt((x),(n),(b))' d_PRIEUldbl='undef' d_PRIFUldbl='undef' @@ -88,6 +92,7 @@ d_access='define' d_accessx='undef' d_alarm='define' d_archlib='define' +d_asctime_r='undef' d_atolf='undef' d_atoll='undef' d_attribut='undef' @@ -109,26 +114,36 @@ d_closedir='define' d_cmsghdr_s='undef' d_const='define' d_crypt='undef' +d_crypt_r='undef' d_csh='undef' +d_ctermid_r='undef' +d_ctime_r='undef' d_cuserid='undef' d_dbl_dig='define' d_dbminitproto='undef' d_difftime='define' -d_dirnamlen='define' d_dirfd='undef' +d_dirnamlen='define' d_dlerror='define' d_dlopen='define' d_dlsymun='undef' d_dosuid='undef' +d_drand48_r='undef' d_drand48proto='undef' d_dup2='define' d_eaccess='undef' d_endgrent='undef' +d_endgrent_r='undef' d_endhent='undef' +d_endhostent_r='undef' d_endnent='undef' +d_endnetent_r='undef' d_endpent='undef' +d_endprotoent_r='undef' d_endpwent='undef' +d_endpwent_r='undef' d_endsent='undef' +d_endservent_r='undef' d_eofnblk='define' d_eunice='undef' d_fchdir='undef' @@ -165,19 +180,29 @@ d_getcwd='define' d_getespwnam='undef' d_getfsstat='undef' d_getgrent='undef' +d_getgrent_r='undef' +d_getgrgid_r='undef' +d_getgrnam_r='undef' d_getgrps='undef' d_gethbyaddr='define' d_gethbyname='define' d_gethent='undef' d_gethname='define' +d_gethostbyaddr_r='undef' +d_gethostbyname_r='undef' +d_gethostent_r='undef' d_gethostprotos='define' d_getitimer='undef' d_getlogin='define' +d_getlogin_r='undef' d_getmnt='undef' d_getmntent='undef' d_getnbyaddr='undef' d_getnbyname='undef' d_getnent='undef' +d_getnetbyaddr_r='undef' +d_getnetbyname_r='undef' +d_getnetent_r='undef' d_getnetprotos='undef' d_getpagsz='undef' d_getpbyname='define' @@ -188,15 +213,26 @@ d_getpgrp2='undef' d_getpgrp='undef' d_getppid='undef' d_getprior='undef' +d_getprotobyname_r='undef' +d_getprotobynumber_r='undef' +d_getprotoent_r='undef' d_getprotoprotos='define' d_getprpwnam='undef' d_getpwent='undef' +d_getpwent_r='undef' +d_getpwnam_r='undef' +d_getpwuid_r='undef' d_getsbyname='define' d_getsbyport='define' d_getsent='undef' +d_getservbyname_r='undef' +d_getservbyport_r='undef' +d_getservent_r='undef' d_getservprotos='define' d_getspnam='undef' +d_getspnam_r='undef' d_gettimeod='undef' +d_gmtime_r='undef' d_gnulibc='undef' d_grpasswd='undef' d_hasmntopt='undef' @@ -213,6 +249,7 @@ d_killpg='undef' d_lchown='undef' d_ldbl_dig='define' d_link='define' +d_localtime_r='undef' d_locconv='define' d_lockf='undef' d_longdbl='define' @@ -281,7 +318,10 @@ d_pwpasswd='undef' d_pwquota='undef' d_qgcvt='undef' d_quad='undef' +d_random_r='undef' +d_readdir64_r='undef' d_readdir='define' +d_readdir_r='undef' d_readlink='undef' d_readv='undef' d_recvmsg='undef' @@ -306,18 +346,24 @@ d_sendmsg='undef' d_setegid='undef' d_seteuid='undef' d_setgrent='undef' +d_setgrent_r='undef' d_setgrps='undef' d_sethent='undef' +d_sethostent_r='undef' d_setitimer='undef' d_setlinebuf='undef' d_setlocale='define' +d_setlocale_r='undef' d_setnent='undef' +d_setnetent_r='undef' d_setpent='undef' d_setpgid='undef' d_setpgrp2='undef' d_setpgrp='undef' d_setprior='undef' +d_setprotoent_r='undef' d_setpwent='undef' +d_setpwent_r='undef' d_setregid='undef' d_setresgid='undef' d_setresuid='undef' @@ -325,6 +371,7 @@ d_setreuid='undef' d_setrgid='undef' d_setruid='undef' d_setsent='undef' +d_setservent_r='undef' d_setsid='undef' d_setvbuf='define' d_sfio='undef' @@ -344,6 +391,8 @@ d_socklen_t='undef' d_sockpair='undef' d_socks5_init='undef' d_sqrtl='undef' +d_srand48_r='undef' +d_srandom_r='undef' d_sresgproto='undef' d_sresuproto='undef' d_statblks='undef' @@ -362,6 +411,7 @@ d_strcoll='define' d_strctcpy='define' d_strerrm='strerror(e)' d_strerror='define' +d_strerror_r='undef' d_strftime='define' d_strtod='define' d_strtol='define' @@ -386,7 +436,11 @@ d_telldir='define' d_telldirproto='define' d_time='define' d_times='define' +d_tm_tm_gmtoff='undef' +d_tm_tm_zone='undef' +d_tmpnam_r='undef' d_truncate='undef' +d_ttyname_r='undef' d_tzname='define' d_u32align='define' d_ualarm='undef' @@ -421,12 +475,19 @@ dlext='dll' dlsrc='dl_win32.xs' doublesize='8' drand01='(rand()/(double)((unsigned)1<