4 * Copyright (c) 1997-2002, Larry Wall
6 * You may distribute under the terms of either the GNU General Public
7 * License or the Artistic License, as specified in the README file.
9 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
10 * This file is built by reentrl.pl from data in reentr.pl.
16 #ifdef USE_REENTRANT_API
18 /* Deprecations: some platforms have the said reentrant interfaces
19 * but they are declared obsolete and are not to be used. Often this
20 * means that the platform has threadsafed the interfaces (hopefully).
21 * All this is OS version dependent, so we are of course fooling ourselves.
22 * If you know of more deprecations on some platforms, please add your own. */
27 # undef HAS_ENDGRENT_R
28 # undef HAS_ENDPWENT_R
29 # undef HAS_GETGRENT_R
30 # undef HAS_GETPWENT_R
31 # undef HAS_SETLOCALE_R
33 # undef HAS_STRERROR_R
34 # define NETDB_R_OBSOLETE
37 #if defined(__osf__) && defined(__alpha) /* Tru64 aka Digital UNIX */
39 # undef HAS_STRERROR_R
40 # define NETDB_R_OBSOLETE
43 #ifdef NETDB_R_OBSOLETE
44 # undef HAS_ENDHOSTENT_R
45 # undef HAS_ENDNETENT_R
46 # undef HAS_ENDPROTOENT_R
47 # undef HAS_ENDSERVENT_R
48 # undef HAS_GETHOSTBYADDR_R
49 # undef HAS_GETHOSTBYNAME_R
50 # undef HAS_GETHOSTENT_R
51 # undef HAS_GETNETBYADDR_R
52 # undef HAS_GETNETBYNAME_R
53 # undef HAS_GETNETENT_R
54 # undef HAS_GETPROTOBYNAME_R
55 # undef HAS_GETPROTOBYNUMBER_R
56 # undef HAS_GETPROTOENT_R
57 # undef HAS_GETSERVBYNAME_R
58 # undef HAS_GETSERVBYPORT_R
59 # undef HAS_GETSERVENT_R
60 # undef HAS_SETHOSTENT_R
61 # undef HAS_SETNETENT_R
62 # undef HAS_SETPROTOENT_R
63 # undef HAS_SETSERVENT_R
76 # include <stdlib.h> /* drand48_data */
89 #define REENTRANT_PROTO_B_B 1
90 #define REENTRANT_PROTO_B_BI 2
91 #define REENTRANT_PROTO_B_BW 3
92 #define REENTRANT_PROTO_B_CCD 4
93 #define REENTRANT_PROTO_B_CCS 5
94 #define REENTRANT_PROTO_B_IBI 6
95 #define REENTRANT_PROTO_B_IBW 7
96 #define REENTRANT_PROTO_B_SB 8
97 #define REENTRANT_PROTO_B_SBI 9
98 #define REENTRANT_PROTO_I_BI 10
99 #define REENTRANT_PROTO_I_BW 11
100 #define REENTRANT_PROTO_I_CCSBWR 12
101 #define REENTRANT_PROTO_I_CCSD 13
102 #define REENTRANT_PROTO_I_CII 14
103 #define REENTRANT_PROTO_I_CIISD 15
104 #define REENTRANT_PROTO_I_CSBI 16
105 #define REENTRANT_PROTO_I_CSBIR 17
106 #define REENTRANT_PROTO_I_CSBWR 18
107 #define REENTRANT_PROTO_I_CSBWRE 19
108 #define REENTRANT_PROTO_I_CSD 20
109 #define REENTRANT_PROTO_I_CWISBWRE 21
110 #define REENTRANT_PROTO_I_CWISD 22
111 #define REENTRANT_PROTO_I_D 23
112 #define REENTRANT_PROTO_I_H 24
113 #define REENTRANT_PROTO_I_IBI 25
114 #define REENTRANT_PROTO_I_IBW 26
115 #define REENTRANT_PROTO_I_ICBI 27
116 #define REENTRANT_PROTO_I_ICSBWR 28
117 #define REENTRANT_PROTO_I_ICSD 29
118 #define REENTRANT_PROTO_I_ID 30
119 #define REENTRANT_PROTO_I_IISD 31
120 #define REENTRANT_PROTO_I_ISBWR 32
121 #define REENTRANT_PROTO_I_ISD 33
122 #define REENTRANT_PROTO_I_LISBI 34
123 #define REENTRANT_PROTO_I_LISD 35
124 #define REENTRANT_PROTO_I_LS 36
125 #define REENTRANT_PROTO_I_SB 37
126 #define REENTRANT_PROTO_I_SBI 38
127 #define REENTRANT_PROTO_I_SBIE 39
128 #define REENTRANT_PROTO_I_SBIH 40
129 #define REENTRANT_PROTO_I_SBIR 41
130 #define REENTRANT_PROTO_I_SBWR 42
131 #define REENTRANT_PROTO_I_SBWRE 43
132 #define REENTRANT_PROTO_I_SD 44
133 #define REENTRANT_PROTO_I_ST 45
134 #define REENTRANT_PROTO_I_TISD 46
135 #define REENTRANT_PROTO_I_TS 47
136 #define REENTRANT_PROTO_I_TSBI 48
137 #define REENTRANT_PROTO_I_TSBIR 49
138 #define REENTRANT_PROTO_I_TSBWR 50
139 #define REENTRANT_PROTO_I_TSR 51
140 #define REENTRANT_PROTO_I_UISBWRE 52
141 #define REENTRANT_PROTO_S_CBI 53
142 #define REENTRANT_PROTO_S_CCSBI 54
143 #define REENTRANT_PROTO_S_CIISBIE 55
144 #define REENTRANT_PROTO_S_CSBI 56
145 #define REENTRANT_PROTO_S_CSBIE 57
146 #define REENTRANT_PROTO_S_CWISBIE 58
147 #define REENTRANT_PROTO_S_CWISBWIE 59
148 #define REENTRANT_PROTO_S_ICSBI 60
149 #define REENTRANT_PROTO_S_ISBI 61
150 #define REENTRANT_PROTO_S_LISBI 62
151 #define REENTRANT_PROTO_S_SBI 63
152 #define REENTRANT_PROTO_S_SBIE 64
153 #define REENTRANT_PROTO_S_SBW 65
154 #define REENTRANT_PROTO_S_TISBI 66
155 #define REENTRANT_PROTO_S_TS 67
156 #define REENTRANT_PROTO_S_TSBI 68
157 #define REENTRANT_PROTO_S_TSBIE 69
158 #define REENTRANT_PROTO_S_TWISBIE 70
159 #define REENTRANT_PROTO_V_D 71
160 #define REENTRANT_PROTO_V_H 72
161 #define REENTRANT_PROTO_V_ID 73
163 /* Defines for indicating which special features are supported. */
165 /* The getgrent getgrgid getgrnam using buffer? */
167 #if defined(HAS_GETGRENT_R) && (GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBWR || GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIR || GETGRENT_R_PROTO == REENTRANT_PROTO_S_SBW || GETGRENT_R_PROTO == REENTRANT_PROTO_S_SBI || GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBI || GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIH)
168 # define GETGRENT_R_HAS_BUFFER
170 # undef GETGRENT_R_HAS_BUFFER
172 #if defined(HAS_GETGRGID_R) && (GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBWR || GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBIR || GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBI || GETGRGID_R_PROTO == REENTRANT_PROTO_S_TSBI)
173 # define GETGRGID_R_HAS_BUFFER
175 # undef GETGRGID_R_HAS_BUFFER
177 #if defined(HAS_GETGRNAM_R) && (GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR || GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR || GETGRNAM_R_PROTO == REENTRANT_PROTO_S_CBI || GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBI || GETGRNAM_R_PROTO == REENTRANT_PROTO_S_CSBI)
178 # define GETGRNAM_R_HAS_BUFFER
180 # undef GETGRNAM_R_HAS_BUFFER
183 /* Any of the getgrent getgrgid getgrnam using buffer? */
185 #if (defined(GETGRENT_R_HAS_BUFFER) || defined(GETGRGID_R_HAS_BUFFER) || defined(GETGRNAM_R_HAS_BUFFER))
186 # define USE_GRENT_BUFFER
188 # undef USE_GRENT_BUFFER
191 /* The getgrent getgrgid getgrnam using ptr? */
193 #if defined(HAS_GETGRENT_R) && (GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBWR || GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIR)
194 # define GETGRENT_R_HAS_PTR
196 # undef GETGRENT_R_HAS_PTR
198 #if defined(HAS_GETGRGID_R) && (GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBWR || GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBIR)
199 # define GETGRGID_R_HAS_PTR
201 # undef GETGRGID_R_HAS_PTR
203 #if defined(HAS_GETGRNAM_R) && (GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR || GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR)
204 # define GETGRNAM_R_HAS_PTR
206 # undef GETGRNAM_R_HAS_PTR
209 /* Any of the getgrent getgrgid getgrnam using ptr? */
211 #if (defined(GETGRENT_R_HAS_PTR) || defined(GETGRGID_R_HAS_PTR) || defined(GETGRNAM_R_HAS_PTR))
212 # define USE_GRENT_PTR
214 # undef USE_GRENT_PTR
217 /* The getpwent getpwnam getpwuid using ptr? */
219 #if defined(HAS_GETPWENT_R) && (GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBWR || GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIR)
220 # define GETPWENT_R_HAS_PTR
222 # undef GETPWENT_R_HAS_PTR
224 #if defined(HAS_GETPWNAM_R) && (GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR || GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR)
225 # define GETPWNAM_R_HAS_PTR
227 # undef GETPWNAM_R_HAS_PTR
229 #if defined(HAS_GETPWUID_R) && (GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBWR || GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBIR)
230 # define GETPWUID_R_HAS_PTR
232 # undef GETPWUID_R_HAS_PTR
235 /* Any of the getpwent getpwnam getpwuid using ptr? */
237 #if (defined(GETPWENT_R_HAS_PTR) || defined(GETPWNAM_R_HAS_PTR) || defined(GETPWUID_R_HAS_PTR))
238 # define USE_PWENT_PTR
240 # undef USE_PWENT_PTR
243 /* The getspent getspnam using ptr? */
245 #if defined(HAS_GETSPNAM_R) && (GETSPNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR)
246 # define GETSPNAM_R_HAS_PTR
248 # undef GETSPNAM_R_HAS_PTR
251 /* Any of the getspent getspnam using ptr? */
253 #if (defined(GETSPENT_R_HAS_PTR) || defined(GETSPNAM_R_HAS_PTR))
254 # define USE_SPENT_PTR
256 # undef USE_SPENT_PTR
259 /* The getgrent getgrgid getgrnam setgrent endgrent using fptr? */
261 #if defined(HAS_GETGRENT_R) && (GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIH)
262 # define GETGRENT_R_HAS_FPTR
264 # undef GETGRENT_R_HAS_FPTR
266 #if defined(HAS_SETGRENT_R) && (SETGRENT_R_PROTO == REENTRANT_PROTO_I_H || SETGRENT_R_PROTO == REENTRANT_PROTO_V_H)
267 # define SETGRENT_R_HAS_FPTR
269 # undef SETGRENT_R_HAS_FPTR
271 #if defined(HAS_ENDGRENT_R) && (ENDGRENT_R_PROTO == REENTRANT_PROTO_I_H || ENDGRENT_R_PROTO == REENTRANT_PROTO_V_H)
272 # define ENDGRENT_R_HAS_FPTR
274 # undef ENDGRENT_R_HAS_FPTR
277 /* Any of the getgrent getgrgid getgrnam setgrent endgrent using fptr? */
279 #if (defined(GETGRENT_R_HAS_FPTR) || defined(GETGRGID_R_HAS_FPTR) || defined(GETGRNAM_R_HAS_FPTR) || defined(SETGRENT_R_HAS_FPTR) || defined(ENDGRENT_R_HAS_FPTR))
280 # define USE_GRENT_FPTR
282 # undef USE_GRENT_FPTR
285 /* The getpwent getpwnam getpwuid setpwent endpwent using fptr? */
287 #if defined(HAS_GETPWENT_R) && (GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIH)
288 # define GETPWENT_R_HAS_FPTR
290 # undef GETPWENT_R_HAS_FPTR
292 #if defined(HAS_SETPWENT_R) && (SETPWENT_R_PROTO == REENTRANT_PROTO_I_H || SETPWENT_R_PROTO == REENTRANT_PROTO_V_H)
293 # define SETPWENT_R_HAS_FPTR
295 # undef SETPWENT_R_HAS_FPTR
297 #if defined(HAS_ENDPWENT_R) && (ENDPWENT_R_PROTO == REENTRANT_PROTO_I_H || ENDPWENT_R_PROTO == REENTRANT_PROTO_V_H)
298 # define ENDPWENT_R_HAS_FPTR
300 # undef ENDPWENT_R_HAS_FPTR
303 /* Any of the getpwent getpwnam getpwuid setpwent endpwent using fptr? */
305 #if (defined(GETPWENT_R_HAS_FPTR) || defined(GETPWNAM_R_HAS_FPTR) || defined(GETPWUID_R_HAS_FPTR) || defined(SETPWENT_R_HAS_FPTR) || defined(ENDPWENT_R_HAS_FPTR))
306 # define USE_PWENT_FPTR
308 # undef USE_PWENT_FPTR
311 /* The getpwent getpwgid getpwnam using buffer? */
313 #if defined(HAS_GETPWENT_R) && (GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBWR || GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIR || GETPWENT_R_PROTO == REENTRANT_PROTO_S_SBW || GETPWENT_R_PROTO == REENTRANT_PROTO_S_SBI || GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBI || GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIH)
314 # define GETPWENT_R_HAS_BUFFER
316 # undef GETPWENT_R_HAS_BUFFER
318 #if defined(HAS_GETPWNAM_R) && (GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR || GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR || GETPWNAM_R_PROTO == REENTRANT_PROTO_S_CSBI || GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBI)
319 # define GETPWNAM_R_HAS_BUFFER
321 # undef GETPWNAM_R_HAS_BUFFER
324 /* Any of the getpwent getpwgid getpwnam using buffer? */
326 #if (defined(GETPWENT_R_HAS_BUFFER) || defined(GETPWGID_R_HAS_BUFFER) || defined(GETPWNAM_R_HAS_BUFFER))
327 # define USE_PWENT_BUFFER
329 # undef USE_PWENT_BUFFER
332 /* The gethostent gethostbyaddr gethostbyname using ptr? */
334 #if defined(HAS_GETHOSTENT_R) && (GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBWRE)
335 # define GETHOSTENT_R_HAS_PTR
337 # undef GETHOSTENT_R_HAS_PTR
339 #if defined(HAS_GETHOSTBYADDR_R) && (GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISBWRE)
340 # define GETHOSTBYADDR_R_HAS_PTR
342 # undef GETHOSTBYADDR_R_HAS_PTR
344 #if defined(HAS_GETHOSTBYNAME_R) && (GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE)
345 # define GETHOSTBYNAME_R_HAS_PTR
347 # undef GETHOSTBYNAME_R_HAS_PTR
350 /* Any of the gethostent gethostbyaddr gethostbyname using ptr? */
352 #if (defined(GETHOSTENT_R_HAS_PTR) || defined(GETHOSTBYADDR_R_HAS_PTR) || defined(GETHOSTBYNAME_R_HAS_PTR))
353 # define USE_HOSTENT_PTR
355 # undef USE_HOSTENT_PTR
358 /* The getnetent getnetbyaddr getnetbyname using ptr? */
360 #if defined(HAS_GETNETENT_R) && (GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBWRE)
361 # define GETNETENT_R_HAS_PTR
363 # undef GETNETENT_R_HAS_PTR
365 #if defined(HAS_GETNETBYADDR_R) && (GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_UISBWRE)
366 # define GETNETBYADDR_R_HAS_PTR
368 # undef GETNETBYADDR_R_HAS_PTR
370 #if defined(HAS_GETNETBYNAME_R) && (GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE)
371 # define GETNETBYNAME_R_HAS_PTR
373 # undef GETNETBYNAME_R_HAS_PTR
376 /* Any of the getnetent getnetbyaddr getnetbyname using ptr? */
378 #if (defined(GETNETENT_R_HAS_PTR) || defined(GETNETBYADDR_R_HAS_PTR) || defined(GETNETBYNAME_R_HAS_PTR))
379 # define USE_NETENT_PTR
381 # undef USE_NETENT_PTR
384 /* The getprotoent getprotobyname getprotobynumber using ptr? */
386 #if defined(HAS_GETPROTOENT_R) && (GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBWR)
387 # define GETPROTOENT_R_HAS_PTR
389 # undef GETPROTOENT_R_HAS_PTR
391 #if defined(HAS_GETPROTOBYNAME_R) && (GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWR)
392 # define GETPROTOBYNAME_R_HAS_PTR
394 # undef GETPROTOBYNAME_R_HAS_PTR
396 #if defined(HAS_GETPROTOBYNUMBER_R) && (GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_I_ISBWR)
397 # define GETPROTOBYNUMBER_R_HAS_PTR
399 # undef GETPROTOBYNUMBER_R_HAS_PTR
402 /* Any of the getprotoent getprotobyname getprotobynumber using ptr? */
404 #if (defined(GETPROTOENT_R_HAS_PTR) || defined(GETPROTOBYNAME_R_HAS_PTR) || defined(GETPROTOBYNUMBER_R_HAS_PTR))
405 # define USE_PROTOENT_PTR
407 # undef USE_PROTOENT_PTR
410 /* The getservent getservbyname getservbyport using ptr? */
412 #if defined(HAS_GETSERVENT_R) && (GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBWR)
413 # define GETSERVENT_R_HAS_PTR
415 # undef GETSERVENT_R_HAS_PTR
417 #if defined(HAS_GETSERVBYNAME_R) && (GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSBWR)
418 # define GETSERVBYNAME_R_HAS_PTR
420 # undef GETSERVBYNAME_R_HAS_PTR
422 #if defined(HAS_GETSERVBYPORT_R) && (GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_I_ICSBWR)
423 # define GETSERVBYPORT_R_HAS_PTR
425 # undef GETSERVBYPORT_R_HAS_PTR
428 /* Any of the getservent getservbyname getservbyport using ptr? */
430 #if (defined(GETSERVENT_R_HAS_PTR) || defined(GETSERVBYNAME_R_HAS_PTR) || defined(GETSERVBYPORT_R_HAS_PTR))
431 # define USE_SERVENT_PTR
433 # undef USE_SERVENT_PTR
436 /* The gethostent gethostbyaddr gethostbyname using buffer? */
438 #if defined(HAS_GETHOSTENT_R) && (GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBWRE || GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBIE || GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBIE || GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBI || GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBI)
439 # define GETHOSTENT_R_HAS_BUFFER
441 # undef GETHOSTENT_R_HAS_BUFFER
443 #if defined(HAS_GETHOSTBYADDR_R) && (GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISBWRE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBWIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TWISBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CIISBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CSBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TSBIE)
444 # define GETHOSTBYADDR_R_HAS_BUFFER
446 # undef GETHOSTBYADDR_R_HAS_BUFFER
448 #if defined(HAS_GETHOSTBYNAME_R) && (GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE || GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBIE)
449 # define GETHOSTBYNAME_R_HAS_BUFFER
451 # undef GETHOSTBYNAME_R_HAS_BUFFER
454 /* Any of the gethostent gethostbyaddr gethostbyname using buffer? */
456 #if (defined(GETHOSTENT_R_HAS_BUFFER) || defined(GETHOSTBYADDR_R_HAS_BUFFER) || defined(GETHOSTBYNAME_R_HAS_BUFFER))
457 # define USE_HOSTENT_BUFFER
459 # undef USE_HOSTENT_BUFFER
462 /* The getnetent getnetbyaddr getnetbyname using buffer? */
464 #if defined(HAS_GETNETENT_R) && (GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBWRE || GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBIE || GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBIE || GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBI || GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBI)
465 # define GETNETENT_R_HAS_BUFFER
467 # undef GETNETENT_R_HAS_BUFFER
469 #if defined(HAS_GETNETBYADDR_R) && (GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_UISBWRE || GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_LISBI || GETNETBYADDR_R_PROTO == REENTRANT_PROTO_S_TISBI || GETNETBYADDR_R_PROTO == REENTRANT_PROTO_S_LISBI)
470 # define GETNETBYADDR_R_HAS_BUFFER
472 # undef GETNETBYADDR_R_HAS_BUFFER
474 #if defined(HAS_GETNETBYNAME_R) && (GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE || GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBI || GETNETBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBI)
475 # define GETNETBYNAME_R_HAS_BUFFER
477 # undef GETNETBYNAME_R_HAS_BUFFER
480 /* Any of the getnetent getnetbyaddr getnetbyname using buffer? */
482 #if (defined(GETNETENT_R_HAS_BUFFER) || defined(GETNETBYADDR_R_HAS_BUFFER) || defined(GETNETBYNAME_R_HAS_BUFFER))
483 # define USE_NETENT_BUFFER
485 # undef USE_NETENT_BUFFER
488 /* The getprotoent getprotobyname getprotobynumber using buffer? */
490 #if defined(HAS_GETPROTOENT_R) && (GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBWR || GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBI || GETPROTOENT_R_PROTO == REENTRANT_PROTO_S_SBI)
491 # define GETPROTOENT_R_HAS_BUFFER
493 # undef GETPROTOENT_R_HAS_BUFFER
495 #if defined(HAS_GETPROTOBYNAME_R) && (GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWR || GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBI)
496 # define GETPROTOBYNAME_R_HAS_BUFFER
498 # undef GETPROTOBYNAME_R_HAS_BUFFER
500 #if defined(HAS_GETPROTOBYNUMBER_R) && (GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_I_ISBWR || GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_S_ISBI)
501 # define GETPROTOBYNUMBER_R_HAS_BUFFER
503 # undef GETPROTOBYNUMBER_R_HAS_BUFFER
506 /* Any of the getprotoent getprotobyname getprotobynumber using buffer? */
508 #if (defined(GETPROTOENT_R_HAS_BUFFER) || defined(GETPROTOBYNAME_R_HAS_BUFFER) || defined(GETPROTOBYNUMBER_R_HAS_BUFFER))
509 # define USE_PROTOENT_BUFFER
511 # undef USE_PROTOENT_BUFFER
514 /* The getservent getservbyname getservbyport using buffer? */
516 #if defined(HAS_GETSERVENT_R) && (GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBWR || GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBI || GETSERVENT_R_PROTO == REENTRANT_PROTO_S_SBI)
517 # define GETSERVENT_R_HAS_BUFFER
519 # undef GETSERVENT_R_HAS_BUFFER
521 #if defined(HAS_GETSERVBYNAME_R) && (GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSBWR || GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_S_CCSBI)
522 # define GETSERVBYNAME_R_HAS_BUFFER
524 # undef GETSERVBYNAME_R_HAS_BUFFER
526 #if defined(HAS_GETSERVBYPORT_R) && (GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_I_ICSBWR || GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_S_ICSBI)
527 # define GETSERVBYPORT_R_HAS_BUFFER
529 # undef GETSERVBYPORT_R_HAS_BUFFER
532 /* Any of the getservent getservbyname getservbyport using buffer? */
534 #if (defined(GETSERVENT_R_HAS_BUFFER) || defined(GETSERVBYNAME_R_HAS_BUFFER) || defined(GETSERVBYPORT_R_HAS_BUFFER))
535 # define USE_SERVENT_BUFFER
537 # undef USE_SERVENT_BUFFER
540 /* The gethostent gethostbyaddr gethostbyname using errno? */
542 #if defined(HAS_GETHOSTENT_R) && (GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBWRE || GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBIE || GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBIE)
543 # define GETHOSTENT_R_HAS_ERRNO
545 # undef GETHOSTENT_R_HAS_ERRNO
547 #if defined(HAS_GETHOSTBYADDR_R) && (GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISBWRE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBWIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TWISBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CIISBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CSBIE || GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TSBIE)
548 # define GETHOSTBYADDR_R_HAS_ERRNO
550 # undef GETHOSTBYADDR_R_HAS_ERRNO
552 #if defined(HAS_GETHOSTBYNAME_R) && (GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE || GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBIE)
553 # define GETHOSTBYNAME_R_HAS_ERRNO
555 # undef GETHOSTBYNAME_R_HAS_ERRNO
558 /* Any of the gethostent gethostbyaddr gethostbyname using errno? */
560 #if (defined(GETHOSTENT_R_HAS_ERRNO) || defined(GETHOSTBYADDR_R_HAS_ERRNO) || defined(GETHOSTBYNAME_R_HAS_ERRNO))
561 # define USE_HOSTENT_ERRNO
563 # undef USE_HOSTENT_ERRNO
566 /* The getnetent getnetbyaddr getnetbyname using errno? */
568 #if defined(HAS_GETNETENT_R) && (GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBWRE || GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBIE || GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBIE)
569 # define GETNETENT_R_HAS_ERRNO
571 # undef GETNETENT_R_HAS_ERRNO
573 #if defined(HAS_GETNETBYADDR_R) && (GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_UISBWRE)
574 # define GETNETBYADDR_R_HAS_ERRNO
576 # undef GETNETBYADDR_R_HAS_ERRNO
578 #if defined(HAS_GETNETBYNAME_R) && (GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE)
579 # define GETNETBYNAME_R_HAS_ERRNO
581 # undef GETNETBYNAME_R_HAS_ERRNO
584 /* Any of the getnetent getnetbyaddr getnetbyname using errno? */
586 #if (defined(GETNETENT_R_HAS_ERRNO) || defined(GETNETBYADDR_R_HAS_ERRNO) || defined(GETNETBYNAME_R_HAS_ERRNO))
587 # define USE_NETENT_ERRNO
589 # undef USE_NETENT_ERRNO
595 char* _asctime_buffer;
596 size_t _asctime_size;
597 #endif /* HAS_ASCTIME_R */
599 #if CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD
602 struct crypt_data _crypt_struct;
604 #endif /* HAS_CRYPT_R */
608 #endif /* HAS_CTIME_R */
610 struct drand48_data _drand48_struct;
611 double _drand48_double;
612 #endif /* HAS_DRAND48_R */
613 #ifdef HAS_GETGRNAM_R
614 struct group _grent_struct;
617 # ifdef USE_GRENT_PTR
618 struct group* _grent_ptr;
620 # ifdef USE_GRENT_FPTR
623 #endif /* HAS_GETGRNAM_R */
624 #ifdef HAS_GETHOSTBYNAME_R
625 struct hostent _hostent_struct;
626 # if GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
627 struct hostent_data _hostent_data;
629 char* _hostent_buffer;
630 size_t _hostent_size;
632 # ifdef USE_HOSTENT_PTR
633 struct hostent* _hostent_ptr;
635 # ifdef USE_HOSTENT_ERRNO
638 #endif /* HAS_GETHOSTBYNAME_R */
639 #ifdef HAS_GETLOGIN_R
640 char* _getlogin_buffer;
641 size_t _getlogin_size;
642 #endif /* HAS_GETLOGIN_R */
643 #ifdef HAS_GETNETBYNAME_R
644 struct netent _netent_struct;
645 # if GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
646 struct netent_data _netent_data;
648 char* _netent_buffer;
651 # ifdef USE_NETENT_PTR
652 struct netent* _netent_ptr;
654 # ifdef USE_NETENT_ERRNO
657 #endif /* HAS_GETNETBYNAME_R */
658 #ifdef HAS_GETPROTOBYNAME_R
659 struct protoent _protoent_struct;
660 # if GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
661 struct protoent_data _protoent_data;
663 char* _protoent_buffer;
664 size_t _protoent_size;
666 # ifdef USE_PROTOENT_PTR
667 struct protoent* _protoent_ptr;
669 # ifdef USE_PROTOENT_ERRNO
672 #endif /* HAS_GETPROTOBYNAME_R */
673 #ifdef HAS_GETPWNAM_R
674 struct passwd _pwent_struct;
677 # ifdef USE_PWENT_PTR
678 struct passwd* _pwent_ptr;
680 # ifdef USE_PWENT_FPTR
683 #endif /* HAS_GETPWNAM_R */
684 #ifdef HAS_GETSERVBYNAME_R
685 struct servent _servent_struct;
686 # if GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSD
687 struct servent_data _servent_data;
689 char* _servent_buffer;
690 size_t _servent_size;
692 # ifdef USE_SERVENT_PTR
693 struct servent* _servent_ptr;
695 # ifdef USE_SERVENT_ERRNO
698 #endif /* HAS_GETSERVBYNAME_R */
699 #ifdef HAS_GETSPNAM_R
700 struct spwd _spent_struct;
703 # ifdef USE_SPENT_PTR
704 struct spwd* _spent_ptr;
706 # ifdef USE_SPENT_FPTR
709 #endif /* HAS_GETSPNAM_R */
711 struct tm _gmtime_struct;
712 #endif /* HAS_GMTIME_R */
713 #ifdef HAS_LOCALTIME_R
714 struct tm _localtime_struct;
715 #endif /* HAS_LOCALTIME_R */
717 struct random_data _random_struct;
718 #endif /* HAS_RANDOM_R */
720 struct dirent* _readdir_struct;
721 size_t _readdir_size;
722 # if READDIR_R_PROTO == REENTRANT_PROTO_I_TSR
723 struct dirent* _readdir_ptr;
725 #endif /* HAS_READDIR_R */
726 #ifdef HAS_READDIR64_R
727 struct dirent64* _readdir64_struct;
728 size_t _readdir64_size;
729 # if READDIR64_R_PROTO == REENTRANT_PROTO_I_TSR
730 struct dirent64* _readdir64_ptr;
732 #endif /* HAS_READDIR64_R */
733 #ifdef HAS_SETLOCALE_R
734 char* _setlocale_buffer;
735 size_t _setlocale_size;
736 #endif /* HAS_SETLOCALE_R */
737 #ifdef HAS_STRERROR_R
738 char* _strerror_buffer;
739 size_t _strerror_size;
740 #endif /* HAS_STRERROR_R */
742 char* _ttyname_buffer;
743 size_t _ttyname_size;
744 #endif /* HAS_TTYNAME_R */
746 int dummy; /* cannot have empty structs */
753 # if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_B_SB
754 # define asctime(a) asctime_r(a, PL_reentrant_buffer->_asctime_buffer)
756 # if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_B_SBI
757 # define asctime(a) asctime_r(a, PL_reentrant_buffer->_asctime_buffer, PL_reentrant_buffer->_asctime_size)
759 # if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_I_SB
760 # define asctime(a) (((errno = asctime_r(a, PL_reentrant_buffer->_asctime_buffer))) == 0 ? PL_reentrant_buffer->_asctime_buffer : 0)
762 # if !defined(asctime) && ASCTIME_R_PROTO == REENTRANT_PROTO_I_SBI
763 # define asctime(a) (((errno = asctime_r(a, PL_reentrant_buffer->_asctime_buffer, PL_reentrant_buffer->_asctime_size))) == 0 ? PL_reentrant_buffer->_asctime_buffer : 0)
765 #endif /* HAS_ASCTIME_R */
769 # if !defined(crypt) && CRYPT_R_PROTO == REENTRANT_PROTO_B_CCS
770 # define crypt(a, b) crypt_r(a, b, &PL_reentrant_buffer->_crypt_struct)
772 # if !defined(crypt) && CRYPT_R_PROTO == REENTRANT_PROTO_B_CCD
773 # define crypt(a, b) crypt_r(a, b, &PL_reentrant_buffer->_crypt_data)
775 #endif /* HAS_CRYPT_R */
779 # if !defined(ctermid) && CTERMID_R_PROTO == REENTRANT_PROTO_B_B
780 # define ctermid(a) ctermid_r(a)
782 #endif /* HAS_CTERMID_R */
786 # if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_B_SB
787 # define ctime(a) ctime_r(a, PL_reentrant_buffer->_ctime_buffer)
789 # if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_B_SBI
790 # define ctime(a) ctime_r(a, PL_reentrant_buffer->_ctime_buffer, PL_reentrant_buffer->_ctime_size)
792 # if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_I_SB
793 # define ctime(a) (((errno = ctime_r(a, PL_reentrant_buffer->_ctime_buffer))) == 0 ? PL_reentrant_buffer->_ctime_buffer : 0)
795 # if !defined(ctime) && CTIME_R_PROTO == REENTRANT_PROTO_I_SBI
796 # define ctime(a) (((errno = ctime_r(a, PL_reentrant_buffer->_ctime_buffer, PL_reentrant_buffer->_ctime_size))) == 0 ? PL_reentrant_buffer->_ctime_buffer : 0)
798 #endif /* HAS_CTIME_R */
802 # if !defined(drand48) && DRAND48_R_PROTO == REENTRANT_PROTO_I_ST
803 # define drand48() (((errno = drand48_r(&PL_reentrant_buffer->_drand48_struct, &PL_reentrant_buffer->_drand48_double))) == 0 ? PL_reentrant_buffer->_drand48_double : 0)
805 #endif /* HAS_DRAND48_R */
807 #ifdef HAS_ENDGRENT_R
809 # if !defined(endgrent) && ENDGRENT_R_PROTO == REENTRANT_PROTO_I_H
810 # define endgrent() (((errno = endgrent_r(&PL_reentrant_buffer->_grent_fptr))) == 0 ? 1 : 0)
812 # if !defined(endgrent) && ENDGRENT_R_PROTO == REENTRANT_PROTO_V_H
813 # define endgrent() endgrent_r(&PL_reentrant_buffer->_grent_fptr)
815 #endif /* HAS_ENDGRENT_R */
817 #ifdef HAS_ENDHOSTENT_R
819 # if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_I_D
820 # define endhostent() (((errno = endhostent_r(&PL_reentrant_buffer->_hostent_data))) == 0 ? 1 : 0)
822 # if !defined(endhostent) && ENDHOSTENT_R_PROTO == REENTRANT_PROTO_V_D
823 # define endhostent() endhostent_r(&PL_reentrant_buffer->_hostent_data)
825 #endif /* HAS_ENDHOSTENT_R */
827 #ifdef HAS_ENDNETENT_R
829 # if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_I_D
830 # define endnetent() (((errno = endnetent_r(&PL_reentrant_buffer->_netent_data))) == 0 ? 1 : 0)
832 # if !defined(endnetent) && ENDNETENT_R_PROTO == REENTRANT_PROTO_V_D
833 # define endnetent() endnetent_r(&PL_reentrant_buffer->_netent_data)
835 #endif /* HAS_ENDNETENT_R */
837 #ifdef HAS_ENDPROTOENT_R
839 # if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_I_D
840 # define endprotoent() (((errno = endprotoent_r(&PL_reentrant_buffer->_protoent_data))) == 0 ? 1 : 0)
842 # if !defined(endprotoent) && ENDPROTOENT_R_PROTO == REENTRANT_PROTO_V_D
843 # define endprotoent() endprotoent_r(&PL_reentrant_buffer->_protoent_data)
845 #endif /* HAS_ENDPROTOENT_R */
847 #ifdef HAS_ENDPWENT_R
849 # if !defined(endpwent) && ENDPWENT_R_PROTO == REENTRANT_PROTO_I_H
850 # define endpwent() (((errno = endpwent_r(&PL_reentrant_buffer->_pwent_fptr))) == 0 ? 1 : 0)
852 # if !defined(endpwent) && ENDPWENT_R_PROTO == REENTRANT_PROTO_V_H
853 # define endpwent() endpwent_r(&PL_reentrant_buffer->_pwent_fptr)
855 #endif /* HAS_ENDPWENT_R */
857 #ifdef HAS_ENDSERVENT_R
859 # if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_I_D
860 # define endservent() (((errno = endservent_r(&PL_reentrant_buffer->_servent_data))) == 0 ? 1 : 0)
862 # if !defined(endservent) && ENDSERVENT_R_PROTO == REENTRANT_PROTO_V_D
863 # define endservent() endservent_r(&PL_reentrant_buffer->_servent_data)
865 #endif /* HAS_ENDSERVENT_R */
867 #ifdef HAS_GETGRENT_R
869 # if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBWR
870 # define getgrent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrent") : 0))
872 # if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIR
873 # define getgrent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrent") : 0))
875 # if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_S_SBW
876 # 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))
878 # if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_S_SBI
879 # 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))
881 # if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBI
882 # define getgrent() (((errno = getgrent_r(&PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size))) == 0 ? &PL_reentrant_buffer->_grent_struct : (errno == ERANGE ? Perl_reentrant_retry("getgrent") : 0))
884 # if !defined(getgrent) && GETGRENT_R_PROTO == REENTRANT_PROTO_I_SBIH
885 # define getgrent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrent") : 0))
887 #endif /* HAS_GETGRENT_R */
889 #ifdef HAS_GETGRGID_R
891 # if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBWR
892 # define getgrgid(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrgid", a) : 0))
894 # if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBIR
895 # define getgrgid(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrgid", a) : 0))
897 # if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_I_TSBI
898 # define getgrgid(a) (((errno = getgrgid_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size))) == 0 ? &PL_reentrant_buffer->_grent_struct : (errno == ERANGE ? Perl_reentrant_retry("getgrgid", a) : 0))
900 # if !defined(getgrgid) && GETGRGID_R_PROTO == REENTRANT_PROTO_S_TSBI
901 # 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))
903 #endif /* HAS_GETGRGID_R */
905 #ifdef HAS_GETGRNAM_R
907 # if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR
908 # define getgrnam(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrnam", a) : 0))
910 # if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR
911 # define getgrnam(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getgrnam", a) : 0))
913 # if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_S_CBI
914 # 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))
916 # if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_I_CSBI
917 # define getgrnam(a) (((errno = getgrnam_r(a, &PL_reentrant_buffer->_grent_struct, PL_reentrant_buffer->_grent_buffer, PL_reentrant_buffer->_grent_size))) == 0 ? &PL_reentrant_buffer->_grent_struct : (errno == ERANGE ? Perl_reentrant_retry("getgrnam", a) : 0))
919 # if !defined(getgrnam) && GETGRNAM_R_PROTO == REENTRANT_PROTO_S_CSBI
920 # 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))
922 #endif /* HAS_GETGRNAM_R */
924 #ifdef HAS_GETHOSTBYADDR_R
925 # undef gethostbyaddr
926 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISBWRE
927 # define gethostbyaddr(a, b, c) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
929 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBWIE
930 # 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))
932 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CWISBIE
933 # 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))
935 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TWISBIE
936 # 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))
938 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CIISBIE
939 # 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))
941 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_CSBIE
942 # 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))
944 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_S_TSBIE
945 # 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))
947 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CWISD
948 # define gethostbyaddr(a, b, c) (((errno = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data))) == 0 ? &PL_reentrant_buffer->_hostent_struct : (errno == ERANGE ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
950 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CIISD
951 # define gethostbyaddr(a, b, c) (((errno = gethostbyaddr_r(a, b, c, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data))) == 0 ? &PL_reentrant_buffer->_hostent_struct : (errno == ERANGE ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
953 # if !defined(gethostbyaddr) && GETHOSTBYADDR_R_PROTO == REENTRANT_PROTO_I_CII
954 # define gethostbyaddr(a, b, c) (((errno = gethostbyaddr_r(a, b, c))) == 0 ? 1 : (errno == ERANGE ? Perl_reentrant_retry("gethostbyaddr", a, b, c) : 0))
956 #endif /* HAS_GETHOSTBYADDR_R */
958 #ifdef HAS_GETHOSTBYNAME_R
959 # undef gethostbyname
960 # if !defined(gethostbyname) && GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE
961 # define gethostbyname(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("gethostbyname", a) : 0))
963 # if !defined(gethostbyname) && GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBIE
964 # 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))
966 # if !defined(gethostbyname) && GETHOSTBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
967 # define gethostbyname(a) (((errno = gethostbyname_r(a, &PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data))) == 0 ? &PL_reentrant_buffer->_hostent_struct : (errno == ERANGE ? Perl_reentrant_retry("gethostbyname", a) : 0))
969 #endif /* HAS_GETHOSTBYNAME_R */
971 #ifdef HAS_GETHOSTENT_R
973 # if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBWRE
974 # define gethostent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("gethostent") : 0))
976 # if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBIE
977 # define gethostent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("gethostent") : 0))
979 # if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBIE
980 # 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))
982 # if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_S_SBI
983 # 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))
985 # if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SBI
986 # define gethostent() (((errno = gethostent_r(&PL_reentrant_buffer->_hostent_struct, PL_reentrant_buffer->_hostent_buffer, PL_reentrant_buffer->_hostent_size))) == 0 ? &PL_reentrant_buffer->_hostent_struct : (errno == ERANGE ? Perl_reentrant_retry("gethostent") : 0))
988 # if !defined(gethostent) && GETHOSTENT_R_PROTO == REENTRANT_PROTO_I_SD
989 # define gethostent() (((errno = gethostent_r(&PL_reentrant_buffer->_hostent_struct, &PL_reentrant_buffer->_hostent_data))) == 0 ? &PL_reentrant_buffer->_hostent_struct : (errno == ERANGE ? Perl_reentrant_retry("gethostent") : 0))
991 #endif /* HAS_GETHOSTENT_R */
993 #ifdef HAS_GETLOGIN_R
995 # if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_I_BW
996 # define getlogin() (((errno = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size))) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (errno == ERANGE ? Perl_reentrant_retry("getlogin") : 0))
998 # if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_I_BI
999 # define getlogin() (((errno = getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size))) == 0 ? PL_reentrant_buffer->_getlogin_buffer : (errno == ERANGE ? Perl_reentrant_retry("getlogin") : 0))
1001 # if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_B_BW
1002 # define getlogin() getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)
1004 # if !defined(getlogin) && GETLOGIN_R_PROTO == REENTRANT_PROTO_B_BI
1005 # define getlogin() getlogin_r(PL_reentrant_buffer->_getlogin_buffer, PL_reentrant_buffer->_getlogin_size)
1007 #endif /* HAS_GETLOGIN_R */
1009 #ifdef HAS_GETNETBYADDR_R
1010 # undef getnetbyaddr
1011 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_UISBWRE
1012 # define getnetbyaddr(a, b) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
1014 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_LISBI
1015 # define getnetbyaddr(a, b) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
1017 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_S_TISBI
1018 # 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))
1020 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_S_LISBI
1021 # 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))
1023 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_TISD
1024 # define getnetbyaddr(a, b) (((errno = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
1026 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_LISD
1027 # define getnetbyaddr(a, b) (((errno = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
1029 # if !defined(getnetbyaddr) && GETNETBYADDR_R_PROTO == REENTRANT_PROTO_I_IISD
1030 # define getnetbyaddr(a, b) (((errno = getnetbyaddr_r(a, b, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetbyaddr", a, b) : 0))
1032 #endif /* HAS_GETNETBYADDR_R */
1034 #ifdef HAS_GETNETBYNAME_R
1035 # undef getnetbyname
1036 # if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWRE
1037 # define getnetbyname(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getnetbyname", a) : 0))
1039 # if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBI
1040 # define getnetbyname(a) (((errno = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetbyname", a) : 0))
1042 # if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBI
1043 # 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))
1045 # if !defined(getnetbyname) && GETNETBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
1046 # define getnetbyname(a) (((errno = getnetbyname_r(a, &PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetbyname", a) : 0))
1048 #endif /* HAS_GETNETBYNAME_R */
1050 #ifdef HAS_GETNETENT_R
1052 # if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBWRE
1053 # define getnetent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getnetent") : 0))
1055 # if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBIE
1056 # define getnetent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getnetent") : 0))
1058 # if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBIE
1059 # 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))
1061 # if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_S_SBI
1062 # 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))
1064 # if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SBI
1065 # define getnetent() (((errno = getnetent_r(&PL_reentrant_buffer->_netent_struct, PL_reentrant_buffer->_netent_buffer, PL_reentrant_buffer->_netent_size))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetent") : 0))
1067 # if !defined(getnetent) && GETNETENT_R_PROTO == REENTRANT_PROTO_I_SD
1068 # define getnetent() (((errno = getnetent_r(&PL_reentrant_buffer->_netent_struct, &PL_reentrant_buffer->_netent_data))) == 0 ? &PL_reentrant_buffer->_netent_struct : (errno == ERANGE ? Perl_reentrant_retry("getnetent") : 0))
1070 #endif /* HAS_GETNETENT_R */
1072 #ifdef HAS_GETPROTOBYNAME_R
1073 # undef getprotobyname
1074 # if !defined(getprotobyname) && GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSBWR
1075 # define getprotobyname(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getprotobyname", a) : 0))
1077 # if !defined(getprotobyname) && GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_S_CSBI
1078 # 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))
1080 # if !defined(getprotobyname) && GETPROTOBYNAME_R_PROTO == REENTRANT_PROTO_I_CSD
1081 # define getprotobyname(a) (((errno = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data))) == 0 ? &PL_reentrant_buffer->_protoent_struct : (errno == ERANGE ? Perl_reentrant_retry("getprotobyname", a) : 0))
1083 #endif /* HAS_GETPROTOBYNAME_R */
1085 #ifdef HAS_GETPROTOBYNUMBER_R
1086 # undef getprotobynumber
1087 # if !defined(getprotobynumber) && GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_I_ISBWR
1088 # define getprotobynumber(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getprotobynumber", a) : 0))
1090 # if !defined(getprotobynumber) && GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_S_ISBI
1091 # 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))
1093 # if !defined(getprotobynumber) && GETPROTOBYNUMBER_R_PROTO == REENTRANT_PROTO_I_ISD
1094 # define getprotobynumber(a) (((errno = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data))) == 0 ? &PL_reentrant_buffer->_protoent_struct : (errno == ERANGE ? Perl_reentrant_retry("getprotobynumber", a) : 0))
1096 #endif /* HAS_GETPROTOBYNUMBER_R */
1098 #ifdef HAS_GETPROTOENT_R
1100 # if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBWR
1101 # define getprotoent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getprotoent") : 0))
1103 # if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SBI
1104 # define getprotoent() (((errno = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size))) == 0 ? &PL_reentrant_buffer->_protoent_struct : (errno == ERANGE ? Perl_reentrant_retry("getprotoent") : 0))
1106 # if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_S_SBI
1107 # 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))
1109 # if !defined(getprotoent) && GETPROTOENT_R_PROTO == REENTRANT_PROTO_I_SD
1110 # define getprotoent() (((errno = getprotoent_r(&PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data))) == 0 ? &PL_reentrant_buffer->_protoent_struct : (errno == ERANGE ? Perl_reentrant_retry("getprotoent") : 0))
1112 #endif /* HAS_GETPROTOENT_R */
1114 #ifdef HAS_GETPWENT_R
1116 # if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBWR
1117 # define getpwent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwent") : 0))
1119 # if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIR
1120 # define getpwent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwent") : 0))
1122 # if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_S_SBW
1123 # 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))
1125 # if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_S_SBI
1126 # 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))
1128 # if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBI
1129 # define getpwent() (((errno = getpwent_r(&PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size))) == 0 ? &PL_reentrant_buffer->_pwent_struct : (errno == ERANGE ? Perl_reentrant_retry("getpwent") : 0))
1131 # if !defined(getpwent) && GETPWENT_R_PROTO == REENTRANT_PROTO_I_SBIH
1132 # define getpwent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwent") : 0))
1134 #endif /* HAS_GETPWENT_R */
1136 #ifdef HAS_GETPWNAM_R
1138 # if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR
1139 # define getpwnam(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwnam", a) : 0))
1141 # if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBIR
1142 # define getpwnam(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwnam", a) : 0))
1144 # if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_S_CSBI
1145 # 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))
1147 # if !defined(getpwnam) && GETPWNAM_R_PROTO == REENTRANT_PROTO_I_CSBI
1148 # define getpwnam(a) (((errno = getpwnam_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size))) == 0 ? &PL_reentrant_buffer->_pwent_struct : (errno == ERANGE ? Perl_reentrant_retry("getpwnam", a) : 0))
1150 #endif /* HAS_GETPWNAM_R */
1152 #ifdef HAS_GETPWUID_R
1154 # if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBWR
1155 # define getpwuid(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwuid", a) : 0))
1157 # if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBIR
1158 # define getpwuid(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getpwuid", a) : 0))
1160 # if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_I_TSBI
1161 # define getpwuid(a) (((errno = getpwuid_r(a, &PL_reentrant_buffer->_pwent_struct, PL_reentrant_buffer->_pwent_buffer, PL_reentrant_buffer->_pwent_size))) == 0 ? &PL_reentrant_buffer->_pwent_struct : (errno == ERANGE ? Perl_reentrant_retry("getpwuid", a) : 0))
1163 # if !defined(getpwuid) && GETPWUID_R_PROTO == REENTRANT_PROTO_S_TSBI
1164 # 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))
1166 #endif /* HAS_GETPWUID_R */
1168 #ifdef HAS_GETSERVBYNAME_R
1169 # undef getservbyname
1170 # if !defined(getservbyname) && GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSBWR
1171 # define getservbyname(a, b) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getservbyname", a, b) : 0))
1173 # if !defined(getservbyname) && GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_S_CCSBI
1174 # 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))
1176 # if !defined(getservbyname) && GETSERVBYNAME_R_PROTO == REENTRANT_PROTO_I_CCSD
1177 # define getservbyname(a, b) (((errno = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data))) == 0 ? &PL_reentrant_buffer->_servent_struct : (errno == ERANGE ? Perl_reentrant_retry("getservbyname", a, b) : 0))
1179 #endif /* HAS_GETSERVBYNAME_R */
1181 #ifdef HAS_GETSERVBYPORT_R
1182 # undef getservbyport
1183 # if !defined(getservbyport) && GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_I_ICSBWR
1184 # define getservbyport(a, b) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getservbyport", a, b) : 0))
1186 # if !defined(getservbyport) && GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_S_ICSBI
1187 # 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))
1189 # if !defined(getservbyport) && GETSERVBYPORT_R_PROTO == REENTRANT_PROTO_I_ICSD
1190 # define getservbyport(a, b) (((errno = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data))) == 0 ? &PL_reentrant_buffer->_servent_struct : (errno == ERANGE ? Perl_reentrant_retry("getservbyport", a, b) : 0))
1192 #endif /* HAS_GETSERVBYPORT_R */
1194 #ifdef HAS_GETSERVENT_R
1196 # if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBWR
1197 # define getservent() (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getservent") : 0))
1199 # if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SBI
1200 # define getservent() (((errno = getservent_r(&PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size))) == 0 ? &PL_reentrant_buffer->_servent_struct : (errno == ERANGE ? Perl_reentrant_retry("getservent") : 0))
1202 # if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_S_SBI
1203 # 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))
1205 # if !defined(getservent) && GETSERVENT_R_PROTO == REENTRANT_PROTO_I_SD
1206 # define getservent() (((errno = getservent_r(&PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data))) == 0 ? &PL_reentrant_buffer->_servent_struct : (errno == ERANGE ? Perl_reentrant_retry("getservent") : 0))
1208 #endif /* HAS_GETSERVENT_R */
1210 #ifdef HAS_GETSPNAM_R
1212 # if !defined(getspnam) && GETSPNAM_R_PROTO == REENTRANT_PROTO_I_CSBWR
1213 # define getspnam(a) (((errno = 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 : (errno == ERANGE ? Perl_reentrant_retry("getspnam", a) : 0))
1215 # if !defined(getspnam) && GETSPNAM_R_PROTO == REENTRANT_PROTO_S_CSBI
1216 # 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))
1218 #endif /* HAS_GETSPNAM_R */
1222 # if !defined(gmtime) && GMTIME_R_PROTO == REENTRANT_PROTO_S_TS
1223 # define gmtime(a) (gmtime_r(a, &PL_reentrant_buffer->_gmtime_struct) ? &PL_reentrant_buffer->_gmtime_struct : 0)
1225 # if !defined(gmtime) && GMTIME_R_PROTO == REENTRANT_PROTO_I_TS
1226 # define gmtime(a) (((errno = gmtime_r(a, &PL_reentrant_buffer->_gmtime_struct))) == 0 ? &PL_reentrant_buffer->_gmtime_struct : 0)
1228 #endif /* HAS_GMTIME_R */
1230 #ifdef HAS_LOCALTIME_R
1232 # if !defined(localtime) && LOCALTIME_R_PROTO == REENTRANT_PROTO_S_TS
1233 # define localtime(a) (localtime_r(a, &PL_reentrant_buffer->_localtime_struct) ? &PL_reentrant_buffer->_localtime_struct : 0)
1235 # if !defined(localtime) && LOCALTIME_R_PROTO == REENTRANT_PROTO_I_TS
1236 # define localtime(a) (((errno = localtime_r(a, &PL_reentrant_buffer->_localtime_struct))) == 0 ? &PL_reentrant_buffer->_localtime_struct : 0)
1238 #endif /* HAS_LOCALTIME_R */
1242 # if !defined(random) && RANDOM_R_PROTO == REENTRANT_PROTO_I_TS
1243 # define random() (((errno = random_r(T, &PL_reentrant_buffer->_random_struct))) == 0 ? &PL_reentrant_buffer->_random_struct : 0)
1245 #endif /* HAS_RANDOM_R */
1247 #ifdef HAS_READDIR_R
1249 # if !defined(readdir) && READDIR_R_PROTO == REENTRANT_PROTO_I_TSR
1250 # define readdir(a) (((errno = readdir_r(a, PL_reentrant_buffer->_readdir_struct, &PL_reentrant_buffer->_readdir_ptr))) == 0 ? PL_reentrant_buffer->_readdir_ptr : 0)
1252 # if !defined(readdir) && READDIR_R_PROTO == REENTRANT_PROTO_I_TS
1253 # define readdir(a) (((errno = readdir_r(a, PL_reentrant_buffer->_readdir_struct))) == 0 ? PL_reentrant_buffer->_readdir_struct : 0)
1255 #endif /* HAS_READDIR_R */
1257 #ifdef HAS_READDIR64_R
1259 # if !defined(readdir64) && READDIR64_R_PROTO == REENTRANT_PROTO_I_TSR
1260 # define readdir64(a) (((errno = readdir64_r(a, PL_reentrant_buffer->_readdir64_struct, &PL_reentrant_buffer->_readdir64_ptr))) == 0 ? PL_reentrant_buffer->_readdir64_ptr : 0)
1262 # if !defined(readdir64) && READDIR64_R_PROTO == REENTRANT_PROTO_I_TS
1263 # define readdir64(a) (((errno = readdir64_r(a, PL_reentrant_buffer->_readdir64_struct))) == 0 ? PL_reentrant_buffer->_readdir64_struct : 0)
1265 #endif /* HAS_READDIR64_R */
1267 #ifdef HAS_SETGRENT_R
1269 # if !defined(setgrent) && SETGRENT_R_PROTO == REENTRANT_PROTO_I_H
1270 # define setgrent() (((errno = setgrent_r(&PL_reentrant_buffer->_grent_fptr))) == 0 ? 1 : 0)
1272 # if !defined(setgrent) && SETGRENT_R_PROTO == REENTRANT_PROTO_V_H
1273 # define setgrent() setgrent_r(&PL_reentrant_buffer->_grent_fptr)
1275 #endif /* HAS_SETGRENT_R */
1277 #ifdef HAS_SETHOSTENT_R
1279 # if !defined(sethostent) && SETHOSTENT_R_PROTO == REENTRANT_PROTO_I_ID
1280 # define sethostent(a) (((errno = sethostent_r(a, &PL_reentrant_buffer->_hostent_data))) == 0 ? 1 : 0)
1282 # if !defined(sethostent) && SETHOSTENT_R_PROTO == REENTRANT_PROTO_V_ID
1283 # define sethostent(a) sethostent_r(a, &PL_reentrant_buffer->_hostent_data)
1285 #endif /* HAS_SETHOSTENT_R */
1287 #ifdef HAS_SETLOCALE_R
1289 # if !defined(setlocale) && SETLOCALE_R_PROTO == REENTRANT_PROTO_I_ICBI
1290 # define setlocale(a, b) (((errno = setlocale_r(a, b, PL_reentrant_buffer->_setlocale_buffer, PL_reentrant_buffer->_setlocale_size))) == 0 ? PL_reentrant_buffer->_setlocale_buffer : 0)
1292 #endif /* HAS_SETLOCALE_R */
1294 #ifdef HAS_SETNETENT_R
1296 # if !defined(setnetent) && SETNETENT_R_PROTO == REENTRANT_PROTO_I_ID
1297 # define setnetent(a) (((errno = setnetent_r(a, &PL_reentrant_buffer->_netent_data))) == 0 ? 1 : 0)
1299 # if !defined(setnetent) && SETNETENT_R_PROTO == REENTRANT_PROTO_V_ID
1300 # define setnetent(a) setnetent_r(a, &PL_reentrant_buffer->_netent_data)
1302 #endif /* HAS_SETNETENT_R */
1304 #ifdef HAS_SETPROTOENT_R
1306 # if !defined(setprotoent) && SETPROTOENT_R_PROTO == REENTRANT_PROTO_I_ID
1307 # define setprotoent(a) (((errno = setprotoent_r(a, &PL_reentrant_buffer->_protoent_data))) == 0 ? 1 : 0)
1309 # if !defined(setprotoent) && SETPROTOENT_R_PROTO == REENTRANT_PROTO_V_ID
1310 # define setprotoent(a) setprotoent_r(a, &PL_reentrant_buffer->_protoent_data)
1312 #endif /* HAS_SETPROTOENT_R */
1314 #ifdef HAS_SETPWENT_R
1316 # if !defined(setpwent) && SETPWENT_R_PROTO == REENTRANT_PROTO_I_H
1317 # define setpwent() (((errno = setpwent_r(&PL_reentrant_buffer->_pwent_fptr))) == 0 ? 1 : 0)
1319 # if !defined(setpwent) && SETPWENT_R_PROTO == REENTRANT_PROTO_V_H
1320 # define setpwent() setpwent_r(&PL_reentrant_buffer->_pwent_fptr)
1322 #endif /* HAS_SETPWENT_R */
1324 #ifdef HAS_SETSERVENT_R
1326 # if !defined(setservent) && SETSERVENT_R_PROTO == REENTRANT_PROTO_I_ID
1327 # define setservent(a) (((errno = setservent_r(a, &PL_reentrant_buffer->_servent_data))) == 0 ? 1 : 0)
1329 # if !defined(setservent) && SETSERVENT_R_PROTO == REENTRANT_PROTO_V_ID
1330 # define setservent(a) setservent_r(a, &PL_reentrant_buffer->_servent_data)
1332 #endif /* HAS_SETSERVENT_R */
1334 #ifdef HAS_SRAND48_R
1336 # if !defined(srand48) && SRAND48_R_PROTO == REENTRANT_PROTO_I_LS
1337 # define srand48(a) (((errno = srand48_r(a, &PL_reentrant_buffer->_drand48_struct))) == 0 ? &PL_reentrant_buffer->_drand48_struct : 0)
1339 #endif /* HAS_SRAND48_R */
1341 #ifdef HAS_SRANDOM_R
1343 # if !defined(srandom) && SRANDOM_R_PROTO == REENTRANT_PROTO_I_TS
1344 # define srandom(a) (((errno = srandom_r(a, &PL_reentrant_buffer->_srandom_struct))) == 0 ? &PL_reentrant_buffer->_srandom_struct : 0)
1346 #endif /* HAS_SRANDOM_R */
1348 #ifdef HAS_STRERROR_R
1350 # if !defined(strerror) && STRERROR_R_PROTO == REENTRANT_PROTO_I_IBW
1351 # define strerror(a) (((errno = strerror_r(a, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size))) == 0 ? PL_reentrant_buffer->_strerror_buffer : 0)
1353 # if !defined(strerror) && STRERROR_R_PROTO == REENTRANT_PROTO_I_IBI
1354 # define strerror(a) (((errno = strerror_r(a, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size))) == 0 ? PL_reentrant_buffer->_strerror_buffer : 0)
1356 # if !defined(strerror) && STRERROR_R_PROTO == REENTRANT_PROTO_B_IBW
1357 # define strerror(a) strerror_r(a, PL_reentrant_buffer->_strerror_buffer, PL_reentrant_buffer->_strerror_size)
1359 #endif /* HAS_STRERROR_R */
1363 # if !defined(tmpnam) && TMPNAM_R_PROTO == REENTRANT_PROTO_B_B
1364 # define tmpnam(a) tmpnam_r(a)
1366 #endif /* HAS_TMPNAM_R */
1368 #ifdef HAS_TTYNAME_R
1370 # if !defined(ttyname) && TTYNAME_R_PROTO == REENTRANT_PROTO_I_IBW
1371 # define ttyname(a) (((errno = ttyname_r(a, PL_reentrant_buffer->_ttyname_buffer, PL_reentrant_buffer->_ttyname_size))) == 0 ? PL_reentrant_buffer->_ttyname_buffer : 0)
1373 # if !defined(ttyname) && TTYNAME_R_PROTO == REENTRANT_PROTO_I_IBI
1374 # define ttyname(a) (((errno = ttyname_r(a, PL_reentrant_buffer->_ttyname_buffer, PL_reentrant_buffer->_ttyname_size))) == 0 ? PL_reentrant_buffer->_ttyname_buffer : 0)
1376 # if !defined(ttyname) && TTYNAME_R_PROTO == REENTRANT_PROTO_B_IBI
1377 # define ttyname(a) ttyname_r(a, PL_reentrant_buffer->_ttyname_buffer, PL_reentrant_buffer->_ttyname_size)
1379 #endif /* HAS_TTYNAME_R */
1382 #endif /* USE_REENTRANT_API */