reentr.inc revision 1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/*
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * reentr.inc
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * You may distribute under the terms of either the GNU General Public
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * License or the Artistic License, as specified in the README file.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw *
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw * This file is built by reentrl.pl from data in reentr.pl.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifndef REENTRINC
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#define REENTRINC
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef USE_REENTRANT_API
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw/* The reentrant wrappers. */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ASCTIME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef asctime
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_B_SB
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define asctime(a) asctime_r(a, PL_reentrant_buffer->_asctime_buffer)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_B_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define asctime(a) asctime_r(a, PL_reentrant_buffer->_asctime_buffer, PL_reentrant_buffer->_asctime_size)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_I_SB
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define asctime(a) (asctime_r(a, PL_reentrant_buffer->_asctime_buffer) == 0 ? PL_reentrant_buffer->_asctime_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_I_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define asctime(a) (asctime_r(a, PL_reentrant_buffer->_asctime_buffer, PL_reentrant_buffer->_asctime_size) == 0 ? PL_reentrant_buffer->_asctime_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ASCTIME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_CRYPT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef crypt
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(crypt) && CRYPT_R_PROTO == REENTRANT_PROTO_B_CCS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define crypt(a, b) crypt_r(a, b, PL_reentrant_buffer->_crypt_struct_buffer)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(crypt) && CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define crypt(a, b) crypt_r(a, b, &PL_reentrant_buffer->_crypt_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_CRYPT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_CTERMID_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef ctermid
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ctermid) && CTERMID_R_PROTO == REENTRANT_PROTO_B_B
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ctermid(a) ctermid_r(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_CTERMID_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_CTIME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef ctime
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_B_SB
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ctime(a) ctime_r(a, PL_reentrant_buffer->_ctime_buffer)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_B_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ctime(a) ctime_r(a, PL_reentrant_buffer->_ctime_buffer, PL_reentrant_buffer->_ctime_size)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_I_SB
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ctime(a) (ctime_r(a, PL_reentrant_buffer->_ctime_buffer) == 0 ? PL_reentrant_buffer->_ctime_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_I_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ctime(a) (ctime_r(a, PL_reentrant_buffer->_ctime_buffer, PL_reentrant_buffer->_ctime_size) == 0 ? PL_reentrant_buffer->_ctime_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_CTIME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_DRAND48_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef drand48
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(drand48) && DRAND48_R_PROTO == REENTRANT_PROTO_I_ST
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define drand48() (drand48_r(&PL_reentrant_buffer->_drand48_struct, &PL_reentrant_buffer->_drand48_double) == 0 ? PL_reentrant_buffer->_drand48_double : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_DRAND48_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ENDGRENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef endgrent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endgrent) && ENDGRENT_R_PROTO == REENTRANT_PROTO_I_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endgrent() (endgrent_r(&PL_reentrant_buffer->_grent_fptr) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endgrent) && ENDGRENT_R_PROTO == REENTRANT_PROTO_V_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endgrent() endgrent_r(&PL_reentrant_buffer->_grent_fptr)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ENDGRENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ENDHOSTENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef endhostent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_I_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endhostent() (endhostent_r(&PL_reentrant_buffer->_hostent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_V_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endhostent() endhostent_r(&PL_reentrant_buffer->_hostent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ENDHOSTENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ENDNETENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef endnetent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_I_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endnetent() (endnetent_r(&PL_reentrant_buffer->_netent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_V_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endnetent() endnetent_r(&PL_reentrant_buffer->_netent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ENDNETENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ENDPROTOENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef endprotoent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_I_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endprotoent() (endprotoent_r(&PL_reentrant_buffer->_protoent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_V_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endprotoent() endprotoent_r(&PL_reentrant_buffer->_protoent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ENDPROTOENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ENDPWENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef endpwent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endpwent) && ENDPWENT_R_PROTO == REENTRANT_PROTO_I_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endpwent() (endpwent_r(&PL_reentrant_buffer->_pwent_fptr) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endpwent) && ENDPWENT_R_PROTO == REENTRANT_PROTO_V_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endpwent() endpwent_r(&PL_reentrant_buffer->_pwent_fptr)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ENDPWENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_ENDSERVENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef endservent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_I_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endservent() (endservent_r(&PL_reentrant_buffer->_servent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_V_D
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define endservent() endservent_r(&PL_reentrant_buffer->_servent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_ENDSERVENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETGRENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getgrent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() Perl_reentr_getgrent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() Perl_reentr_getgrent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_S_SBW
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() (getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size) ? &PL_reentrant_buffer->_grent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getgrent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_S_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() (getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size) ? &PL_reentrant_buffer->_grent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getgrent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() Perl_reentr_getgrent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIH
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_fptr)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_fptr)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrent() Perl_reentr_getgrent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_fptr)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETGRENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETGRGID_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getgrgid
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) Perl_reentr_getgrgid(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrgid(gid_t a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBIR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) Perl_reentr_getgrgid(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrgid(gid_t a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) Perl_reentr_getgrgid(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrgid(gid_t a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrgid", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_S_TSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrgid(a) (getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size) ? &PL_reentrant_buffer->_grent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getgrgid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETGRGID_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETGRNAM_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getgrnam
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrnam(a) ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrnam(a) Perl_reentr_getgrnam(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct group* Perl_reentr_getgrnam(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrnam(a) ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getgrnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define getgrnam(a) Perl_reentr_getgrnam(a)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb static struct group* Perl_reentr_getgrnam(const char* a) {
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb dTHX;
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb int PL_REENTRANT_RETINT;
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb return ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size, &PL_reentrant_buffer->_grent_ptr)) == 0 ? PL_reentrant_buffer->_grent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0));
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb }
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_S_CBI
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define getgrnam(a) (getgrnam_r(a, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size) ? PL_reentrant_buffer->_grent_buffer : ((errno == ERANGE) ? Perl_reentrant_retry("getgrnam", a) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBI
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# ifdef PERL_CORE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define getgrnam(a) ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# else
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define getgrnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0));})
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# else
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define getgrnam(a) Perl_reentr_getgrnam(a)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb static struct group* Perl_reentr_getgrnam(const char* a) {
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb dTHX;
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb int PL_REENTRANT_RETINT;
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb return ((PL_REENTRANT_RETINT = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size)) == 0 ? &PL_reentrant_buffer->_grent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct group*)Perl_reentrant_retry("getgrnam", a) : 0));
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb }
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_S_CSBI
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define getgrnam(a) (getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size) ? &PL_reentrant_buffer->_grent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getgrnam", a) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw#endif /* HAS_GETGRNAM_R */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#ifdef HAS_GETHOSTBYADDR_R
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# undef gethostbyaddr
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISBWRE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# ifdef PERL_CORE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# else
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));})
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# else
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) Perl_reentr_gethostbyaddr(a, b, c)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb static struct hostent* Perl_reentr_gethostbyaddr(const char* a, size_t b, int c) {
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb dTHX;
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb int PL_REENTRANT_RETINT;
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb return ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb }
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBWIE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) (gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBIE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) (gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TWISBIE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) (gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CIISBIE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) (gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CSBIE
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define gethostbyaddr(a, b, c) (gethostbyaddr_r(a, b, c, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? 1 : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TSBIE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) (gethostbyaddr_r(a, b, c, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? 1 : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) Perl_reentr_gethostbyaddr(a, b, c)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostbyaddr(const char* a, size_t b, int c) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CIISD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) Perl_reentr_gethostbyaddr(a, b, c)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostbyaddr(const char* a, int b, int c) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CII
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c)) == 0 ? 1 : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c)) == 0 ? 1 : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) Perl_reentr_gethostbyaddr(a, b, c)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostbyaddr(const char* a, int b, int c) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c)) == 0 ? 1 : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_TsISBWRE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyaddr(a, b, c) Perl_reentr_gethostbyaddr(a, b, c)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostbyaddr(const void* a, socklen_t b, int c) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETHOSTBYADDR_R */
3db3f65c6274eb042354801a308c8e9bc4994553amw
3db3f65c6274eb042354801a308c8e9bc4994553amw#ifdef HAS_GETHOSTBYNAME_R
3db3f65c6274eb042354801a308c8e9bc4994553amw# undef gethostbyname
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(gethostbyname) && GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE
3db3f65c6274eb042354801a308c8e9bc4994553amw# ifdef PERL_CORE
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostbyname(a) ((PL_REENTRANT_RETINT = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyname", a) : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostbyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyname", a) : 0));})
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyname(a) Perl_reentr_gethostbyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostbyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyname) && GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBIE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyname(a) (gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostbyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostbyname) && GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyname(a) ((PL_REENTRANT_RETINT = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyname", a) : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyname", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostbyname(a) Perl_reentr_gethostbyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostbyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostbyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETHOSTBYNAME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
3db3f65c6274eb042354801a308c8e9bc4994553amw#ifdef HAS_GETHOSTENT_R
3db3f65c6274eb042354801a308c8e9bc4994553amw# undef gethostent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBWRE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostent() ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostent() Perl_reentr_gethostent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_ptr, &PL_reentrant_buffer->_hostent_errno)) == 0 ? PL_reentrant_buffer->_hostent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBIE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostent() ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gethostent() Perl_reentr_gethostent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct hostent* Perl_reentr_gethostent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
3db3f65c6274eb042354801a308c8e9bc4994553amw int PL_REENTRANT_RETINT;
3db3f65c6274eb042354801a308c8e9bc4994553amw return ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBIE
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() (gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size, &PL_reentrant_buffer->_hostent_errno) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostent") : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBI
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() (gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size) ? &PL_reentrant_buffer->_hostent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("gethostent") : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBI
3db3f65c6274eb042354801a308c8e9bc4994553amw# ifdef PERL_CORE
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));})
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() Perl_reentr_gethostent()
3db3f65c6274eb042354801a308c8e9bc4994553amw static struct hostent* Perl_reentr_gethostent() {
3db3f65c6274eb042354801a308c8e9bc4994553amw dTHX;
3db3f65c6274eb042354801a308c8e9bc4994553amw int PL_REENTRANT_RETINT;
3db3f65c6274eb042354801a308c8e9bc4994553amw return ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SD
3db3f65c6274eb042354801a308c8e9bc4994553amw# ifdef PERL_CORE
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));})
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# define gethostent() Perl_reentr_gethostent()
3db3f65c6274eb042354801a308c8e9bc4994553amw static struct hostent* Perl_reentr_gethostent() {
3db3f65c6274eb042354801a308c8e9bc4994553amw dTHX;
3db3f65c6274eb042354801a308c8e9bc4994553amw int PL_REENTRANT_RETINT;
3db3f65c6274eb042354801a308c8e9bc4994553amw return ((PL_REENTRANT_RETINT = gethostent_r(&PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data)) == 0 ? &PL_reentrant_buffer->_hostent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct hostent*)Perl_reentrant_retry("gethostent") : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw#endif /* HAS_GETHOSTENT_R */
3db3f65c6274eb042354801a308c8e9bc4994553amw
3db3f65c6274eb042354801a308c8e9bc4994553amw#ifdef HAS_GETLOGIN_R
3db3f65c6274eb042354801a308c8e9bc4994553amw# undef getlogin
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_I_BW
3db3f65c6274eb042354801a308c8e9bc4994553amw# ifdef PERL_CORE
3db3f65c6274eb042354801a308c8e9bc4994553amw# define getlogin() ((PL_REENTRANT_RETINT = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (char*)Perl_reentrant_retry("getlogin") : 0))
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getlogin() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (char*)Perl_reentrant_retry("getlogin") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getlogin() Perl_reentr_getlogin()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static char* Perl_reentr_getlogin() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (char*)Perl_reentrant_retry("getlogin") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_I_BI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getlogin() ((PL_REENTRANT_RETINT = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (char*)Perl_reentrant_retry("getlogin") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getlogin() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (char*)Perl_reentrant_retry("getlogin") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getlogin() Perl_reentr_getlogin()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static char* Perl_reentr_getlogin() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (char*)Perl_reentrant_retry("getlogin") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_B_BW
3db3f65c6274eb042354801a308c8e9bc4994553amw# define getlogin() getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_B_BI
3db3f65c6274eb042354801a308c8e9bc4994553amw# define getlogin() getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETLOGIN_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETNETBYADDR_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getnetbyaddr
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_UISBWRE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) Perl_reentr_getnetbyaddr(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyaddr(unsigned long a, int b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_LISBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) Perl_reentr_getnetbyaddr(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyaddr(long a, int b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_S_TISBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) (getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size) ? &PL_reentrant_buffer->_netent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_S_LISBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) (getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size) ? &PL_reentrant_buffer->_netent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_TISD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
3db3f65c6274eb042354801a308c8e9bc4994553amw# define getnetbyaddr(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));})
3db3f65c6274eb042354801a308c8e9bc4994553amw# else
3db3f65c6274eb042354801a308c8e9bc4994553amw# define getnetbyaddr(a, b) Perl_reentr_getnetbyaddr(a, b)
3db3f65c6274eb042354801a308c8e9bc4994553amw static struct netent* Perl_reentr_getnetbyaddr(in_addr_t a, int b) {
3db3f65c6274eb042354801a308c8e9bc4994553amw dTHX;
3db3f65c6274eb042354801a308c8e9bc4994553amw int PL_REENTRANT_RETINT;
3db3f65c6274eb042354801a308c8e9bc4994553amw return ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_LISD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) Perl_reentr_getnetbyaddr(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyaddr(long a, int b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_IISD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) Perl_reentr_getnetbyaddr(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyaddr(int a, int b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_uISBWRE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyaddr(a, b) Perl_reentr_getnetbyaddr(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyaddr(uint32_t a, int b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyaddr", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETNETBYADDR_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETNETBYNAME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getnetbyname
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) Perl_reentr_getnetbyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) Perl_reentr_getnetbyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) (getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size) ? &PL_reentrant_buffer->_netent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getnetbyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetbyname(a) Perl_reentr_getnetbyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetbyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetbyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETNETBYNAME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETNETENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getnetent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBWRE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() Perl_reentr_getnetent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_ptr, &PL_reentrant_buffer->_netent_errno)) == 0 ? PL_reentrant_buffer->_netent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBIE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_errno)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_errno)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() Perl_reentr_getnetent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_errno)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBIE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() (getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size, &PL_reentrant_buffer->_netent_errno) ? &PL_reentrant_buffer->_netent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getnetent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() (getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size) ? &PL_reentrant_buffer->_netent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getnetent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() Perl_reentr_getnetent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getnetent() Perl_reentr_getnetent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct netent* Perl_reentr_getnetent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getnetent_r(&PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data)) == 0 ? &PL_reentrant_buffer->_netent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct netent*)Perl_reentrant_retry("getnetent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETNETENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETPROTOBYNAME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getprotobyname
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotobyname) && GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) Perl_reentr_getprotobyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotobyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotobyname) && GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) (getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size) ? &PL_reentrant_buffer->_protoent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getprotobyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotobyname) && GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobyname(a) Perl_reentr_getprotobyname(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotobyname(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETPROTOBYNAME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETPROTOBYNUMBER_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getprotobynumber
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotobynumber) && GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_I_ISBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) Perl_reentr_getprotobynumber(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotobynumber(int a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotobynumber) && GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_S_ISBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) (getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size) ? &PL_reentrant_buffer->_protoent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getprotobynumber", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotobynumber) && GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_I_ISD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotobynumber(a) Perl_reentr_getprotobynumber(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotobynumber(int a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETPROTOBYNUMBER_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETPROTOENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getprotoent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() Perl_reentr_getprotoent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotoent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() Perl_reentr_getprotoent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotoent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_S_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() (getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size) ? &PL_reentrant_buffer->_protoent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getprotoent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getprotoent() Perl_reentr_getprotoent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct protoent* Perl_reentr_getprotoent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotoent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETPROTOENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETPWENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getpwent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() Perl_reentr_getpwent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() Perl_reentr_getpwent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_S_SBW
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() (getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size) ? &PL_reentrant_buffer->_pwent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getpwent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_S_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() (getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size) ? &PL_reentrant_buffer->_pwent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getpwent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() Perl_reentr_getpwent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIH
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_fptr)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_fptr)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwent() Perl_reentr_getpwent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_fptr)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETPWENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETPWNAM_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getpwnam
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) Perl_reentr_getpwnam(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwnam(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) Perl_reentr_getpwnam(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwnam(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_S_CSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) (getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size) ? &PL_reentrant_buffer->_pwent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getpwnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwnam(a) Perl_reentr_getpwnam(a)
3db3f65c6274eb042354801a308c8e9bc4994553amw static struct passwd* Perl_reentr_getpwnam(const char* a) {
3db3f65c6274eb042354801a308c8e9bc4994553amw dTHX;
3db3f65c6274eb042354801a308c8e9bc4994553amw int PL_REENTRANT_RETINT;
3db3f65c6274eb042354801a308c8e9bc4994553amw return ((PL_REENTRANT_RETINT = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwnam", a) : 0));
3db3f65c6274eb042354801a308c8e9bc4994553amw }
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw# endif
3db3f65c6274eb042354801a308c8e9bc4994553amw#endif /* HAS_GETPWNAM_R */
3db3f65c6274eb042354801a308c8e9bc4994553amw
3db3f65c6274eb042354801a308c8e9bc4994553amw#ifdef HAS_GETPWUID_R
3db3f65c6274eb042354801a308c8e9bc4994553amw# undef getpwuid
3db3f65c6274eb042354801a308c8e9bc4994553amw# if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBWR
3db3f65c6274eb042354801a308c8e9bc4994553amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) Perl_reentr_getpwuid(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwuid(uid_t a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBIR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) Perl_reentr_getpwuid(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwuid(uid_t a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size, &PL_reentrant_buffer->_pwent_ptr)) == 0 ? PL_reentrant_buffer->_pwent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) Perl_reentr_getpwuid(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct passwd* Perl_reentr_getpwuid(uid_t a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size)) == 0 ? &PL_reentrant_buffer->_pwent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct passwd*)Perl_reentrant_retry("getpwuid", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_S_TSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getpwuid(a) (getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size) ? &PL_reentrant_buffer->_pwent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getpwuid", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETPWUID_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETSERVBYNAME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getservbyname
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservbyname) && GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyname(a, b) ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyname(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyname(a, b) Perl_reentr_getservbyname(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct servent* Perl_reentr_getservbyname(const char* a, const char* b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservbyname) && GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_S_CCSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyname(a, b) (getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size) ? &PL_reentrant_buffer->_servent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getservbyname", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservbyname) && GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyname(a, b) ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# define getservbyname(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0));})
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# else
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# define getservbyname(a, b) Perl_reentr_getservbyname(a, b)
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw static struct servent* Perl_reentr_getservbyname(const char* a, const char* b) {
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw dTHX;
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw int PL_REENTRANT_RETINT;
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw return ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0));
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw }
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# endif
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETSERVBYNAME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETSERVBYPORT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getservbyport
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# if !defined(getservbyport) && GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_I_ICSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) Perl_reentr_getservbyport(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct servent* Perl_reentr_getservbyport(int a, const char* b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservbyport) && GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_S_ICSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) (getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size) ? &PL_reentrant_buffer->_servent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getservbyport", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservbyport) && GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_I_ICSD
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservbyport(a, b) Perl_reentr_getservbyport(a, b)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct servent* Perl_reentr_getservbyport(int a, const char* b) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETSERVBYPORT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETSERVENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getservent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0))
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0));})
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# else
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# define getservent() Perl_reentr_getservent()
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw static struct servent* Perl_reentr_getservent() {
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBI
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() Perl_reentr_getservent()
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct servent* Perl_reentr_getservent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_S_SBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() (getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size) ? &PL_reentrant_buffer->_servent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getservent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SD
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# ifdef PERL_CORE
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw# define getservent() ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getservent() Perl_reentr_getservent()
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw static struct servent* Perl_reentr_getservent() {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
19d41fcc9d25d65db5db7c75dc9bbb68550868d2amw return ((PL_REENTRANT_RETINT = getservent_r(&PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservent") : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETSERVENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GETSPNAM_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef getspnam
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getspnam) && GETSPNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ifdef PERL_CORE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getspnam(a) ((PL_REENTRANT_RETINT = getspnam_r(a, &PL_reentrant_buffer->_spent_struct, PL_reentrant_buffer->_spent_buffer, PL_reentrant_buffer->_spent_size, &PL_reentrant_buffer->_spent_ptr)) == 0 ? PL_reentrant_buffer->_spent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct spwd*)Perl_reentrant_retry("getspnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if defined(__GNUC__) && !defined(__STRICT_ANSI__) && !defined(PERL_GCC_PEDANTIC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getspnam(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getspnam_r(a, &PL_reentrant_buffer->_spent_struct, PL_reentrant_buffer->_spent_buffer, PL_reentrant_buffer->_spent_size, &PL_reentrant_buffer->_spent_ptr)) == 0 ? PL_reentrant_buffer->_spent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct spwd*)Perl_reentrant_retry("getspnam", a) : 0));})
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# else
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getspnam(a) Perl_reentr_getspnam(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw static struct spwd* Perl_reentr_getspnam(const char* a) {
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw dTHX;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw int PL_REENTRANT_RETINT;
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw return ((PL_REENTRANT_RETINT = getspnam_r(a, &PL_reentrant_buffer->_spent_struct, PL_reentrant_buffer->_spent_buffer, PL_reentrant_buffer->_spent_size, &PL_reentrant_buffer->_spent_ptr)) == 0 ? PL_reentrant_buffer->_spent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct spwd*)Perl_reentrant_retry("getspnam", a) : 0));
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw }
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(getspnam) && GETSPNAM_R_PROTO == REENTRANT_PROTO_S_CSBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define getspnam(a) (getspnam_r(a, &PL_reentrant_buffer->_spent_struct, PL_reentrant_buffer->_spent_buffer, PL_reentrant_buffer->_spent_size) ? &PL_reentrant_buffer->_spent_struct : ((errno == ERANGE) ? Perl_reentrant_retry("getspnam", a) : 0))
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GETSPNAM_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_GMTIME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef gmtime
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gmtime) && GMTIME_R_PROTO == REENTRANT_PROTO_S_TS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gmtime(a) (gmtime_r(a, &PL_reentrant_buffer->_gmtime_struct) ? &PL_reentrant_buffer->_gmtime_struct : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(gmtime) && GMTIME_R_PROTO == REENTRANT_PROTO_I_TS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define gmtime(a) (gmtime_r(a, &PL_reentrant_buffer->_gmtime_struct) == 0 ? &PL_reentrant_buffer->_gmtime_struct : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_GMTIME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_LOCALTIME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef localtime
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(localtime) && LOCALTIME_R_PROTO == REENTRANT_PROTO_S_TS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define localtime(a) (localtime_r(a, &PL_reentrant_buffer->_localtime_struct) ? &PL_reentrant_buffer->_localtime_struct : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(localtime) && LOCALTIME_R_PROTO == REENTRANT_PROTO_I_TS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define localtime(a) (localtime_r(a, &PL_reentrant_buffer->_localtime_struct) == 0 ? &PL_reentrant_buffer->_localtime_struct : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_LOCALTIME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_RANDOM_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef random
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(random) && RANDOM_R_PROTO == REENTRANT_PROTO_I_iS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define random() (random_r(&PL_reentrant_buffer->_random_retval, &PL_reentrant_buffer->_random_struct) == 0 ? PL_reentrant_buffer->_random_retval : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(random) && RANDOM_R_PROTO == REENTRANT_PROTO_I_lS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define random() (random_r(&PL_reentrant_buffer->_random_retval, &PL_reentrant_buffer->_random_struct) == 0 ? PL_reentrant_buffer->_random_retval : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(random) && RANDOM_R_PROTO == REENTRANT_PROTO_I_St
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define random() (random_r(&PL_reentrant_buffer->_random_struct, &PL_reentrant_buffer->_random_retval) == 0 ? PL_reentrant_buffer->_random_retval : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_RANDOM_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_READDIR_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef readdir
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(readdir) && READDIR_R_PROTO == REENTRANT_PROTO_I_TSR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define readdir(a) (readdir_r(a, PL_reentrant_buffer->_readdir_struct, &PL_reentrant_buffer->_readdir_ptr) == 0 ? PL_reentrant_buffer->_readdir_ptr : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(readdir) && READDIR_R_PROTO == REENTRANT_PROTO_I_TS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define readdir(a) (readdir_r(a, PL_reentrant_buffer->_readdir_struct) == 0 ? PL_reentrant_buffer->_readdir_struct : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_READDIR_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_READDIR64_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef readdir64
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(readdir64) && READDIR64_R_PROTO == REENTRANT_PROTO_I_TSR
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define readdir64(a) (readdir64_r(a, PL_reentrant_buffer->_readdir64_struct, &PL_reentrant_buffer->_readdir64_ptr) == 0 ? PL_reentrant_buffer->_readdir64_ptr : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(readdir64) && READDIR64_R_PROTO == REENTRANT_PROTO_I_TS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define readdir64(a) (readdir64_r(a, PL_reentrant_buffer->_readdir64_struct) == 0 ? PL_reentrant_buffer->_readdir64_struct : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_READDIR64_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_SETGRENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef setgrent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setgrent) && SETGRENT_R_PROTO == REENTRANT_PROTO_I_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define setgrent() (setgrent_r(&PL_reentrant_buffer->_grent_fptr) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setgrent) && SETGRENT_R_PROTO == REENTRANT_PROTO_V_H
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define setgrent() setgrent_r(&PL_reentrant_buffer->_grent_fptr)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_SETGRENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_SETHOSTENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef sethostent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(sethostent) && SETHOSTENT_R_PROTO == REENTRANT_PROTO_I_ID
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define sethostent(a) (sethostent_r(a, &PL_reentrant_buffer->_hostent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(sethostent) && SETHOSTENT_R_PROTO == REENTRANT_PROTO_V_ID
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define sethostent(a) sethostent_r(a, &PL_reentrant_buffer->_hostent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_SETHOSTENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_SETLOCALE_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef setlocale
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setlocale) && SETLOCALE_R_PROTO == REENTRANT_PROTO_I_ICBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define setlocale(a, b) (setlocale_r(a, b, PL_reentrant_buffer->_setlocale_buffer, PL_reentrant_buffer->_setlocale_size) == 0 ? PL_reentrant_buffer->_setlocale_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_SETLOCALE_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_SETNETENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef setnetent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setnetent) && SETNETENT_R_PROTO == REENTRANT_PROTO_I_ID
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define setnetent(a) (setnetent_r(a, &PL_reentrant_buffer->_netent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setnetent) && SETNETENT_R_PROTO == REENTRANT_PROTO_V_ID
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define setnetent(a) setnetent_r(a, &PL_reentrant_buffer->_netent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_SETNETENT_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_SETPROTOENT_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef setprotoent
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setprotoent) && SETPROTOENT_R_PROTO == REENTRANT_PROTO_I_ID
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define setprotoent(a) (setprotoent_r(a, &PL_reentrant_buffer->_protoent_data) == 0 ? 1 : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(setprotoent) && SETPROTOENT_R_PROTO == REENTRANT_PROTO_V_ID
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define setprotoent(a) setprotoent_r(a, &PL_reentrant_buffer->_protoent_data)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_SETPROTOENT_R */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#ifdef HAS_SETPWENT_R
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# undef setpwent
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(setpwent) && SETPWENT_R_PROTO == REENTRANT_PROTO_I_H
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define setpwent() (setpwent_r(&PL_reentrant_buffer->_pwent_fptr) == 0 ? 1 : 0)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(setpwent) && SETPWENT_R_PROTO == REENTRANT_PROTO_V_H
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define setpwent() setpwent_r(&PL_reentrant_buffer->_pwent_fptr)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#endif /* HAS_SETPWENT_R */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#ifdef HAS_SETSERVENT_R
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# undef setservent
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(setservent) && SETSERVENT_R_PROTO == REENTRANT_PROTO_I_ID
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define setservent(a) (setservent_r(a, &PL_reentrant_buffer->_servent_data) == 0 ? 1 : 0)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(setservent) && SETSERVENT_R_PROTO == REENTRANT_PROTO_V_ID
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define setservent(a) setservent_r(a, &PL_reentrant_buffer->_servent_data)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#endif /* HAS_SETSERVENT_R */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#ifdef HAS_SRAND48_R
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# undef srand48
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(srand48) && SRAND48_R_PROTO == REENTRANT_PROTO_I_LS
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define srand48(a) (srand48_r(a, &PL_reentrant_buffer->_drand48_struct) == 0 ? &PL_reentrant_buffer->_drand48_struct : 0)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#endif /* HAS_SRAND48_R */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#ifdef HAS_SRANDOM_R
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# undef srandom
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# if !defined(srandom) && SRANDOM_R_PROTO == REENTRANT_PROTO_I_TS
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# define srandom(a) (srandom_r(a, &PL_reentrant_buffer->_srandom_struct) == 0 ? &PL_reentrant_buffer->_srandom_struct : 0)
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#endif /* HAS_SRANDOM_R */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#ifdef HAS_STRERROR_R
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb# undef strerror
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(strerror) && STRERROR_R_PROTO == REENTRANT_PROTO_I_IBW
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define strerror(a) (strerror_r(a, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size) == 0 ? PL_reentrant_buffer->_strerror_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(strerror) && STRERROR_R_PROTO == REENTRANT_PROTO_I_IBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define strerror(a) (strerror_r(a, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size) == 0 ? PL_reentrant_buffer->_strerror_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(strerror) && STRERROR_R_PROTO == REENTRANT_PROTO_B_IBW
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define strerror(a) strerror_r(a, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_STRERROR_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_TMPNAM_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef tmpnam
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(tmpnam) && TMPNAM_R_PROTO == REENTRANT_PROTO_B_B
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define tmpnam(a) tmpnam_r(a)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_TMPNAM_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#ifdef HAS_TTYNAME_R
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# undef ttyname
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ttyname) && TTYNAME_R_PROTO == REENTRANT_PROTO_I_IBW
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ttyname(a) (ttyname_r(a, PL_reentrant_buffer->_ttyname_buffer, PL_reentrant_buffer->_ttyname_size) == 0 ? PL_reentrant_buffer->_ttyname_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ttyname) && TTYNAME_R_PROTO == REENTRANT_PROTO_I_IBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ttyname(a) (ttyname_r(a, PL_reentrant_buffer->_ttyname_buffer, PL_reentrant_buffer->_ttyname_size) == 0 ? PL_reentrant_buffer->_ttyname_buffer : 0)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# if !defined(ttyname) && TTYNAME_R_PROTO == REENTRANT_PROTO_B_IBI
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# define ttyname(a) ttyname_r(a, PL_reentrant_buffer->_ttyname_buffer, PL_reentrant_buffer->_ttyname_size)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# endif
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#endif /* HAS_TTYNAME_R */
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#endif /* USE_REENTRANT_API */
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#endif
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb