Commit | Line | Data |
---|---|---|
9f28af37 FC |
1 | #!/bin/sh |
2 | # | |
43dddb59 MB |
3 | # THIS IS A GENERATED FILE |
4 | # DO NOT HAND-EDIT | |
5 | # | |
6 | # See Porting/config_h.pl | |
7 | ||
34f1896b | 8 | : Set up for generating config_h.SH |
12ae5dfc | 9 | case "$CONFIG_SH" in |
776a38e3 | 10 | '') CONFIG_SH=config.sh;; |
12ae5dfc JH |
11 | esac |
12 | case "$CONFIG_H" in | |
776a38e3 | 13 | '') CONFIG_H=config.h;; |
12ae5dfc | 14 | esac |
a02608de | 15 | case $PERL_CONFIG_SH in |
8d063cd8 | 16 | '') |
12ae5dfc JH |
17 | if test -f $CONFIG_SH; then TOP=.; |
18 | elif test -f ../$CONFIG_SH; then TOP=..; | |
19 | elif test -f ../../$CONFIG_SH; then TOP=../..; | |
20 | elif test -f ../../../$CONFIG_SH; then TOP=../../..; | |
21 | elif test -f ../../../../$CONFIG_SH; then TOP=../../../..; | |
2304df62 | 22 | else |
12ae5dfc | 23 | echo "Can't find $CONFIG_SH."; exit 1 |
2304df62 | 24 | fi |
12ae5dfc | 25 | . $TOP/$CONFIG_SH |
2304df62 AD |
26 | ;; |
27 | esac | |
28 | case "$0" in | |
29 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; | |
8d063cd8 | 30 | esac |
11e2f395 RGS |
31 | case "$CONFIG_H" in |
32 | already-done) echo "Not re-extracting config.h" ;; | |
33 | *) | |
43dddb59 MB |
34 | echo "Extracting $CONFIG_H (with variable substitutions)" |
35 | sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' | |
aa86d596 | 36 | /* This file was produced by running the config_h.SH script, which |
12ae5dfc | 37 | * gets its values from $CONFIG_SH, which is generally produced by |
8d063cd8 LW |
38 | * running Configure. |
39 | * | |
40 | * Feel free to modify any of this as the need arises. Note, however, | |
1aef975c | 41 | * that running config_h.SH again will wipe out any changes you've made. |
12ae5dfc | 42 | * For a more permanent change edit $CONFIG_SH and rerun config_h.SH. |
8d063cd8 LW |
43 | */ |
44 | ||
cd95ead5 | 45 | /* Package name : $package |
dfe9444c AD |
46 | * Source directory : $src |
47 | * Configuration time: $cf_time | |
48 | * Configured by : $cf_by | |
49 | * Target system : $myuname | |
2304df62 | 50 | */ |
8d063cd8 | 51 | |
2304df62 AD |
52 | #ifndef _config_h_ |
53 | #define _config_h_ | |
54 | ||
dfe9444c AD |
55 | /* LOC_SED: |
56 | * This symbol holds the complete pathname to the sed program. | |
774d564b | 57 | */ |
dfe9444c | 58 | #define LOC_SED "$full_sed" /**/ |
774d564b | 59 | |
88fdc172 SB |
60 | /* HAS_ALARM: |
61 | * This symbol, if defined, indicates that the alarm routine is | |
62 | * available. | |
a0d0e21e | 63 | */ |
88fdc172 | 64 | #$d_alarm HAS_ALARM /**/ |
a0d0e21e | 65 | |
88fdc172 SB |
66 | /* HAS_BCMP: |
67 | * This symbol is defined if the bcmp() routine is available to | |
68 | * compare blocks of memory. | |
b4eb6b3d | 69 | */ |
88fdc172 | 70 | #$d_bcmp HAS_BCMP /**/ |
b4eb6b3d | 71 | |
88fdc172 SB |
72 | /* HAS_BCOPY: |
73 | * This symbol is defined if the bcopy() routine is available to | |
74 | * copy blocks of memory. | |
a687059c | 75 | */ |
88fdc172 | 76 | #$d_bcopy HAS_BCOPY /**/ |
a687059c | 77 | |
88fdc172 SB |
78 | /* HAS_BZERO: |
79 | * This symbol is defined if the bzero() routine is available to | |
80 | * set a memory block to 0. | |
0d3e774c | 81 | */ |
88fdc172 | 82 | #$d_bzero HAS_BZERO /**/ |
0d3e774c | 83 | |
f40bbcbf MB |
84 | /* HAS_CBRT: |
85 | * This symbol, if defined, indicates that the cbrt() (cube root) | |
86 | * function is available. | |
87 | */ | |
88 | #$d_cbrt HAS_CBRT /**/ | |
89 | ||
88fdc172 SB |
90 | /* HAS_CHOWN: |
91 | * This symbol, if defined, indicates that the chown routine is | |
92 | * available. | |
a0d0e21e | 93 | */ |
88fdc172 | 94 | #$d_chown HAS_CHOWN /**/ |
a0d0e21e | 95 | |
88fdc172 SB |
96 | /* HAS_CHROOT: |
97 | * This symbol, if defined, indicates that the chroot routine is | |
98 | * available. | |
a0d0e21e | 99 | */ |
88fdc172 | 100 | #$d_chroot HAS_CHROOT /**/ |
a0d0e21e | 101 | |
88fdc172 SB |
102 | /* HAS_CHSIZE: |
103 | * This symbol, if defined, indicates that the chsize routine is available | |
104 | * to truncate files. You might need a -lx to get this routine. | |
87250799 | 105 | */ |
88fdc172 | 106 | #$d_chsize HAS_CHSIZE /**/ |
87250799 | 107 | |
1d8eaf8c MB |
108 | /* HAS_CRYPT: |
109 | * This symbol, if defined, indicates that the crypt routine is available | |
110 | * to encrypt passwords and the like. | |
111 | */ | |
112 | #$d_crypt HAS_CRYPT /**/ | |
113 | ||
13cfc98d MB |
114 | /* HAS_CTERMID: |
115 | * This symbol, if defined, indicates that the ctermid routine is | |
116 | * available to generate filename for terminal. | |
117 | */ | |
118 | #$d_ctermid HAS_CTERMID /**/ | |
119 | ||
88fdc172 SB |
120 | /* HAS_CUSERID: |
121 | * This symbol, if defined, indicates that the cuserid routine is | |
122 | * available to get character login names. | |
13281fa4 | 123 | */ |
88fdc172 | 124 | #$d_cuserid HAS_CUSERID /**/ |
a0d0e21e | 125 | |
88fdc172 SB |
126 | /* HAS_DBL_DIG: |
127 | * This symbol, if defined, indicates that this system's <float.h> | |
128 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
129 | * of significant digits in a double precision number. If this | |
130 | * symbol is not defined, a guess of 15 is usually pretty good. | |
a0d0e21e | 131 | */ |
e5eef985 | 132 | #$d_dbl_dig HAS_DBL_DIG /**/ |
a0d0e21e | 133 | |
88fdc172 SB |
134 | /* HAS_DIFFTIME: |
135 | * This symbol, if defined, indicates that the difftime routine is | |
136 | * available. | |
a0d0e21e | 137 | */ |
88fdc172 | 138 | #$d_difftime HAS_DIFFTIME /**/ |
13281fa4 | 139 | |
88fdc172 SB |
140 | /* HAS_DLERROR: |
141 | * This symbol, if defined, indicates that the dlerror routine is | |
142 | * available to return a string describing the last error that | |
143 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
ecfc5424 | 144 | */ |
88fdc172 | 145 | #$d_dlerror HAS_DLERROR /**/ |
ecfc5424 | 146 | |
88fdc172 SB |
147 | /* HAS_DUP2: |
148 | * This symbol, if defined, indicates that the dup2 routine is | |
149 | * available to duplicate file descriptors. | |
a687059c | 150 | */ |
88fdc172 | 151 | #$d_dup2 HAS_DUP2 /**/ |
a687059c | 152 | |
88fdc172 SB |
153 | /* HAS_FCHMOD: |
154 | * This symbol, if defined, indicates that the fchmod routine is available | |
155 | * to change mode of opened files. If unavailable, use chmod(). | |
378cc40b | 156 | */ |
88fdc172 | 157 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b | 158 | |
88fdc172 SB |
159 | /* HAS_FCHOWN: |
160 | * This symbol, if defined, indicates that the fchown routine is available | |
161 | * to change ownership of opened files. If unavailable, use chown(). | |
378cc40b | 162 | */ |
88fdc172 | 163 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b | 164 | |
88fdc172 SB |
165 | /* HAS_FCNTL: |
166 | * This symbol, if defined, indicates to the C program that | |
167 | * the fcntl() function exists. | |
a687059c | 168 | */ |
88fdc172 | 169 | #$d_fcntl HAS_FCNTL /**/ |
a687059c | 170 | |
88fdc172 SB |
171 | /* HAS_FGETPOS: |
172 | * This symbol, if defined, indicates that the fgetpos routine is | |
173 | * available to get the file position indicator, similar to ftell(). | |
a0d0e21e | 174 | */ |
88fdc172 | 175 | #$d_fgetpos HAS_FGETPOS /**/ |
a0d0e21e | 176 | |
88fdc172 SB |
177 | /* HAS_FLOCK: |
178 | * This symbol, if defined, indicates that the flock routine is | |
179 | * available to do file locking. | |
a687059c | 180 | */ |
88fdc172 | 181 | #$d_flock HAS_FLOCK /**/ |
a687059c | 182 | |
88fdc172 SB |
183 | /* HAS_FORK: |
184 | * This symbol, if defined, indicates that the fork routine is | |
185 | * available. | |
a0d0e21e | 186 | */ |
88fdc172 | 187 | #$d_fork HAS_FORK /**/ |
a0d0e21e | 188 | |
88fdc172 SB |
189 | /* HAS_FSETPOS: |
190 | * This symbol, if defined, indicates that the fsetpos routine is | |
191 | * available to set the file position indicator, similar to fseek(). | |
a0d0e21e | 192 | */ |
88fdc172 | 193 | #$d_fsetpos HAS_FSETPOS /**/ |
a0d0e21e | 194 | |
88fdc172 SB |
195 | /* HAS_GETTIMEOFDAY: |
196 | * This symbol, if defined, indicates that the gettimeofday() system | |
197 | * call is available for a sub-second accuracy clock. Usually, the file | |
198 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). | |
199 | * The type "Timeval" should be used to refer to "struct timeval". | |
5f05dabc | 200 | */ |
88fdc172 SB |
201 | #$d_gettimeod HAS_GETTIMEOFDAY /**/ |
202 | #ifdef HAS_GETTIMEOFDAY | |
203 | #define Timeval struct timeval /* Structure used by gettimeofday() */ | |
204 | #endif | |
5f05dabc | 205 | |
88fdc172 SB |
206 | /* HAS_GETGROUPS: |
207 | * This symbol, if defined, indicates that the getgroups() routine is | |
208 | * available to get the list of process groups. If unavailable, multiple | |
209 | * groups are probably not supported. | |
378cc40b | 210 | */ |
88fdc172 | 211 | #$d_getgrps HAS_GETGROUPS /**/ |
378cc40b | 212 | |
88fdc172 SB |
213 | /* HAS_GETLOGIN: |
214 | * This symbol, if defined, indicates that the getlogin routine is | |
215 | * available to get the login name. | |
dfe9444c | 216 | */ |
88fdc172 | 217 | #$d_getlogin HAS_GETLOGIN /**/ |
dfe9444c | 218 | |
88fdc172 SB |
219 | /* HAS_GETPGID: |
220 | * This symbol, if defined, indicates to the C program that | |
221 | * the getpgid(pid) function is available to get the | |
222 | * process group id. | |
a0d0e21e | 223 | */ |
88fdc172 | 224 | #$d_getpgid HAS_GETPGID /**/ |
a0d0e21e | 225 | |
88fdc172 SB |
226 | /* HAS_GETPGRP2: |
227 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) | |
228 | * routine is available to get the current process group. | |
a687059c | 229 | */ |
88fdc172 | 230 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
ecfc5424 | 231 | |
88fdc172 SB |
232 | /* HAS_GETPPID: |
233 | * This symbol, if defined, indicates that the getppid routine is | |
234 | * available to get the parent process ID. | |
378cc40b | 235 | */ |
88fdc172 | 236 | #$d_getppid HAS_GETPPID /**/ |
378cc40b | 237 | |
88fdc172 SB |
238 | /* HAS_GETPRIORITY: |
239 | * This symbol, if defined, indicates that the getpriority routine is | |
240 | * available to get a process's priority. | |
0d3e774c | 241 | */ |
88fdc172 | 242 | #$d_getprior HAS_GETPRIORITY /**/ |
0d3e774c | 243 | |
88fdc172 SB |
244 | /* HAS_INET_ATON: |
245 | * This symbol, if defined, indicates to the C program that the | |
246 | * inet_aton() function is available to parse IP address "dotted-quad" | |
247 | * strings. | |
a0d0e21e | 248 | */ |
88fdc172 | 249 | #$d_inetaton HAS_INET_ATON /**/ |
a0d0e21e | 250 | |
88fdc172 SB |
251 | /* HAS_KILLPG: |
252 | * This symbol, if defined, indicates that the killpg routine is available | |
253 | * to kill process groups. If unavailable, you probably should use kill | |
254 | * with a negative process number. | |
a687059c | 255 | */ |
88fdc172 | 256 | #$d_killpg HAS_KILLPG /**/ |
a687059c | 257 | |
88fdc172 SB |
258 | /* HAS_LINK: |
259 | * This symbol, if defined, indicates that the link routine is | |
260 | * available to create hard links. | |
a0d0e21e | 261 | */ |
88fdc172 | 262 | #$d_link HAS_LINK /**/ |
a0d0e21e | 263 | |
88fdc172 SB |
264 | /* HAS_LOCALECONV: |
265 | * This symbol, if defined, indicates that the localeconv routine is | |
266 | * available for numeric and monetary formatting conventions. | |
a0d0e21e | 267 | */ |
88fdc172 | 268 | #$d_locconv HAS_LOCALECONV /**/ |
a0d0e21e | 269 | |
88fdc172 SB |
270 | /* HAS_LOCKF: |
271 | * This symbol, if defined, indicates that the lockf routine is | |
272 | * available to do file locking. | |
a0d0e21e | 273 | */ |
88fdc172 | 274 | #$d_lockf HAS_LOCKF /**/ |
a0d0e21e | 275 | |
88fdc172 SB |
276 | /* HAS_LSTAT: |
277 | * This symbol, if defined, indicates that the lstat routine is | |
278 | * available to do file stats on symbolic links. | |
378cc40b | 279 | */ |
88fdc172 | 280 | #$d_lstat HAS_LSTAT /**/ |
2304df62 | 281 | |
88fdc172 SB |
282 | /* HAS_MBLEN: |
283 | * This symbol, if defined, indicates that the mblen routine is available | |
284 | * to find the number of bytes in a multibye character. | |
9f971974 | 285 | */ |
88fdc172 | 286 | #$d_mblen HAS_MBLEN /**/ |
9f971974 | 287 | |
88fdc172 SB |
288 | /* HAS_MBSTOWCS: |
289 | * This symbol, if defined, indicates that the mbstowcs routine is | |
9cdcdad1 | 290 | * available to convert a multibyte string into a wide character string. |
9f971974 | 291 | */ |
88fdc172 | 292 | #$d_mbstowcs HAS_MBSTOWCS /**/ |
9f971974 | 293 | |
88fdc172 SB |
294 | /* HAS_MBTOWC: |
295 | * This symbol, if defined, indicates that the mbtowc routine is available | |
9cdcdad1 | 296 | * to convert a multibyte to a wide character. |
9f971974 | 297 | */ |
88fdc172 | 298 | #$d_mbtowc HAS_MBTOWC /**/ |
378cc40b | 299 | |
88fdc172 SB |
300 | /* HAS_MEMCMP: |
301 | * This symbol, if defined, indicates that the memcmp routine is available | |
302 | * to compare blocks of memory. | |
a687059c | 303 | */ |
88fdc172 | 304 | #$d_memcmp HAS_MEMCMP /**/ |
fe14fcc3 | 305 | |
88fdc172 SB |
306 | /* HAS_MEMCPY: |
307 | * This symbol, if defined, indicates that the memcpy routine is available | |
308 | * to copy blocks of memory. | |
ecfc5424 | 309 | */ |
88fdc172 | 310 | #$d_memcpy HAS_MEMCPY /**/ |
ecfc5424 | 311 | |
88fdc172 SB |
312 | /* HAS_MEMMOVE: |
313 | * This symbol, if defined, indicates that the memmove routine is available | |
314 | * to copy potentially overlapping blocks of memory. This should be used | |
315 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
316 | * own version. | |
a0d0e21e | 317 | */ |
88fdc172 | 318 | #$d_memmove HAS_MEMMOVE /**/ |
a0d0e21e | 319 | |
88fdc172 SB |
320 | /* HAS_MEMSET: |
321 | * This symbol, if defined, indicates that the memset routine is available | |
322 | * to set blocks of memory. | |
fe749a9f | 323 | */ |
88fdc172 | 324 | #$d_memset HAS_MEMSET /**/ |
fe749a9f | 325 | |
88fdc172 SB |
326 | /* HAS_MKDIR: |
327 | * This symbol, if defined, indicates that the mkdir routine is available | |
328 | * to create directories. Otherwise you should fork off a new process to | |
329 | * exec /bin/mkdir. | |
fe749a9f | 330 | */ |
88fdc172 | 331 | #$d_mkdir HAS_MKDIR /**/ |
fe749a9f | 332 | |
88fdc172 SB |
333 | /* HAS_MKFIFO: |
334 | * This symbol, if defined, indicates that the mkfifo routine is | |
335 | * available to create FIFOs. Otherwise, mknod should be able to | |
336 | * do it for you. However, if mkfifo is there, mknod might require | |
337 | * super-user privileges which mkfifo will not. | |
fe14fcc3 | 338 | */ |
88fdc172 | 339 | #$d_mkfifo HAS_MKFIFO /**/ |
a687059c | 340 | |
88fdc172 SB |
341 | /* HAS_MKTIME: |
342 | * This symbol, if defined, indicates that the mktime routine is | |
343 | * available. | |
ecfc5424 | 344 | */ |
88fdc172 | 345 | #$d_mktime HAS_MKTIME /**/ |
ecfc5424 | 346 | |
88fdc172 SB |
347 | /* HAS_MSYNC: |
348 | * This symbol, if defined, indicates that the msync system call is | |
349 | * available to synchronize a mapped file. | |
a687059c | 350 | */ |
88fdc172 | 351 | #$d_msync HAS_MSYNC /**/ |
a687059c | 352 | |
88fdc172 SB |
353 | /* HAS_MUNMAP: |
354 | * This symbol, if defined, indicates that the munmap system call is | |
355 | * available to unmap a region, usually mapped by mmap(). | |
fe14fcc3 | 356 | */ |
88fdc172 | 357 | #$d_munmap HAS_MUNMAP /**/ |
a0d0e21e | 358 | |
88fdc172 SB |
359 | /* HAS_NICE: |
360 | * This symbol, if defined, indicates that the nice routine is | |
361 | * available. | |
8e07c86e | 362 | */ |
88fdc172 | 363 | #$d_nice HAS_NICE /**/ |
8e07c86e | 364 | |
88fdc172 SB |
365 | /* HAS_PATHCONF: |
366 | * This symbol, if defined, indicates that pathconf() is available | |
367 | * to determine file-system related limits and options associated | |
368 | * with a given filename. | |
a0d0e21e | 369 | */ |
88fdc172 SB |
370 | /* HAS_FPATHCONF: |
371 | * This symbol, if defined, indicates that pathconf() is available | |
372 | * to determine file-system related limits and options associated | |
373 | * with a given open file descriptor. | |
a0d0e21e | 374 | */ |
88fdc172 SB |
375 | #$d_pathconf HAS_PATHCONF /**/ |
376 | #$d_fpathconf HAS_FPATHCONF /**/ | |
a0d0e21e | 377 | |
88fdc172 SB |
378 | /* HAS_PAUSE: |
379 | * This symbol, if defined, indicates that the pause routine is | |
380 | * available to suspend a process until a signal is received. | |
a0d0e21e | 381 | */ |
88fdc172 | 382 | #$d_pause HAS_PAUSE /**/ |
a0d0e21e | 383 | |
88fdc172 SB |
384 | /* HAS_PIPE: |
385 | * This symbol, if defined, indicates that the pipe routine is | |
386 | * available to create an inter-process channel. | |
a0d0e21e | 387 | */ |
88fdc172 | 388 | #$d_pipe HAS_PIPE /**/ |
fe14fcc3 | 389 | |
1d8eaf8c MB |
390 | /* HAS_POLL: |
391 | * This symbol, if defined, indicates that the poll routine is | |
392 | * available to poll active file descriptors. Please check I_POLL and | |
393 | * I_SYS_POLL to know which header should be included as well. | |
394 | */ | |
395 | #$d_poll HAS_POLL /**/ | |
396 | ||
88fdc172 SB |
397 | /* HAS_READDIR: |
398 | * This symbol, if defined, indicates that the readdir routine is | |
399 | * available to read directory entries. You may have to include | |
400 | * <dirent.h>. See I_DIRENT. | |
378cc40b | 401 | */ |
88fdc172 | 402 | #$d_readdir HAS_READDIR /**/ |
378cc40b | 403 | |
88fdc172 SB |
404 | /* HAS_SEEKDIR: |
405 | * This symbol, if defined, indicates that the seekdir routine is | |
406 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
378cc40b | 407 | */ |
88fdc172 | 408 | #$d_seekdir HAS_SEEKDIR /**/ |
2304df62 | 409 | |
88fdc172 SB |
410 | /* HAS_TELLDIR: |
411 | * This symbol, if defined, indicates that the telldir routine is | |
412 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
a0d0e21e | 413 | */ |
88fdc172 | 414 | #$d_telldir HAS_TELLDIR /**/ |
a0d0e21e | 415 | |
88fdc172 SB |
416 | /* HAS_REWINDDIR: |
417 | * This symbol, if defined, indicates that the rewinddir routine is | |
418 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
a0d0e21e | 419 | */ |
88fdc172 | 420 | #$d_rewinddir HAS_REWINDDIR /**/ |
a0d0e21e | 421 | |
88fdc172 SB |
422 | /* HAS_READLINK: |
423 | * This symbol, if defined, indicates that the readlink routine is | |
424 | * available to read the value of a symbolic link. | |
dfe9444c | 425 | */ |
88fdc172 | 426 | #$d_readlink HAS_READLINK /**/ |
dfe9444c | 427 | |
f40bbcbf MB |
428 | /* HAS_REGCOMP: |
429 | * This symbol, if defined, indicates that the regcomp() routine is | |
430 | * available to do some regular patern matching (usually on POSIX.2 | |
431 | * conforming systems). | |
427d28ce | 432 | */ |
f40bbcbf | 433 | #$d_regcomp HAS_REGCOMP /* POSIX.2 */ |
427d28ce | 434 | |
88fdc172 SB |
435 | /* HAS_RENAME: |
436 | * This symbol, if defined, indicates that the rename routine is available | |
437 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
438 | * trick. | |
d8f2e4cc | 439 | */ |
88fdc172 | 440 | #$d_rename HAS_RENAME /**/ |
d8f2e4cc | 441 | |
88fdc172 SB |
442 | /* HAS_RMDIR: |
443 | * This symbol, if defined, indicates that the rmdir routine is | |
444 | * available to remove directories. Otherwise you should fork off a | |
445 | * new process to exec /bin/rmdir. | |
a687059c | 446 | */ |
88fdc172 | 447 | #$d_rmdir HAS_RMDIR /**/ |
a687059c | 448 | |
88fdc172 SB |
449 | /* HAS_SELECT: |
450 | * This symbol, if defined, indicates that the select routine is | |
451 | * available to select active file descriptors. If the timeout field | |
452 | * is used, <sys/time.h> may need to be included. | |
a687059c | 453 | */ |
88fdc172 | 454 | #$d_select HAS_SELECT /**/ |
a687059c | 455 | |
88fdc172 SB |
456 | /* HAS_SETEGID: |
457 | * This symbol, if defined, indicates that the setegid routine is available | |
458 | * to change the effective gid of the current program. | |
a687059c | 459 | */ |
88fdc172 | 460 | #$d_setegid HAS_SETEGID /**/ |
a687059c | 461 | |
88fdc172 SB |
462 | /* HAS_SETEUID: |
463 | * This symbol, if defined, indicates that the seteuid routine is available | |
464 | * to change the effective uid of the current program. | |
378cc40b | 465 | */ |
88fdc172 | 466 | #$d_seteuid HAS_SETEUID /**/ |
378cc40b | 467 | |
1d8eaf8c MB |
468 | /* HAS_SETGROUPS: |
469 | * This symbol, if defined, indicates that the setgroups() routine is | |
470 | * available to set the list of process groups. If unavailable, multiple | |
471 | * groups are probably not supported. | |
472 | */ | |
473 | #$d_setgrps HAS_SETGROUPS /**/ | |
474 | ||
88fdc172 SB |
475 | /* HAS_SETLINEBUF: |
476 | * This symbol, if defined, indicates that the setlinebuf routine is | |
477 | * available to change stderr or stdout from block-buffered or unbuffered | |
478 | * to a line-buffered mode. | |
378cc40b | 479 | */ |
88fdc172 | 480 | #$d_setlinebuf HAS_SETLINEBUF /**/ |
2304df62 | 481 | |
88fdc172 SB |
482 | /* HAS_SETLOCALE: |
483 | * This symbol, if defined, indicates that the setlocale routine is | |
484 | * available to handle locale-specific ctype implementations. | |
2304df62 | 485 | */ |
88fdc172 | 486 | #$d_setlocale HAS_SETLOCALE /**/ |
fe14fcc3 | 487 | |
88fdc172 SB |
488 | /* HAS_SETPGID: |
489 | * This symbol, if defined, indicates that the setpgid(pid, gpid) | |
490 | * routine is available to set process group ID. | |
c2960299 | 491 | */ |
88fdc172 | 492 | #$d_setpgid HAS_SETPGID /**/ |
dfe9444c | 493 | |
88fdc172 SB |
494 | /* HAS_SETPGRP2: |
495 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) | |
496 | * routine is available to set the current process group. | |
16d20bd9 | 497 | */ |
88fdc172 | 498 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
dfe9444c | 499 | |
88fdc172 SB |
500 | /* HAS_SETPRIORITY: |
501 | * This symbol, if defined, indicates that the setpriority routine is | |
502 | * available to set a process's priority. | |
c2960299 | 503 | */ |
88fdc172 | 504 | #$d_setprior HAS_SETPRIORITY /**/ |
8d063cd8 | 505 | |
88fdc172 SB |
506 | /* HAS_SETREGID: |
507 | * This symbol, if defined, indicates that the setregid routine is | |
508 | * available to change the real and effective gid of the current | |
509 | * process. | |
a89d8a78 | 510 | */ |
88fdc172 SB |
511 | /* HAS_SETRESGID: |
512 | * This symbol, if defined, indicates that the setresgid routine is | |
513 | * available to change the real, effective and saved gid of the current | |
514 | * process. | |
a89d8a78 | 515 | */ |
88fdc172 SB |
516 | #$d_setregid HAS_SETREGID /**/ |
517 | #$d_setresgid HAS_SETRESGID /**/ | |
a89d8a78 | 518 | |
88fdc172 SB |
519 | /* HAS_SETREUID: |
520 | * This symbol, if defined, indicates that the setreuid routine is | |
521 | * available to change the real and effective uid of the current | |
522 | * process. | |
a0d0e21e | 523 | */ |
88fdc172 SB |
524 | /* HAS_SETRESUID: |
525 | * This symbol, if defined, indicates that the setresuid routine is | |
526 | * available to change the real, effective and saved uid of the current | |
527 | * process. | |
2e1b3b7e | 528 | */ |
88fdc172 SB |
529 | #$d_setreuid HAS_SETREUID /**/ |
530 | #$d_setresuid HAS_SETRESUID /**/ | |
2e1b3b7e | 531 | |
88fdc172 SB |
532 | /* HAS_SETRGID: |
533 | * This symbol, if defined, indicates that the setrgid routine is available | |
534 | * to change the real gid of the current program. | |
a687059c | 535 | */ |
88fdc172 | 536 | #$d_setrgid HAS_SETRGID /**/ |
e5d73d77 | 537 | |
88fdc172 SB |
538 | /* HAS_SETRUID: |
539 | * This symbol, if defined, indicates that the setruid routine is available | |
540 | * to change the real uid of the current program. | |
ecfc5424 | 541 | */ |
88fdc172 | 542 | #$d_setruid HAS_SETRUID /**/ |
ecfc5424 | 543 | |
88fdc172 SB |
544 | /* HAS_SETSID: |
545 | * This symbol, if defined, indicates that the setsid routine is | |
546 | * available to set the process group ID. | |
9f971974 | 547 | */ |
88fdc172 | 548 | #$d_setsid HAS_SETSID /**/ |
9f971974 | 549 | |
f40bbcbf MB |
550 | /* HAS_STAT: |
551 | * This symbol, if defined, indicates that the stat routine is | |
552 | * available to get file status. | |
553 | */ | |
554 | #$d_stat HAS_STAT /**/ | |
555 | ||
88fdc172 SB |
556 | /* HAS_STRCHR: |
557 | * This symbol is defined to indicate that the strchr()/strrchr() | |
558 | * functions are available for string searching. If not, try the | |
559 | * index()/rindex() pair. | |
85e6fe83 | 560 | */ |
88fdc172 SB |
561 | /* HAS_INDEX: |
562 | * This symbol is defined to indicate that the index()/rindex() | |
563 | * functions are available for string searching. | |
a0d0e21e | 564 | */ |
88fdc172 SB |
565 | #$d_strchr HAS_STRCHR /**/ |
566 | #$d_index HAS_INDEX /**/ | |
85e6fe83 | 567 | |
88fdc172 SB |
568 | /* HAS_STRCOLL: |
569 | * This symbol, if defined, indicates that the strcoll routine is | |
570 | * available to compare strings using collating information. | |
87250799 | 571 | */ |
88fdc172 | 572 | #$d_strcoll HAS_STRCOLL /**/ |
87250799 | 573 | |
88fdc172 SB |
574 | /* HAS_STRTOD: |
575 | * This symbol, if defined, indicates that the strtod routine is | |
576 | * available to provide better numeric string conversion than atof(). | |
a0d0e21e | 577 | */ |
88fdc172 | 578 | #$d_strtod HAS_STRTOD /**/ |
a0d0e21e | 579 | |
88fdc172 SB |
580 | /* HAS_STRTOL: |
581 | * This symbol, if defined, indicates that the strtol routine is available | |
582 | * to provide better numeric string conversion than atoi() and friends. | |
85e6fe83 | 583 | */ |
88fdc172 | 584 | #$d_strtol HAS_STRTOL /**/ |
d8f2e4cc | 585 | |
88fdc172 SB |
586 | /* HAS_STRXFRM: |
587 | * This symbol, if defined, indicates that the strxfrm() routine is | |
588 | * available to transform strings. | |
d8f2e4cc | 589 | */ |
88fdc172 | 590 | #$d_strxfrm HAS_STRXFRM /**/ |
d8f2e4cc | 591 | |
88fdc172 SB |
592 | /* HAS_SYMLINK: |
593 | * This symbol, if defined, indicates that the symlink routine is available | |
594 | * to create symbolic links. | |
dfe9444c | 595 | */ |
88fdc172 | 596 | #$d_symlink HAS_SYMLINK /**/ |
dfe9444c | 597 | |
88fdc172 SB |
598 | /* HAS_SYSCALL: |
599 | * This symbol, if defined, indicates that the syscall routine is | |
600 | * available to call arbitrary system calls. If undefined, that's tough. | |
a0d0e21e | 601 | */ |
88fdc172 | 602 | #$d_syscall HAS_SYSCALL /**/ |
a687059c | 603 | |
88fdc172 SB |
604 | /* HAS_SYSCONF: |
605 | * This symbol, if defined, indicates that sysconf() is available | |
606 | * to determine system related limits and options. | |
aaacdc8b | 607 | */ |
88fdc172 SB |
608 | #$d_sysconf HAS_SYSCONF /**/ |
609 | ||
610 | /* HAS_SYSTEM: | |
611 | * This symbol, if defined, indicates that the system routine is | |
612 | * available to issue a shell command. | |
aaacdc8b | 613 | */ |
88fdc172 | 614 | #$d_system HAS_SYSTEM /**/ |
aaacdc8b | 615 | |
88fdc172 SB |
616 | /* HAS_TCGETPGRP: |
617 | * This symbol, if defined, indicates that the tcgetpgrp routine is | |
618 | * available to get foreground process group ID. | |
aaacdc8b | 619 | */ |
88fdc172 | 620 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
aaacdc8b | 621 | |
88fdc172 SB |
622 | /* HAS_TCSETPGRP: |
623 | * This symbol, if defined, indicates that the tcsetpgrp routine is | |
624 | * available to set foreground process group ID. | |
a22e52b9 | 625 | */ |
88fdc172 | 626 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ |
a22e52b9 | 627 | |
88fdc172 SB |
628 | /* HAS_TRUNCATE: |
629 | * This symbol, if defined, indicates that the truncate routine is | |
630 | * available to truncate files. | |
5ff3f7a4 | 631 | */ |
88fdc172 | 632 | #$d_truncate HAS_TRUNCATE /**/ |
5ff3f7a4 | 633 | |
88fdc172 SB |
634 | /* HAS_TZNAME: |
635 | * This symbol, if defined, indicates that the tzname[] array is | |
636 | * available to access timezone names. | |
5ff3f7a4 | 637 | */ |
88fdc172 | 638 | #$d_tzname HAS_TZNAME /**/ |
5ff3f7a4 | 639 | |
88fdc172 SB |
640 | /* HAS_UMASK: |
641 | * This symbol, if defined, indicates that the umask routine is | |
642 | * available to set and get the value of the file creation mask. | |
5ff3f7a4 | 643 | */ |
88fdc172 | 644 | #$d_umask HAS_UMASK /**/ |
5ff3f7a4 | 645 | |
88fdc172 SB |
646 | /* HAS_USLEEP: |
647 | * This symbol, if defined, indicates that the usleep routine is | |
648 | * available to let the process sleep on a sub-second accuracy. | |
5ff3f7a4 | 649 | */ |
88fdc172 | 650 | #$d_usleep HAS_USLEEP /**/ |
5ff3f7a4 | 651 | |
88fdc172 SB |
652 | /* HAS_WAIT4: |
653 | * This symbol, if defined, indicates that wait4() exists. | |
8e07c86e | 654 | */ |
88fdc172 | 655 | #$d_wait4 HAS_WAIT4 /**/ |
8e07c86e | 656 | |
88fdc172 SB |
657 | /* HAS_WAITPID: |
658 | * This symbol, if defined, indicates that the waitpid routine is | |
659 | * available to wait for child process. | |
1aef975c | 660 | */ |
88fdc172 | 661 | #$d_waitpid HAS_WAITPID /**/ |
85e6fe83 | 662 | |
88fdc172 SB |
663 | /* HAS_WCSTOMBS: |
664 | * This symbol, if defined, indicates that the wcstombs routine is | |
665 | * available to convert wide character strings to multibyte strings. | |
bccf77a5 | 666 | */ |
88fdc172 | 667 | #$d_wcstombs HAS_WCSTOMBS /**/ |
dfe9444c | 668 | |
88fdc172 SB |
669 | /* HAS_WCTOMB: |
670 | * This symbol, if defined, indicates that the wctomb routine is available | |
9cdcdad1 | 671 | * to convert a wide character to a multibyte. |
bccf77a5 | 672 | */ |
88fdc172 | 673 | #$d_wctomb HAS_WCTOMB /**/ |
bccf77a5 | 674 | |
1d8eaf8c MB |
675 | /* Groups_t: |
676 | * This symbol holds the type used for the second argument to | |
677 | * getgroups() and setgroups(). Usually, this is the same as | |
678 | * gidtype (gid_t) , but sometimes it isn't. | |
679 | * It can be int, ushort, gid_t, etc... | |
680 | * It may be necessary to include <sys/types.h> to get any | |
681 | * typedef'ed information. This is only required if you have | |
682 | * getgroups() or setgroups().. | |
683 | */ | |
684 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) | |
685 | #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */ | |
686 | #endif | |
687 | ||
88fdc172 SB |
688 | /* I_ARPA_INET: |
689 | * This symbol, if defined, indicates to the C program that it should | |
690 | * include <arpa/inet.h> to get inet_addr and friends declarations. | |
ff935051 | 691 | */ |
88fdc172 | 692 | #$i_arpainet I_ARPA_INET /**/ |
ff935051 | 693 | |
88fdc172 SB |
694 | /* I_DBM: |
695 | * This symbol, if defined, indicates that <dbm.h> exists and should | |
696 | * be included. | |
ff935051 | 697 | */ |
88fdc172 SB |
698 | /* I_RPCSVC_DBM: |
699 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and | |
700 | * should be included. | |
10bc17b6 | 701 | */ |
88fdc172 SB |
702 | #$i_dbm I_DBM /**/ |
703 | #$i_rpcsvcdbm I_RPCSVC_DBM /**/ | |
10bc17b6 | 704 | |
88fdc172 SB |
705 | /* I_DLFCN: |
706 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
707 | * be included. | |
78a7c709 | 708 | */ |
88fdc172 | 709 | #$i_dlfcn I_DLFCN /**/ |
78a7c709 | 710 | |
88fdc172 SB |
711 | /* I_FCNTL: |
712 | * This manifest constant tells the C program to include <fcntl.h>. | |
c7aff470 | 713 | */ |
88fdc172 | 714 | #$i_fcntl I_FCNTL /**/ |
44b94491 | 715 | |
88fdc172 SB |
716 | /* I_FLOAT: |
717 | * This symbol, if defined, indicates to the C program that it should | |
718 | * include <float.h> to get definition of symbols like DBL_MAX or | |
719 | * DBL_MIN, i.e. machine dependent floating point values. | |
c7aff470 | 720 | */ |
88fdc172 | 721 | #$i_float I_FLOAT /**/ |
c7aff470 | 722 | |
13cfc98d MB |
723 | /* I_GDBM: |
724 | * This symbol, if defined, indicates that <gdbm.h> exists and should | |
725 | * be included. | |
726 | */ | |
727 | #$i_gdbm I_GDBM /**/ | |
728 | ||
88fdc172 SB |
729 | /* I_LIMITS: |
730 | * This symbol, if defined, indicates to the C program that it should | |
731 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
732 | * LONG_MAX, i.e. machine dependant limitations. | |
c7aff470 | 733 | */ |
88fdc172 | 734 | #$i_limits I_LIMITS /**/ |
c7aff470 | 735 | |
88fdc172 SB |
736 | /* I_LOCALE: |
737 | * This symbol, if defined, indicates to the C program that it should | |
738 | * include <locale.h>. | |
a845a0d4 | 739 | */ |
88fdc172 | 740 | #$i_locale I_LOCALE /**/ |
a845a0d4 | 741 | |
88fdc172 SB |
742 | /* I_MATH: |
743 | * This symbol, if defined, indicates to the C program that it should | |
744 | * include <math.h>. | |
a845a0d4 | 745 | */ |
88fdc172 | 746 | #$i_math I_MATH /**/ |
a845a0d4 | 747 | |
88fdc172 SB |
748 | /* I_MEMORY: |
749 | * This symbol, if defined, indicates to the C program that it should | |
750 | * include <memory.h>. | |
a845a0d4 | 751 | */ |
88fdc172 SB |
752 | #$i_memory I_MEMORY /**/ |
753 | ||
88fdc172 SB |
754 | /* I_NETINET_IN: |
755 | * This symbol, if defined, indicates to the C program that it should | |
756 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. | |
a845a0d4 | 757 | */ |
88fdc172 SB |
758 | #$i_niin I_NETINET_IN /**/ |
759 | ||
88fdc172 SB |
760 | /* I_STDDEF: |
761 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
762 | * be included. | |
a845a0d4 | 763 | */ |
88fdc172 SB |
764 | #$i_stddef I_STDDEF /**/ |
765 | ||
766 | /* I_STDLIB: | |
767 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
768 | * be included. | |
a845a0d4 | 769 | */ |
88fdc172 SB |
770 | #$i_stdlib I_STDLIB /**/ |
771 | ||
772 | /* I_STRING: | |
773 | * This symbol, if defined, indicates to the C program that it should | |
774 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
a845a0d4 | 775 | */ |
88fdc172 SB |
776 | #$i_string I_STRING /**/ |
777 | ||
778 | /* I_SYS_DIR: | |
779 | * This symbol, if defined, indicates to the C program that it should | |
780 | * include <sys/dir.h>. | |
a845a0d4 | 781 | */ |
88fdc172 SB |
782 | #$i_sysdir I_SYS_DIR /**/ |
783 | ||
784 | /* I_SYS_FILE: | |
785 | * This symbol, if defined, indicates to the C program that it should | |
786 | * include <sys/file.h> to get definition of R_OK and friends. | |
a845a0d4 | 787 | */ |
88fdc172 | 788 | #$i_sysfile I_SYS_FILE /**/ |
a845a0d4 | 789 | |
88fdc172 SB |
790 | /* I_SYS_IOCTL: |
791 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
792 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
a845a0d4 | 793 | */ |
88fdc172 SB |
794 | /* I_SYS_SOCKIO: |
795 | * This symbol, if defined, indicates the <sys/sockio.h> should be included | |
796 | * to get socket ioctl options, like SIOCATMARK. | |
a845a0d4 | 797 | */ |
88fdc172 SB |
798 | #$i_sysioctl I_SYS_IOCTL /**/ |
799 | #$i_syssockio I_SYS_SOCKIO /**/ | |
800 | ||
801 | /* I_SYS_NDIR: | |
802 | * This symbol, if defined, indicates to the C program that it should | |
803 | * include <sys/ndir.h>. | |
a845a0d4 | 804 | */ |
88fdc172 | 805 | #$i_sysndir I_SYS_NDIR /**/ |
a845a0d4 | 806 | |
88fdc172 SB |
807 | /* I_SYS_PARAM: |
808 | * This symbol, if defined, indicates to the C program that it should | |
809 | * include <sys/param.h>. | |
a845a0d4 | 810 | */ |
88fdc172 SB |
811 | #$i_sysparam I_SYS_PARAM /**/ |
812 | ||
216dac04 MB |
813 | /* I_SYS_POLL: |
814 | * This symbol, if defined, indicates that the program may include | |
815 | * <sys/poll.h>. When I_POLL is also defined, it's probably safest | |
816 | * to only include <poll.h>. | |
817 | */ | |
818 | #$i_syspoll I_SYS_POLL /**/ | |
819 | ||
88fdc172 SB |
820 | /* I_SYS_RESOURCE: |
821 | * This symbol, if defined, indicates to the C program that it should | |
822 | * include <sys/resource.h>. | |
a845a0d4 | 823 | */ |
88fdc172 | 824 | #$i_sysresrc I_SYS_RESOURCE /**/ |
a845a0d4 | 825 | |
88fdc172 SB |
826 | /* I_SYS_SELECT: |
827 | * This symbol, if defined, indicates to the C program that it should | |
828 | * include <sys/select.h> in order to get definition of struct timeval. | |
a845a0d4 | 829 | */ |
88fdc172 | 830 | #$i_sysselct I_SYS_SELECT /**/ |
a845a0d4 | 831 | |
88fdc172 | 832 | /* I_SYS_STAT: |
a845a0d4 | 833 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 834 | * include <sys/stat.h>. |
a845a0d4 | 835 | */ |
88fdc172 SB |
836 | #$i_sysstat I_SYS_STAT /**/ |
837 | ||
838 | /* I_SYS_TIMES: | |
a845a0d4 | 839 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 840 | * include <sys/times.h>. |
a845a0d4 | 841 | */ |
88fdc172 SB |
842 | #$i_systimes I_SYS_TIMES /**/ |
843 | ||
844 | /* I_SYS_TYPES: | |
a845a0d4 | 845 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 846 | * include <sys/types.h>. |
a845a0d4 | 847 | */ |
88fdc172 SB |
848 | #$i_systypes I_SYS_TYPES /**/ |
849 | ||
850 | /* I_SYS_UN: | |
851 | * This symbol, if defined, indicates to the C program that it should | |
852 | * include <sys/un.h> to get UNIX domain socket definitions. | |
a845a0d4 | 853 | */ |
88fdc172 SB |
854 | #$i_sysun I_SYS_UN /**/ |
855 | ||
856 | /* I_SYS_WAIT: | |
857 | * This symbol, if defined, indicates to the C program that it should | |
858 | * include <sys/wait.h>. | |
a845a0d4 | 859 | */ |
88fdc172 | 860 | #$i_syswait I_SYS_WAIT /**/ |
a845a0d4 | 861 | |
88fdc172 SB |
862 | /* I_UNISTD: |
863 | * This symbol, if defined, indicates to the C program that it should | |
864 | * include <unistd.h>. | |
a845a0d4 | 865 | */ |
88fdc172 | 866 | #$i_unistd I_UNISTD /**/ |
a845a0d4 | 867 | |
88fdc172 SB |
868 | /* I_UTIME: |
869 | * This symbol, if defined, indicates to the C program that it should | |
870 | * include <utime.h>. | |
a845a0d4 | 871 | */ |
88fdc172 | 872 | #$i_utime I_UTIME /**/ |
a845a0d4 | 873 | |
88fdc172 SB |
874 | /* I_VALUES: |
875 | * This symbol, if defined, indicates to the C program that it should | |
876 | * include <values.h> to get definition of symbols like MINFLOAT or | |
877 | * MAXLONG, i.e. machine dependant limitations. Probably, you | |
878 | * should use <limits.h> instead, if it is available. | |
a845a0d4 | 879 | */ |
88fdc172 SB |
880 | #$i_values I_VALUES /**/ |
881 | ||
882 | /* I_VFORK: | |
883 | * This symbol, if defined, indicates to the C program that it should | |
884 | * include vfork.h. | |
a845a0d4 | 885 | */ |
88fdc172 SB |
886 | #$i_vfork I_VFORK /**/ |
887 | ||
d03b3b00 MB |
888 | /* CAN_VAPROTO: |
889 | * This variable is defined on systems supporting prototype declaration | |
890 | * of functions with a variable number of arguments. | |
891 | */ | |
892 | /* _V: | |
893 | * This macro is used to declare function parameters in prototypes for | |
894 | * functions with a variable number of parameters. Use double parentheses. | |
895 | * For example: | |
896 | * | |
897 | * int printf _V((char *fmt, ...)); | |
898 | * | |
899 | * Remember to use the plain simple _() macro when declaring a function | |
900 | * with no variable number of arguments, since it might be possible to | |
901 | * have a non-effect _V() macro and still get prototypes via _(). | |
902 | */ | |
903 | #$vaproto CAN_VAPROTO /**/ | |
904 | #ifdef CAN_VAPROTO | |
905 | #define _V(args) args | |
906 | #else | |
907 | #define _V(args) () | |
908 | #endif | |
909 | ||
06501368 MB |
910 | /* OSNAME: |
911 | * This symbol contains the name of the operating system, as determined | |
912 | * by Configure. You shouldn't rely on it too much; the specific | |
913 | * feature tests from Configure are generally more reliable. | |
a845a0d4 | 914 | */ |
06501368 MB |
915 | /* OSVERS: |
916 | * This symbol contains the version of the operating system, as determined | |
917 | * by Configure. You shouldn't rely on it too much; the specific | |
918 | * feature tests from Configure are generally more reliable. | |
eaf812ae | 919 | */ |
06501368 MB |
920 | #define OSNAME "$osname" /**/ |
921 | #define OSVERS "$osvers" /**/ | |
eaf812ae | 922 | |
6e89a33a MB |
923 | /* MULTIARCH: |
924 | * This symbol, if defined, signifies that the build | |
925 | * process will produce some binary files that are going to be | |
926 | * used in a cross-platform environment. This is the case for | |
927 | * example with the NeXT "fat" binaries that contain executables | |
928 | * for several CPUs. | |
929 | */ | |
930 | #$multiarch MULTIARCH /**/ | |
931 | ||
b8677e3b MB |
932 | /* MEM_ALIGNBYTES: |
933 | * This symbol contains the number of bytes required to align a | |
934 | * double, or a long double when applicable. Usual values are 2, | |
588c1107 AD |
935 | * 4 and 8. The default is eight, for safety. For cross-compiling |
936 | * or multiarch support, Configure will set a minimum of 8. | |
b8677e3b | 937 | */ |
b8677e3b | 938 | #define MEM_ALIGNBYTES $alignbytes |
08c92000 | 939 | |
08c92000 MB |
940 | /* ARCHLIB: |
941 | * This variable, if defined, holds the name of the directory in | |
942 | * which the user wants to put architecture-dependent public | |
943 | * library files for $package. It is most often a local directory | |
944 | * such as /usr/local/lib. Programs using this variable must be | |
945 | * prepared to deal with filename expansion. If ARCHLIB is the | |
946 | * same as PRIVLIB, it is not defined, since presumably the | |
947 | * program already searches PRIVLIB. | |
948 | */ | |
949 | /* ARCHLIB_EXP: | |
950 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
951 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
952 | */ | |
953 | #$d_archlib ARCHLIB "$archlib" /**/ | |
954 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ | |
955 | ||
956 | /* ARCHNAME: | |
957 | * This symbol holds a string representing the architecture name. | |
958 | * It may be used to construct an architecture-dependant pathname | |
959 | * where library files may be held under a private library, for | |
960 | * instance. | |
961 | */ | |
962 | #define ARCHNAME "$archname" /**/ | |
963 | ||
08c92000 MB |
964 | /* BIN: |
965 | * This symbol holds the path of the bin directory where the package will | |
966 | * be installed. Program must be prepared to deal with ~name substitution. | |
967 | */ | |
968 | /* BIN_EXP: | |
969 | * This symbol is the filename expanded version of the BIN symbol, for | |
970 | * programs that do not want to deal with that at run-time. | |
971 | */ | |
f3f1a2d8 MB |
972 | /* PERL_RELOCATABLE_INC: |
973 | * This symbol, if defined, indicates that we'd like to relocate entries | |
974 | * in @INC at run time based on the location of the perl binary. | |
975 | */ | |
08c92000 MB |
976 | #define BIN "$bin" /**/ |
977 | #define BIN_EXP "$binexp" /**/ | |
122b9bf4 | 978 | #define PERL_RELOCATABLE_INC "$userelocatableinc" /**/ |
08c92000 | 979 | |
06501368 MB |
980 | /* INTSIZE: |
981 | * This symbol contains the value of sizeof(int) so that the C | |
982 | * preprocessor can make decisions based on it. | |
983 | */ | |
984 | /* LONGSIZE: | |
985 | * This symbol contains the value of sizeof(long) so that the C | |
986 | * preprocessor can make decisions based on it. | |
987 | */ | |
988 | /* SHORTSIZE: | |
989 | * This symbol contains the value of sizeof(short) so that the C | |
990 | * preprocessor can make decisions based on it. | |
991 | */ | |
992 | #define INTSIZE $intsize /**/ | |
993 | #define LONGSIZE $longsize /**/ | |
994 | #define SHORTSIZE $shortsize /**/ | |
995 | ||
b8677e3b MB |
996 | /* BYTEORDER: |
997 | * This symbol holds the hexadecimal constant defined in byteorder, | |
998 | * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc... | |
999 | * If the compiler supports cross-compiling or multiple-architecture | |
f05550c0 | 1000 | * binaries, use compiler-defined macros to |
b8677e3b | 1001 | * determine the byte order. |
08c92000 | 1002 | */ |
c9d1bf8e | 1003 | #if defined(MULTIARCH) |
b8677e3b MB |
1004 | # ifdef __LITTLE_ENDIAN__ |
1005 | # if LONGSIZE == 4 | |
1006 | # define BYTEORDER 0x1234 | |
1007 | # else | |
1008 | # if LONGSIZE == 8 | |
1009 | # define BYTEORDER 0x12345678 | |
1010 | # endif | |
1011 | # endif | |
1012 | # else | |
1013 | # ifdef __BIG_ENDIAN__ | |
1014 | # if LONGSIZE == 4 | |
1015 | # define BYTEORDER 0x4321 | |
1016 | # else | |
1017 | # if LONGSIZE == 8 | |
1018 | # define BYTEORDER 0x87654321 | |
1019 | # endif | |
1020 | # endif | |
1021 | # endif | |
1022 | # endif | |
b8677e3b MB |
1023 | #else |
1024 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ | |
f05550c0 | 1025 | #endif |
08c92000 | 1026 | |
b8677e3b MB |
1027 | /* CHARBITS: |
1028 | * This symbol contains the size of a char, so that the C preprocessor | |
1029 | * can make decisions based on it. | |
08c92000 | 1030 | */ |
b8677e3b | 1031 | #define CHARBITS $charbits /**/ |
08c92000 | 1032 | |
06501368 MB |
1033 | /* CAT2: |
1034 | * This macro concatenates 2 tokens together. | |
1035 | */ | |
1036 | /* STRINGIFY: | |
1037 | * This macro surrounds its token with double quotes. | |
1038 | */ | |
1039 | #if $cpp_stuff == 1 | |
1040 | #define CAT2(a,b) a/**/b | |
1041 | #define STRINGIFY(a) "a" | |
1042 | #endif | |
1043 | #if $cpp_stuff == 42 | |
1044 | #define PeRl_CaTiFy(a, b) a ## b | |
1045 | #define PeRl_StGiFy(a) #a | |
1046 | #define CAT2(a,b) PeRl_CaTiFy(a,b) | |
1047 | #define StGiFy(a) PeRl_StGiFy(a) | |
1048 | #define STRINGIFY(a) PeRl_StGiFy(a) | |
1049 | #endif | |
1050 | #if $cpp_stuff != 1 && $cpp_stuff != 42 | |
1051 | #include "Bletch: How does this C preprocessor concatenate tokens?" | |
1052 | #endif | |
1053 | ||
1054 | /* CPPSTDIN: | |
1055 | * This symbol contains the first part of the string which will invoke | |
1056 | * the C preprocessor on the standard input and produce to standard | |
1057 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also | |
1058 | * call a wrapper. See CPPRUN. | |
1059 | */ | |
1060 | /* CPPMINUS: | |
1061 | * This symbol contains the second part of the string which will invoke | |
1062 | * the C preprocessor on the standard input and produce to standard | |
1063 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus | |
1064 | * to specify standard input, otherwise the value is "". | |
1065 | */ | |
1066 | /* CPPRUN: | |
1067 | * This symbol contains the string which will invoke a C preprocessor on | |
1068 | * the standard input and produce to standard output. It needs to end | |
1069 | * with CPPLAST, after all other preprocessor flags have been specified. | |
1070 | * The main difference with CPPSTDIN is that this program will never be a | |
1071 | * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is | |
1072 | * available directly to the user. Note that it may well be different from | |
1073 | * the preprocessor used to compile the C program. | |
1074 | */ | |
1075 | /* CPPLAST: | |
1076 | * This symbol is intended to be used along with CPPRUN in the same manner | |
1077 | * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "". | |
1078 | */ | |
1079 | #define CPPSTDIN "$cppstdin" | |
1080 | #define CPPMINUS "$cppminus" | |
1081 | #define CPPRUN "$cpprun" | |
1082 | #define CPPLAST "$cpplast" | |
1083 | ||
1084 | /* HAS_ACCESS: | |
1085 | * This manifest constant lets the C program know that the access() | |
1086 | * system call is available to check for accessibility using real UID/GID. | |
1087 | * (always present on UNIX.) | |
1088 | */ | |
1089 | #$d_access HAS_ACCESS /**/ | |
1090 | ||
ed140128 AD |
1091 | /* HAS_ACCESSX: |
1092 | * This symbol, if defined, indicates that the accessx routine is | |
1093 | * available to do extended access checks. | |
eaf812ae | 1094 | */ |
ed140128 | 1095 | #$d_accessx HAS_ACCESSX /**/ |
eaf812ae | 1096 | |
08c92000 MB |
1097 | /* HAS_ASCTIME_R: |
1098 | * This symbol, if defined, indicates that the asctime_r routine | |
1099 | * is available to asctime re-entrantly. | |
1100 | */ | |
1101 | /* ASCTIME_R_PROTO: | |
1102 | * This symbol encodes the prototype of asctime_r. | |
1103 | * It is zero if d_asctime_r is undef, and one of the | |
1104 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r | |
1105 | * is defined. | |
1106 | */ | |
1107 | #$d_asctime_r HAS_ASCTIME_R /**/ | |
1108 | #define ASCTIME_R_PROTO $asctime_r_proto /**/ | |
1109 | ||
06501368 MB |
1110 | /* HASATTRIBUTE_FORMAT: |
1111 | * Can we handle GCC attribute for checking printf-style formats | |
1112 | */ | |
1113 | /* PRINTF_FORMAT_NULL_OK: | |
1114 | * Allows __printf__ format to be null when checking printf-style | |
1115 | */ | |
1116 | /* HASATTRIBUTE_MALLOC: | |
1117 | * Can we handle GCC attribute for malloc-style functions. | |
1118 | */ | |
1119 | /* HASATTRIBUTE_NONNULL: | |
1120 | * Can we handle GCC attribute for nonnull function parms. | |
1121 | */ | |
1122 | /* HASATTRIBUTE_NORETURN: | |
1123 | * Can we handle GCC attribute for functions that do not return | |
1124 | */ | |
1125 | /* HASATTRIBUTE_PURE: | |
1126 | * Can we handle GCC attribute for pure functions | |
1127 | */ | |
1128 | /* HASATTRIBUTE_UNUSED: | |
1129 | * Can we handle GCC attribute for unused variables and arguments | |
1130 | */ | |
1131 | /* HASATTRIBUTE_DEPRECATED: | |
1132 | * Can we handle GCC attribute for marking deprecated APIs | |
1133 | */ | |
1134 | /* HASATTRIBUTE_WARN_UNUSED_RESULT: | |
1135 | * Can we handle GCC attribute for warning on unused results | |
1136 | */ | |
1137 | #$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/ | |
1138 | #$d_attribute_format HASATTRIBUTE_FORMAT /**/ | |
1139 | #$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/ | |
1140 | #$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/ | |
1141 | #$d_attribute_malloc HASATTRIBUTE_MALLOC /**/ | |
1142 | #$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/ | |
1143 | #$d_attribute_pure HASATTRIBUTE_PURE /**/ | |
1144 | #$d_attribute_unused HASATTRIBUTE_UNUSED /**/ | |
1145 | #$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/ | |
1146 | ||
0e0c5f82 MB |
1147 | /* HAS_BACKTRACE: |
1148 | * This symbol, if defined, indicates that the backtrace() routine is | |
1149 | * available to get a stack trace. The <execinfo.h> header must be | |
1150 | * included to use this routine. | |
1151 | */ | |
1152 | #$d_backtrace HAS_BACKTRACE /**/ | |
1153 | ||
b8677e3b MB |
1154 | /* CASTI32: |
1155 | * This symbol is defined if the C compiler can cast negative | |
1156 | * or large floating point numbers to 32-bit ints. | |
eaf812ae | 1157 | */ |
b8677e3b MB |
1158 | #$d_casti32 CASTI32 /**/ |
1159 | ||
1160 | /* CASTNEGFLOAT: | |
1161 | * This symbol is defined if the C compiler can cast negative | |
1162 | * numbers to unsigned longs, ints and shorts. | |
fcdf39cf | 1163 | */ |
b8677e3b MB |
1164 | /* CASTFLAGS: |
1165 | * This symbol contains flags that say what difficulties the compiler | |
1166 | * has casting odd floating values to unsigned long: | |
1167 | * 0 = ok | |
1168 | * 1 = couldn't cast < 0 | |
1169 | * 2 = couldn't cast >= 0x80000000 | |
1170 | * 4 = couldn't cast in argument expression list | |
eaf812ae | 1171 | */ |
b8677e3b MB |
1172 | #$d_castneg CASTNEGFLOAT /**/ |
1173 | #define CASTFLAGS $castflags /**/ | |
eaf812ae | 1174 | |
b8677e3b MB |
1175 | /* VOID_CLOSEDIR: |
1176 | * This symbol, if defined, indicates that the closedir() routine | |
1177 | * does not return a value. | |
f244a502 | 1178 | */ |
b8677e3b | 1179 | #$d_void_closedir VOID_CLOSEDIR /**/ |
f244a502 | 1180 | |
06501368 MB |
1181 | /* HASCONST: |
1182 | * This symbol, if defined, indicates that this C compiler knows about | |
1183 | * the const type. There is no need to actually test for that symbol | |
1184 | * within your programs. The mere use of the "const" keyword will | |
1185 | * trigger the necessary tests. | |
1186 | */ | |
1187 | #$d_const HASCONST /**/ | |
1188 | #ifndef HASCONST | |
1189 | #define const | |
1190 | #endif | |
1191 | ||
08c92000 MB |
1192 | /* HAS_CRYPT_R: |
1193 | * This symbol, if defined, indicates that the crypt_r routine | |
1194 | * is available to crypt re-entrantly. | |
a845a0d4 | 1195 | */ |
08c92000 MB |
1196 | /* CRYPT_R_PROTO: |
1197 | * This symbol encodes the prototype of crypt_r. | |
1198 | * It is zero if d_crypt_r is undef, and one of the | |
1199 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r | |
1200 | * is defined. | |
a845a0d4 | 1201 | */ |
08c92000 MB |
1202 | #$d_crypt_r HAS_CRYPT_R /**/ |
1203 | #define CRYPT_R_PROTO $crypt_r_proto /**/ | |
a845a0d4 | 1204 | |
06501368 MB |
1205 | /* HAS_CSH: |
1206 | * This symbol, if defined, indicates that the C-shell exists. | |
1207 | */ | |
1208 | /* CSH: | |
1209 | * This symbol, if defined, contains the full pathname of csh. | |
1210 | */ | |
1211 | #$d_csh HAS_CSH /**/ | |
1212 | #ifdef HAS_CSH | |
1213 | #define CSH "$full_csh" /**/ | |
1214 | #endif | |
1215 | ||
eaf812ae MB |
1216 | /* HAS_CTERMID_R: |
1217 | * This symbol, if defined, indicates that the ctermid_r routine | |
1218 | * is available to ctermid re-entrantly. | |
1219 | */ | |
1220 | /* CTERMID_R_PROTO: | |
1221 | * This symbol encodes the prototype of ctermid_r. | |
1222 | * It is zero if d_ctermid_r is undef, and one of the | |
1223 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctermid_r | |
1224 | * is defined. | |
1225 | */ | |
1226 | #$d_ctermid_r HAS_CTERMID_R /**/ | |
1227 | #define CTERMID_R_PROTO $ctermid_r_proto /**/ | |
1228 | ||
08c92000 MB |
1229 | /* HAS_CTIME_R: |
1230 | * This symbol, if defined, indicates that the ctime_r routine | |
1231 | * is available to ctime re-entrantly. | |
a845a0d4 | 1232 | */ |
08c92000 MB |
1233 | /* CTIME_R_PROTO: |
1234 | * This symbol encodes the prototype of ctime_r. | |
1235 | * It is zero if d_ctime_r is undef, and one of the | |
1236 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r | |
1237 | * is defined. | |
a845a0d4 | 1238 | */ |
08c92000 MB |
1239 | #$d_ctime_r HAS_CTIME_R /**/ |
1240 | #define CTIME_R_PROTO $ctime_r_proto /**/ | |
a845a0d4 | 1241 | |
0e0c5f82 MB |
1242 | /* HAS_DLADDR: |
1243 | * This symbol, if defined, indicates that the dladdr() routine is | |
20557826 MB |
1244 | * available to query dynamic linker information for an address. |
1245 | * The <dlfcn.h> header must be included to use this routine. | |
0e0c5f82 MB |
1246 | */ |
1247 | #$d_dladdr HAS_DLADDR /**/ | |
1248 | ||
06501368 MB |
1249 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
1250 | * This symbol, if defined, indicates that the bug that prevents | |
1251 | * setuid scripts from being secure is not present in this kernel. | |
1252 | */ | |
1253 | /* DOSUID: | |
1254 | * This symbol, if defined, indicates that the C program should | |
1255 | * check the script that it is executing for setuid/setgid bits, and | |
1256 | * attempt to emulate setuid/setgid on systems that have disabled | |
1257 | * setuid #! scripts because the kernel can't do it securely. | |
1258 | * It is up to the package designer to make sure that this emulation | |
1259 | * is done securely. Among other things, it should do an fstat on | |
1260 | * the script it just opened to make sure it really is a setuid/setgid | |
1261 | * script, it should make sure the arguments passed correspond exactly | |
1262 | * to the argument on the #! line, and it should not trust any | |
1263 | * subprocesses to which it must pass the filename rather than the | |
1264 | * file descriptor of the script to be executed. | |
1265 | */ | |
1266 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ | |
1267 | #$d_dosuid DOSUID /**/ | |
1268 | ||
08c92000 MB |
1269 | /* HAS_DRAND48_R: |
1270 | * This symbol, if defined, indicates that the drand48_r routine | |
1271 | * is available to drand48 re-entrantly. | |
a845a0d4 | 1272 | */ |
08c92000 MB |
1273 | /* DRAND48_R_PROTO: |
1274 | * This symbol encodes the prototype of drand48_r. | |
1275 | * It is zero if d_drand48_r is undef, and one of the | |
1276 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r | |
1277 | * is defined. | |
1278 | */ | |
1279 | #$d_drand48_r HAS_DRAND48_R /**/ | |
1280 | #define DRAND48_R_PROTO $drand48_r_proto /**/ | |
a845a0d4 | 1281 | |
06501368 MB |
1282 | /* HAS_DRAND48_PROTO: |
1283 | * This symbol, if defined, indicates that the system provides | |
1284 | * a prototype for the drand48() function. Otherwise, it is up | |
1285 | * to the program to supply one. A good guess is | |
1286 | * extern double drand48(void); | |
1287 | */ | |
1288 | #$d_drand48proto HAS_DRAND48_PROTO /**/ | |
1289 | ||
ed140128 AD |
1290 | /* HAS_EACCESS: |
1291 | * This symbol, if defined, indicates that the eaccess routine is | |
1292 | * available to do extended access checks. | |
1293 | */ | |
1294 | #$d_eaccess HAS_EACCESS /**/ | |
1295 | ||
06501368 MB |
1296 | /* HAS_ENDGRENT: |
1297 | * This symbol, if defined, indicates that the getgrent routine is | |
1298 | * available for finalizing sequential access of the group database. | |
1299 | */ | |
1300 | #$d_endgrent HAS_ENDGRENT /**/ | |
1301 | ||
08c92000 MB |
1302 | /* HAS_ENDGRENT_R: |
1303 | * This symbol, if defined, indicates that the endgrent_r routine | |
1304 | * is available to endgrent re-entrantly. | |
88fdc172 | 1305 | */ |
08c92000 MB |
1306 | /* ENDGRENT_R_PROTO: |
1307 | * This symbol encodes the prototype of endgrent_r. | |
1308 | * It is zero if d_endgrent_r is undef, and one of the | |
1309 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r | |
1310 | * is defined. | |
88fdc172 | 1311 | */ |
08c92000 MB |
1312 | #$d_endgrent_r HAS_ENDGRENT_R /**/ |
1313 | #define ENDGRENT_R_PROTO $endgrent_r_proto /**/ | |
1314 | ||
06501368 MB |
1315 | /* HAS_ENDHOSTENT: |
1316 | * This symbol, if defined, indicates that the endhostent() routine is | |
1317 | * available to close whatever was being used for host queries. | |
1318 | */ | |
1319 | #$d_endhent HAS_ENDHOSTENT /**/ | |
1320 | ||
eaf812ae MB |
1321 | /* HAS_ENDHOSTENT_R: |
1322 | * This symbol, if defined, indicates that the endhostent_r routine | |
1323 | * is available to endhostent re-entrantly. | |
1324 | */ | |
1325 | /* ENDHOSTENT_R_PROTO: | |
1326 | * This symbol encodes the prototype of endhostent_r. | |
1327 | * It is zero if d_endhostent_r is undef, and one of the | |
1328 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endhostent_r | |
1329 | * is defined. | |
1330 | */ | |
1331 | #$d_endhostent_r HAS_ENDHOSTENT_R /**/ | |
1332 | #define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/ | |
1333 | ||
06501368 MB |
1334 | /* HAS_ENDNETENT: |
1335 | * This symbol, if defined, indicates that the endnetent() routine is | |
1336 | * available to close whatever was being used for network queries. | |
1337 | */ | |
1338 | #$d_endnent HAS_ENDNETENT /**/ | |
1339 | ||
eaf812ae MB |
1340 | /* HAS_ENDNETENT_R: |
1341 | * This symbol, if defined, indicates that the endnetent_r routine | |
1342 | * is available to endnetent re-entrantly. | |
1343 | */ | |
1344 | /* ENDNETENT_R_PROTO: | |
1345 | * This symbol encodes the prototype of endnetent_r. | |
1346 | * It is zero if d_endnetent_r is undef, and one of the | |
1347 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r | |
1348 | * is defined. | |
1349 | */ | |
1350 | #$d_endnetent_r HAS_ENDNETENT_R /**/ | |
1351 | #define ENDNETENT_R_PROTO $endnetent_r_proto /**/ | |
1352 | ||
06501368 MB |
1353 | /* HAS_ENDPROTOENT: |
1354 | * This symbol, if defined, indicates that the endprotoent() routine is | |
1355 | * available to close whatever was being used for protocol queries. | |
1356 | */ | |
1357 | #$d_endpent HAS_ENDPROTOENT /**/ | |
1358 | ||
eaf812ae MB |
1359 | /* HAS_ENDPROTOENT_R: |
1360 | * This symbol, if defined, indicates that the endprotoent_r routine | |
1361 | * is available to endprotoent re-entrantly. | |
1362 | */ | |
1363 | /* ENDPROTOENT_R_PROTO: | |
1364 | * This symbol encodes the prototype of endprotoent_r. | |
1365 | * It is zero if d_endprotoent_r is undef, and one of the | |
1366 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endprotoent_r | |
1367 | * is defined. | |
1368 | */ | |
1369 | #$d_endprotoent_r HAS_ENDPROTOENT_R /**/ | |
1370 | #define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/ | |
1371 | ||
06501368 MB |
1372 | /* HAS_ENDPWENT: |
1373 | * This symbol, if defined, indicates that the getgrent routine is | |
1374 | * available for finalizing sequential access of the passwd database. | |
1375 | */ | |
1376 | #$d_endpwent HAS_ENDPWENT /**/ | |
1377 | ||
08c92000 MB |
1378 | /* HAS_ENDPWENT_R: |
1379 | * This symbol, if defined, indicates that the endpwent_r routine | |
1380 | * is available to endpwent re-entrantly. | |
88fdc172 | 1381 | */ |
08c92000 MB |
1382 | /* ENDPWENT_R_PROTO: |
1383 | * This symbol encodes the prototype of endpwent_r. | |
1384 | * It is zero if d_endpwent_r is undef, and one of the | |
1385 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r | |
1386 | * is defined. | |
88fdc172 | 1387 | */ |
08c92000 MB |
1388 | #$d_endpwent_r HAS_ENDPWENT_R /**/ |
1389 | #define ENDPWENT_R_PROTO $endpwent_r_proto /**/ | |
1390 | ||
06501368 MB |
1391 | /* HAS_ENDSERVENT: |
1392 | * This symbol, if defined, indicates that the endservent() routine is | |
1393 | * available to close whatever was being used for service queries. | |
1394 | */ | |
1395 | #$d_endsent HAS_ENDSERVENT /**/ | |
1396 | ||
1397 | /* HAS_ENDSERVENT_R: | |
1398 | * This symbol, if defined, indicates that the endservent_r routine | |
1399 | * is available to endservent re-entrantly. | |
1400 | */ | |
1401 | /* ENDSERVENT_R_PROTO: | |
eaf812ae MB |
1402 | * This symbol encodes the prototype of endservent_r. |
1403 | * It is zero if d_endservent_r is undef, and one of the | |
1404 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endservent_r | |
1405 | * is defined. | |
1406 | */ | |
1407 | #$d_endservent_r HAS_ENDSERVENT_R /**/ | |
1408 | #define ENDSERVENT_R_PROTO $endservent_r_proto /**/ | |
1409 | ||
b8677e3b MB |
1410 | /* HAS_FD_SET: |
1411 | * This symbol, when defined, indicates presence of the fd_set typedef | |
1412 | * in <sys/types.h> | |
a845a0d4 | 1413 | */ |
b8677e3b | 1414 | #$d_fd_set HAS_FD_SET /**/ |
a845a0d4 | 1415 | |
06501368 MB |
1416 | /* FLEXFILENAMES: |
1417 | * This symbol, if defined, indicates that the system supports filenames | |
1418 | * longer than 14 characters. | |
1419 | */ | |
1420 | #$d_flexfnam FLEXFILENAMES /**/ | |
1421 | ||
b8677e3b MB |
1422 | /* Gconvert: |
1423 | * This preprocessor macro is defined to convert a floating point | |
1424 | * number to a string without a trailing decimal point. This | |
1425 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1426 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1427 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1428 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1429 | * macro are: value, number of digits, whether trailing zeros should | |
1430 | * be retained, and the output buffer. | |
1431 | * The usual values are: | |
1432 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1433 | * d_Gconvert='gcvt((x),(n),(b))' | |
1434 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1435 | * The last two assume trailing zeros should not be kept. | |
a845a0d4 | 1436 | */ |
b8677e3b | 1437 | #define Gconvert(x,n,t,b) $d_Gconvert |
a845a0d4 | 1438 | |
06501368 MB |
1439 | /* HAS_GETGRENT: |
1440 | * This symbol, if defined, indicates that the getgrent routine is | |
1441 | * available for sequential access of the group database. | |
1442 | */ | |
1443 | #$d_getgrent HAS_GETGRENT /**/ | |
1444 | ||
08c92000 MB |
1445 | /* HAS_GETGRENT_R: |
1446 | * This symbol, if defined, indicates that the getgrent_r routine | |
1447 | * is available to getgrent re-entrantly. | |
a845a0d4 | 1448 | */ |
08c92000 MB |
1449 | /* GETGRENT_R_PROTO: |
1450 | * This symbol encodes the prototype of getgrent_r. | |
1451 | * It is zero if d_getgrent_r is undef, and one of the | |
1452 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r | |
1453 | * is defined. | |
1454 | */ | |
1455 | #$d_getgrent_r HAS_GETGRENT_R /**/ | |
1456 | #define GETGRENT_R_PROTO $getgrent_r_proto /**/ | |
a845a0d4 | 1457 | |
08c92000 MB |
1458 | /* HAS_GETGRGID_R: |
1459 | * This symbol, if defined, indicates that the getgrgid_r routine | |
1460 | * is available to getgrgid re-entrantly. | |
a845a0d4 | 1461 | */ |
08c92000 MB |
1462 | /* GETGRGID_R_PROTO: |
1463 | * This symbol encodes the prototype of getgrgid_r. | |
1464 | * It is zero if d_getgrgid_r is undef, and one of the | |
1465 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r | |
1466 | * is defined. | |
a845a0d4 | 1467 | */ |
08c92000 MB |
1468 | #$d_getgrgid_r HAS_GETGRGID_R /**/ |
1469 | #define GETGRGID_R_PROTO $getgrgid_r_proto /**/ | |
a845a0d4 | 1470 | |
08c92000 MB |
1471 | /* HAS_GETGRNAM_R: |
1472 | * This symbol, if defined, indicates that the getgrnam_r routine | |
1473 | * is available to getgrnam re-entrantly. | |
a845a0d4 | 1474 | */ |
08c92000 MB |
1475 | /* GETGRNAM_R_PROTO: |
1476 | * This symbol encodes the prototype of getgrnam_r. | |
1477 | * It is zero if d_getgrnam_r is undef, and one of the | |
1478 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r | |
1479 | * is defined. | |
a845a0d4 | 1480 | */ |
08c92000 MB |
1481 | #$d_getgrnam_r HAS_GETGRNAM_R /**/ |
1482 | #define GETGRNAM_R_PROTO $getgrnam_r_proto /**/ | |
a845a0d4 | 1483 | |
06501368 MB |
1484 | /* HAS_GETHOSTBYADDR: |
1485 | * This symbol, if defined, indicates that the gethostbyaddr() routine is | |
1486 | * available to look up hosts by their IP addresses. | |
1487 | */ | |
1488 | #$d_gethbyaddr HAS_GETHOSTBYADDR /**/ | |
1489 | ||
1490 | /* HAS_GETHOSTBYNAME: | |
1491 | * This symbol, if defined, indicates that the gethostbyname() routine is | |
1492 | * available to look up host names in some data base or other. | |
1493 | */ | |
1494 | #$d_gethbyname HAS_GETHOSTBYNAME /**/ | |
1495 | ||
1496 | /* HAS_GETHOSTENT: | |
1497 | * This symbol, if defined, indicates that the gethostent() routine is | |
1498 | * available to look up host names in some data base or another. | |
1499 | */ | |
1500 | #$d_gethent HAS_GETHOSTENT /**/ | |
1501 | ||
1502 | /* HAS_GETHOSTNAME: | |
1503 | * This symbol, if defined, indicates that the C program may use the | |
1504 | * gethostname() routine to derive the host name. See also HAS_UNAME | |
1505 | * and PHOSTNAME. | |
1506 | */ | |
1507 | /* HAS_UNAME: | |
1508 | * This symbol, if defined, indicates that the C program may use the | |
1509 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
1510 | * and PHOSTNAME. | |
1511 | */ | |
1512 | /* PHOSTNAME: | |
1513 | * This symbol, if defined, indicates the command to feed to the | |
1514 | * popen() routine to derive the host name. See also HAS_GETHOSTNAME | |
1515 | * and HAS_UNAME. Note that the command uses a fully qualified path, | |
1516 | * so that it is safe even if used by a process with super-user | |
1517 | * privileges. | |
1518 | */ | |
1519 | /* HAS_PHOSTNAME: | |
1520 | * This symbol, if defined, indicates that the C program may use the | |
1521 | * contents of PHOSTNAME as a command to feed to the popen() routine | |
1522 | * to derive the host name. | |
1523 | */ | |
1524 | #$d_gethname HAS_GETHOSTNAME /**/ | |
1525 | #$d_uname HAS_UNAME /**/ | |
1526 | #$d_phostname HAS_PHOSTNAME /**/ | |
1527 | #ifdef HAS_PHOSTNAME | |
1528 | #define PHOSTNAME "$aphostname" /* How to get the host name */ | |
1529 | #endif | |
1530 | ||
eaf812ae MB |
1531 | /* HAS_GETHOSTBYADDR_R: |
1532 | * This symbol, if defined, indicates that the gethostbyaddr_r routine | |
1533 | * is available to gethostbyaddr re-entrantly. | |
a845a0d4 | 1534 | */ |
eaf812ae MB |
1535 | /* GETHOSTBYADDR_R_PROTO: |
1536 | * This symbol encodes the prototype of gethostbyaddr_r. | |
1537 | * It is zero if d_gethostbyaddr_r is undef, and one of the | |
1538 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyaddr_r | |
1539 | * is defined. | |
a845a0d4 | 1540 | */ |
eaf812ae MB |
1541 | #$d_gethostbyaddr_r HAS_GETHOSTBYADDR_R /**/ |
1542 | #define GETHOSTBYADDR_R_PROTO $gethostbyaddr_r_proto /**/ | |
08c92000 | 1543 | |
eaf812ae MB |
1544 | /* HAS_GETHOSTBYNAME_R: |
1545 | * This symbol, if defined, indicates that the gethostbyname_r routine | |
1546 | * is available to gethostbyname re-entrantly. | |
a845a0d4 | 1547 | */ |
eaf812ae MB |
1548 | /* GETHOSTBYNAME_R_PROTO: |
1549 | * This symbol encodes the prototype of gethostbyname_r. | |
1550 | * It is zero if d_gethostbyname_r is undef, and one of the | |
1551 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyname_r | |
08c92000 | 1552 | * is defined. |
a845a0d4 | 1553 | */ |
eaf812ae MB |
1554 | #$d_gethostbyname_r HAS_GETHOSTBYNAME_R /**/ |
1555 | #define GETHOSTBYNAME_R_PROTO $gethostbyname_r_proto /**/ | |
1556 | ||
1557 | /* HAS_GETHOSTENT_R: | |
1558 | * This symbol, if defined, indicates that the gethostent_r routine | |
1559 | * is available to gethostent re-entrantly. | |
1560 | */ | |
1561 | /* GETHOSTENT_R_PROTO: | |
1562 | * This symbol encodes the prototype of gethostent_r. | |
1563 | * It is zero if d_gethostent_r is undef, and one of the | |
1564 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostent_r | |
1565 | * is defined. | |
1566 | */ | |
1567 | #$d_gethostent_r HAS_GETHOSTENT_R /**/ | |
1568 | #define GETHOSTENT_R_PROTO $gethostent_r_proto /**/ | |
1569 | ||
06501368 MB |
1570 | /* HAS_GETHOST_PROTOS: |
1571 | * This symbol, if defined, indicates that <netdb.h> includes | |
1572 | * prototypes for gethostent(), gethostbyname(), and | |
1573 | * gethostbyaddr(). Otherwise, it is up to the program to guess | |
1574 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1575 | */ | |
1576 | #$d_gethostprotos HAS_GETHOST_PROTOS /**/ | |
1577 | ||
eaf812ae MB |
1578 | /* HAS_GETLOGIN_R: |
1579 | * This symbol, if defined, indicates that the getlogin_r routine | |
1580 | * is available to getlogin re-entrantly. | |
1581 | */ | |
1582 | /* GETLOGIN_R_PROTO: | |
1583 | * This symbol encodes the prototype of getlogin_r. | |
1584 | * It is zero if d_getlogin_r is undef, and one of the | |
1585 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r | |
1586 | * is defined. | |
1587 | */ | |
1588 | #$d_getlogin_r HAS_GETLOGIN_R /**/ | |
1589 | #define GETLOGIN_R_PROTO $getlogin_r_proto /**/ | |
1590 | ||
06501368 MB |
1591 | /* HAS_GETNETBYADDR: |
1592 | * This symbol, if defined, indicates that the getnetbyaddr() routine is | |
1593 | * available to look up networks by their IP addresses. | |
1594 | */ | |
1595 | #$d_getnbyaddr HAS_GETNETBYADDR /**/ | |
1596 | ||
1597 | /* HAS_GETNETBYNAME: | |
1598 | * This symbol, if defined, indicates that the getnetbyname() routine is | |
1599 | * available to look up networks by their names. | |
1600 | */ | |
1601 | #$d_getnbyname HAS_GETNETBYNAME /**/ | |
1602 | ||
1603 | /* HAS_GETNETENT: | |
1604 | * This symbol, if defined, indicates that the getnetent() routine is | |
1605 | * available to look up network names in some data base or another. | |
1606 | */ | |
1607 | #$d_getnent HAS_GETNETENT /**/ | |
1608 | ||
eaf812ae MB |
1609 | /* HAS_GETNETBYADDR_R: |
1610 | * This symbol, if defined, indicates that the getnetbyaddr_r routine | |
1611 | * is available to getnetbyaddr re-entrantly. | |
1612 | */ | |
1613 | /* GETNETBYADDR_R_PROTO: | |
1614 | * This symbol encodes the prototype of getnetbyaddr_r. | |
1615 | * It is zero if d_getnetbyaddr_r is undef, and one of the | |
1616 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyaddr_r | |
1617 | * is defined. | |
1618 | */ | |
1619 | #$d_getnetbyaddr_r HAS_GETNETBYADDR_R /**/ | |
1620 | #define GETNETBYADDR_R_PROTO $getnetbyaddr_r_proto /**/ | |
1621 | ||
1622 | /* HAS_GETNETBYNAME_R: | |
1623 | * This symbol, if defined, indicates that the getnetbyname_r routine | |
1624 | * is available to getnetbyname re-entrantly. | |
1625 | */ | |
1626 | /* GETNETBYNAME_R_PROTO: | |
1627 | * This symbol encodes the prototype of getnetbyname_r. | |
1628 | * It is zero if d_getnetbyname_r is undef, and one of the | |
1629 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyname_r | |
1630 | * is defined. | |
1631 | */ | |
1632 | #$d_getnetbyname_r HAS_GETNETBYNAME_R /**/ | |
1633 | #define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/ | |
1634 | ||
1635 | /* HAS_GETNETENT_R: | |
1636 | * This symbol, if defined, indicates that the getnetent_r routine | |
1637 | * is available to getnetent re-entrantly. | |
1638 | */ | |
1639 | /* GETNETENT_R_PROTO: | |
1640 | * This symbol encodes the prototype of getnetent_r. | |
1641 | * It is zero if d_getnetent_r is undef, and one of the | |
1642 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetent_r | |
1643 | * is defined. | |
1644 | */ | |
1645 | #$d_getnetent_r HAS_GETNETENT_R /**/ | |
1646 | #define GETNETENT_R_PROTO $getnetent_r_proto /**/ | |
1647 | ||
06501368 MB |
1648 | /* HAS_GETNET_PROTOS: |
1649 | * This symbol, if defined, indicates that <netdb.h> includes | |
1650 | * prototypes for getnetent(), getnetbyname(), and | |
1651 | * getnetbyaddr(). Otherwise, it is up to the program to guess | |
1652 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1653 | */ | |
1654 | #$d_getnetprotos HAS_GETNET_PROTOS /**/ | |
1655 | ||
b8677e3b MB |
1656 | /* HAS_GETPAGESIZE: |
1657 | * This symbol, if defined, indicates that the getpagesize system call | |
1658 | * is available to get system page size, which is the granularity of | |
1659 | * many memory management calls. | |
a845a0d4 | 1660 | */ |
b8677e3b | 1661 | #$d_getpagsz HAS_GETPAGESIZE /**/ |
a845a0d4 | 1662 | |
06501368 MB |
1663 | /* HAS_GETPROTOENT: |
1664 | * This symbol, if defined, indicates that the getprotoent() routine is | |
1665 | * available to look up protocols in some data base or another. | |
1666 | */ | |
1667 | #$d_getpent HAS_GETPROTOENT /**/ | |
1668 | ||
1669 | /* HAS_GETPGRP: | |
1670 | * This symbol, if defined, indicates that the getpgrp routine is | |
1671 | * available to get the current process group. | |
1672 | */ | |
1673 | /* USE_BSD_GETPGRP: | |
1674 | * This symbol, if defined, indicates that getpgrp needs one | |
1675 | * arguments whereas USG one needs none. | |
1676 | */ | |
1677 | #$d_getpgrp HAS_GETPGRP /**/ | |
1678 | #$d_bsdgetpgrp USE_BSD_GETPGRP /**/ | |
1679 | ||
1680 | /* HAS_GETPROTOBYNAME: | |
1681 | * This symbol, if defined, indicates that the getprotobyname() | |
1682 | * routine is available to look up protocols by their name. | |
1683 | */ | |
1684 | /* HAS_GETPROTOBYNUMBER: | |
1685 | * This symbol, if defined, indicates that the getprotobynumber() | |
1686 | * routine is available to look up protocols by their number. | |
1687 | */ | |
1688 | #$d_getpbyname HAS_GETPROTOBYNAME /**/ | |
1689 | #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/ | |
1690 | ||
eaf812ae MB |
1691 | /* HAS_GETPROTOBYNAME_R: |
1692 | * This symbol, if defined, indicates that the getprotobyname_r routine | |
1693 | * is available to getprotobyname re-entrantly. | |
1694 | */ | |
1695 | /* GETPROTOBYNAME_R_PROTO: | |
1696 | * This symbol encodes the prototype of getprotobyname_r. | |
1697 | * It is zero if d_getprotobyname_r is undef, and one of the | |
1698 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobyname_r | |
1699 | * is defined. | |
1700 | */ | |
1701 | #$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/ | |
1702 | #define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/ | |
1703 | ||
1704 | /* HAS_GETPROTOBYNUMBER_R: | |
1705 | * This symbol, if defined, indicates that the getprotobynumber_r routine | |
1706 | * is available to getprotobynumber re-entrantly. | |
1707 | */ | |
1708 | /* GETPROTOBYNUMBER_R_PROTO: | |
1709 | * This symbol encodes the prototype of getprotobynumber_r. | |
1710 | * It is zero if d_getprotobynumber_r is undef, and one of the | |
1711 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobynumber_r | |
1712 | * is defined. | |
1713 | */ | |
1714 | #$d_getprotobynumber_r HAS_GETPROTOBYNUMBER_R /**/ | |
1715 | #define GETPROTOBYNUMBER_R_PROTO $getprotobynumber_r_proto /**/ | |
1716 | ||
1717 | /* HAS_GETPROTOENT_R: | |
1718 | * This symbol, if defined, indicates that the getprotoent_r routine | |
1719 | * is available to getprotoent re-entrantly. | |
1720 | */ | |
1721 | /* GETPROTOENT_R_PROTO: | |
1722 | * This symbol encodes the prototype of getprotoent_r. | |
1723 | * It is zero if d_getprotoent_r is undef, and one of the | |
1724 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotoent_r | |
1725 | * is defined. | |
1726 | */ | |
1727 | #$d_getprotoent_r HAS_GETPROTOENT_R /**/ | |
1728 | #define GETPROTOENT_R_PROTO $getprotoent_r_proto /**/ | |
1729 | ||
06501368 MB |
1730 | /* HAS_GETPROTO_PROTOS: |
1731 | * This symbol, if defined, indicates that <netdb.h> includes | |
1732 | * prototypes for getprotoent(), getprotobyname(), and | |
1733 | * getprotobyaddr(). Otherwise, it is up to the program to guess | |
1734 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1735 | */ | |
1736 | #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/ | |
1737 | ||
1738 | /* HAS_GETPWENT: | |
1739 | * This symbol, if defined, indicates that the getpwent routine is | |
1740 | * available for sequential access of the passwd database. | |
1741 | * If this is not available, the older getpw() function may be available. | |
1742 | */ | |
1743 | #$d_getpwent HAS_GETPWENT /**/ | |
1744 | ||
08c92000 MB |
1745 | /* HAS_GETPWENT_R: |
1746 | * This symbol, if defined, indicates that the getpwent_r routine | |
1747 | * is available to getpwent re-entrantly. | |
a845a0d4 | 1748 | */ |
08c92000 MB |
1749 | /* GETPWENT_R_PROTO: |
1750 | * This symbol encodes the prototype of getpwent_r. | |
1751 | * It is zero if d_getpwent_r is undef, and one of the | |
1752 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r | |
1753 | * is defined. | |
a845a0d4 | 1754 | */ |
08c92000 MB |
1755 | #$d_getpwent_r HAS_GETPWENT_R /**/ |
1756 | #define GETPWENT_R_PROTO $getpwent_r_proto /**/ | |
a845a0d4 | 1757 | |
08c92000 MB |
1758 | /* HAS_GETPWNAM_R: |
1759 | * This symbol, if defined, indicates that the getpwnam_r routine | |
1760 | * is available to getpwnam re-entrantly. | |
a845a0d4 | 1761 | */ |
08c92000 MB |
1762 | /* GETPWNAM_R_PROTO: |
1763 | * This symbol encodes the prototype of getpwnam_r. | |
1764 | * It is zero if d_getpwnam_r is undef, and one of the | |
1765 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r | |
1766 | * is defined. | |
a845a0d4 | 1767 | */ |
08c92000 MB |
1768 | #$d_getpwnam_r HAS_GETPWNAM_R /**/ |
1769 | #define GETPWNAM_R_PROTO $getpwnam_r_proto /**/ | |
a845a0d4 | 1770 | |
08c92000 MB |
1771 | /* HAS_GETPWUID_R: |
1772 | * This symbol, if defined, indicates that the getpwuid_r routine | |
1773 | * is available to getpwuid re-entrantly. | |
10bc17b6 | 1774 | */ |
08c92000 MB |
1775 | /* GETPWUID_R_PROTO: |
1776 | * This symbol encodes the prototype of getpwuid_r. | |
1777 | * It is zero if d_getpwuid_r is undef, and one of the | |
1778 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r | |
1779 | * is defined. | |
a845a0d4 | 1780 | */ |
08c92000 MB |
1781 | #$d_getpwuid_r HAS_GETPWUID_R /**/ |
1782 | #define GETPWUID_R_PROTO $getpwuid_r_proto /**/ | |
a845a0d4 | 1783 | |
06501368 MB |
1784 | /* HAS_GETSERVENT: |
1785 | * This symbol, if defined, indicates that the getservent() routine is | |
1786 | * available to look up network services in some data base or another. | |
1787 | */ | |
1788 | #$d_getsent HAS_GETSERVENT /**/ | |
1789 | ||
eaf812ae MB |
1790 | /* HAS_GETSERVBYNAME_R: |
1791 | * This symbol, if defined, indicates that the getservbyname_r routine | |
1792 | * is available to getservbyname re-entrantly. | |
1793 | */ | |
1794 | /* GETSERVBYNAME_R_PROTO: | |
1795 | * This symbol encodes the prototype of getservbyname_r. | |
1796 | * It is zero if d_getservbyname_r is undef, and one of the | |
1797 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyname_r | |
1798 | * is defined. | |
1799 | */ | |
1800 | #$d_getservbyname_r HAS_GETSERVBYNAME_R /**/ | |
1801 | #define GETSERVBYNAME_R_PROTO $getservbyname_r_proto /**/ | |
1802 | ||
1803 | /* HAS_GETSERVBYPORT_R: | |
1804 | * This symbol, if defined, indicates that the getservbyport_r routine | |
1805 | * is available to getservbyport re-entrantly. | |
1806 | */ | |
1807 | /* GETSERVBYPORT_R_PROTO: | |
1808 | * This symbol encodes the prototype of getservbyport_r. | |
1809 | * It is zero if d_getservbyport_r is undef, and one of the | |
1810 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyport_r | |
1811 | * is defined. | |
1812 | */ | |
1813 | #$d_getservbyport_r HAS_GETSERVBYPORT_R /**/ | |
1814 | #define GETSERVBYPORT_R_PROTO $getservbyport_r_proto /**/ | |
1815 | ||
1816 | /* HAS_GETSERVENT_R: | |
1817 | * This symbol, if defined, indicates that the getservent_r routine | |
1818 | * is available to getservent re-entrantly. | |
1819 | */ | |
1820 | /* GETSERVENT_R_PROTO: | |
1821 | * This symbol encodes the prototype of getservent_r. | |
1822 | * It is zero if d_getservent_r is undef, and one of the | |
1823 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservent_r | |
1824 | * is defined. | |
1825 | */ | |
1826 | #$d_getservent_r HAS_GETSERVENT_R /**/ | |
1827 | #define GETSERVENT_R_PROTO $getservent_r_proto /**/ | |
1828 | ||
06501368 MB |
1829 | /* HAS_GETSERV_PROTOS: |
1830 | * This symbol, if defined, indicates that <netdb.h> includes | |
1831 | * prototypes for getservent(), getservbyname(), and | |
1832 | * getservbyaddr(). Otherwise, it is up to the program to guess | |
1833 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1834 | */ | |
1835 | #$d_getservprotos HAS_GETSERV_PROTOS /**/ | |
1836 | ||
08c92000 MB |
1837 | /* HAS_GETSPNAM_R: |
1838 | * This symbol, if defined, indicates that the getspnam_r routine | |
1839 | * is available to getspnam re-entrantly. | |
a845a0d4 | 1840 | */ |
08c92000 MB |
1841 | /* GETSPNAM_R_PROTO: |
1842 | * This symbol encodes the prototype of getspnam_r. | |
1843 | * It is zero if d_getspnam_r is undef, and one of the | |
1844 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r | |
1845 | * is defined. | |
a845a0d4 | 1846 | */ |
08c92000 MB |
1847 | #$d_getspnam_r HAS_GETSPNAM_R /**/ |
1848 | #define GETSPNAM_R_PROTO $getspnam_r_proto /**/ | |
a845a0d4 | 1849 | |
06501368 MB |
1850 | /* HAS_GETSERVBYNAME: |
1851 | * This symbol, if defined, indicates that the getservbyname() | |
1852 | * routine is available to look up services by their name. | |
1853 | */ | |
1854 | /* HAS_GETSERVBYPORT: | |
1855 | * This symbol, if defined, indicates that the getservbyport() | |
1856 | * routine is available to look up services by their port. | |
1857 | */ | |
1858 | #$d_getsbyname HAS_GETSERVBYNAME /**/ | |
1859 | #$d_getsbyport HAS_GETSERVBYPORT /**/ | |
1860 | ||
08c92000 MB |
1861 | /* HAS_GMTIME_R: |
1862 | * This symbol, if defined, indicates that the gmtime_r routine | |
1863 | * is available to gmtime re-entrantly. | |
1864 | */ | |
1865 | /* GMTIME_R_PROTO: | |
1866 | * This symbol encodes the prototype of gmtime_r. | |
1867 | * It is zero if d_gmtime_r is undef, and one of the | |
1868 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r | |
1869 | * is defined. | |
1870 | */ | |
1871 | #$d_gmtime_r HAS_GMTIME_R /**/ | |
1872 | #define GMTIME_R_PROTO $gmtime_r_proto /**/ | |
1873 | ||
b8677e3b MB |
1874 | /* HAS_GNULIBC: |
1875 | * This symbol, if defined, indicates to the C program that | |
1876 | * the GNU C library is being used. A better check is to use | |
1877 | * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc. | |
a845a0d4 | 1878 | */ |
b8677e3b MB |
1879 | #$d_gnulibc HAS_GNULIBC /**/ |
1880 | #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) | |
1881 | # define _GNU_SOURCE | |
1882 | #endif | |
1883 | ||
06501368 MB |
1884 | /* HAS_HTONL: |
1885 | * This symbol, if defined, indicates that the htonl() routine (and | |
1886 | * friends htons() ntohl() ntohs()) are available to do network | |
1887 | * order byte swapping. | |
1888 | */ | |
1889 | /* HAS_HTONS: | |
1890 | * This symbol, if defined, indicates that the htons() routine (and | |
1891 | * friends htonl() ntohl() ntohs()) are available to do network | |
1892 | * order byte swapping. | |
1893 | */ | |
1894 | /* HAS_NTOHL: | |
1895 | * This symbol, if defined, indicates that the ntohl() routine (and | |
1896 | * friends htonl() htons() ntohs()) are available to do network | |
1897 | * order byte swapping. | |
1898 | */ | |
1899 | /* HAS_NTOHS: | |
1900 | * This symbol, if defined, indicates that the ntohs() routine (and | |
1901 | * friends htonl() htons() ntohl()) are available to do network | |
1902 | * order byte swapping. | |
1903 | */ | |
1904 | #$d_htonl HAS_HTONL /**/ | |
1905 | #$d_htonl HAS_HTONS /**/ | |
1906 | #$d_htonl HAS_NTOHL /**/ | |
1907 | #$d_htonl HAS_NTOHS /**/ | |
1908 | ||
b8677e3b MB |
1909 | /* HAS_ISASCII: |
1910 | * This manifest constant lets the C program know that isascii | |
1911 | * is available. | |
a845a0d4 | 1912 | */ |
b8677e3b MB |
1913 | #$d_isascii HAS_ISASCII /**/ |
1914 | ||
1915 | /* HAS_LCHOWN: | |
1916 | * This symbol, if defined, indicates that the lchown routine is | |
1917 | * available to operate on a symbolic link (instead of following the | |
1918 | * link). | |
a845a0d4 | 1919 | */ |
b8677e3b | 1920 | #$d_lchown HAS_LCHOWN /**/ |
a845a0d4 | 1921 | |
08c92000 MB |
1922 | /* HAS_LOCALTIME_R: |
1923 | * This symbol, if defined, indicates that the localtime_r routine | |
1924 | * is available to localtime re-entrantly. | |
1925 | */ | |
f025e94b MB |
1926 | /* LOCALTIME_R_NEEDS_TZSET: |
1927 | * Many libc's localtime_r implementations do not call tzset, | |
1928 | * making them differ from localtime(), and making timezone | |
47d847ba | 1929 | * changes using \$ENV{TZ} without explicitly calling tzset |
f025e94b MB |
1930 | * impossible. This symbol makes us call tzset before localtime_r |
1931 | */ | |
8572b25d BH |
1932 | #$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/ |
1933 | #ifdef LOCALTIME_R_NEEDS_TZSET | |
1934 | #define L_R_TZSET tzset(), | |
1935 | #else | |
1936 | #define L_R_TZSET | |
1937 | #endif | |
1938 | ||
08c92000 MB |
1939 | /* LOCALTIME_R_PROTO: |
1940 | * This symbol encodes the prototype of localtime_r. | |
1941 | * It is zero if d_localtime_r is undef, and one of the | |
1942 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r | |
1943 | * is defined. | |
1944 | */ | |
1945 | #$d_localtime_r HAS_LOCALTIME_R /**/ | |
1946 | #define LOCALTIME_R_PROTO $localtime_r_proto /**/ | |
1947 | ||
06501368 MB |
1948 | /* HAS_LONG_DOUBLE: |
1949 | * This symbol will be defined if the C compiler supports long | |
1950 | * doubles. | |
08c92000 | 1951 | */ |
06501368 MB |
1952 | /* LONG_DOUBLESIZE: |
1953 | * This symbol contains the size of a long double, so that the | |
1954 | * C preprocessor can make decisions based on it. It is only | |
e6704a40 | 1955 | * defined if the system supports long doubles. Note that this |
0cd93aca | 1956 | * is sizeof(long double), which may include unused bytes. |
a845a0d4 | 1957 | */ |
db8b8c75 MB |
1958 | /* HAS_LDEXPL: |
1959 | * This symbol, if defined, indicates that the ldexpl routine is | |
1960 | * available to shift a long double floating-point number | |
1961 | * by an integral power of 2. | |
1962 | */ | |
dc91db6c JH |
1963 | /* LONG_DOUBLEKIND: |
1964 | * LONG_DOUBLEKIND will be one of | |
1965 | * LONG_DOUBLE_IS_DOUBLE | |
1966 | * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN | |
1967 | * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN | |
1968 | * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN | |
1969 | * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN | |
1970 | * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN | |
1971 | * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN | |
1972 | * LONG_DOUBLE_IS_UNKNOWN_FORMAT | |
1973 | * It is only defined if the system supports long doubles. | |
1974 | */ | |
db8b8c75 | 1975 | #$d_ldexpl HAS_LDEXPL /**/ |
06501368 MB |
1976 | #$d_longdbl HAS_LONG_DOUBLE /**/ |
1977 | #ifdef HAS_LONG_DOUBLE | |
1978 | #define LONG_DOUBLESIZE $longdblsize /**/ | |
dc91db6c JH |
1979 | #define LONG_DOUBLEKIND $longdblkind /**/ |
1980 | #define LONG_DOUBLE_IS_DOUBLE 0 | |
1981 | #define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1 | |
1982 | #define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2 | |
1983 | #define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3 | |
1984 | #define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4 | |
1985 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN 5 | |
1986 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN 6 | |
1987 | #define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1 | |
06501368 | 1988 | #endif |
a845a0d4 | 1989 | |
06501368 MB |
1990 | /* HAS_LONG_LONG: |
1991 | * This symbol will be defined if the C compiler supports long long. | |
eaf812ae | 1992 | */ |
06501368 MB |
1993 | /* LONGLONGSIZE: |
1994 | * This symbol contains the size of a long long, so that the | |
1995 | * C preprocessor can make decisions based on it. It is only | |
1996 | * defined if the system supports long long. | |
1997 | */ | |
1998 | #$d_longlong HAS_LONG_LONG /**/ | |
1999 | #ifdef HAS_LONG_LONG | |
2000 | #define LONGLONGSIZE $longlongsize /**/ | |
2001 | #endif | |
eaf812ae | 2002 | |
06501368 MB |
2003 | /* HAS_LSEEK_PROTO: |
2004 | * This symbol, if defined, indicates that the system provides | |
2005 | * a prototype for the lseek() function. Otherwise, it is up | |
2006 | * to the program to supply one. A good guess is | |
2007 | * extern off_t lseek(int, off_t, int); | |
a845a0d4 | 2008 | */ |
06501368 MB |
2009 | #$d_lseekproto HAS_LSEEK_PROTO /**/ |
2010 | ||
2011 | /* HAS_MEMCHR: | |
2012 | * This symbol, if defined, indicates that the memchr routine is available | |
2013 | * to locate characters within a C string. | |
a845a0d4 | 2014 | */ |
06501368 MB |
2015 | #$d_memchr HAS_MEMCHR /**/ |
2016 | ||
2017 | /* HAS_MKSTEMP: | |
2018 | * This symbol, if defined, indicates that the mkstemp routine is | |
2019 | * available to exclusively create and open a uniquely named | |
2020 | * temporary file. | |
2021 | */ | |
2022 | #$d_mkstemp HAS_MKSTEMP /**/ | |
2023 | ||
2024 | /* HAS_MMAP: | |
2025 | * This symbol, if defined, indicates that the mmap system call is | |
2026 | * available to map a file into memory. | |
2027 | */ | |
2028 | /* Mmap_t: | |
2029 | * This symbol holds the return type of the mmap() system call | |
2030 | * (and simultaneously the type of the first argument). | |
2031 | * Usually set to 'void *' or 'caddr_t'. | |
2032 | */ | |
2033 | #$d_mmap HAS_MMAP /**/ | |
2034 | #define Mmap_t $mmaptype /**/ | |
2035 | ||
2036 | /* HAS_MSG: | |
2037 | * This symbol, if defined, indicates that the entire msg*(2) library is | |
2038 | * supported (IPC mechanism based on message queues). | |
2039 | */ | |
2040 | #$d_msg HAS_MSG /**/ | |
2041 | ||
2042 | /* HAS_OPEN3: | |
2043 | * This manifest constant lets the C program know that the three | |
2044 | * argument form of open(2) is available. | |
2045 | */ | |
2046 | #$d_open3 HAS_OPEN3 /**/ | |
2047 | ||
2048 | /* OLD_PTHREAD_CREATE_JOINABLE: | |
2049 | * This symbol, if defined, indicates how to create pthread | |
2050 | * in joinable (aka undetached) state. NOTE: not defined | |
2051 | * if pthread.h already has defined PTHREAD_CREATE_JOINABLE | |
2052 | * (the new version of the constant). | |
2053 | * If defined, known values are PTHREAD_CREATE_UNDETACHED | |
2054 | * and __UNDETACHED. | |
2055 | */ | |
2056 | #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/ | |
2057 | ||
2058 | /* HAS_PTHREAD_ATFORK: | |
2059 | * This symbol, if defined, indicates that the pthread_atfork routine | |
2060 | * is available to setup fork handlers. | |
2061 | */ | |
2062 | #$d_pthread_atfork HAS_PTHREAD_ATFORK /**/ | |
2063 | ||
2064 | /* HAS_PTHREAD_YIELD: | |
2065 | * This symbol, if defined, indicates that the pthread_yield | |
2066 | * routine is available to yield the execution of the current | |
2067 | * thread. sched_yield is preferable to pthread_yield. | |
2068 | */ | |
2069 | /* SCHED_YIELD: | |
2070 | * This symbol defines the way to yield the execution of | |
2071 | * the current thread. Known ways are sched_yield, | |
2072 | * pthread_yield, and pthread_yield with NULL. | |
2073 | */ | |
2074 | /* HAS_SCHED_YIELD: | |
2075 | * This symbol, if defined, indicates that the sched_yield | |
08c92000 MB |
2076 | * routine is available to yield the execution of the current |
2077 | * thread. sched_yield is preferable to pthread_yield. | |
2078 | */ | |
2079 | #$d_pthread_yield HAS_PTHREAD_YIELD /**/ | |
2080 | #define SCHED_YIELD $sched_yield /**/ | |
2081 | #$d_sched_yield HAS_SCHED_YIELD /**/ | |
a845a0d4 | 2082 | |
08c92000 MB |
2083 | /* HAS_RANDOM_R: |
2084 | * This symbol, if defined, indicates that the random_r routine | |
2085 | * is available to random re-entrantly. | |
a845a0d4 | 2086 | */ |
08c92000 MB |
2087 | /* RANDOM_R_PROTO: |
2088 | * This symbol encodes the prototype of random_r. | |
2089 | * It is zero if d_random_r is undef, and one of the | |
2090 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r | |
2091 | * is defined. | |
a845a0d4 | 2092 | */ |
08c92000 MB |
2093 | #$d_random_r HAS_RANDOM_R /**/ |
2094 | #define RANDOM_R_PROTO $random_r_proto /**/ | |
a845a0d4 | 2095 | |
eaf812ae MB |
2096 | /* HAS_READDIR64_R: |
2097 | * This symbol, if defined, indicates that the readdir64_r routine | |
2098 | * is available to readdir64 re-entrantly. | |
2099 | */ | |
2100 | /* READDIR64_R_PROTO: | |
2101 | * This symbol encodes the prototype of readdir64_r. | |
2102 | * It is zero if d_readdir64_r is undef, and one of the | |
2103 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r | |
2104 | * is defined. | |
2105 | */ | |
2106 | #$d_readdir64_r HAS_READDIR64_R /**/ | |
2107 | #define READDIR64_R_PROTO $readdir64_r_proto /**/ | |
2108 | ||
08c92000 MB |
2109 | /* HAS_READDIR_R: |
2110 | * This symbol, if defined, indicates that the readdir_r routine | |
2111 | * is available to readdir re-entrantly. | |
a845a0d4 | 2112 | */ |
08c92000 MB |
2113 | /* READDIR_R_PROTO: |
2114 | * This symbol encodes the prototype of readdir_r. | |
2115 | * It is zero if d_readdir_r is undef, and one of the | |
2116 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r | |
2117 | * is defined. | |
2118 | */ | |
2119 | #$d_readdir_r HAS_READDIR_R /**/ | |
2120 | #define READDIR_R_PROTO $readdir_r_proto /**/ | |
a845a0d4 | 2121 | |
b8677e3b MB |
2122 | /* HAS_SAFE_BCOPY: |
2123 | * This symbol, if defined, indicates that the bcopy routine is available | |
2124 | * to copy potentially overlapping memory blocks. Normally, you should | |
2125 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
2126 | * own version. | |
08c92000 | 2127 | */ |
b8677e3b | 2128 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
08c92000 | 2129 | |
b8677e3b MB |
2130 | /* HAS_SAFE_MEMCPY: |
2131 | * This symbol, if defined, indicates that the memcpy routine is available | |
2132 | * to copy potentially overlapping memory blocks. If you need to | |
2133 | * copy overlapping memory blocks, you should check HAS_MEMMOVE and | |
2134 | * use memmove() instead, if available. | |
08c92000 | 2135 | */ |
b8677e3b MB |
2136 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
2137 | ||
2138 | /* HAS_SANE_MEMCMP: | |
2139 | * This symbol, if defined, indicates that the memcmp routine is available | |
2140 | * and can be used to compare relative magnitudes of chars with their high | |
2141 | * bits set. If it is not defined, roll your own version. | |
2142 | */ | |
2143 | #$d_sanemcmp HAS_SANE_MEMCMP /**/ | |
08c92000 | 2144 | |
06501368 MB |
2145 | /* HAS_SEM: |
2146 | * This symbol, if defined, indicates that the entire sem*(2) library is | |
2147 | * supported. | |
2148 | */ | |
2149 | #$d_sem HAS_SEM /**/ | |
2150 | ||
2151 | /* HAS_SETGRENT: | |
2152 | * This symbol, if defined, indicates that the setgrent routine is | |
2153 | * available for initializing sequential access of the group database. | |
2154 | */ | |
2155 | #$d_setgrent HAS_SETGRENT /**/ | |
2156 | ||
08c92000 MB |
2157 | /* HAS_SETGRENT_R: |
2158 | * This symbol, if defined, indicates that the setgrent_r routine | |
2159 | * is available to setgrent re-entrantly. | |
2160 | */ | |
2161 | /* SETGRENT_R_PROTO: | |
2162 | * This symbol encodes the prototype of setgrent_r. | |
2163 | * It is zero if d_setgrent_r is undef, and one of the | |
2164 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r | |
2165 | * is defined. | |
2166 | */ | |
2167 | #$d_setgrent_r HAS_SETGRENT_R /**/ | |
2168 | #define SETGRENT_R_PROTO $setgrent_r_proto /**/ | |
2169 | ||
06501368 MB |
2170 | /* HAS_SETHOSTENT: |
2171 | * This symbol, if defined, indicates that the sethostent() routine is | |
2172 | * available. | |
2173 | */ | |
2174 | #$d_sethent HAS_SETHOSTENT /**/ | |
2175 | ||
eaf812ae MB |
2176 | /* HAS_SETHOSTENT_R: |
2177 | * This symbol, if defined, indicates that the sethostent_r routine | |
2178 | * is available to sethostent re-entrantly. | |
2179 | */ | |
2180 | /* SETHOSTENT_R_PROTO: | |
2181 | * This symbol encodes the prototype of sethostent_r. | |
2182 | * It is zero if d_sethostent_r is undef, and one of the | |
2183 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r | |
2184 | * is defined. | |
2185 | */ | |
2186 | #$d_sethostent_r HAS_SETHOSTENT_R /**/ | |
2187 | #define SETHOSTENT_R_PROTO $sethostent_r_proto /**/ | |
2188 | ||
eaf812ae MB |
2189 | /* HAS_SETLOCALE_R: |
2190 | * This symbol, if defined, indicates that the setlocale_r routine | |
2191 | * is available to setlocale re-entrantly. | |
2192 | */ | |
2193 | /* SETLOCALE_R_PROTO: | |
2194 | * This symbol encodes the prototype of setlocale_r. | |
2195 | * It is zero if d_setlocale_r is undef, and one of the | |
2196 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r | |
2197 | * is defined. | |
2198 | */ | |
2199 | #$d_setlocale_r HAS_SETLOCALE_R /**/ | |
2200 | #define SETLOCALE_R_PROTO $setlocale_r_proto /**/ | |
2201 | ||
06501368 MB |
2202 | /* HAS_SETNETENT: |
2203 | * This symbol, if defined, indicates that the setnetent() routine is | |
2204 | * available. | |
2205 | */ | |
2206 | #$d_setnent HAS_SETNETENT /**/ | |
2207 | ||
eaf812ae MB |
2208 | /* HAS_SETNETENT_R: |
2209 | * This symbol, if defined, indicates that the setnetent_r routine | |
2210 | * is available to setnetent re-entrantly. | |
2211 | */ | |
2212 | /* SETNETENT_R_PROTO: | |
2213 | * This symbol encodes the prototype of setnetent_r. | |
2214 | * It is zero if d_setnetent_r is undef, and one of the | |
2215 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r | |
2216 | * is defined. | |
2217 | */ | |
2218 | #$d_setnetent_r HAS_SETNETENT_R /**/ | |
2219 | #define SETNETENT_R_PROTO $setnetent_r_proto /**/ | |
2220 | ||
06501368 MB |
2221 | /* HAS_SETPROTOENT: |
2222 | * This symbol, if defined, indicates that the setprotoent() routine is | |
2223 | * available. | |
2224 | */ | |
2225 | #$d_setpent HAS_SETPROTOENT /**/ | |
2226 | ||
2227 | /* HAS_SETPGRP: | |
2228 | * This symbol, if defined, indicates that the setpgrp routine is | |
2229 | * available to set the current process group. | |
2230 | */ | |
2231 | /* USE_BSD_SETPGRP: | |
2232 | * This symbol, if defined, indicates that setpgrp needs two | |
2233 | * arguments whereas USG one needs none. See also HAS_SETPGID | |
2234 | * for a POSIX interface. | |
2235 | */ | |
2236 | #$d_setpgrp HAS_SETPGRP /**/ | |
2237 | #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ | |
2238 | ||
eaf812ae MB |
2239 | /* HAS_SETPROTOENT_R: |
2240 | * This symbol, if defined, indicates that the setprotoent_r routine | |
2241 | * is available to setprotoent re-entrantly. | |
2242 | */ | |
2243 | /* SETPROTOENT_R_PROTO: | |
2244 | * This symbol encodes the prototype of setprotoent_r. | |
2245 | * It is zero if d_setprotoent_r is undef, and one of the | |
2246 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r | |
2247 | * is defined. | |
2248 | */ | |
2249 | #$d_setprotoent_r HAS_SETPROTOENT_R /**/ | |
2250 | #define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/ | |
2251 | ||
06501368 MB |
2252 | /* HAS_SETPWENT: |
2253 | * This symbol, if defined, indicates that the setpwent routine is | |
2254 | * available for initializing sequential access of the passwd database. | |
2255 | */ | |
2256 | #$d_setpwent HAS_SETPWENT /**/ | |
2257 | ||
08c92000 MB |
2258 | /* HAS_SETPWENT_R: |
2259 | * This symbol, if defined, indicates that the setpwent_r routine | |
2260 | * is available to setpwent re-entrantly. | |
2261 | */ | |
2262 | /* SETPWENT_R_PROTO: | |
2263 | * This symbol encodes the prototype of setpwent_r. | |
2264 | * It is zero if d_setpwent_r is undef, and one of the | |
2265 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r | |
2266 | * is defined. | |
2267 | */ | |
2268 | #$d_setpwent_r HAS_SETPWENT_R /**/ | |
2269 | #define SETPWENT_R_PROTO $setpwent_r_proto /**/ | |
2270 | ||
06501368 MB |
2271 | /* HAS_SETSERVENT: |
2272 | * This symbol, if defined, indicates that the setservent() routine is | |
2273 | * available. | |
2274 | */ | |
2275 | #$d_setsent HAS_SETSERVENT /**/ | |
2276 | ||
eaf812ae MB |
2277 | /* HAS_SETSERVENT_R: |
2278 | * This symbol, if defined, indicates that the setservent_r routine | |
2279 | * is available to setservent re-entrantly. | |
2280 | */ | |
2281 | /* SETSERVENT_R_PROTO: | |
2282 | * This symbol encodes the prototype of setservent_r. | |
2283 | * It is zero if d_setservent_r is undef, and one of the | |
2284 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r | |
2285 | * is defined. | |
2286 | */ | |
2287 | #$d_setservent_r HAS_SETSERVENT_R /**/ | |
2288 | #define SETSERVENT_R_PROTO $setservent_r_proto /**/ | |
2289 | ||
06501368 MB |
2290 | /* HAS_SETVBUF: |
2291 | * This symbol, if defined, indicates that the setvbuf routine is | |
2292 | * available to change buffering on an open stdio stream. | |
2293 | * to a line-buffered mode. | |
2294 | */ | |
2295 | #$d_setvbuf HAS_SETVBUF /**/ | |
2296 | ||
2297 | /* HAS_SHM: | |
2298 | * This symbol, if defined, indicates that the entire shm*(2) library is | |
2299 | * supported. | |
2300 | */ | |
2301 | #$d_shm HAS_SHM /**/ | |
2302 | ||
2303 | /* Shmat_t: | |
2304 | * This symbol holds the return type of the shmat() system call. | |
2305 | * Usually set to 'void *' or 'char *'. | |
2306 | */ | |
2307 | /* HAS_SHMAT_PROTOTYPE: | |
2308 | * This symbol, if defined, indicates that the sys/shm.h includes | |
2309 | * a prototype for shmat(). Otherwise, it is up to the program to | |
2310 | * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess, | |
2311 | * but not always right so it should be emitted by the program only | |
2312 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
2313 | */ | |
2314 | #define Shmat_t $shmattype /**/ | |
2315 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ | |
2316 | ||
b8677e3b MB |
2317 | /* HAS_SIGACTION: |
2318 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
2319 | * is available. | |
eaf812ae | 2320 | */ |
b8677e3b | 2321 | #$d_sigaction HAS_SIGACTION /**/ |
eaf812ae | 2322 | |
b8677e3b MB |
2323 | /* HAS_SIGSETJMP: |
2324 | * This variable indicates to the C program that the sigsetjmp() | |
2325 | * routine is available to save the calling process's registers | |
2326 | * and stack environment for later use by siglongjmp(), and | |
2327 | * to optionally save the process's signal mask. See | |
2328 | * Sigjmp_buf, Sigsetjmp, and Siglongjmp. | |
10bc17b6 | 2329 | */ |
b8677e3b MB |
2330 | /* Sigjmp_buf: |
2331 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. | |
c7aff470 | 2332 | */ |
b8677e3b MB |
2333 | /* Sigsetjmp: |
2334 | * This macro is used in the same way as sigsetjmp(), but will invoke | |
2335 | * traditional setjmp() if sigsetjmp isn't available. | |
2336 | * See HAS_SIGSETJMP. | |
b363b713 | 2337 | */ |
b8677e3b MB |
2338 | /* Siglongjmp: |
2339 | * This macro is used in the same way as siglongjmp(), but will invoke | |
2340 | * traditional longjmp() if siglongjmp isn't available. | |
2341 | * See HAS_SIGSETJMP. | |
a7fea17f | 2342 | */ |
b8677e3b MB |
2343 | #$d_sigsetjmp HAS_SIGSETJMP /**/ |
2344 | #ifdef HAS_SIGSETJMP | |
2345 | #define Sigjmp_buf sigjmp_buf | |
2346 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) | |
2347 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) | |
2348 | #else | |
2349 | #define Sigjmp_buf jmp_buf | |
2350 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) | |
2351 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) | |
2352 | #endif | |
44b94491 | 2353 | |
06501368 MB |
2354 | /* HAS_SOCKET: |
2355 | * This symbol, if defined, indicates that the BSD socket interface is | |
2356 | * supported. | |
2357 | */ | |
2358 | /* HAS_SOCKETPAIR: | |
2359 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
2360 | * supported. | |
2361 | */ | |
2362 | /* HAS_MSG_CTRUNC: | |
2363 | * This symbol, if defined, indicates that the MSG_CTRUNC is supported. | |
2364 | * Checking just with #ifdef might not be enough because this symbol | |
2365 | * has been known to be an enum. | |
2366 | */ | |
2367 | /* HAS_MSG_DONTROUTE: | |
2368 | * This symbol, if defined, indicates that the MSG_DONTROUTE is supported. | |
2369 | * Checking just with #ifdef might not be enough because this symbol | |
2370 | * has been known to be an enum. | |
2371 | */ | |
2372 | /* HAS_MSG_OOB: | |
2373 | * This symbol, if defined, indicates that the MSG_OOB is supported. | |
2374 | * Checking just with #ifdef might not be enough because this symbol | |
2375 | * has been known to be an enum. | |
2376 | */ | |
2377 | /* HAS_MSG_PEEK: | |
2378 | * This symbol, if defined, indicates that the MSG_PEEK is supported. | |
2379 | * Checking just with #ifdef might not be enough because this symbol | |
2380 | * has been known to be an enum. | |
2381 | */ | |
2382 | /* HAS_MSG_PROXY: | |
2383 | * This symbol, if defined, indicates that the MSG_PROXY is supported. | |
2384 | * Checking just with #ifdef might not be enough because this symbol | |
2385 | * has been known to be an enum. | |
2386 | */ | |
2387 | /* HAS_SCM_RIGHTS: | |
2388 | * This symbol, if defined, indicates that the SCM_RIGHTS is supported. | |
2389 | * Checking just with #ifdef might not be enough because this symbol | |
2390 | * has been known to be an enum. | |
2391 | */ | |
2392 | /* HAS_SOCKADDR_SA_LEN: | |
2393 | * This symbol, if defined, indicates that the struct sockaddr | |
2394 | * structure has a member called sa_len, indicating the length of | |
2395 | * the structure. | |
2396 | */ | |
18126d98 MB |
2397 | /* HAS_SOCKADDR_IN6: |
2398 | * This symbol, if defined, indicates the availability of | |
2399 | * struct sockaddr_in6; | |
2400 | */ | |
06501368 MB |
2401 | /* HAS_SIN6_SCOPE_ID: |
2402 | * This symbol, if defined, indicates that the struct sockaddr_in6 | |
2403 | * structure has a member called sin6_scope_id. | |
2404 | */ | |
122b9bf4 MB |
2405 | /* HAS_IP_MREQ: |
2406 | * This symbol, if defined, indicates the availability of | |
2407 | * struct ip_mreq; | |
2408 | */ | |
3e06601f MB |
2409 | /* HAS_IP_MREQ_SOURCE: |
2410 | * This symbol, if defined, indicates the availability of | |
2411 | * struct ip_mreq_source; | |
2412 | */ | |
18126d98 MB |
2413 | /* HAS_IPV6_MREQ: |
2414 | * This symbol, if defined, indicates the availability of | |
2415 | * struct ipv6_mreq; | |
2416 | */ | |
3e06601f MB |
2417 | /* HAS_IPV6_MREQ_SOURCE: |
2418 | * This symbol, if defined, indicates the availability of | |
2419 | * struct ipv6_mreq_source; | |
2420 | */ | |
06501368 MB |
2421 | #$d_socket HAS_SOCKET /**/ |
2422 | #$d_sockpair HAS_SOCKETPAIR /**/ | |
2423 | #$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/ | |
2424 | #$d_msg_ctrunc HAS_MSG_CTRUNC /**/ | |
2425 | #$d_msg_dontroute HAS_MSG_DONTROUTE /**/ | |
2426 | #$d_msg_oob HAS_MSG_OOB /**/ | |
2427 | #$d_msg_peek HAS_MSG_PEEK /**/ | |
2428 | #$d_msg_proxy HAS_MSG_PROXY /**/ | |
2429 | #$d_scm_rights HAS_SCM_RIGHTS /**/ | |
18126d98 | 2430 | #$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/ |
06501368 | 2431 | #$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/ |
122b9bf4 | 2432 | #$d_ip_mreq HAS_IP_MREQ /**/ |
3e06601f | 2433 | #$d_ip_mreq_source HAS_IP_MREQ_SOURCE /**/ |
18126d98 | 2434 | #$d_ipv6_mreq HAS_IPV6_MREQ /**/ |
3e06601f | 2435 | #$d_ipv6_mreq_source HAS_IPV6_MREQ_SOURCE /**/ |
06501368 | 2436 | |
08c92000 MB |
2437 | /* HAS_SRAND48_R: |
2438 | * This symbol, if defined, indicates that the srand48_r routine | |
2439 | * is available to srand48 re-entrantly. | |
2440 | */ | |
2441 | /* SRAND48_R_PROTO: | |
2442 | * This symbol encodes the prototype of srand48_r. | |
2443 | * It is zero if d_srand48_r is undef, and one of the | |
2444 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r | |
2445 | * is defined. | |
2446 | */ | |
2447 | #$d_srand48_r HAS_SRAND48_R /**/ | |
2448 | #define SRAND48_R_PROTO $srand48_r_proto /**/ | |
2449 | ||
2450 | /* HAS_SRANDOM_R: | |
2451 | * This symbol, if defined, indicates that the srandom_r routine | |
2452 | * is available to srandom re-entrantly. | |
2453 | */ | |
2454 | /* SRANDOM_R_PROTO: | |
2455 | * This symbol encodes the prototype of srandom_r. | |
2456 | * It is zero if d_srandom_r is undef, and one of the | |
2457 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r | |
2458 | * is defined. | |
2459 | */ | |
2460 | #$d_srandom_r HAS_SRANDOM_R /**/ | |
2461 | #define SRANDOM_R_PROTO $srandom_r_proto /**/ | |
2462 | ||
06501368 MB |
2463 | /* USE_STAT_BLOCKS: |
2464 | * This symbol is defined if this system has a stat structure declaring | |
2465 | * st_blksize and st_blocks. | |
2466 | */ | |
2467 | #ifndef USE_STAT_BLOCKS | |
2468 | #$d_statblks USE_STAT_BLOCKS /**/ | |
2469 | #endif | |
2470 | ||
2471 | /* HAS_STATIC_INLINE: | |
2472 | * This symbol, if defined, indicates that the C compiler supports | |
2473 | * C99-style static inline. That is, the function can't be called | |
2474 | * from another translation unit. | |
2475 | */ | |
2476 | /* PERL_STATIC_INLINE: | |
2477 | * This symbol gives the best-guess incantation to use for static | |
2478 | * inline functions. If HAS_STATIC_INLINE is defined, this will | |
2479 | * give C99-style inline. If HAS_STATIC_INLINE is not defined, | |
2480 | * this will give a plain 'static'. It will always be defined | |
2481 | * to something that gives static linkage. | |
2482 | * Possibilities include | |
2483 | * static inline (c99) | |
2484 | * static __inline__ (gcc -ansi) | |
2485 | * static __inline (MSVC) | |
2486 | * static _inline (older MSVC) | |
2487 | * static (c89 compilers) | |
2488 | */ | |
2489 | #$d_static_inline HAS_STATIC_INLINE /**/ | |
2490 | #define PERL_STATIC_INLINE $perl_static_inline /**/ | |
2491 | ||
b8677e3b MB |
2492 | /* USE_STDIO_PTR: |
2493 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
2494 | * of the stdio FILE structure can be used to access the stdio buffer | |
2495 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
2496 | * and FILE_cnt(fp) macros will also be defined and should be used | |
2497 | * to access these fields. | |
a33c94aa | 2498 | */ |
b8677e3b MB |
2499 | /* FILE_ptr: |
2500 | * This macro is used to access the _ptr field (or equivalent) of the | |
2501 | * FILE structure pointed to by its argument. This macro will always be | |
2502 | * defined if USE_STDIO_PTR is defined. | |
43dddb59 | 2503 | */ |
b8677e3b MB |
2504 | /* STDIO_PTR_LVALUE: |
2505 | * This symbol is defined if the FILE_ptr macro can be used as an | |
2506 | * lvalue. | |
08c92000 | 2507 | */ |
b8677e3b MB |
2508 | /* FILE_cnt: |
2509 | * This macro is used to access the _cnt field (or equivalent) of the | |
2510 | * FILE structure pointed to by its argument. This macro will always be | |
2511 | * defined if USE_STDIO_PTR is defined. | |
08c92000 | 2512 | */ |
b8677e3b MB |
2513 | /* STDIO_CNT_LVALUE: |
2514 | * This symbol is defined if the FILE_cnt macro can be used as an | |
2515 | * lvalue. | |
08c92000 | 2516 | */ |
b8677e3b MB |
2517 | /* STDIO_PTR_LVAL_SETS_CNT: |
2518 | * This symbol is defined if using the FILE_ptr macro as an lvalue | |
2519 | * to increase the pointer by n has the side effect of decreasing the | |
2520 | * value of File_cnt(fp) by n. | |
2521 | */ | |
2522 | /* STDIO_PTR_LVAL_NOCHANGE_CNT: | |
2523 | * This symbol is defined if using the FILE_ptr macro as an lvalue | |
2524 | * to increase the pointer by n leaves File_cnt(fp) unchanged. | |
2525 | */ | |
2526 | #$d_stdstdio USE_STDIO_PTR /**/ | |
2527 | #ifdef USE_STDIO_PTR | |
2528 | #define FILE_ptr(fp) $stdio_ptr | |
2529 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ | |
2530 | #define FILE_cnt(fp) $stdio_cnt | |
2531 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ | |
2532 | #$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/ | |
2533 | #$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/ | |
2534 | #endif | |
2535 | ||
2536 | /* USE_STDIO_BASE: | |
2537 | * This symbol is defined if the _base field (or similar) of the | |
2538 | * stdio FILE structure can be used to access the stdio buffer for | |
2539 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
2540 | * will also be defined and should be used to access this field. | |
2541 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
2542 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
2543 | * will never be defined unless USE_STDIO_PTR is. | |
2544 | */ | |
2545 | /* FILE_base: | |
2546 | * This macro is used to access the _base field (or equivalent) of the | |
2547 | * FILE structure pointed to by its argument. This macro will always be | |
2548 | * defined if USE_STDIO_BASE is defined. | |
2549 | */ | |
2550 | /* FILE_bufsiz: | |
2551 | * This macro is used to determine the number of bytes in the I/O | |
2552 | * buffer pointed to by _base field (or equivalent) of the FILE | |
2553 | * structure pointed to its argument. This macro will always be defined | |
2554 | * if USE_STDIO_BASE is defined. | |
2555 | */ | |
2556 | #$d_stdiobase USE_STDIO_BASE /**/ | |
2557 | #ifdef USE_STDIO_BASE | |
2558 | #define FILE_base(fp) $stdio_base | |
2559 | #define FILE_bufsiz(fp) $stdio_bufsiz | |
2560 | #endif | |
08c92000 | 2561 | |
06501368 MB |
2562 | /* USE_STRUCT_COPY: |
2563 | * This symbol, if defined, indicates that this C compiler knows how | |
2564 | * to copy structures. If undefined, you'll need to use a block copy | |
2565 | * routine of some sort instead. | |
2566 | */ | |
2567 | #$d_strctcpy USE_STRUCT_COPY /**/ | |
2568 | ||
2569 | /* HAS_STRERROR: | |
2570 | * This symbol, if defined, indicates that the strerror routine is | |
2571 | * available to translate error numbers to strings. See the writeup | |
2572 | * of Strerror() in this file before you try to define your own. | |
2573 | */ | |
2574 | /* HAS_SYS_ERRLIST: | |
2575 | * This symbol, if defined, indicates that the sys_errlist array is | |
2576 | * available to translate error numbers to strings. The extern int | |
2577 | * sys_nerr gives the size of that table. | |
2578 | */ | |
2579 | /* Strerror: | |
2580 | * This preprocessor symbol is defined as a macro if strerror() is | |
2581 | * not available to translate error numbers to strings but sys_errlist[] | |
2582 | * array is there. | |
2583 | */ | |
2584 | #$d_strerror HAS_STRERROR /**/ | |
2585 | #$d_syserrlst HAS_SYS_ERRLIST /**/ | |
2586 | #define Strerror(e) $d_strerrm | |
2587 | ||
08c92000 MB |
2588 | /* HAS_STRERROR_R: |
2589 | * This symbol, if defined, indicates that the strerror_r routine | |
2590 | * is available to strerror re-entrantly. | |
2591 | */ | |
2592 | /* STRERROR_R_PROTO: | |
2593 | * This symbol encodes the prototype of strerror_r. | |
2594 | * It is zero if d_strerror_r is undef, and one of the | |
2595 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r | |
2596 | * is defined. | |
2597 | */ | |
2598 | #$d_strerror_r HAS_STRERROR_R /**/ | |
2599 | #define STRERROR_R_PROTO $strerror_r_proto /**/ | |
2600 | ||
06501368 MB |
2601 | /* HAS_STRTOUL: |
2602 | * This symbol, if defined, indicates that the strtoul routine is | |
2603 | * available to provide conversion of strings to unsigned long. | |
2604 | */ | |
2605 | #$d_strtoul HAS_STRTOUL /**/ | |
2606 | ||
2607 | /* HAS_TIME: | |
2608 | * This symbol, if defined, indicates that the time() routine exists. | |
2609 | */ | |
2610 | /* Time_t: | |
2611 | * This symbol holds the type returned by time(). It can be long, | |
2612 | * or time_t on BSD sites (in which case <sys/types.h> should be | |
2613 | * included). | |
2614 | */ | |
2615 | #$d_time HAS_TIME /**/ | |
2616 | #define Time_t $timetype /* Time type */ | |
2617 | ||
2618 | /* HAS_TIMES: | |
2619 | * This symbol, if defined, indicates that the times() routine exists. | |
2620 | * Note that this became obsolete on some systems (SUNOS), which now | |
2621 | * use getrusage(). It may be necessary to include <sys/times.h>. | |
2622 | */ | |
2623 | #$d_times HAS_TIMES /**/ | |
2624 | ||
2625 | /* HAS_TMPNAM_R: | |
08c92000 MB |
2626 | * This symbol, if defined, indicates that the tmpnam_r routine |
2627 | * is available to tmpnam re-entrantly. | |
2628 | */ | |
2629 | /* TMPNAM_R_PROTO: | |
2630 | * This symbol encodes the prototype of tmpnam_r. | |
2631 | * It is zero if d_tmpnam_r is undef, and one of the | |
2632 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r | |
2633 | * is defined. | |
2634 | */ | |
2635 | #$d_tmpnam_r HAS_TMPNAM_R /**/ | |
2636 | #define TMPNAM_R_PROTO $tmpnam_r_proto /**/ | |
2637 | ||
eaf812ae MB |
2638 | /* HAS_TTYNAME_R: |
2639 | * This symbol, if defined, indicates that the ttyname_r routine | |
2640 | * is available to ttyname re-entrantly. | |
2641 | */ | |
2642 | /* TTYNAME_R_PROTO: | |
2643 | * This symbol encodes the prototype of ttyname_r. | |
2644 | * It is zero if d_ttyname_r is undef, and one of the | |
2645 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r | |
2646 | * is defined. | |
2647 | */ | |
2648 | #$d_ttyname_r HAS_TTYNAME_R /**/ | |
2649 | #define TTYNAME_R_PROTO $ttyname_r_proto /**/ | |
2650 | ||
06501368 MB |
2651 | /* HAS_UNION_SEMUN: |
2652 | * This symbol, if defined, indicates that the union semun is | |
2653 | * defined by including <sys/sem.h>. If not, the user code | |
2654 | * probably needs to define it as: | |
2655 | * union semun { | |
2656 | * int val; | |
2657 | * struct semid_ds *buf; | |
2658 | * unsigned short *array; | |
2659 | * } | |
2660 | */ | |
2661 | /* USE_SEMCTL_SEMUN: | |
2662 | * This symbol, if defined, indicates that union semun is | |
2663 | * used for semctl IPC_STAT. | |
2664 | */ | |
2665 | /* USE_SEMCTL_SEMID_DS: | |
2666 | * This symbol, if defined, indicates that struct semid_ds * is | |
2667 | * used for semctl IPC_STAT. | |
2668 | */ | |
2669 | #$d_union_semun HAS_UNION_SEMUN /**/ | |
2670 | #$d_semctl_semun USE_SEMCTL_SEMUN /**/ | |
2671 | #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/ | |
2672 | ||
2673 | /* HAS_VFORK: | |
2674 | * This symbol, if defined, indicates that vfork() exists. | |
2675 | */ | |
2676 | #$d_vfork HAS_VFORK /**/ | |
2677 | ||
2678 | /* HAS_PSEUDOFORK: | |
2679 | * This symbol, if defined, indicates that an emulation of the | |
2680 | * fork routine is available. | |
2681 | */ | |
2682 | #$d_pseudofork HAS_PSEUDOFORK /**/ | |
2683 | ||
2684 | /* Signal_t: | |
2685 | * This symbol's value is either "void" or "int", corresponding to the | |
2686 | * appropriate return type of a signal handler. Thus, you can declare | |
2687 | * a signal handler using "Signal_t (*handler)()", and define the | |
2688 | * handler using "Signal_t handler(sig)". | |
2689 | */ | |
2690 | #define Signal_t $signal_t /* Signal handler's return type */ | |
2691 | ||
2692 | /* HASVOLATILE: | |
2693 | * This symbol, if defined, indicates that this C compiler knows about | |
2694 | * the volatile declaration. | |
2695 | */ | |
2696 | #$d_volatile HASVOLATILE /**/ | |
2697 | #ifndef HASVOLATILE | |
2698 | #define volatile | |
2699 | #endif | |
2700 | ||
b8677e3b MB |
2701 | /* HAS_VPRINTF: |
2702 | * This symbol, if defined, indicates that the vprintf routine is available | |
2703 | * to printf with a pointer to an argument list. If unavailable, you | |
2704 | * may need to write your own, probably in terms of _doprnt(). | |
c5f05a91 | 2705 | */ |
b8677e3b MB |
2706 | /* USE_CHAR_VSPRINTF: |
2707 | * This symbol is defined if this system has vsprintf() returning type | |
2708 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
2709 | * is up to the package author to declare vsprintf correctly based on the | |
2710 | * symbol. | |
233e16ce | 2711 | */ |
b8677e3b MB |
2712 | #$d_vprintf HAS_VPRINTF /**/ |
2713 | #$d_charvspr USE_CHAR_VSPRINTF /**/ | |
233e16ce | 2714 | |
b8677e3b MB |
2715 | /* DOUBLESIZE: |
2716 | * This symbol contains the size of a double, so that the C preprocessor | |
2717 | * can make decisions based on it. | |
a3540c92 | 2718 | */ |
b8677e3b | 2719 | #define DOUBLESIZE $doublesize /**/ |
a3540c92 | 2720 | |
06501368 | 2721 | /* EBCDIC: |
1332606d | 2722 | * This symbol, if defined, indicates that this system uses |
06501368 MB |
2723 | * EBCDIC encoding. |
2724 | */ | |
2725 | #$ebcdic EBCDIC /**/ | |
2726 | ||
2727 | /* Fpos_t: | |
2728 | * This symbol holds the type used to declare file positions in libc. | |
2729 | * It can be fpos_t, long, uint, etc... It may be necessary to include | |
2730 | * <sys/types.h> to get any typedef'ed information. | |
2731 | */ | |
2732 | #define Fpos_t $fpostype /* File position type */ | |
2733 | ||
2734 | /* Gid_t_f: | |
2735 | * This symbol defines the format string used for printing a Gid_t. | |
2736 | */ | |
2737 | #define Gid_t_f $gidformat /**/ | |
2738 | ||
2739 | /* Gid_t_sign: | |
cfc2543a | 2740 | * This symbol holds the signedness of a Gid_t. |
06501368 MB |
2741 | * 1 for unsigned, -1 for signed. |
2742 | */ | |
2743 | #define Gid_t_sign $gidsign /* GID sign */ | |
2744 | ||
2745 | /* Gid_t_size: | |
2746 | * This symbol holds the size of a Gid_t in bytes. | |
2747 | */ | |
2748 | #define Gid_t_size $gidsize /* GID size */ | |
2749 | ||
2750 | /* Gid_t: | |
2751 | * This symbol holds the return type of getgid() and the type of | |
2752 | * argument to setrgid() and related functions. Typically, | |
2753 | * it is the type of group ids in the kernel. It can be int, ushort, | |
2754 | * gid_t, etc... It may be necessary to include <sys/types.h> to get | |
2755 | * any typedef'ed information. | |
2756 | */ | |
2757 | #define Gid_t $gidtype /* Type for getgid(), etc... */ | |
2758 | ||
2759 | /* I_DIRENT: | |
2760 | * This symbol, if defined, indicates to the C program that it should | |
2761 | * include <dirent.h>. Using this symbol also triggers the definition | |
2762 | * of the Direntry_t define which ends up being 'struct dirent' or | |
2763 | * 'struct direct' depending on the availability of <dirent.h>. | |
2764 | */ | |
2765 | /* DIRNAMLEN: | |
2766 | * This symbol, if defined, indicates to the C program that the length | |
2767 | * of directory entry names is provided by a d_namlen field. Otherwise | |
2768 | * you need to do strlen() on the d_name field. | |
2769 | */ | |
2770 | /* Direntry_t: | |
2771 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
2772 | * whether dirent is available or not. You should use this pseudo type to | |
2773 | * portably declare your directory entries. | |
2774 | */ | |
2775 | #$i_dirent I_DIRENT /**/ | |
2776 | #$d_dirnamlen DIRNAMLEN /**/ | |
2777 | #define Direntry_t $direntrytype | |
2778 | ||
0e0c5f82 MB |
2779 | /* I_EXECINFO: |
2780 | * This symbol, if defined, indicates to the C program that it should | |
2781 | * include <execinfo.h> for backtrace() support. | |
2782 | */ | |
2783 | #$i_execinfo I_EXECINFO /**/ | |
2784 | ||
06501368 MB |
2785 | /* I_GRP: |
2786 | * This symbol, if defined, indicates to the C program that it should | |
2787 | * include <grp.h>. | |
2788 | */ | |
2789 | /* GRPASSWD: | |
2790 | * This symbol, if defined, indicates to the C program that struct group | |
2791 | * in <grp.h> contains gr_passwd. | |
2792 | */ | |
2793 | #$i_grp I_GRP /**/ | |
2794 | #$d_grpasswd GRPASSWD /**/ | |
2795 | ||
b8677e3b MB |
2796 | /* I_MACH_CTHREADS: |
2797 | * This symbol, if defined, indicates to the C program that it should | |
2798 | * include <mach/cthreads.h>. | |
43dddb59 | 2799 | */ |
b8677e3b | 2800 | #$i_machcthr I_MACH_CTHREADS /**/ |
43dddb59 | 2801 | |
06501368 MB |
2802 | /* I_NDBM: |
2803 | * This symbol, if defined, indicates that <ndbm.h> exists and should | |
2804 | * be included. | |
2805 | */ | |
2806 | /* I_GDBMNDBM: | |
2807 | * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should | |
2808 | * be included. This was the location of the ndbm.h compatibility file | |
2809 | * in RedHat 7.1. | |
2810 | */ | |
2811 | /* I_GDBM_NDBM: | |
2812 | * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should | |
2813 | * be included. This is the location of the ndbm.h compatibility file | |
2814 | * in Debian 4.0. | |
2815 | */ | |
2816 | /* NDBM_H_USES_PROTOTYPES: | |
2817 | * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C | |
2818 | * prototypes instead of K&R style function declarations without any | |
2819 | * parameter information. While ANSI C prototypes are supported in C++, | |
2820 | * K&R style function declarations will yield errors. | |
2821 | */ | |
2822 | /* GDBMNDBM_H_USES_PROTOTYPES: | |
2823 | * This symbol, if defined, indicates that <gdbm/ndbm.h> uses real ANSI C | |
2824 | * prototypes instead of K&R style function declarations without any | |
2825 | * parameter information. While ANSI C prototypes are supported in C++, | |
2826 | * K&R style function declarations will yield errors. | |
2827 | */ | |
2828 | /* GDBM_NDBM_H_USES_PROTOTYPES: | |
2829 | * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C | |
2830 | * prototypes instead of K&R style function declarations without any | |
2831 | * parameter information. While ANSI C prototypes are supported in C++, | |
2832 | * K&R style function declarations will yield errors. | |
2833 | */ | |
2834 | #$i_ndbm I_NDBM /**/ | |
2835 | #$i_gdbmndbm I_GDBMNDBM /**/ | |
2836 | #$i_gdbm_ndbm I_GDBM_NDBM /**/ | |
2837 | #$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/ | |
2838 | #$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/ | |
2839 | #$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/ | |
2840 | ||
2841 | /* I_NETDB: | |
2842 | * This symbol, if defined, indicates that <netdb.h> exists and | |
2843 | * should be included. | |
2844 | */ | |
2845 | #$i_netdb I_NETDB /**/ | |
2846 | ||
2847 | /* I_NET_ERRNO: | |
2848 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
2849 | * should be included. | |
2850 | */ | |
2851 | #$i_neterrno I_NET_ERRNO /**/ | |
2852 | ||
b8677e3b MB |
2853 | /* I_PTHREAD: |
2854 | * This symbol, if defined, indicates to the C program that it should | |
2855 | * include <pthread.h>. | |
08c92000 | 2856 | */ |
b8677e3b | 2857 | #$i_pthread I_PTHREAD /**/ |
08c92000 | 2858 | |
06501368 MB |
2859 | /* I_PWD: |
2860 | * This symbol, if defined, indicates to the C program that it should | |
2861 | * include <pwd.h>. | |
2862 | */ | |
2863 | /* PWQUOTA: | |
2864 | * This symbol, if defined, indicates to the C program that struct passwd | |
2865 | * contains pw_quota. | |
2866 | */ | |
2867 | /* PWAGE: | |
2868 | * This symbol, if defined, indicates to the C program that struct passwd | |
2869 | * contains pw_age. | |
2870 | */ | |
2871 | /* PWCHANGE: | |
2872 | * This symbol, if defined, indicates to the C program that struct passwd | |
2873 | * contains pw_change. | |
2874 | */ | |
2875 | /* PWCLASS: | |
2876 | * This symbol, if defined, indicates to the C program that struct passwd | |
2877 | * contains pw_class. | |
2878 | */ | |
2879 | /* PWEXPIRE: | |
2880 | * This symbol, if defined, indicates to the C program that struct passwd | |
2881 | * contains pw_expire. | |
2882 | */ | |
2883 | /* PWCOMMENT: | |
2884 | * This symbol, if defined, indicates to the C program that struct passwd | |
2885 | * contains pw_comment. | |
2886 | */ | |
2887 | /* PWGECOS: | |
2888 | * This symbol, if defined, indicates to the C program that struct passwd | |
2889 | * contains pw_gecos. | |
2890 | */ | |
2891 | /* PWPASSWD: | |
2892 | * This symbol, if defined, indicates to the C program that struct passwd | |
2893 | * contains pw_passwd. | |
2894 | */ | |
2895 | #$i_pwd I_PWD /**/ | |
2896 | #$d_pwquota PWQUOTA /**/ | |
2897 | #$d_pwage PWAGE /**/ | |
2898 | #$d_pwchange PWCHANGE /**/ | |
2899 | #$d_pwclass PWCLASS /**/ | |
2900 | #$d_pwexpire PWEXPIRE /**/ | |
2901 | #$d_pwcomment PWCOMMENT /**/ | |
2902 | #$d_pwgecos PWGECOS /**/ | |
2903 | #$d_pwpasswd PWPASSWD /**/ | |
2904 | ||
b8677e3b MB |
2905 | /* I_SYS_ACCESS: |
2906 | * This symbol, if defined, indicates to the C program that it should | |
2907 | * include <sys/access.h>. | |
08c92000 | 2908 | */ |
b8677e3b | 2909 | #$i_sysaccess I_SYS_ACCESS /**/ |
08c92000 | 2910 | |
b8677e3b MB |
2911 | /* I_SYS_SECURITY: |
2912 | * This symbol, if defined, indicates to the C program that it should | |
2913 | * include <sys/security.h>. | |
08c92000 | 2914 | */ |
b8677e3b | 2915 | #$i_syssecrt I_SYS_SECURITY /**/ |
08c92000 | 2916 | |
06501368 MB |
2917 | /* I_SYSUIO: |
2918 | * This symbol, if defined, indicates that <sys/uio.h> exists and | |
2919 | * should be included. | |
2920 | */ | |
2921 | #$i_sysuio I_SYSUIO /**/ | |
2922 | ||
0e0c5f82 MB |
2923 | /* I_TERMIO: |
2924 | * This symbol, if defined, indicates that the program should include | |
2925 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
2926 | * the ioctl() calls that depend on the value of this symbol. | |
2927 | */ | |
2928 | /* I_TERMIOS: | |
2929 | * This symbol, if defined, indicates that the program should include | |
2930 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
2931 | * There are also differences in the ioctl() calls that depend on the | |
2932 | * value of this symbol. | |
2933 | */ | |
2934 | /* I_SGTTY: | |
2935 | * This symbol, if defined, indicates that the program should include | |
2936 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
2937 | * the ioctl() calls that depend on the value of this symbol. | |
2938 | */ | |
2939 | #$i_termio I_TERMIO /**/ | |
2940 | #$i_termios I_TERMIOS /**/ | |
2941 | #$i_sgtty I_SGTTY /**/ | |
2942 | ||
b8677e3b MB |
2943 | /* I_TIME: |
2944 | * This symbol, if defined, indicates to the C program that it should | |
2945 | * include <time.h>. | |
08c92000 | 2946 | */ |
b8677e3b MB |
2947 | /* I_SYS_TIME: |
2948 | * This symbol, if defined, indicates to the C program that it should | |
2949 | * include <sys/time.h>. | |
08c92000 | 2950 | */ |
b8677e3b | 2951 | /* I_SYS_TIME_KERNEL: |
43dddb59 | 2952 | * This symbol, if defined, indicates to the C program that it should |
b8677e3b | 2953 | * include <sys/time.h> with KERNEL defined. |
43dddb59 | 2954 | */ |
b8677e3b MB |
2955 | /* HAS_TM_TM_ZONE: |
2956 | * This symbol, if defined, indicates to the C program that | |
2957 | * the struct tm has a tm_zone field. | |
43dddb59 | 2958 | */ |
b8677e3b MB |
2959 | /* HAS_TM_TM_GMTOFF: |
2960 | * This symbol, if defined, indicates to the C program that | |
2961 | * the struct tm has a tm_gmtoff field. | |
43dddb59 | 2962 | */ |
b8677e3b MB |
2963 | #$i_time I_TIME /**/ |
2964 | #$i_systime I_SYS_TIME /**/ | |
2965 | #$i_systimek I_SYS_TIME_KERNEL /**/ | |
2966 | #$d_tm_tm_zone HAS_TM_TM_ZONE /**/ | |
2967 | #$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/ | |
43dddb59 | 2968 | |
06501368 MB |
2969 | /* I_STDARG: |
2970 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
2971 | * be included. | |
2972 | */ | |
2973 | /* I_VARARGS: | |
2974 | * This symbol, if defined, indicates to the C program that it should | |
2975 | * include <varargs.h>. | |
2976 | */ | |
2977 | #$i_stdarg I_STDARG /**/ | |
2978 | #$i_varargs I_VARARGS /**/ | |
2979 | ||
2980 | /* PERL_INC_VERSION_LIST: | |
2981 | * This variable specifies the list of subdirectories in over | |
2982 | * which perl.c:incpush() and lib/lib.pm will automatically | |
2983 | * search when adding directories to @INC, in a format suitable | |
2984 | * for a C initialization string. See the inc_version_list entry | |
2985 | * in Porting/Glossary for more details. | |
08c92000 | 2986 | */ |
b8677e3b | 2987 | #$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/ |
08c92000 | 2988 | |
b8677e3b MB |
2989 | /* INSTALL_USR_BIN_PERL: |
2990 | * This symbol, if defined, indicates that Perl is to be installed | |
2991 | * also as /usr/bin/perl. | |
08c92000 | 2992 | */ |
b8677e3b | 2993 | #$installusrbinperl INSTALL_USR_BIN_PERL /**/ |
08c92000 | 2994 | |
06501368 MB |
2995 | /* Off_t: |
2996 | * This symbol holds the type used to declare offsets in the kernel. | |
2997 | * It can be int, long, off_t, etc... It may be necessary to include | |
2998 | * <sys/types.h> to get any typedef'ed information. | |
2999 | */ | |
3000 | /* LSEEKSIZE: | |
3001 | * This symbol holds the number of bytes used by the Off_t. | |
3002 | */ | |
3003 | /* Off_t_size: | |
3004 | * This symbol holds the number of bytes used by the Off_t. | |
3005 | */ | |
3006 | #define Off_t $lseektype /* <offset> type */ | |
3007 | #define LSEEKSIZE $lseeksize /* <offset> size */ | |
3008 | #define Off_t_size $lseeksize /* <offset> size */ | |
3009 | ||
3010 | /* Free_t: | |
3011 | * This variable contains the return type of free(). It is usually | |
3012 | * void, but occasionally int. | |
3013 | */ | |
3014 | /* Malloc_t: | |
3015 | * This symbol is the type of pointer returned by malloc and realloc. | |
3016 | */ | |
3017 | #define Malloc_t $malloctype /**/ | |
3018 | #define Free_t $freetype /**/ | |
3019 | ||
3020 | /* PERL_MALLOC_WRAP: | |
3021 | * This symbol, if defined, indicates that we'd like malloc wrap checks. | |
3022 | */ | |
3023 | #$usemallocwrap PERL_MALLOC_WRAP /**/ | |
3024 | ||
3025 | /* MYMALLOC: | |
3026 | * This symbol, if defined, indicates that we're using our own malloc. | |
3027 | */ | |
3028 | #$d_mymalloc MYMALLOC /**/ | |
3029 | ||
3030 | /* Mode_t: | |
3031 | * This symbol holds the type used to declare file modes | |
3032 | * for systems calls. It is usually mode_t, but may be | |
3033 | * int or unsigned short. It may be necessary to include <sys/types.h> | |
3034 | * to get any typedef'ed information. | |
3035 | */ | |
3036 | #define Mode_t $modetype /* file mode parameter for system calls */ | |
3037 | ||
b8677e3b MB |
3038 | /* VAL_O_NONBLOCK: |
3039 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
3040 | * non-blocking I/O for the file descriptor. Note that there is no way | |
3041 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
3042 | * alternatively switch between blocking and non-blocking, use the | |
3043 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
eaf812ae | 3044 | */ |
b8677e3b MB |
3045 | /* VAL_EAGAIN: |
3046 | * This symbol holds the errno error code set by read() when no data was | |
3047 | * present on the non-blocking file descriptor. | |
1d8eaf8c | 3048 | */ |
b8677e3b MB |
3049 | /* RD_NODATA: |
3050 | * This symbol holds the return code from read() when no data is present | |
3051 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
3052 | * not defined, then you can't distinguish between no data and EOF by | |
3053 | * issuing a read(). You'll have to find another way to tell for sure! | |
e74475c7 | 3054 | */ |
b8677e3b MB |
3055 | /* EOF_NONBLOCK: |
3056 | * This symbol, if defined, indicates to the C program that a read() on | |
3057 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
3058 | * held in RD_NODATA (-1 usually, in that case!). | |
e74475c7 | 3059 | */ |
b8677e3b MB |
3060 | #define VAL_O_NONBLOCK $o_nonblock |
3061 | #define VAL_EAGAIN $eagain | |
3062 | #define RD_NODATA $rd_nodata | |
3063 | #$d_eofnblk EOF_NONBLOCK | |
eaf812ae | 3064 | |
06501368 MB |
3065 | /* Netdb_host_t: |
3066 | * This symbol holds the type used for the 1st argument | |
3067 | * to gethostbyaddr(). | |
3068 | */ | |
3069 | /* Netdb_hlen_t: | |
3070 | * This symbol holds the type used for the 2nd argument | |
3071 | * to gethostbyaddr(). | |
3072 | */ | |
3073 | /* Netdb_name_t: | |
3074 | * This symbol holds the type used for the argument to | |
3075 | * gethostbyname(). | |
3076 | */ | |
3077 | /* Netdb_net_t: | |
3078 | * This symbol holds the type used for the 1st argument to | |
3079 | * getnetbyaddr(). | |
3080 | */ | |
3081 | #define Netdb_host_t $netdb_host_type /**/ | |
3082 | #define Netdb_hlen_t $netdb_hlen_type /**/ | |
3083 | #define Netdb_name_t $netdb_name_type /**/ | |
3084 | #define Netdb_net_t $netdb_net_type /**/ | |
3085 | ||
b8677e3b MB |
3086 | /* PERL_OTHERLIBDIRS: |
3087 | * This variable contains a colon-separated set of paths for the perl | |
3088 | * binary to search for additional library files or modules. | |
3089 | * These directories will be tacked to the end of @INC. | |
3090 | * Perl will automatically search below each path for version- | |
3091 | * and architecture-specific directories. See PERL_INC_VERSION_LIST | |
3092 | * for more details. | |
08c92000 | 3093 | */ |
b8677e3b | 3094 | #$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/ |
08c92000 | 3095 | |
06501368 MB |
3096 | /* Pid_t: |
3097 | * This symbol holds the type used to declare process ids in the kernel. | |
3098 | * It can be int, uint, pid_t, etc... It may be necessary to include | |
3099 | * <sys/types.h> to get any typedef'ed information. | |
3100 | */ | |
3101 | #define Pid_t $pidtype /* PID type */ | |
3102 | ||
b8677e3b MB |
3103 | /* PRIVLIB: |
3104 | * This symbol contains the name of the private library for this package. | |
3105 | * The library is private in the sense that it needn't be in anyone's | |
3106 | * execution path, but it should be accessible by the world. The program | |
3107 | * should be prepared to do ~ expansion. | |
c0bacbef | 3108 | */ |
b8677e3b MB |
3109 | /* PRIVLIB_EXP: |
3110 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
3111 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
3112 | */ | |
3113 | #define PRIVLIB "$privlib" /**/ | |
3114 | #define PRIVLIB_EXP "$privlibexp" /**/ | |
c0bacbef | 3115 | |
06501368 MB |
3116 | /* CAN_PROTOTYPE: |
3117 | * If defined, this macro indicates that the C compiler can handle | |
3118 | * function prototypes. | |
3119 | */ | |
3120 | /* _: | |
3121 | * This macro is used to declare function parameters for folks who want | |
3122 | * to make declarations with prototypes using a different style than | |
3123 | * the above macros. Use double parentheses. For example: | |
3124 | * | |
3125 | * int main _((int argc, char *argv[])); | |
3126 | */ | |
3127 | #$prototype CAN_PROTOTYPE /**/ | |
3128 | #ifdef CAN_PROTOTYPE | |
3129 | #define _(args) args | |
3130 | #else | |
3131 | #define _(args) () | |
3132 | #endif | |
3133 | ||
b8677e3b MB |
3134 | /* PTRSIZE: |
3135 | * This symbol contains the size of a pointer, so that the C preprocessor | |
3136 | * can make decisions based on it. It will be sizeof(void *) if | |
3137 | * the compiler supports (void *); otherwise it will be | |
3138 | * sizeof(char *). | |
08c92000 | 3139 | */ |
b8677e3b | 3140 | #define PTRSIZE $ptrsize /**/ |
08c92000 | 3141 | |
06501368 MB |
3142 | /* HAS_QUAD: |
3143 | * This symbol, if defined, tells that there's a 64-bit integer type, | |
3144 | * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one | |
3145 | * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, QUAD_IS_INT64_T, | |
3146 | * or QUAD_IS___INT64. | |
3147 | */ | |
3148 | #$d_quad HAS_QUAD /**/ | |
3149 | #ifdef HAS_QUAD | |
3150 | # define Quad_t $quadtype /**/ | |
3151 | # define Uquad_t $uquadtype /**/ | |
3152 | # define QUADKIND $quadkind /**/ | |
3153 | # define QUAD_IS_INT 1 | |
3154 | # define QUAD_IS_LONG 2 | |
3155 | # define QUAD_IS_LONG_LONG 3 | |
3156 | # define QUAD_IS_INT64_T 4 | |
3157 | # define QUAD_IS___INT64 5 | |
3158 | #endif | |
3159 | ||
b8677e3b MB |
3160 | /* Drand01: |
3161 | * This macro is to be used to generate uniformly distributed | |
3162 | * random numbers over the range [0., 1.[. You may have to supply | |
3163 | * an 'extern double drand48();' in your program since SunOS 4.1.3 | |
3164 | * doesn't provide you with anything relevant in its headers. | |
3165 | * See HAS_DRAND48_PROTO. | |
a33c94aa | 3166 | */ |
b8677e3b MB |
3167 | /* Rand_seed_t: |
3168 | * This symbol defines the type of the argument of the | |
3169 | * random seed function. | |
49dabb45 | 3170 | */ |
b8677e3b MB |
3171 | /* seedDrand01: |
3172 | * This symbol defines the macro to be used in seeding the | |
3173 | * random number generator (see Drand01). | |
3813c136 | 3174 | */ |
b8677e3b MB |
3175 | /* RANDBITS: |
3176 | * This symbol indicates how many bits are produced by the | |
3177 | * function used to generate normalized random numbers. | |
3178 | * Values include 15, 16, 31, and 48. | |
1acc7ade | 3179 | */ |
a05353bf MB |
3180 | #define Drand01() $drand01 /**/ |
3181 | #define Rand_seed_t $randseedtype /**/ | |
3182 | #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/ | |
3183 | #define RANDBITS $randbits /**/ | |
b8677e3b | 3184 | |
06501368 MB |
3185 | /* Select_fd_set_t: |
3186 | * This symbol holds the type used for the 2nd, 3rd, and 4th | |
3187 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET | |
3188 | * is defined, and 'int *' otherwise. This is only useful if you | |
3189 | * have select(), of course. | |
3190 | */ | |
3191 | #define Select_fd_set_t $selecttype /**/ | |
3192 | ||
3193 | /* SH_PATH: | |
3194 | * This symbol contains the full pathname to the shell used on this | |
3195 | * on this system to execute Bourne shell scripts. Usually, this will be | |
3196 | * /bin/sh, though it's possible that some systems will have /bin/ksh, | |
3197 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as | |
3198 | * D:/bin/sh.exe. | |
3199 | */ | |
0b0a0724 | 3200 | #define SH_PATH "$targetsh" /**/ |
06501368 MB |
3201 | |
3202 | /* SIG_NAME: | |
3203 | * This symbol contains a list of signal names in order of | |
3204 | * signal number. This is intended | |
3205 | * to be used as a static array initialization, like this: | |
3206 | * char *sig_name[] = { SIG_NAME }; | |
3207 | * The signals in the list are separated with commas, and each signal | |
3208 | * is surrounded by double quotes. There is no leading SIG in the signal | |
3209 | * name, i.e. SIGQUIT is known as "QUIT". | |
3210 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
3211 | * etc., where nn is the actual signal number (e.g. NUM37). | |
3212 | * The signal number for sig_name[i] is stored in sig_num[i]. | |
3213 | * The last element is 0 to terminate the list with a NULL. This | |
3214 | * corresponds to the 0 at the end of the sig_name_init list. | |
3215 | * Note that this variable is initialized from the sig_name_init, | |
3216 | * not from sig_name (which is unused). | |
3217 | */ | |
3218 | /* SIG_NUM: | |
3219 | * This symbol contains a list of signal numbers, in the same order as the | |
3220 | * SIG_NAME list. It is suitable for static array initialization, as in: | |
3221 | * int sig_num[] = { SIG_NUM }; | |
3222 | * The signals in the list are separated with commas, and the indices | |
3223 | * within that list and the SIG_NAME list match, so it's easy to compute | |
3224 | * the signal name from a number or vice versa at the price of a small | |
3225 | * dynamic linear lookup. | |
3226 | * Duplicates are allowed, but are moved to the end of the list. | |
3227 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
3228 | * if (i < NSIG) then sig_number[i] == i. | |
3229 | * The last element is 0, corresponding to the 0 at the end of | |
3230 | * the sig_name_init list. | |
3231 | * Note that this variable is initialized from the sig_num_init, | |
3232 | * not from sig_num (which is unused). | |
3233 | */ | |
3234 | /* SIG_SIZE: | |
3235 | * This variable contains the number of elements of the SIG_NAME | |
3236 | * and SIG_NUM arrays, excluding the final NULL entry. | |
3237 | */ | |
3238 | #define SIG_NAME $sig_name_init /**/ | |
3239 | #define SIG_NUM $sig_num_init /**/ | |
3240 | #define SIG_SIZE $sig_size /**/ | |
3241 | ||
b8677e3b MB |
3242 | /* SITEARCH: |
3243 | * This symbol contains the name of the private library for this package. | |
3244 | * The library is private in the sense that it needn't be in anyone's | |
3245 | * execution path, but it should be accessible by the world. The program | |
3246 | * should be prepared to do ~ expansion. | |
3247 | * The standard distribution will put nothing in this directory. | |
3248 | * After perl has been installed, users may install their own local | |
3249 | * architecture-dependent modules in this directory with | |
3250 | * MakeMaker Makefile.PL | |
3251 | * or equivalent. See INSTALL for details. | |
a33c94aa | 3252 | */ |
b8677e3b MB |
3253 | /* SITEARCH_EXP: |
3254 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
3255 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
10bc17b6 | 3256 | */ |
b8677e3b MB |
3257 | #$d_sitearch SITEARCH "$sitearch" /**/ |
3258 | #$d_sitearch SITEARCH_EXP "$sitearchexp" /**/ | |
3259 | ||
3260 | /* SITELIB: | |
3261 | * This symbol contains the name of the private library for this package. | |
3262 | * The library is private in the sense that it needn't be in anyone's | |
3263 | * execution path, but it should be accessible by the world. The program | |
3264 | * should be prepared to do ~ expansion. | |
3265 | * The standard distribution will put nothing in this directory. | |
3266 | * After perl has been installed, users may install their own local | |
3267 | * architecture-independent modules in this directory with | |
3268 | * MakeMaker Makefile.PL | |
3269 | * or equivalent. See INSTALL for details. | |
10bc17b6 | 3270 | */ |
b8677e3b MB |
3271 | /* SITELIB_EXP: |
3272 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
3273 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
10bc17b6 | 3274 | */ |
b8677e3b MB |
3275 | /* SITELIB_STEM: |
3276 | * This define is SITELIB_EXP with any trailing version-specific component | |
3277 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
3278 | * be tacked onto this variable to generate a list of directories to search. | |
10bc17b6 | 3279 | */ |
b8677e3b MB |
3280 | #define SITELIB "$sitelib" /**/ |
3281 | #define SITELIB_EXP "$sitelibexp" /**/ | |
3282 | #define SITELIB_STEM "$sitelib_stem" /**/ | |
10bc17b6 | 3283 | |
06501368 MB |
3284 | /* Size_t_size: |
3285 | * This symbol holds the size of a Size_t in bytes. | |
3286 | */ | |
3287 | #define Size_t_size $sizesize /**/ | |
3288 | ||
3289 | /* Size_t: | |
3290 | * This symbol holds the type used to declare length parameters | |
3291 | * for string functions. It is usually size_t, but may be | |
3292 | * unsigned long, int, etc. It may be necessary to include | |
3293 | * <sys/types.h> to get any typedef'ed information. | |
3294 | */ | |
3295 | #define Size_t $sizetype /* length parameter for string functions */ | |
3296 | ||
3297 | /* Sock_size_t: | |
3298 | * This symbol holds the type used for the size argument of | |
3299 | * various socket calls (just the base type, not the pointer-to). | |
3300 | */ | |
3301 | #define Sock_size_t $socksizetype /**/ | |
3302 | ||
b8677e3b MB |
3303 | /* SSize_t: |
3304 | * This symbol holds the type used by functions that return | |
3305 | * a count of bytes or an error condition. It must be a signed type. | |
3306 | * It is usually ssize_t, but may be long or int, etc. | |
3307 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
3308 | * to get any typedef'ed information. | |
3309 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
10bc17b6 | 3310 | */ |
b8677e3b | 3311 | #define SSize_t $ssizetype /* signed count of bytes */ |
08c92000 | 3312 | |
06501368 MB |
3313 | /* STDCHAR: |
3314 | * This symbol is defined to be the type of char used in stdio.h. | |
3315 | * It has the values "unsigned char" or "char". | |
eaf812ae | 3316 | */ |
06501368 MB |
3317 | #define STDCHAR $stdchar /**/ |
3318 | ||
3319 | /* Uid_t_f: | |
3320 | * This symbol defines the format string used for printing a Uid_t. | |
eaf812ae | 3321 | */ |
06501368 | 3322 | #define Uid_t_f $uidformat /**/ |
eaf812ae | 3323 | |
06501368 | 3324 | /* Uid_t_sign: |
cfc2543a | 3325 | * This symbol holds the signedness of a Uid_t. |
06501368 | 3326 | * 1 for unsigned, -1 for signed. |
36adc09b | 3327 | */ |
06501368 MB |
3328 | #define Uid_t_sign $uidsign /* UID sign */ |
3329 | ||
3330 | /* Uid_t_size: | |
3331 | * This symbol holds the size of a Uid_t in bytes. | |
a33c94aa | 3332 | */ |
06501368 | 3333 | #define Uid_t_size $uidsize /* UID size */ |
a33c94aa | 3334 | |
06501368 MB |
3335 | /* Uid_t: |
3336 | * This symbol holds the type used to declare user ids in the kernel. | |
3337 | * It can be int, ushort, uid_t, etc... It may be necessary to include | |
3338 | * <sys/types.h> to get any typedef'ed information. | |
15b61c98 | 3339 | */ |
06501368 | 3340 | #define Uid_t $uidtype /* UID type */ |
b8677e3b | 3341 | |
06501368 MB |
3342 | /* USE_ITHREADS: |
3343 | * This symbol, if defined, indicates that Perl should be built to | |
3344 | * use the interpreter-based threading implementation. | |
b8677e3b | 3345 | */ |
06501368 MB |
3346 | /* USE_5005THREADS: |
3347 | * This symbol, if defined, indicates that Perl should be built to | |
3348 | * use the 5.005-based threading implementation. | |
3349 | * Only valid up to 5.8.x. | |
ed140128 | 3350 | */ |
06501368 MB |
3351 | /* OLD_PTHREADS_API: |
3352 | * This symbol, if defined, indicates that Perl should | |
3353 | * be built to use the old draft POSIX threads API. | |
ed140128 | 3354 | */ |
06501368 MB |
3355 | /* USE_REENTRANT_API: |
3356 | * This symbol, if defined, indicates that Perl should | |
3357 | * try to use the various _r versions of library functions. | |
3358 | * This is extremely experimental. | |
3359 | */ | |
3360 | #$use5005threads USE_5005THREADS /**/ | |
3361 | #$useithreads USE_ITHREADS /**/ | |
3362 | #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) | |
3363 | #define USE_THREADS /* until src is revised*/ | |
3364 | #endif | |
3365 | #$d_oldpthreads OLD_PTHREADS_API /**/ | |
3366 | #$usereentrant USE_REENTRANT_API /**/ | |
ed140128 | 3367 | |
06501368 MB |
3368 | /* PERL_VENDORARCH: |
3369 | * If defined, this symbol contains the name of a private library. | |
3370 | * The library is private in the sense that it needn't be in anyone's | |
3371 | * execution path, but it should be accessible by the world. | |
3372 | * It may have a ~ on the front. | |
3373 | * The standard distribution will put nothing in this directory. | |
3374 | * Vendors who distribute perl may wish to place their own | |
3375 | * architecture-dependent modules and extensions in this directory with | |
3376 | * MakeMaker Makefile.PL INSTALLDIRS=vendor | |
3377 | * or equivalent. See INSTALL for details. | |
ed140128 | 3378 | */ |
06501368 MB |
3379 | /* PERL_VENDORARCH_EXP: |
3380 | * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used | |
3381 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
3382 | */ | |
3383 | #$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ | |
3384 | #$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ | |
3385 | ||
3386 | /* PERL_VENDORLIB_EXP: | |
3387 | * This symbol contains the ~name expanded version of VENDORLIB, to be used | |
3388 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
3389 | */ | |
3390 | /* PERL_VENDORLIB_STEM: | |
3391 | * This define is PERL_VENDORLIB_EXP with any trailing version-specific component | |
3392 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
3393 | * be tacked onto this variable to generate a list of directories to search. | |
3394 | */ | |
3395 | #$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/ | |
3396 | #$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/ | |
ed140128 | 3397 | |
f53a6e0e MB |
3398 | /* USE_CROSS_COMPILE: |
3399 | * This symbol, if defined, indicates that Perl is being cross-compiled. | |
3400 | */ | |
3401 | /* PERL_TARGETARCH: | |
3402 | * This symbol, if defined, indicates the target architecture | |
3403 | * Perl has been cross-compiled to. Undefined if not a cross-compile. | |
3404 | */ | |
3405 | #ifndef USE_CROSS_COMPILE | |
3406 | #$usecrosscompile USE_CROSS_COMPILE /**/ | |
3407 | #define PERL_TARGETARCH "$targetarch" /**/ | |
3408 | #endif | |
3409 | ||
1be1b388 MB |
3410 | /* PERL_USE_DEVEL: |
3411 | * This symbol, if defined, indicates that Perl was configured with | |
3412 | * -Dusedevel, to enable development features. This should not be | |
3413 | * done for production builds. | |
3414 | */ | |
3415 | #$usedevel PERL_USE_DEVEL /**/ | |
3416 | ||
ed140128 AD |
3417 | /* HAS_ATOLF: |
3418 | * This symbol, if defined, indicates that the atolf routine is | |
3419 | * available to convert strings into long doubles. | |
3420 | */ | |
3421 | #$d_atolf HAS_ATOLF /**/ | |
3422 | ||
3423 | /* HAS_ATOLL: | |
3424 | * This symbol, if defined, indicates that the atoll routine is | |
3425 | * available to convert strings into long longs. | |
3426 | */ | |
3427 | #$d_atoll HAS_ATOLL /**/ | |
3428 | ||
3429 | /* HAS__FWALK: | |
3430 | * This symbol, if defined, indicates that the _fwalk system call is | |
3431 | * available to apply a function to all the file handles. | |
3432 | */ | |
3433 | #$d__fwalk HAS__FWALK /**/ | |
3434 | ||
40613a90 JH |
3435 | /* HAS_ACOSH: |
3436 | * This symbol, if defined, indicates that the acosh routine is | |
d0166596 | 3437 | * available to do the inverse hyperbolic cosine function. |
40613a90 JH |
3438 | */ |
3439 | #$d_acosh HAS_ACOSH /**/ | |
3440 | ||
f40bbcbf MB |
3441 | /* HAS_AINTL: |
3442 | * This symbol, if defined, indicates that the aintl routine is | |
3443 | * available. If copysignl is also present we can emulate modfl. | |
3444 | */ | |
3445 | #$d_aintl HAS_AINTL /**/ | |
3446 | ||
427d28ce JH |
3447 | /* HAS_ASINH: |
3448 | * This symbol, if defined, indicates that the asinh routine is | |
3449 | * available to do the inverse hyperbolic sine function. | |
3450 | */ | |
3451 | #$d_asinh HAS_ASINH /**/ | |
3452 | ||
3453 | /* HAS_ATANH: | |
3454 | * This symbol, if defined, indicates that the atanh routine is | |
3455 | * available to do the inverse hyperbolic tangent function. | |
3456 | */ | |
3457 | #$d_atanh HAS_ATANH /**/ | |
3458 | ||
ed140128 AD |
3459 | /* HAS_BUILTIN_CHOOSE_EXPR: |
3460 | * Can we handle GCC builtin for compile-time ternary-like expressions | |
3461 | */ | |
3462 | /* HAS_BUILTIN_EXPECT: | |
3463 | * Can we handle GCC builtin for telling that certain values are more | |
3464 | * likely | |
3465 | */ | |
3466 | #$d_builtin_expect HAS_BUILTIN_EXPECT /**/ | |
3467 | #$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/ | |
3468 | ||
3469 | /* HAS_C99_VARIADIC_MACROS: | |
3470 | * If defined, the compiler supports C99 variadic macros. | |
3471 | */ | |
3472 | #$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/ | |
3473 | ||
3474 | /* HAS_CLASS: | |
3475 | * This symbol, if defined, indicates that the class routine is | |
3476 | * available to classify doubles. Available for example in AIX. | |
3477 | * The returned values are defined in <float.h> and are: | |
3478 | * | |
3479 | * FP_PLUS_NORM Positive normalized, nonzero | |
3480 | * FP_MINUS_NORM Negative normalized, nonzero | |
3481 | * FP_PLUS_DENORM Positive denormalized, nonzero | |
3482 | * FP_MINUS_DENORM Negative denormalized, nonzero | |
3483 | * FP_PLUS_ZERO +0.0 | |
3484 | * FP_MINUS_ZERO -0.0 | |
3485 | * FP_PLUS_INF +INF | |
3486 | * FP_MINUS_INF -INF | |
3487 | * FP_NANS Signaling Not a Number (NaNS) | |
3488 | * FP_NANQ Quiet Not a Number (NaNQ) | |
3489 | */ | |
3490 | #$d_class HAS_CLASS /**/ | |
3491 | ||
3492 | /* HAS_CLEARENV: | |
3493 | * This symbol, if defined, indicates that the clearenv () routine is | |
3494 | * available for use. | |
3495 | */ | |
3496 | #$d_clearenv HAS_CLEARENV /**/ | |
3497 | ||
3498 | /* HAS_STRUCT_CMSGHDR: | |
3499 | * This symbol, if defined, indicates that the struct cmsghdr | |
3500 | * is supported. | |
3501 | */ | |
3502 | #$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/ | |
3503 | ||
f40bbcbf MB |
3504 | /* HAS_COPYSIGN: |
3505 | * This symbol, if defined, indicates that the copysign routine is | |
3506 | * available to do the copysign function. | |
3507 | */ | |
3508 | #$d_copysign HAS_COPYSIGN /**/ | |
3509 | ||
ed140128 AD |
3510 | /* HAS_COPYSIGNL: |
3511 | * This symbol, if defined, indicates that the copysignl routine is | |
3512 | * available. If aintl is also present we can emulate modfl. | |
3513 | */ | |
3514 | #$d_copysignl HAS_COPYSIGNL /**/ | |
3515 | ||
3516 | /* USE_CPLUSPLUS: | |
3517 | * This symbol, if defined, indicates that a C++ compiler was | |
3518 | * used to compiled Perl and will be used to compile extensions. | |
3519 | */ | |
3520 | #$d_cplusplus USE_CPLUSPLUS /**/ | |
3521 | ||
3522 | /* HAS_DBMINIT_PROTO: | |
3523 | * This symbol, if defined, indicates that the system provides | |
3524 | * a prototype for the dbminit() function. Otherwise, it is up | |
3525 | * to the program to supply one. A good guess is | |
3526 | * extern int dbminit(char *); | |
3527 | */ | |
3528 | #$d_dbminitproto HAS_DBMINIT_PROTO /**/ | |
3529 | ||
3530 | /* HAS_DIR_DD_FD: | |
3531 | * This symbol, if defined, indicates that the the DIR* dirstream | |
3532 | * structure contains a member variable named dd_fd. | |
3533 | */ | |
3534 | #$d_dir_dd_fd HAS_DIR_DD_FD /**/ | |
3535 | ||
3536 | /* HAS_DIRFD: | |
3537 | * This manifest constant lets the C program know that dirfd | |
3538 | * is available. | |
3539 | */ | |
3540 | #$d_dirfd HAS_DIRFD /**/ | |
3541 | ||
3542 | /* DLSYM_NEEDS_UNDERSCORE: | |
3543 | * This symbol, if defined, indicates that we need to prepend an | |
3544 | * underscore to the symbol name before calling dlsym(). This only | |
3545 | * makes sense if you *have* dlsym, which we will presume is the | |
3546 | * case if you're using dl_dlopen.xs. | |
3547 | */ | |
3548 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ | |
3549 | ||
f40bbcbf MB |
3550 | /* HAS_ERF: |
3551 | * This symbol, if defined, indicates that the erf routine is | |
3552 | * available to do the error function. | |
3553 | */ | |
3554 | #$d_erf HAS_ERF /**/ | |
3555 | ||
3556 | /* HAS_ERFC: | |
3557 | * This symbol, if defined, indicates that the erfc routine is | |
3558 | * available to do the complementary error function. | |
3559 | */ | |
3560 | #$d_erfc HAS_ERFC /**/ | |
3561 | ||
3562 | /* HAS_EXP2: | |
3563 | * This symbol, if defined, indicates that the exp2 routine is | |
3564 | * available to do the 2**x function. | |
3565 | */ | |
3566 | #$d_exp2 HAS_EXP2 /**/ | |
3567 | ||
3568 | /* HAS_EXPM1: | |
3569 | * This symbol, if defined, indicates that the expm1 routine is | |
3570 | * available to do the exp(x) - 1 when x is near 1 function. | |
3571 | */ | |
3572 | #$d_expm1 HAS_EXPM1 /**/ | |
3573 | ||
ed140128 AD |
3574 | /* HAS_FAST_STDIO: |
3575 | * This symbol, if defined, indicates that the "fast stdio" | |
3576 | * is available to manipulate the stdio buffers directly. | |
3577 | */ | |
3578 | #$d_faststdio HAS_FAST_STDIO /**/ | |
3579 | ||
3580 | /* HAS_FCHDIR: | |
3581 | * This symbol, if defined, indicates that the fchdir routine is | |
3582 | * available to change directory using a file descriptor. | |
3583 | */ | |
3584 | #$d_fchdir HAS_FCHDIR /**/ | |
3585 | ||
3586 | /* FCNTL_CAN_LOCK: | |
3587 | * This symbol, if defined, indicates that fcntl() can be used | |
3588 | * for file locking. Normally on Unix systems this is defined. | |
3589 | * It may be undefined on VMS. | |
3590 | */ | |
3591 | #$d_fcntl_can_lock FCNTL_CAN_LOCK /**/ | |
3592 | ||
f40bbcbf MB |
3593 | /* HAS_FDIM: |
3594 | * This symbol, if defined, indicates that the fdim routine is | |
3595 | * available to do the positive difference function. | |
3596 | */ | |
3597 | #$d_fdim HAS_FDIM /**/ | |
3598 | ||
d0166596 MB |
3599 | /* HAS_FEGETROUND: |
3600 | * This symbol, if defined, indicates that the fegetround routine is | |
3601 | * available to return the macro corresponding to the current rounding | |
3602 | * mode. | |
3603 | */ | |
3604 | #$d_fegetround HAS_FEGETROUND /**/ | |
3605 | ||
ed140128 AD |
3606 | /* HAS_FINITE: |
3607 | * This symbol, if defined, indicates that the finite routine is | |
3608 | * available to check whether a double is finite (non-infinity non-NaN). | |
3609 | */ | |
3610 | #$d_finite HAS_FINITE /**/ | |
3611 | ||
3612 | /* HAS_FINITEL: | |
3613 | * This symbol, if defined, indicates that the finitel routine is | |
3614 | * available to check whether a long double is finite | |
3615 | * (non-infinity non-NaN). | |
3616 | */ | |
3617 | #$d_finitel HAS_FINITEL /**/ | |
3618 | ||
3619 | /* HAS_FLOCK_PROTO: | |
3620 | * This symbol, if defined, indicates that the system provides | |
3621 | * a prototype for the flock() function. Otherwise, it is up | |
3622 | * to the program to supply one. A good guess is | |
3623 | * extern int flock(int, int); | |
3624 | */ | |
3625 | #$d_flockproto HAS_FLOCK_PROTO /**/ | |
3626 | ||
f40bbcbf MB |
3627 | /* HAS_FMA: |
3628 | * This symbol, if defined, indicates that the fma routine is | |
3629 | * available to do the multiply-add function. | |
3630 | */ | |
3631 | #$d_fma HAS_FMA /**/ | |
3632 | ||
3633 | /* HAS_FMAX: | |
3634 | * This symbol, if defined, indicates that the fmax routine is | |
3635 | * available to do the maximum function. | |
3636 | */ | |
3637 | #$d_fmax HAS_FMAX /**/ | |
3638 | ||
3639 | /* HAS_FMIN: | |
3640 | * This symbol, if defined, indicates that the fmin routine is | |
3641 | * available to do the minimum function. | |
3642 | */ | |
3643 | #$d_fmin HAS_FMIN /**/ | |
3644 | ||
ed140128 AD |
3645 | /* HAS_FP_CLASS: |
3646 | * This symbol, if defined, indicates that the fp_class routine is | |
3647 | * available to classify doubles. Available for example in Digital UNIX. | |
3648 | * The returned values are defined in <math.h> and are: | |
3649 | * | |
3650 | * FP_SNAN Signaling NaN (Not-a-Number) | |
3651 | * FP_QNAN Quiet NaN (Not-a-Number) | |
3652 | * FP_POS_INF +infinity | |
3653 | * FP_NEG_INF -infinity | |
3654 | * FP_POS_NORM Positive normalized | |
3655 | * FP_NEG_NORM Negative normalized | |
3656 | * FP_POS_DENORM Positive denormalized | |
3657 | * FP_NEG_DENORM Negative denormalized | |
3658 | * FP_POS_ZERO +0.0 (positive zero) | |
3659 | * FP_NEG_ZERO -0.0 (negative zero) | |
3660 | */ | |
3661 | #$d_fp_class HAS_FP_CLASS /**/ | |
3662 | ||
b19ee02c JH |
3663 | /* HAS_FP_CLASSL: |
3664 | * This symbol, if defined, indicates that the fp_classl routine is | |
d0166596 MB |
3665 | * available to classify long doubles. Available for example in |
3666 | * Digital UNIX. See for possible values HAS_FP_CLASS. | |
b19ee02c JH |
3667 | */ |
3668 | #$d_fp_classl HAS_FP_CLASSL /**/ | |
3669 | ||
ed140128 AD |
3670 | /* HAS_FPCLASS: |
3671 | * This symbol, if defined, indicates that the fpclass routine is | |
3672 | * available to classify doubles. Available for example in Solaris/SVR4. | |
3673 | * The returned values are defined in <ieeefp.h> and are: | |
3674 | * | |
3675 | * FP_SNAN signaling NaN | |
3676 | * FP_QNAN quiet NaN | |
3677 | * FP_NINF negative infinity | |
3678 | * FP_PINF positive infinity | |
3679 | * FP_NDENORM negative denormalized non-zero | |
3680 | * FP_PDENORM positive denormalized non-zero | |
3681 | * FP_NZERO negative zero | |
3682 | * FP_PZERO positive zero | |
3683 | * FP_NNORM negative normalized non-zero | |
3684 | * FP_PNORM positive normalized non-zero | |
3685 | */ | |
3686 | #$d_fpclass HAS_FPCLASS /**/ | |
3687 | ||
3688 | /* HAS_FPCLASSIFY: | |
3689 | * This symbol, if defined, indicates that the fpclassify routine is | |
3690 | * available to classify doubles. Available for example in HP-UX. | |
3691 | * The returned values are defined in <math.h> and are | |
3692 | * | |
3693 | * FP_NORMAL Normalized | |
3694 | * FP_ZERO Zero | |
3695 | * FP_INFINITE Infinity | |
3696 | * FP_SUBNORMAL Denormalized | |
3697 | * FP_NAN NaN | |
3698 | * | |
3699 | */ | |
d0166596 MB |
3700 | /* HAS_FP_CLASSIFY: |
3701 | * This symbol, if defined, indicates that the fp_classify routine is | |
3702 | * available to classify doubles. The values are defined in <math.h> | |
3703 | * | |
3704 | * FP_NORMAL Normalized | |
3705 | * FP_ZERO Zero | |
3706 | * FP_INFINITE Infinity | |
3707 | * FP_SUBNORMAL Denormalized | |
3708 | * FP_NAN NaN | |
3709 | * | |
3710 | */ | |
3711 | #$d_fpclassify HAS_FPCLASSIFY /**/ | |
3712 | #$d_fp_classify HAS_FP_CLASSIFY /**/ | |
ed140128 AD |
3713 | |
3714 | /* HAS_FPCLASSL: | |
3715 | * This symbol, if defined, indicates that the fpclassl routine is | |
3716 | * available to classify long doubles. Available for example in IRIX. | |
3717 | * The returned values are defined in <ieeefp.h> and are: | |
3718 | * | |
3719 | * FP_SNAN signaling NaN | |
3720 | * FP_QNAN quiet NaN | |
3721 | * FP_NINF negative infinity | |
3722 | * FP_PINF positive infinity | |
3723 | * FP_NDENORM negative denormalized non-zero | |
3724 | * FP_PDENORM positive denormalized non-zero | |
3725 | * FP_NZERO negative zero | |
3726 | * FP_PZERO positive zero | |
3727 | * FP_NNORM negative normalized non-zero | |
3728 | * FP_PNORM positive normalized non-zero | |
3729 | */ | |
3730 | #$d_fpclassl HAS_FPCLASSL /**/ | |
3731 | ||
4c1a9b0c JH |
3732 | /* HAS_FPGETROUND: |
3733 | * This symbol, if defined, indicates that the fpgetround routine is | |
3734 | * available to get the floating point rounding mode. | |
3735 | */ | |
3736 | #$d_fpgetround HAS_FPGETROUND /**/ | |
3737 | ||
ed140128 AD |
3738 | /* HAS_FPOS64_T: |
3739 | * This symbol will be defined if the C compiler supports fpos64_t. | |
3740 | */ | |
3741 | #$d_fpos64_t HAS_FPOS64_T /**/ | |
3742 | ||
3743 | /* HAS_FREXPL: | |
3744 | * This symbol, if defined, indicates that the frexpl routine is | |
3745 | * available to break a long double floating-point number into | |
3746 | * a normalized fraction and an integral power of 2. | |
3747 | */ | |
3748 | #$d_frexpl HAS_FREXPL /**/ | |
3749 | ||
3750 | /* HAS_STRUCT_FS_DATA: | |
3751 | * This symbol, if defined, indicates that the struct fs_data | |
3752 | * to do statfs() is supported. | |
3753 | */ | |
3754 | #$d_fs_data_s HAS_STRUCT_FS_DATA /**/ | |
3755 | ||
3756 | /* HAS_FSEEKO: | |
3757 | * This symbol, if defined, indicates that the fseeko routine is | |
3758 | * available to fseek beyond 32 bits (useful for ILP32 hosts). | |
3759 | */ | |
3760 | #$d_fseeko HAS_FSEEKO /**/ | |
3761 | ||
3762 | /* HAS_FSTATFS: | |
3763 | * This symbol, if defined, indicates that the fstatfs routine is | |
3764 | * available to stat filesystems by file descriptors. | |
3765 | */ | |
3766 | #$d_fstatfs HAS_FSTATFS /**/ | |
3767 | ||
3768 | /* HAS_FSYNC: | |
3769 | * This symbol, if defined, indicates that the fsync routine is | |
3770 | * available to write a file's modified data and attributes to | |
3771 | * permanent storage. | |
3772 | */ | |
3773 | #$d_fsync HAS_FSYNC /**/ | |
3774 | ||
3775 | /* HAS_FTELLO: | |
3776 | * This symbol, if defined, indicates that the ftello routine is | |
3777 | * available to ftell beyond 32 bits (useful for ILP32 hosts). | |
3778 | */ | |
3779 | #$d_ftello HAS_FTELLO /**/ | |
3780 | ||
3781 | /* HAS_FUTIMES: | |
3782 | * This symbol, if defined, indicates that the futimes routine is | |
3783 | * available to change file descriptor time stamps with struct timevals. | |
3784 | */ | |
3785 | #$d_futimes HAS_FUTIMES /**/ | |
3786 | ||
5086dff9 MB |
3787 | /* HAS_GETADDRINFO: |
3788 | * This symbol, if defined, indicates that the getaddrinfo() function | |
3789 | * is available for use. | |
3790 | */ | |
3791 | #$d_getaddrinfo HAS_GETADDRINFO /**/ | |
3792 | ||
ed140128 AD |
3793 | /* HAS_GETCWD: |
3794 | * This symbol, if defined, indicates that the getcwd routine is | |
3795 | * available to get the current working directory. | |
3796 | */ | |
3797 | #$d_getcwd HAS_GETCWD /**/ | |
3798 | ||
3799 | /* HAS_GETESPWNAM: | |
3800 | * This symbol, if defined, indicates that the getespwnam system call is | |
cd95ead5 | 3801 | * available to retrieve enhanced (shadow) password entries by name. |
ed140128 AD |
3802 | */ |
3803 | #$d_getespwnam HAS_GETESPWNAM /**/ | |
3804 | ||
3805 | /* HAS_GETFSSTAT: | |
3806 | * This symbol, if defined, indicates that the getfsstat routine is | |
3807 | * available to stat filesystems in bulk. | |
3808 | */ | |
3809 | #$d_getfsstat HAS_GETFSSTAT /**/ | |
3810 | ||
3811 | /* HAS_GETITIMER: | |
3812 | * This symbol, if defined, indicates that the getitimer routine is | |
3813 | * available to return interval timers. | |
3814 | */ | |
3815 | #$d_getitimer HAS_GETITIMER /**/ | |
3816 | ||
3817 | /* HAS_GETMNT: | |
3818 | * This symbol, if defined, indicates that the getmnt routine is | |
3819 | * available to get filesystem mount info by filename. | |
3820 | */ | |
3821 | #$d_getmnt HAS_GETMNT /**/ | |
3822 | ||
3823 | /* HAS_GETMNTENT: | |
3824 | * This symbol, if defined, indicates that the getmntent routine is | |
3825 | * available to iterate through mounted file systems to get their info. | |
3826 | */ | |
3827 | #$d_getmntent HAS_GETMNTENT /**/ | |
3828 | ||
5086dff9 MB |
3829 | /* HAS_GETNAMEINFO: |
3830 | * This symbol, if defined, indicates that the getnameinfo() function | |
3831 | * is available for use. | |
3832 | */ | |
3833 | #$d_getnameinfo HAS_GETNAMEINFO /**/ | |
3834 | ||
ed140128 AD |
3835 | /* HAS_GETPRPWNAM: |
3836 | * This symbol, if defined, indicates that the getprpwnam system call is | |
3837 | * available to retrieve protected (shadow) password entries by name. | |
3838 | */ | |
3839 | #$d_getprpwnam HAS_GETPRPWNAM /**/ | |
3840 | ||
3841 | /* HAS_GETSPNAM: | |
3842 | * This symbol, if defined, indicates that the getspnam system call is | |
3843 | * available to retrieve SysV shadow password entries by name. | |
3844 | */ | |
3845 | #$d_getspnam HAS_GETSPNAM /**/ | |
3846 | ||
3847 | /* HAS_HASMNTOPT: | |
3848 | * This symbol, if defined, indicates that the hasmntopt routine is | |
3849 | * available to query the mount options of file systems. | |
3850 | */ | |
3851 | #$d_hasmntopt HAS_HASMNTOPT /**/ | |
3852 | ||
427d28ce JH |
3853 | /* HAS_HYPOT: |
3854 | * This symbol, if defined, indicates that the hypot routine is | |
3855 | * available to do the hypotenuse function. | |
3856 | */ | |
3857 | #$d_hypot HAS_HYPOT /**/ | |
3858 | ||
3859 | /* HAS_ILOGB: | |
3860 | * This symbol, if defined, indicates that the ilogb routine is | |
f40bbcbf | 3861 | * available to get integer exponent of a floating-point value. |
427d28ce JH |
3862 | */ |
3863 | #$d_ilogb HAS_ILOGB /**/ | |
3864 | ||
ed140128 AD |
3865 | /* HAS_ILOGBL: |
3866 | * This symbol, if defined, indicates that the ilogbl routine is | |
3867 | * available. If scalbnl is also present we can emulate frexpl. | |
3868 | */ | |
3869 | #$d_ilogbl HAS_ILOGBL /**/ | |
3870 | ||
5086dff9 MB |
3871 | /* HAS_INETNTOP: |
3872 | * This symbol, if defined, indicates that the inet_ntop() function | |
3873 | * is available to parse IPv4 and IPv6 strings. | |
3874 | */ | |
3875 | #$d_inetntop HAS_INETNTOP /**/ | |
3876 | ||
3877 | /* HAS_INETPTON: | |
3878 | * This symbol, if defined, indicates that the inet_pton() function | |
3879 | * is available to parse IPv4 and IPv6 strings. | |
3880 | */ | |
3881 | #$d_inetpton HAS_INETPTON /**/ | |
3882 | ||
ed140128 AD |
3883 | /* HAS_INT64_T: |
3884 | * This symbol will defined if the C compiler supports int64_t. | |
3885 | * Usually the <inttypes.h> needs to be included, but sometimes | |
3886 | * <sys/types.h> is enough. | |
3887 | */ | |
3888 | #$d_int64_t HAS_INT64_T /**/ | |
3889 | ||
269a7913 | 3890 | /* HAS_ISBLANK: |
1332606d | 3891 | * This manifest constant lets the C program know that isblank |
269a7913 MB |
3892 | * is available. |
3893 | */ | |
3894 | #$d_isblank HAS_ISBLANK /**/ | |
3895 | ||
ed140128 AD |
3896 | /* HAS_ISFINITE: |
3897 | * This symbol, if defined, indicates that the isfinite routine is | |
3898 | * available to check whether a double is finite (non-infinity non-NaN). | |
3899 | */ | |
3900 | #$d_isfinite HAS_ISFINITE /**/ | |
3901 | ||
fa484e60 | 3902 | /* HAS_ISFINITEL: |
d0166596 MB |
3903 | * This symbol, if defined, indicates that the isfinitel routine is |
3904 | * available to check whether a long double is finite. | |
fa484e60 JH |
3905 | * (non-infinity non-NaN). |
3906 | */ | |
3907 | #$d_isfinitel HAS_ISFINITEL /**/ | |
3908 | ||
ed140128 AD |
3909 | /* HAS_ISINF: |
3910 | * This symbol, if defined, indicates that the isinf routine is | |
3911 | * available to check whether a double is an infinity. | |
3912 | */ | |
3913 | #$d_isinf HAS_ISINF /**/ | |
3914 | ||
d0166596 MB |
3915 | /* HAS_ISINFL: |
3916 | * This symbol, if defined, indicates that the isinfl routine is | |
fa484e60 JH |
3917 | * available to check whether a long double is an infinity. |
3918 | */ | |
3919 | #$d_isinfl HAS_ISINFL /**/ | |
3920 | ||
f40bbcbf MB |
3921 | /* HAS_ISLESS: |
3922 | * This symbol, if defined, indicates that the isless routine is | |
3923 | * available to do the isless function. | |
3924 | */ | |
3925 | #$d_isless HAS_ISLESS /**/ | |
3926 | ||
ed140128 AD |
3927 | /* HAS_ISNAN: |
3928 | * This symbol, if defined, indicates that the isnan routine is | |
3929 | * available to check whether a double is a NaN. | |
3930 | */ | |
3931 | #$d_isnan HAS_ISNAN /**/ | |
3932 | ||
3933 | /* HAS_ISNANL: | |
3934 | * This symbol, if defined, indicates that the isnanl routine is | |
3935 | * available to check whether a long double is a NaN. | |
3936 | */ | |
3937 | #$d_isnanl HAS_ISNANL /**/ | |
3938 | ||
427d28ce JH |
3939 | /* HAS_ISNORMAL: |
3940 | * This symbol, if defined, indicates that the isnormal routine is | |
3941 | * available to check whether a double is normal (non-zero normalized). | |
3942 | */ | |
3943 | #$d_isnormal HAS_ISNORMAL /**/ | |
3944 | ||
d0166596 MB |
3945 | /* HAS_J0: |
3946 | * This symbol, if defined, indicates to the C program that the | |
3947 | * j0() function is available for Bessel functions of the first | |
3948 | * kind of the order zero, for doubles. | |
3949 | */ | |
3950 | /* HAS_J0L: | |
3951 | * This symbol, if defined, indicates to the C program that the | |
3952 | * j0l() function is available for Bessel functions of the first | |
3953 | * kind of the order zero, for long doubles. | |
3954 | */ | |
3955 | #$d_j0 HAS_J0 /**/ | |
3956 | #$d_j0l HAS_J0L /**/ | |
3957 | ||
f40bbcbf MB |
3958 | /* HAS_LC_MONETARY_2008: |
3959 | * This symbol, if defined, indicates that the localeconv routine is | |
3960 | * available and has the additional members added in POSIX 1003.1-2008. | |
3961 | */ | |
3962 | #$d_lc_monetary_2008 HAS_LC_MONETARY_2008 /**/ | |
3963 | ||
ed140128 AD |
3964 | /* HAS_LDBL_DIG: |
3965 | * This symbol, if defined, indicates that this system's <float.h> | |
3966 | * or <limits.h> defines the symbol LDBL_DIG, which is the number | |
3967 | * of significant digits in a long double precision number. Unlike | |
3968 | * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined. | |
3969 | */ | |
06501368 | 3970 | #$d_ldbl_dig HAS_LDBL_DIG /* */ |
ed140128 | 3971 | |
427d28ce JH |
3972 | /* HAS_LGAMMA: |
3973 | * This symbol, if defined, indicates that the lgamma routine is | |
3974 | * available to do the log gamma function. See also HAS_TGAMMA and | |
3975 | * HAS_LGAMMA_R. | |
3976 | */ | |
3977 | #$d_lgamma HAS_LGAMMA /**/ | |
3978 | ||
3979 | /* HAS_LGAMMA_R: | |
3980 | * This symbol, if defined, indicates that the lgamma_r routine is | |
3981 | * available to do the log gamma function without using the global | |
3982 | * signgam variable. | |
3983 | */ | |
3984 | #$d_lgamma_r HAS_LGAMMA_R /**/ | |
3985 | ||
ed140128 AD |
3986 | /* LIBM_LIB_VERSION: |
3987 | * This symbol, if defined, indicates that libm exports _LIB_VERSION | |
3988 | * and that math.h defines the enum to manipulate it. | |
3989 | */ | |
3990 | #$d_libm_lib_version LIBM_LIB_VERSION /**/ | |
3991 | ||
427d28ce JH |
3992 | /* HAS_LLRINT: |
3993 | * This symbol, if defined, indicates that the llrint routine is | |
3994 | * available to return the closest long long value according to | |
3995 | * the current rounding mode. | |
3996 | */ | |
3997 | #$d_llrint HAS_LLRINT /**/ | |
3998 | ||
bc580dd3 JH |
3999 | /* HAS_LLRINTL: |
4000 | * This symbol, if defined, indicates that the llrintl routine is | |
4001 | * available to return the closest long long value of the long double | |
4002 | * argument according to the current rounding mode. | |
4003 | */ | |
4004 | #$d_llrintl HAS_LLRINTL /**/ | |
4005 | ||
427d28ce JH |
4006 | /* HAS_LLROUND: |
4007 | * This symbol, if defined, indicates that the llround routine is | |
4008 | * available to return the nearest long long value. | |
4009 | */ | |
4010 | #$d_llround HAS_LLROUND /**/ | |
4011 | ||
bc580dd3 JH |
4012 | /* HAS_LLROUNDL: |
4013 | * This symbol, if defined, indicates that the llroundl routine is | |
68936db0 MB |
4014 | * available to return the nearest long long value away from zero of |
4015 | * the long double argument value. | |
bc580dd3 JH |
4016 | */ |
4017 | #$d_llroundl HAS_LLROUNDL /**/ | |
4018 | ||
427d28ce | 4019 | /* HAS_LOG1P: |
f40bbcbf MB |
4020 | * This symbol, if defined, indicates that the log1p routine is |
4021 | * available to do the logarithm of 1 plus argument function. | |
427d28ce JH |
4022 | */ |
4023 | #$d_log1p HAS_LOG1P /**/ | |
4024 | ||
4025 | /* HAS_LOG2: | |
f40bbcbf | 4026 | * This symbol, if defined, indicates that the log2 routine is |
427d28ce JH |
4027 | * available to do the log2 function. |
4028 | */ | |
4029 | #$d_log2 HAS_LOG2 /**/ | |
4030 | ||
4031 | /* HAS_LOGB: | |
f40bbcbf | 4032 | * This symbol, if defined, indicates that the logb routine is |
427d28ce JH |
4033 | * available to do the logb function. |
4034 | */ | |
4035 | #$d_logb HAS_LOGB /**/ | |
4036 | ||
4037 | /* HAS_LRINT: | |
4038 | * This symbol, if defined, indicates that the lrint routine is | |
4039 | * available to return the closest integral value according to | |
4040 | * the current rounding mode. | |
4041 | */ | |
4042 | #$d_lrint HAS_LRINT /**/ | |
4043 | ||
bc580dd3 JH |
4044 | /* HAS_LRINTL: |
4045 | * This symbol, if defined, indicates that the lrintl routine is | |
68936db0 | 4046 | * available to return the closest integral value of the long double |
bc580dd3 JH |
4047 | * argument according to the current rounding mode. |
4048 | */ | |
4049 | #$d_lrintl HAS_LRINTL /**/ | |
4050 | ||
427d28ce JH |
4051 | /* HAS_LROUND: |
4052 | * This symbol, if defined, indicates that the lround routine is | |
4053 | * available to return the nearest integral value. | |
4054 | */ | |
4055 | #$d_lround HAS_LROUND /**/ | |
4056 | ||
bc580dd3 JH |
4057 | /* HAS_LROUNDL: |
4058 | * This symbol, if defined, indicates that the lroundl routine is | |
68936db0 MB |
4059 | * available to return the nearest integral value away from zero of |
4060 | * the long double argument value. | |
bc580dd3 JH |
4061 | */ |
4062 | #$d_lroundl HAS_LROUNDL /**/ | |
4063 | ||
ed140128 AD |
4064 | /* HAS_MADVISE: |
4065 | * This symbol, if defined, indicates that the madvise system call is | |
4066 | * available to map a file into memory. | |
4067 | */ | |
4068 | #$d_madvise HAS_MADVISE /**/ | |
4069 | ||
4070 | /* HAS_MALLOC_SIZE: | |
4071 | * This symbol, if defined, indicates that the malloc_size | |
4072 | * routine is available for use. | |
4073 | */ | |
4074 | #$d_malloc_size HAS_MALLOC_SIZE /**/ | |
4075 | ||
4076 | /* HAS_MALLOC_GOOD_SIZE: | |
4077 | * This symbol, if defined, indicates that the malloc_good_size | |
4078 | * routine is available for use. | |
4079 | */ | |
4080 | #$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/ | |
4081 | ||
4082 | /* HAS_MKDTEMP: | |
4083 | * This symbol, if defined, indicates that the mkdtemp routine is | |
4084 | * available to exclusively create a uniquely named temporary directory. | |
4085 | */ | |
4086 | #$d_mkdtemp HAS_MKDTEMP /**/ | |
4087 | ||
4088 | /* HAS_MKSTEMPS: | |
4089 | * This symbol, if defined, indicates that the mkstemps routine is | |
cd95ead5 | 4090 | * available to exclusively create and open a uniquely named |
ed140128 AD |
4091 | * (with a suffix) temporary file. |
4092 | */ | |
4093 | #$d_mkstemps HAS_MKSTEMPS /**/ | |
4094 | ||
4095 | /* HAS_MODFL: | |
4096 | * This symbol, if defined, indicates that the modfl routine is | |
4097 | * available to split a long double x into a fractional part f and | |
4098 | * an integer part i such that |f| < 1.0 and (f + i) = x. | |
4099 | */ | |
4100 | /* HAS_MODFL_PROTO: | |
4101 | * This symbol, if defined, indicates that the system provides | |
4102 | * a prototype for the modfl() function. Otherwise, it is up | |
4103 | * to the program to supply one. | |
4104 | */ | |
4105 | /* HAS_MODFL_POW32_BUG: | |
4106 | * This symbol, if defined, indicates that the modfl routine is | |
4107 | * broken for long doubles >= pow(2, 32). | |
4108 | * For example from 4294967303.150000 one would get 4294967302.000000 | |
4109 | * and 1.150000. The bug has been seen in certain versions of glibc, | |
4110 | * release 2.2.2 is known to be okay. | |
4111 | */ | |
4112 | #$d_modfl HAS_MODFL /**/ | |
4113 | #$d_modflproto HAS_MODFL_PROTO /**/ | |
4114 | #$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/ | |
4115 | ||
4116 | /* HAS_MPROTECT: | |
4117 | * This symbol, if defined, indicates that the mprotect system call is | |
4118 | * available to modify the access protection of a memory mapped file. | |
4119 | */ | |
4120 | #$d_mprotect HAS_MPROTECT /**/ | |
4121 | ||
4122 | /* HAS_STRUCT_MSGHDR: | |
4123 | * This symbol, if defined, indicates that the struct msghdr | |
4124 | * is supported. | |
4125 | */ | |
4126 | #$d_msghdr_s HAS_STRUCT_MSGHDR /**/ | |
4127 | ||
f40bbcbf MB |
4128 | /* HAS_NAN: |
4129 | * This symbol, if defined, indicates that the nan routine is | |
4130 | * available to generate NaN. | |
4131 | */ | |
4132 | #$d_nan HAS_NAN /**/ | |
4133 | ||
4134 | /* HAS_NEARBYINT: | |
4135 | * This symbol, if defined, indicates that the nearbyint routine is | |
4136 | * available to return the integral value closest to (according to | |
4137 | * the current rounding mode) to x. | |
4138 | */ | |
4139 | #$d_nearbyint HAS_NEARBYINT /**/ | |
4140 | ||
4141 | /* HAS_NEXTAFTER: | |
4142 | * This symbol, if defined, indicates that the nextafter routine is | |
4143 | * available to return the next machine representable double from | |
4144 | * x in direction y. | |
4145 | */ | |
4146 | #$d_nextafter HAS_NEXTAFTER /**/ | |
4147 | ||
4148 | /* HAS_NEXTTOWARD: | |
4149 | * This symbol, if defined, indicates that the nexttoward routine is | |
4150 | * available to return the next machine representable long double from | |
4151 | * x in direction y. | |
4152 | */ | |
4153 | #$d_nexttoward HAS_NEXTTOWARD /**/ | |
4154 | ||
ed140128 AD |
4155 | /* HAS_NL_LANGINFO: |
4156 | * This symbol, if defined, indicates that the nl_langinfo routine is | |
4157 | * available to return local data. You will also need <langinfo.h> | |
4158 | * and therefore I_LANGINFO. | |
4159 | */ | |
4160 | #$d_nl_langinfo HAS_NL_LANGINFO /**/ | |
4161 | ||
4162 | /* HAS_OFF64_T: | |
4163 | * This symbol will be defined if the C compiler supports off64_t. | |
4164 | */ | |
4165 | #$d_off64_t HAS_OFF64_T /**/ | |
4166 | ||
c796e3db MB |
4167 | /* HAS_PRCTL: |
4168 | * This symbol, if defined, indicates that the prctl routine is | |
4169 | * available to set process title. | |
b75ee85b JH |
4170 | * Note that there are at least two prctl variants: Linux and Irix. |
4171 | * While they are somewhat similar, they are incompatible. | |
c796e3db MB |
4172 | */ |
4173 | /* HAS_PRCTL_SET_NAME: | |
4174 | * This symbol, if defined, indicates that the prctl routine is | |
4175 | * available to set process title and supports PR_SET_NAME. | |
4176 | */ | |
4177 | #$d_prctl HAS_PRCTL /**/ | |
4178 | #$d_prctl_set_name HAS_PRCTL_SET_NAME /**/ | |
4179 | ||
ed140128 AD |
4180 | /* HAS_PROCSELFEXE: |
4181 | * This symbol is defined if PROCSELFEXE_PATH is a symlink | |
4182 | * to the absolute pathname of the executing program. | |
4183 | */ | |
4184 | /* PROCSELFEXE_PATH: | |
4185 | * If HAS_PROCSELFEXE is defined this symbol is the filename | |
4186 | * of the symbolic link pointing to the absolute pathname of | |
4187 | * the executing program. | |
4188 | */ | |
4189 | #$d_procselfexe HAS_PROCSELFEXE /**/ | |
4190 | #if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH) | |
4191 | #define PROCSELFEXE_PATH $procselfexe /**/ | |
4192 | #endif | |
4193 | ||
4194 | /* HAS_PTHREAD_ATTR_SETSCOPE: | |
4195 | * This symbol, if defined, indicates that the pthread_attr_setscope | |
4196 | * system call is available to set the contention scope attribute of | |
4197 | * a thread attribute object. | |
4198 | */ | |
4199 | #$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/ | |
4200 | ||
0e0c5f82 MB |
4201 | /* HAS_PTRDIFF_T: |
4202 | * This symbol will be defined if the C compiler supports ptrdiff_t. | |
4203 | */ | |
4204 | #$d_ptrdiff_t HAS_PTRDIFF_T /**/ | |
4205 | ||
ed140128 AD |
4206 | /* HAS_READV: |
4207 | * This symbol, if defined, indicates that the readv routine is | |
4208 | * available to do gather reads. You will also need <sys/uio.h> | |
4209 | * and there I_SYSUIO. | |
4210 | */ | |
4211 | #$d_readv HAS_READV /**/ | |
4212 | ||
4213 | /* HAS_RECVMSG: | |
4214 | * This symbol, if defined, indicates that the recvmsg routine is | |
4215 | * available to send structured socket messages. | |
4216 | */ | |
4217 | #$d_recvmsg HAS_RECVMSG /**/ | |
4218 | ||
f40bbcbf MB |
4219 | /* HAS_REMAINDER: |
4220 | * This symbol, if defined, indicates that the remainder routine is | |
4221 | * available to return the floating-point remainder. | |
4222 | */ | |
4223 | #$d_remainder HAS_REMAINDER /**/ | |
4224 | ||
4225 | /* HAS_REMQUO: | |
4226 | * This symbol, if defined, indicates that the remquo routine is | |
4227 | * available to return the remainder and part of quotient. | |
4228 | */ | |
4229 | #$d_remquo HAS_REMQUO /**/ | |
4230 | ||
4231 | /* HAS_RINT: | |
4232 | * This symbol, if defined, indicates that the rint routine is | |
4233 | * available to return the nearest integral value to x as double | |
4234 | * using the current rounding mode. | |
4235 | */ | |
4236 | #$d_rint HAS_RINT /**/ | |
4237 | ||
4238 | /* HAS_ROUND: | |
4239 | * This symbol, if defined, indicates that the round routine is | |
4240 | * available to round to nearest integer, away from zero. | |
4241 | */ | |
4242 | #$d_round HAS_ROUND /**/ | |
4243 | ||
ed140128 AD |
4244 | /* HAS_SBRK_PROTO: |
4245 | * This symbol, if defined, indicates that the system provides | |
4246 | * a prototype for the sbrk() function. Otherwise, it is up | |
4247 | * to the program to supply one. Good guesses are | |
4248 | * extern void* sbrk(int); | |
4249 | * extern void* sbrk(size_t); | |
4250 | */ | |
4251 | #$d_sbrkproto HAS_SBRK_PROTO /**/ | |
4252 | ||
427d28ce | 4253 | /* HAS_SCALBN: |
f40bbcbf MB |
4254 | * This symbol, if defined, indicates that the scalbn routine is |
4255 | * available to multiply floating-point number by integral power | |
4256 | * of radix. | |
427d28ce JH |
4257 | */ |
4258 | #$d_scalbn HAS_SCALBN /**/ | |
4259 | ||
ed140128 AD |
4260 | /* HAS_SCALBNL: |
4261 | * This symbol, if defined, indicates that the scalbnl routine is | |
4262 | * available. If ilogbl is also present we can emulate frexpl. | |
4263 | */ | |
4264 | #$d_scalbnl HAS_SCALBNL /**/ | |
4265 | ||
4266 | /* HAS_SENDMSG: | |
4267 | * This symbol, if defined, indicates that the sendmsg routine is | |
4268 | * available to send structured socket messages. | |
4269 | */ | |
4270 | #$d_sendmsg HAS_SENDMSG /**/ | |
4271 | ||
4272 | /* HAS_SETITIMER: | |
4273 | * This symbol, if defined, indicates that the setitimer routine is | |
4274 | * available to set interval timers. | |
4275 | */ | |
4276 | #$d_setitimer HAS_SETITIMER /**/ | |
4277 | ||
4278 | /* HAS_SETPROCTITLE: | |
4279 | * This symbol, if defined, indicates that the setproctitle routine is | |
4280 | * available to set process title. | |
4281 | */ | |
4282 | #$d_setproctitle HAS_SETPROCTITLE /**/ | |
4283 | ||
ed140128 AD |
4284 | /* HAS_SIGNBIT: |
4285 | * This symbol, if defined, indicates that the signbit routine is | |
4286 | * available to check if the given number has the sign bit set. | |
4287 | * This should include correct testing of -0.0. This will only be set | |
4288 | * if the signbit() routine is safe to use with the NV type used internally | |
4289 | * in perl. Users should call Perl_signbit(), which will be #defined to | |
4290 | * the system's signbit() function or macro if this symbol is defined. | |
4291 | */ | |
4292 | #$d_signbit HAS_SIGNBIT /**/ | |
4293 | ||
4294 | /* HAS_SIGPROCMASK: | |
4295 | * This symbol, if defined, indicates that the sigprocmask | |
4296 | * system call is available to examine or change the signal mask | |
4297 | * of the calling process. | |
4298 | */ | |
4299 | #$d_sigprocmask HAS_SIGPROCMASK /**/ | |
4300 | ||
4301 | /* USE_SITECUSTOMIZE: | |
4302 | * This symbol, if defined, indicates that sitecustomize should | |
4303 | * be used. | |
4304 | */ | |
4305 | #ifndef USE_SITECUSTOMIZE | |
4306 | #$usesitecustomize USE_SITECUSTOMIZE /**/ | |
4307 | #endif | |
4308 | ||
4309 | /* HAS_SNPRINTF: | |
4310 | * This symbol, if defined, indicates that the snprintf () library | |
4311 | * function is available for use. | |
4312 | */ | |
4313 | /* HAS_VSNPRINTF: | |
4314 | * This symbol, if defined, indicates that the vsnprintf () library | |
4315 | * function is available for use. | |
4316 | */ | |
4317 | #$d_snprintf HAS_SNPRINTF /**/ | |
4318 | #$d_vsnprintf HAS_VSNPRINTF /**/ | |
4319 | ||
4320 | /* HAS_SOCKATMARK: | |
4321 | * This symbol, if defined, indicates that the sockatmark routine is | |
4322 | * available to test whether a socket is at the out-of-band mark. | |
4323 | */ | |
4324 | #$d_sockatmark HAS_SOCKATMARK /**/ | |
4325 | ||
4326 | /* HAS_SOCKATMARK_PROTO: | |
4327 | * This symbol, if defined, indicates that the system provides | |
4328 | * a prototype for the sockatmark() function. Otherwise, it is up | |
4329 | * to the program to supply one. A good guess is | |
4330 | * extern int sockatmark(int); | |
4331 | */ | |
4332 | #$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/ | |
4333 | ||
4334 | /* HAS_SOCKS5_INIT: | |
4335 | * This symbol, if defined, indicates that the socks5_init routine is | |
4336 | * available to initialize SOCKS 5. | |
4337 | */ | |
4338 | #$d_socks5_init HAS_SOCKS5_INIT /**/ | |
4339 | ||
4340 | /* SPRINTF_RETURNS_STRLEN: | |
4341 | * This variable defines whether sprintf returns the length of the string | |
4342 | * (as per the ANSI spec). Some C libraries retain compatibility with | |
4343 | * pre-ANSI C and return a pointer to the passed in buffer; for these | |
4344 | * this variable will be undef. | |
4345 | */ | |
4346 | #$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/ | |
4347 | ||
4348 | /* HAS_SQRTL: | |
4349 | * This symbol, if defined, indicates that the sqrtl routine is | |
4350 | * available to do long double square roots. | |
4351 | */ | |
4352 | #$d_sqrtl HAS_SQRTL /**/ | |
4353 | ||
4354 | /* HAS_SETRESGID_PROTO: | |
4355 | * This symbol, if defined, indicates that the system provides | |
4356 | * a prototype for the setresgid() function. Otherwise, it is up | |
4357 | * to the program to supply one. Good guesses are | |
4358 | * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid); | |
4359 | */ | |
4360 | #$d_sresgproto HAS_SETRESGID_PROTO /**/ | |
4361 | ||
4362 | /* HAS_SETRESUID_PROTO: | |
4363 | * This symbol, if defined, indicates that the system provides | |
4364 | * a prototype for the setresuid() function. Otherwise, it is up | |
4365 | * to the program to supply one. Good guesses are | |
4366 | * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid); | |
4367 | */ | |
4368 | #$d_sresuproto HAS_SETRESUID_PROTO /**/ | |
4369 | ||
4370 | /* HAS_STRUCT_STATFS_F_FLAGS: | |
4371 | * This symbol, if defined, indicates that the struct statfs | |
4372 | * does have the f_flags member containing the mount flags of | |
4373 | * the filesystem containing the file. | |
4374 | * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3), | |
4375 | * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not | |
4376 | * have statfs() and struct statfs, they have ustat() and getmnt() | |
4377 | * with struct ustat and struct fs_data. | |
4378 | */ | |
4379 | #$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/ | |
4380 | ||
4381 | /* HAS_STRUCT_STATFS: | |
4382 | * This symbol, if defined, indicates that the struct statfs | |
4383 | * to do statfs() is supported. | |
4384 | */ | |
4385 | #$d_statfs_s HAS_STRUCT_STATFS /**/ | |
4386 | ||
4387 | /* HAS_FSTATVFS: | |
4388 | * This symbol, if defined, indicates that the fstatvfs routine is | |
4389 | * available to stat filesystems by file descriptors. | |
4390 | */ | |
4391 | #$d_fstatvfs HAS_FSTATVFS /**/ | |
4392 | ||
4393 | /* HAS_STRFTIME: | |
4394 | * This symbol, if defined, indicates that the strftime routine is | |
4395 | * available to do time formatting. | |
4396 | */ | |
4397 | #$d_strftime HAS_STRFTIME /**/ | |
4398 | ||
4399 | /* HAS_STRLCAT: | |
4400 | * This symbol, if defined, indicates that the strlcat () routine is | |
4401 | * available to do string concatenation. | |
4402 | */ | |
4403 | #$d_strlcat HAS_STRLCAT /**/ | |
4404 | ||
4405 | /* HAS_STRLCPY: | |
4406 | * This symbol, if defined, indicates that the strlcpy () routine is | |
4407 | * available to do string copying. | |
4408 | */ | |
4409 | #$d_strlcpy HAS_STRLCPY /**/ | |
4410 | ||
4411 | /* HAS_STRTOLD: | |
4412 | * This symbol, if defined, indicates that the strtold routine is | |
4413 | * available to convert strings to long doubles. | |
4414 | */ | |
4415 | #$d_strtold HAS_STRTOLD /**/ | |
4416 | ||
4417 | /* HAS_STRTOLL: | |
4418 | * This symbol, if defined, indicates that the strtoll routine is | |
4419 | * available to convert strings to long longs. | |
4420 | */ | |
4421 | #$d_strtoll HAS_STRTOLL /**/ | |
4422 | ||
4423 | /* HAS_STRTOQ: | |
4424 | * This symbol, if defined, indicates that the strtoq routine is | |
4425 | * available to convert strings to long longs (quads). | |
4426 | */ | |
4427 | #$d_strtoq HAS_STRTOQ /**/ | |
4428 | ||
4429 | /* HAS_STRTOULL: | |
4430 | * This symbol, if defined, indicates that the strtoull routine is | |
4431 | * available to convert strings to unsigned long longs. | |
4432 | */ | |
4433 | #$d_strtoull HAS_STRTOULL /**/ | |
4434 | ||
4435 | /* HAS_STRTOUQ: | |
4436 | * This symbol, if defined, indicates that the strtouq routine is | |
4437 | * available to convert strings to unsigned long longs (quads). | |
4438 | */ | |
4439 | #$d_strtouq HAS_STRTOUQ /**/ | |
4440 | ||
4441 | /* HAS_SYSCALL_PROTO: | |
4442 | * This symbol, if defined, indicates that the system provides | |
4443 | * a prototype for the syscall() function. Otherwise, it is up | |
4444 | * to the program to supply one. Good guesses are | |
4445 | * extern int syscall(int, ...); | |
4446 | * extern int syscall(long, ...); | |
4447 | */ | |
4448 | #$d_syscallproto HAS_SYSCALL_PROTO /**/ | |
4449 | ||
4450 | /* HAS_TELLDIR_PROTO: | |
4451 | * This symbol, if defined, indicates that the system provides | |
4452 | * a prototype for the telldir() function. Otherwise, it is up | |
4453 | * to the program to supply one. A good guess is | |
4454 | * extern long telldir(DIR*); | |
4455 | */ | |
4456 | #$d_telldirproto HAS_TELLDIR_PROTO /**/ | |
4457 | ||
f40bbcbf MB |
4458 | /* HAS_TGAMMA: |
4459 | * This symbol, if defined, indicates that the tgamma routine is | |
4460 | * available to do the gamma function. See also HAS_LGAMMA. | |
4461 | */ | |
4462 | #$d_tgamma HAS_TGAMMA /**/ | |
4463 | ||
96938616 MB |
4464 | /* HAS_CTIME64: |
4465 | * This symbol, if defined, indicates that the ctime64 () routine is | |
4466 | * available to do the 64bit variant of ctime () | |
4467 | */ | |
4468 | /* HAS_LOCALTIME64: | |
4469 | * This symbol, if defined, indicates that the localtime64 () routine is | |
4470 | * available to do the 64bit variant of localtime () | |
4471 | */ | |
4472 | /* HAS_GMTIME64: | |
4473 | * This symbol, if defined, indicates that the gmtime64 () routine is | |
4474 | * available to do the 64bit variant of gmtime () | |
4475 | */ | |
4476 | /* HAS_MKTIME64: | |
4477 | * This symbol, if defined, indicates that the mktime64 () routine is | |
4478 | * available to do the 64bit variant of mktime () | |
4479 | */ | |
4480 | /* HAS_DIFFTIME64: | |
4481 | * This symbol, if defined, indicates that the difftime64 () routine is | |
4482 | * available to do the 64bit variant of difftime () | |
4483 | */ | |
4484 | /* HAS_ASCTIME64: | |
4485 | * This symbol, if defined, indicates that the asctime64 () routine is | |
4486 | * available to do the 64bit variant of asctime () | |
4487 | */ | |
4488 | #$d_ctime64 HAS_CTIME64 /**/ | |
4489 | #$d_localtime64 HAS_LOCALTIME64 /**/ | |
4490 | #$d_gmtime64 HAS_GMTIME64 /**/ | |
4491 | #$d_mktime64 HAS_MKTIME64 /**/ | |
4492 | #$d_difftime64 HAS_DIFFTIME64 /**/ | |
4493 | #$d_asctime64 HAS_ASCTIME64 /**/ | |
4494 | ||
cbb9e8a7 MB |
4495 | /* HAS_TIMEGM: |
4496 | * This symbol, if defined, indicates that the timegm routine is | |
4497 | * available to do the opposite of gmtime () | |
4498 | */ | |
4499 | #$d_timegm HAS_TIMEGM /**/ | |
4500 | ||
427d28ce | 4501 | /* HAS_TRUNC: |
f40bbcbf MB |
4502 | * This symbol, if defined, indicates that the trunc routine is |
4503 | * available to round doubles towards zero. | |
427d28ce JH |
4504 | */ |
4505 | #$d_trunc HAS_TRUNC /**/ | |
4506 | ||
d6f85a58 MB |
4507 | /* HAS_TRUNCL: |
4508 | * This symbol, if defined, indicates that the truncl routine is | |
4509 | * available. If copysignl is also present we can emulate modfl. | |
4510 | */ | |
4511 | #$d_truncl HAS_TRUNCL /**/ | |
4512 | ||
ed140128 AD |
4513 | /* U32_ALIGNMENT_REQUIRED: |
4514 | * This symbol, if defined, indicates that you must access | |
4515 | * character data through U32-aligned pointers. | |
4516 | */ | |
4517 | #ifndef U32_ALIGNMENT_REQUIRED | |
4518 | #$d_u32align U32_ALIGNMENT_REQUIRED /**/ | |
4519 | #endif | |
4520 | ||
4521 | /* HAS_UALARM: | |
4522 | * This symbol, if defined, indicates that the ualarm routine is | |
4523 | * available to do alarms with microsecond granularity. | |
4524 | */ | |
4525 | #$d_ualarm HAS_UALARM /**/ | |
4526 | ||
4527 | /* HAS_UNORDERED: | |
4528 | * This symbol, if defined, indicates that the unordered routine is | |
4529 | * available to check whether two doubles are unordered | |
4530 | * (effectively: whether either of them is NaN) | |
4531 | */ | |
4532 | #$d_unordered HAS_UNORDERED /**/ | |
4533 | ||
4534 | /* HAS_UNSETENV: | |
4535 | * This symbol, if defined, indicates that the unsetenv () routine is | |
4536 | * available for use. | |
4537 | */ | |
4538 | #$d_unsetenv HAS_UNSETENV /**/ | |
4539 | ||
4540 | /* HAS_USLEEP_PROTO: | |
4541 | * This symbol, if defined, indicates that the system provides | |
4542 | * a prototype for the usleep() function. Otherwise, it is up | |
4543 | * to the program to supply one. A good guess is | |
4544 | * extern int usleep(useconds_t); | |
4545 | */ | |
4546 | #$d_usleepproto HAS_USLEEP_PROTO /**/ | |
4547 | ||
4548 | /* HAS_USTAT: | |
4549 | * This symbol, if defined, indicates that the ustat system call is | |
4550 | * available to query file system statistics by dev_t. | |
4551 | */ | |
4552 | #$d_ustat HAS_USTAT /**/ | |
4553 | ||
9cdcdad1 MB |
4554 | /* HAS_WCSCMP: |
4555 | * This symbol, if defined, indicates that the wcscmp routine is | |
4556 | * available to compare two wide character strings. | |
4557 | */ | |
4558 | #$d_wcscmp HAS_WCSCMP /**/ | |
4559 | ||
4560 | /* HAS_WCSXFRM: | |
4561 | * This symbol, if defined, indicates that the wcsxfrm routine is | |
4562 | * available to tranform a wide character string for wcscmp(). | |
4563 | */ | |
4564 | #$d_wcsxfrm HAS_WCSXFRM /**/ | |
4565 | ||
ed140128 AD |
4566 | /* HAS_WRITEV: |
4567 | * This symbol, if defined, indicates that the writev routine is | |
4568 | * available to do scatter writes. | |
4569 | */ | |
4570 | #$d_writev HAS_WRITEV /**/ | |
4571 | ||
4572 | /* USE_DYNAMIC_LOADING: | |
4573 | * This symbol, if defined, indicates that dynamic loading of | |
4574 | * some sort is available. | |
4575 | */ | |
4576 | #$usedl USE_DYNAMIC_LOADING /**/ | |
4577 | ||
4578 | /* FFLUSH_NULL: | |
a05353bf MB |
4579 | * This symbol, if defined, tells that fflush(NULL) correctly |
4580 | * flushes all pending stdio output without side effects. In | |
4581 | * particular, on some platforms calling fflush(NULL) *still* | |
4582 | * corrupts STDIN if it is a pipe. | |
ed140128 AD |
4583 | */ |
4584 | /* FFLUSH_ALL: | |
4585 | * This symbol, if defined, tells that to flush | |
4586 | * all pending stdio output one must loop through all | |
4587 | * the stdio file handles stored in an array and fflush them. | |
4588 | * Note that if fflushNULL is defined, fflushall will not | |
4589 | * even be probed for and will be left undefined. | |
4590 | */ | |
4591 | #$fflushNULL FFLUSH_NULL /**/ | |
4592 | #$fflushall FFLUSH_ALL /**/ | |
4593 | ||
c0bacbef MB |
4594 | /* I_ASSERT: |
4595 | * This symbol, if defined, indicates that <assert.h> exists and | |
4596 | * could be included by the C program to get the assert() macro. | |
4597 | */ | |
4598 | #$i_assert I_ASSERT /**/ | |
4599 | ||
470dd224 JH |
4600 | /* I_BFD: |
4601 | * This symbol, if defined, indicates that <bfd.h> exists and | |
f6a82ade | 4602 | * can be included. |
470dd224 JH |
4603 | */ |
4604 | #$i_bfd I_BFD /**/ | |
4605 | ||
ed140128 AD |
4606 | /* I_CRYPT: |
4607 | * This symbol, if defined, indicates that <crypt.h> exists and | |
4608 | * should be included. | |
4609 | */ | |
4610 | #$i_crypt I_CRYPT /**/ | |
4611 | ||
4612 | /* DB_Prefix_t: | |
4613 | * This symbol contains the type of the prefix structure element | |
4614 | * in the <db.h> header file. In older versions of DB, it was | |
4615 | * int, while in newer ones it is u_int32_t. | |
4616 | */ | |
4617 | /* DB_Hash_t: | |
4618 | * This symbol contains the type of the prefix structure element | |
4619 | * in the <db.h> header file. In older versions of DB, it was | |
4620 | * int, while in newer ones it is size_t. | |
4621 | */ | |
4622 | /* DB_VERSION_MAJOR_CFG: | |
4623 | * This symbol, if defined, defines the major version number of | |
4624 | * Berkeley DB found in the <db.h> header when Perl was configured. | |
4625 | */ | |
4626 | /* DB_VERSION_MINOR_CFG: | |
4627 | * This symbol, if defined, defines the minor version number of | |
4628 | * Berkeley DB found in the <db.h> header when Perl was configured. | |
4629 | * For DB version 1 this is always 0. | |
4630 | */ | |
4631 | /* DB_VERSION_PATCH_CFG: | |
4632 | * This symbol, if defined, defines the patch version number of | |
4633 | * Berkeley DB found in the <db.h> header when Perl was configured. | |
4634 | * For DB version 1 this is always 0. | |
4635 | */ | |
4636 | #define DB_Hash_t $db_hashtype /**/ | |
4637 | #define DB_Prefix_t $db_prefixtype /**/ | |
4638 | #define DB_VERSION_MAJOR_CFG $db_version_major /**/ | |
4639 | #define DB_VERSION_MINOR_CFG $db_version_minor /**/ | |
4640 | #define DB_VERSION_PATCH_CFG $db_version_patch /**/ | |
4641 | ||
d0166596 MB |
4642 | /* I_FENV: |
4643 | * This symbol, if defined, indicates to the C program that it should | |
4644 | * include <fenv.h> to get the floating point environment definitions. | |
4645 | */ | |
4646 | #$i_fenv I_FENV /**/ | |
4647 | ||
ed140128 AD |
4648 | /* I_FP: |
4649 | * This symbol, if defined, indicates that <fp.h> exists and | |
4650 | * should be included. | |
4651 | */ | |
4652 | #$i_fp I_FP /**/ | |
4653 | ||
4654 | /* I_FP_CLASS: | |
4655 | * This symbol, if defined, indicates that <fp_class.h> exists and | |
4656 | * should be included. | |
4657 | */ | |
4658 | #$i_fp_class I_FP_CLASS /**/ | |
4659 | ||
4660 | /* I_IEEEFP: | |
4661 | * This symbol, if defined, indicates that <ieeefp.h> exists and | |
4662 | * should be included. | |
4663 | */ | |
4664 | #$i_ieeefp I_IEEEFP /**/ | |
4665 | ||
4666 | /* I_INTTYPES: | |
4667 | * This symbol, if defined, indicates to the C program that it should | |
4668 | * include <inttypes.h>. | |
4669 | */ | |
4670 | #$i_inttypes I_INTTYPES /**/ | |
4671 | ||
4672 | /* I_LANGINFO: | |
4673 | * This symbol, if defined, indicates that <langinfo.h> exists and | |
4674 | * should be included. | |
4675 | */ | |
4676 | #$i_langinfo I_LANGINFO /**/ | |
4677 | ||
4678 | /* I_LIBUTIL: | |
4679 | * This symbol, if defined, indicates that <libutil.h> exists and | |
4680 | * should be included. | |
4681 | */ | |
4682 | #$i_libutil I_LIBUTIL /**/ | |
4683 | ||
a33f2d9f AD |
4684 | /* I_MALLOCMALLOC: |
4685 | * This symbol, if defined, indicates to the C program that it should | |
4686 | * include <malloc/malloc.h>. | |
4687 | */ | |
4688 | #$i_mallocmalloc I_MALLOCMALLOC /**/ | |
4689 | ||
ed140128 AD |
4690 | /* I_MNTENT: |
4691 | * This symbol, if defined, indicates that <mntent.h> exists and | |
4692 | * should be included. | |
4693 | */ | |
4694 | #$i_mntent I_MNTENT /**/ | |
4695 | ||
4696 | /* I_NETINET_TCP: | |
4697 | * This symbol, if defined, indicates to the C program that it should | |
4698 | * include <netinet/tcp.h>. | |
4699 | */ | |
4700 | #$i_netinettcp I_NETINET_TCP /**/ | |
4701 | ||
4702 | /* I_POLL: | |
4703 | * This symbol, if defined, indicates that <poll.h> exists and | |
4704 | * should be included. (see also HAS_POLL) | |
4705 | */ | |
4706 | #$i_poll I_POLL /**/ | |
4707 | ||
4708 | /* I_PROT: | |
4709 | * This symbol, if defined, indicates that <prot.h> exists and | |
4710 | * should be included. | |
4711 | */ | |
4712 | #$i_prot I_PROT /**/ | |
4713 | ||
f40bbcbf MB |
4714 | /* I_QUADMATH: |
4715 | * This symbol, if defined, indicates that <quadmath.h> exists and | |
4716 | * should be included. | |
4717 | */ | |
4718 | #$i_quadmath I_QUADMATH /**/ | |
4719 | ||
ed140128 AD |
4720 | /* I_SHADOW: |
4721 | * This symbol, if defined, indicates that <shadow.h> exists and | |
4722 | * should be included. | |
4723 | */ | |
4724 | #$i_shadow I_SHADOW /**/ | |
4725 | ||
4726 | /* I_SOCKS: | |
4727 | * This symbol, if defined, indicates that <socks.h> exists and | |
4728 | * should be included. | |
4729 | */ | |
4730 | #$i_socks I_SOCKS /**/ | |
4731 | ||
06501368 MB |
4732 | /* I_STDBOOL: |
4733 | * This symbol, if defined, indicates that <stdbool.h> exists and | |
4734 | * can be included. | |
4735 | */ | |
4736 | #$i_stdbool I_STDBOOL /**/ | |
4737 | ||
d0166596 MB |
4738 | /* I_STDINT: |
4739 | * This symbol, if defined, indicates that <stdint.h> exists and | |
4740 | * should be included. | |
4741 | */ | |
4742 | #$i_stdint I_STDINT /**/ | |
4743 | ||
ed140128 AD |
4744 | /* I_SUNMATH: |
4745 | * This symbol, if defined, indicates that <sunmath.h> exists and | |
4746 | * should be included. | |
4747 | */ | |
4748 | #$i_sunmath I_SUNMATH /**/ | |
4749 | ||
4750 | /* I_SYSLOG: | |
4751 | * This symbol, if defined, indicates that <syslog.h> exists and | |
4752 | * should be included. | |
4753 | */ | |
4754 | #$i_syslog I_SYSLOG /**/ | |
4755 | ||
4756 | /* I_SYSMODE: | |
4757 | * This symbol, if defined, indicates that <sys/mode.h> exists and | |
4758 | * should be included. | |
4759 | */ | |
4760 | #$i_sysmode I_SYSMODE /**/ | |
4761 | ||
4762 | /* I_SYS_MOUNT: | |
4763 | * This symbol, if defined, indicates that <sys/mount.h> exists and | |
4764 | * should be included. | |
4765 | */ | |
4766 | #$i_sysmount I_SYS_MOUNT /**/ | |
4767 | ||
4768 | /* I_SYS_STATFS: | |
4769 | * This symbol, if defined, indicates that <sys/statfs.h> exists. | |
4770 | */ | |
4771 | #$i_sysstatfs I_SYS_STATFS /**/ | |
4772 | ||
4773 | /* I_SYS_STATVFS: | |
4774 | * This symbol, if defined, indicates that <sys/statvfs.h> exists and | |
4775 | * should be included. | |
4776 | */ | |
4777 | #$i_sysstatvfs I_SYS_STATVFS /**/ | |
4778 | ||
4779 | /* I_SYSUTSNAME: | |
4780 | * This symbol, if defined, indicates that <sys/utsname.h> exists and | |
4781 | * should be included. | |
4782 | */ | |
4783 | #$i_sysutsname I_SYSUTSNAME /**/ | |
4784 | ||
4785 | /* I_SYS_VFS: | |
4786 | * This symbol, if defined, indicates that <sys/vfs.h> exists and | |
4787 | * should be included. | |
4788 | */ | |
4789 | #$i_sysvfs I_SYS_VFS /**/ | |
4790 | ||
4791 | /* I_USTAT: | |
4792 | * This symbol, if defined, indicates that <ustat.h> exists and | |
4793 | * should be included. | |
4794 | */ | |
4795 | #$i_ustat I_USTAT /**/ | |
4796 | ||
e6704a40 MB |
4797 | /* DOUBLEINFBYTES: |
4798 | * This symbol, if defined, is a comma-separated list of | |
4799 | * hexadecimal bytes for the double precision infinity. | |
4800 | */ | |
4801 | /* DOUBLENANBYTES: | |
4802 | * This symbol, if defined, is a comma-separated list of | |
4803 | * hexadecimal bytes (0xHH) for the double precision not-a-number. | |
4804 | */ | |
4805 | /* LONGDBLINFBYTES: | |
4806 | * This symbol, if defined, is a comma-separated list of | |
4807 | * hexadecimal bytes for the long double precision infinity. | |
4808 | */ | |
4809 | /* LONGDBLNANBYTES: | |
4810 | * This symbol, if defined, is a comma-separated list of | |
4811 | * hexadecimal bytes (0xHH) for the long double precision not-a-number. | |
4812 | */ | |
4813 | #define DOUBLEINFBYTES $doubleinfbytes /**/ | |
4814 | #define DOUBLENANBYTES $doublenanbytes /**/ | |
4815 | #define LONGDBLINFBYTES $longdblinfbytes /**/ | |
4816 | #define LONGDBLNANBYTES $longdblnanbytes /**/ | |
4817 | ||
ed140128 AD |
4818 | /* PERL_PRIfldbl: |
4819 | * This symbol, if defined, contains the string used by stdio to | |
4820 | * format long doubles (format 'f') for output. | |
4821 | */ | |
4822 | /* PERL_PRIgldbl: | |
4823 | * This symbol, if defined, contains the string used by stdio to | |
4824 | * format long doubles (format 'g') for output. | |
4825 | */ | |
4826 | /* PERL_PRIeldbl: | |
4827 | * This symbol, if defined, contains the string used by stdio to | |
4828 | * format long doubles (format 'e') for output. | |
4829 | */ | |
4830 | /* PERL_SCNfldbl: | |
4831 | * This symbol, if defined, contains the string used by stdio to | |
4832 | * format long doubles (format 'f') for input. | |
4833 | */ | |
f40bbcbf MB |
4834 | /* DOUBLEKIND: |
4835 | * DOUBLEKIND will be one of | |
4836 | * DOUBLE_IS_IEEE_754_32_BIT_LITTLE_ENDIAN | |
4837 | * DOUBLE_IS_IEEE_754_32_BIT_BIG_ENDIAN | |
4838 | * DOUBLE_IS_IEEE_754_64_BIT_LITTLE_ENDIAN | |
4839 | * DOUBLE_IS_IEEE_754_64_BIT_BIG_ENDIAN | |
4840 | * DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN | |
4841 | * DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN | |
4842 | * DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_LE_BE | |
4843 | * DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_BE_LE | |
4844 | * DOUBLE_IS_UNKNOWN_FORMAT | |
4845 | */ | |
4846 | #define DOUBLEKIND $doublekind /**/ | |
4847 | #define DOUBLE_IS_IEEE_754_32_BIT_LITTLE_ENDIAN 1 | |
4848 | #define DOUBLE_IS_IEEE_754_32_BIT_BIG_ENDIAN 2 | |
4849 | #define DOUBLE_IS_IEEE_754_64_BIT_LITTLE_ENDIAN 3 | |
4850 | #define DOUBLE_IS_IEEE_754_64_BIT_BIG_ENDIAN 4 | |
4851 | #define DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 5 | |
4852 | #define DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 6 | |
4853 | #define DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_LE_BE 7 | |
4854 | #define DOUBLE_IS_IEEE_754_64_BIT_MIXED_ENDIAN_BE_LE 8 | |
4855 | #define DOUBLE_IS_UNKNOWN_FORMAT -1 | |
ed140128 AD |
4856 | #$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/ |
4857 | #$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/ | |
4858 | #$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/ | |
4859 | #$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/ | |
4860 | ||
ed3917fd JH |
4861 | /* DOUBLEMANTBITS: |
4862 | * This symbol, if defined, tells how many mantissa bits | |
4863 | * there are in double precision floating point format. | |
e6704a40 MB |
4864 | * Note that this is usually DBL_MANT_DIG minus one, since |
4865 | * with the standard IEEE 754 formats DBL_MANT_DIG includes | |
ed3917fd JH |
4866 | * the implicit bit, which doesn't really exist. |
4867 | */ | |
ed3917fd JH |
4868 | /* LONGDBLMANTBITS: |
4869 | * This symbol, if defined, tells how many mantissa bits | |
4870 | * there are in long double precision floating point format. | |
e6704a40 MB |
4871 | * Note that this can be LDBL_MANT_DIG minus one, |
4872 | * since LDBL_MANT_DIG can include the IEEE 754 implicit bit. | |
4873 | * The common x86-style 80-bit long double does not have | |
ed3917fd JH |
4874 | * an implicit bit. |
4875 | */ | |
5a14060a JH |
4876 | /* NVMANTBITS: |
4877 | * This symbol, if defined, tells how many mantissa bits | |
4878 | * (not including implicit bit) there are in a Perl NV. | |
4879 | * This depends on which floating point type was chosen. | |
4880 | */ | |
e6704a40 MB |
4881 | #define DOUBLEMANTBITS $doublemantbits |
4882 | #define LONGDBLMANTBITS $longdblmantbits | |
4883 | #define NVMANTBITS $nvmantbits | |
5a14060a | 4884 | |
ed140128 AD |
4885 | /* NEED_VA_COPY: |
4886 | * This symbol, if defined, indicates that the system stores | |
4887 | * the variable argument list datatype, va_list, in a format | |
4888 | * that cannot be copied by simple assignment, so that some | |
4889 | * other means must be used when copying is required. | |
4890 | * As such systems vary in their provision (or non-provision) | |
4891 | * of copying mechanisms, handy.h defines a platform- | |
4892 | * independent macro, Perl_va_copy(src, dst), to do the job. | |
4893 | */ | |
4894 | #$need_va_copy NEED_VA_COPY /**/ | |
4895 | ||
4896 | /* IVTYPE: | |
4897 | * This symbol defines the C type used for Perl's IV. | |
4898 | */ | |
4899 | /* UVTYPE: | |
4900 | * This symbol defines the C type used for Perl's UV. | |
4901 | */ | |
4902 | /* I8TYPE: | |
4903 | * This symbol defines the C type used for Perl's I8. | |
4904 | */ | |
4905 | /* U8TYPE: | |
4906 | * This symbol defines the C type used for Perl's U8. | |
4907 | */ | |
4908 | /* I16TYPE: | |
4909 | * This symbol defines the C type used for Perl's I16. | |
4910 | */ | |
4911 | /* U16TYPE: | |
4912 | * This symbol defines the C type used for Perl's U16. | |
4913 | */ | |
4914 | /* I32TYPE: | |
4915 | * This symbol defines the C type used for Perl's I32. | |
4916 | */ | |
4917 | /* U32TYPE: | |
4918 | * This symbol defines the C type used for Perl's U32. | |
4919 | */ | |
4920 | /* I64TYPE: | |
4921 | * This symbol defines the C type used for Perl's I64. | |
4922 | */ | |
4923 | /* U64TYPE: | |
4924 | * This symbol defines the C type used for Perl's U64. | |
4925 | */ | |
4926 | /* NVTYPE: | |
4927 | * This symbol defines the C type used for Perl's NV. | |
fe749a9f | 4928 | */ |
08c92000 MB |
4929 | /* IVSIZE: |
4930 | * This symbol contains the sizeof(IV). | |
758a5d79 | 4931 | */ |
08c92000 MB |
4932 | /* UVSIZE: |
4933 | * This symbol contains the sizeof(UV). | |
758a5d79 | 4934 | */ |
08c92000 MB |
4935 | /* I8SIZE: |
4936 | * This symbol contains the sizeof(I8). | |
a3540c92 | 4937 | */ |
08c92000 MB |
4938 | /* U8SIZE: |
4939 | * This symbol contains the sizeof(U8). | |
a33c94aa | 4940 | */ |
08c92000 MB |
4941 | /* I16SIZE: |
4942 | * This symbol contains the sizeof(I16). | |
a33c94aa | 4943 | */ |
08c92000 MB |
4944 | /* U16SIZE: |
4945 | * This symbol contains the sizeof(U16). | |
1e8c3fde | 4946 | */ |
08c92000 MB |
4947 | /* I32SIZE: |
4948 | * This symbol contains the sizeof(I32). | |
fe749a9f | 4949 | */ |
08c92000 MB |
4950 | /* U32SIZE: |
4951 | * This symbol contains the sizeof(U32). | |
fe749a9f | 4952 | */ |
08c92000 MB |
4953 | /* I64SIZE: |
4954 | * This symbol contains the sizeof(I64). | |
3813c136 | 4955 | */ |
08c92000 MB |
4956 | /* U64SIZE: |
4957 | * This symbol contains the sizeof(U64). | |
51997bc3 | 4958 | */ |
08c92000 MB |
4959 | /* NVSIZE: |
4960 | * This symbol contains the sizeof(NV). | |
0cd93aca JH |
4961 | * Note that some floating point formats have unused bytes. |
4962 | * The most notable example is the x86* 80-bit extended precision | |
4963 | * which comes in byte sizes of 12 and 16 (for 32 and 64 bit | |
4964 | * platforms, respectively), but which only uses 10 bytes. | |
4965 | * Perl compiled with -Duselongdouble on x86* is like this. | |
e67aeab1 | 4966 | */ |
08c92000 MB |
4967 | /* NV_PRESERVES_UV: |
4968 | * This symbol, if defined, indicates that a variable of type NVTYPE | |
4969 | * can preserve all the bits of a variable of type UVTYPE. | |
fe749a9f | 4970 | */ |
08c92000 MB |
4971 | /* NV_PRESERVES_UV_BITS: |
4972 | * This symbol contains the number of bits a variable of type NVTYPE | |
4973 | * can preserve of a variable of type UVTYPE. | |
44b94491 | 4974 | */ |
4137585d | 4975 | /* NV_OVERFLOWS_INTEGERS_AT: |
b68c599a NC |
4976 | * This symbol gives the largest integer value that NVs can hold. This |
4977 | * value + 1.0 cannot be stored accurately. It is expressed as constant | |
cd95ead5 | 4978 | * floating point expression to reduce the chance of decimal/binary |
b68c599a NC |
4979 | * conversion issues. If it can not be determined, the value 0 is given. |
4980 | */ | |
17f6277d | 4981 | /* NV_ZERO_IS_ALLBITS_ZERO: |
ed140128 AD |
4982 | * This symbol, if defined, indicates that a variable of type NVTYPE |
4983 | * stores 0.0 in memory as all bits zero. | |
e5c9fcd0 | 4984 | */ |
ed140128 AD |
4985 | #define IVTYPE $ivtype /**/ |
4986 | #define UVTYPE $uvtype /**/ | |
4987 | #define I8TYPE $i8type /**/ | |
4988 | #define U8TYPE $u8type /**/ | |
4989 | #define I16TYPE $i16type /**/ | |
4990 | #define U16TYPE $u16type /**/ | |
4991 | #define I32TYPE $i32type /**/ | |
4992 | #define U32TYPE $u32type /**/ | |
4993 | #ifdef HAS_QUAD | |
4994 | #define I64TYPE $i64type /**/ | |
4995 | #define U64TYPE $u64type /**/ | |
4996 | #endif | |
4997 | #define NVTYPE $nvtype /**/ | |
4998 | #define IVSIZE $ivsize /**/ | |
4999 | #define UVSIZE $uvsize /**/ | |
5000 | #define I8SIZE $i8size /**/ | |
5001 | #define U8SIZE $u8size /**/ | |
5002 | #define I16SIZE $i16size /**/ | |
5003 | #define U16SIZE $u16size /**/ | |
5004 | #define I32SIZE $i32size /**/ | |
5005 | #define U32SIZE $u32size /**/ | |
5006 | #ifdef HAS_QUAD | |
5007 | #define I64SIZE $i64size /**/ | |
5008 | #define U64SIZE $u64size /**/ | |
5009 | #endif | |
5010 | #define NVSIZE $nvsize /**/ | |
5011 | #$d_nv_preserves_uv NV_PRESERVES_UV | |
5012 | #define NV_PRESERVES_UV_BITS $nv_preserves_uv_bits | |
b68c599a | 5013 | #define NV_OVERFLOWS_INTEGERS_AT $nv_overflows_integers_at |
ed140128 AD |
5014 | #$d_nv_zero_is_allbits_zero NV_ZERO_IS_ALLBITS_ZERO |
5015 | #if UVSIZE == 8 | |
5016 | # ifdef BYTEORDER | |
5017 | # if BYTEORDER == 0x1234 | |
5018 | # undef BYTEORDER | |
5019 | # define BYTEORDER 0x12345678 | |
5020 | # else | |
5021 | # if BYTEORDER == 0x4321 | |
5022 | # undef BYTEORDER | |
5023 | # define BYTEORDER 0x87654321 | |
5024 | # endif | |
5025 | # endif | |
5026 | # endif | |
5027 | #endif | |
e5c9fcd0 | 5028 | |
ed140128 AD |
5029 | /* IVdf: |
5030 | * This symbol defines the format string used for printing a Perl IV | |
5031 | * as a signed decimal integer. | |
e5c9fcd0 | 5032 | */ |
ed140128 AD |
5033 | /* UVuf: |
5034 | * This symbol defines the format string used for printing a Perl UV | |
5035 | * as an unsigned decimal integer. | |
693762b4 | 5036 | */ |
ed140128 AD |
5037 | /* UVof: |
5038 | * This symbol defines the format string used for printing a Perl UV | |
5039 | * as an unsigned octal integer. | |
44b94491 | 5040 | */ |
ed140128 AD |
5041 | /* UVxf: |
5042 | * This symbol defines the format string used for printing a Perl UV | |
5043 | * as an unsigned hexadecimal integer in lowercase abcdef. | |
104d25b7 | 5044 | */ |
ed140128 AD |
5045 | /* UVXf: |
5046 | * This symbol defines the format string used for printing a Perl UV | |
5047 | * as an unsigned hexadecimal integer in uppercase ABCDEF. | |
76d49b1c | 5048 | */ |
ed140128 AD |
5049 | /* NVef: |
5050 | * This symbol defines the format string used for printing a Perl NV | |
5051 | * using %e-ish floating point format. | |
28e5dec8 | 5052 | */ |
ed140128 AD |
5053 | /* NVff: |
5054 | * This symbol defines the format string used for printing a Perl NV | |
5055 | * using %f-ish floating point format. | |
ad27e871 | 5056 | */ |
ed140128 AD |
5057 | /* NVgf: |
5058 | * This symbol defines the format string used for printing a Perl NV | |
5059 | * using %g-ish floating point format. | |
104d25b7 | 5060 | */ |
ed140128 AD |
5061 | #define IVdf $ivdformat /**/ |
5062 | #define UVuf $uvuformat /**/ | |
5063 | #define UVof $uvoformat /**/ | |
5064 | #define UVxf $uvxformat /**/ | |
5065 | #define UVXf $uvXUformat /**/ | |
5066 | #define NVef $nveformat /**/ | |
5067 | #define NVff $nvfformat /**/ | |
5068 | #define NVgf $nvgformat /**/ | |
104d25b7 | 5069 | |
ed140128 AD |
5070 | /* SELECT_MIN_BITS: |
5071 | * This symbol holds the minimum number of bits operated by select. | |
5072 | * That is, if you do select(n, ...), how many bits at least will be | |
5073 | * cleared in the masks if some activity is detected. Usually this | |
5074 | * is either n or 32*ceil(n/32), especially many little-endians do | |
5075 | * the latter. This is only useful if you have select(), naturally. | |
a845a0d4 | 5076 | */ |
ed140128 | 5077 | #define SELECT_MIN_BITS $selectminbits /**/ |
a845a0d4 | 5078 | |
668fdbe1 MB |
5079 | /* ST_INO_SIZE: |
5080 | * This variable contains the size of struct stat's st_ino in bytes. | |
5081 | */ | |
5082 | /* ST_INO_SIGN: | |
cfc2543a | 5083 | * This symbol holds the signedness of struct stat's st_ino. |
668fdbe1 MB |
5084 | * 1 for unsigned, -1 for signed. |
5085 | */ | |
5086 | #define ST_INO_SIGN $st_ino_sign /* st_ino sign */ | |
5087 | #define ST_INO_SIZE $st_ino_size /* st_ino size */ | |
5088 | ||
08c92000 MB |
5089 | /* STARTPERL: |
5090 | * This variable contains the string to put in front of a perl | |
5091 | * script to make sure (one hopes) that it runs with perl and not | |
5092 | * some shell. | |
cb86ce0e | 5093 | */ |
08c92000 | 5094 | #define STARTPERL "$startperl" /**/ |
cb86ce0e | 5095 | |
08c92000 MB |
5096 | /* HAS_STDIO_STREAM_ARRAY: |
5097 | * This symbol, if defined, tells that there is an array | |
5098 | * holding the stdio streams. | |
4e0554ec | 5099 | */ |
08c92000 MB |
5100 | /* STDIO_STREAM_ARRAY: |
5101 | * This symbol tells the name of the array holding the stdio streams. | |
5102 | * Usual values include _iob, __iob, and __sF. | |
758a5d79 | 5103 | */ |
08c92000 | 5104 | #$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/ |
4137585d | 5105 | #ifdef HAS_STDIO_STREAM_ARRAY |
08c92000 | 5106 | #define STDIO_STREAM_ARRAY $stdio_stream_array |
4137585d | 5107 | #endif |
758a5d79 | 5108 | |
81c4fd9e MB |
5109 | /* GMTIME_MAX: |
5110 | * This symbol contains the maximum value for the time_t offset that | |
5111 | * the system function gmtime () accepts, and defaults to 0 | |
5112 | */ | |
5113 | /* GMTIME_MIN: | |
5114 | * This symbol contains the minimum value for the time_t offset that | |
5115 | * the system function gmtime () accepts, and defaults to 0 | |
5116 | */ | |
73e6e416 MB |
5117 | /* LOCALTIME_MAX: |
5118 | * This symbol contains the maximum value for the time_t offset that | |
5119 | * the system function localtime () accepts, and defaults to 0 | |
5120 | */ | |
5121 | /* LOCALTIME_MIN: | |
5122 | * This symbol contains the minimum value for the time_t offset that | |
5123 | * the system function localtime () accepts, and defaults to 0 | |
5124 | */ | |
5125 | #define GMTIME_MAX $sGMTIME_max /**/ | |
5126 | #define GMTIME_MIN $sGMTIME_min /**/ | |
5127 | #define LOCALTIME_MAX $sLOCALTIME_max /**/ | |
5128 | #define LOCALTIME_MIN $sLOCALTIME_min /**/ | |
81c4fd9e | 5129 | |
08c92000 MB |
5130 | /* USE_64_BIT_INT: |
5131 | * This symbol, if defined, indicates that 64-bit integers should | |
5132 | * be used when available. If not defined, the native integers | |
5133 | * will be employed (be they 32 or 64 bits). The minimal possible | |
5134 | * 64-bitness is used, just enough to get 64-bit integers into Perl. | |
5135 | * This may mean using for example "long longs", while your memory | |
5136 | * may still be limited to 2 gigabytes. | |
66fe083f | 5137 | */ |
08c92000 MB |
5138 | /* USE_64_BIT_ALL: |
5139 | * This symbol, if defined, indicates that 64-bit integers should | |
5140 | * be used when available. If not defined, the native integers | |
5141 | * will be used (be they 32 or 64 bits). The maximal possible | |
5142 | * 64-bitness is employed: LP64 or ILP64, meaning that you will | |
5143 | * be able to use more than 2 gigabytes of memory. This mode is | |
5144 | * even more binary incompatible than USE_64_BIT_INT. You may not | |
5145 | * be able to run the resulting executable in a 32-bit CPU at all or | |
5146 | * you may need at least to reboot your OS to 64-bit mode. | |
767df6a1 | 5147 | */ |
08c92000 MB |
5148 | #ifndef USE_64_BIT_INT |
5149 | #$use64bitint USE_64_BIT_INT /**/ | |
5150 | #endif | |
08c92000 MB |
5151 | #ifndef USE_64_BIT_ALL |
5152 | #$use64bitall USE_64_BIT_ALL /**/ | |
5153 | #endif | |
a33c94aa | 5154 | |
f6a82ade MB |
5155 | /* USE_CBACKTRACE: |
5156 | * This symbol, if defined, indicates that Perl should | |
5157 | * be built with support for backtrace. | |
5158 | */ | |
5159 | #$usecbacktrace USE_CBACKTRACE /**/ | |
5160 | ||
0a3c33ab MB |
5161 | /* USE_DTRACE: |
5162 | * This symbol, if defined, indicates that Perl should | |
5163 | * be built with support for DTrace. | |
5164 | */ | |
5165 | #$usedtrace USE_DTRACE /**/ | |
5166 | ||
eaf812ae MB |
5167 | /* USE_FAST_STDIO: |
5168 | * This symbol, if defined, indicates that Perl should | |
5169 | * be built to use 'fast stdio'. | |
5170 | * Defaults to define in Perls 5.8 and earlier, to undef later. | |
5171 | */ | |
5172 | #ifndef USE_FAST_STDIO | |
5173 | #$usefaststdio USE_FAST_STDIO /**/ | |
5174 | #endif | |
5175 | ||
d78f9ffa MB |
5176 | /* USE_KERN_PROC_PATHNAME: |
5177 | * This symbol, if defined, indicates that we can use sysctl with | |
5178 | * KERN_PROC_PATHNAME to get a full path for the executable, and hence | |
5179 | * convert $^X to an absolute path. | |
5180 | */ | |
5181 | #$usekernprocpathname USE_KERN_PROC_PATHNAME /**/ | |
5182 | ||
08c92000 MB |
5183 | /* USE_LARGE_FILES: |
5184 | * This symbol, if defined, indicates that large file support | |
5185 | * should be used when available. | |
640374d0 | 5186 | */ |
08c92000 MB |
5187 | #ifndef USE_LARGE_FILES |
5188 | #$uselargefiles USE_LARGE_FILES /**/ | |
5189 | #endif | |
dfe9444c | 5190 | |
08c92000 MB |
5191 | /* USE_LONG_DOUBLE: |
5192 | * This symbol, if defined, indicates that long doubles should | |
5193 | * be used when available. | |
a845a0d4 | 5194 | */ |
08c92000 MB |
5195 | #ifndef USE_LONG_DOUBLE |
5196 | #$uselongdouble USE_LONG_DOUBLE /**/ | |
5197 | #endif | |
a845a0d4 | 5198 | |
08c92000 MB |
5199 | /* USE_MORE_BITS: |
5200 | * This symbol, if defined, indicates that 64-bit interfaces and | |
5201 | * long doubles should be used when available. | |
758a5d79 | 5202 | */ |
08c92000 MB |
5203 | #ifndef USE_MORE_BITS |
5204 | #$usemorebits USE_MORE_BITS /**/ | |
5205 | #endif | |
758a5d79 | 5206 | |
08c92000 MB |
5207 | /* MULTIPLICITY: |
5208 | * This symbol, if defined, indicates that Perl should | |
5209 | * be built to use multiplicity. | |
1acc7ade | 5210 | */ |
08c92000 MB |
5211 | #ifndef MULTIPLICITY |
5212 | #$usemultiplicity MULTIPLICITY /**/ | |
5213 | #endif | |
1acc7ade | 5214 | |
d78f9ffa MB |
5215 | /* USE_NSGETEXECUTABLEPATH: |
5216 | * This symbol, if defined, indicates that we can use _NSGetExecutablePath | |
5217 | * and realpath to get a full path for the executable, and hence convert | |
5218 | * $^X to an absolute path. | |
5219 | */ | |
5220 | #$usensgetexecutablepath USE_NSGETEXECUTABLEPATH /**/ | |
5221 | ||
08c92000 MB |
5222 | /* USE_PERLIO: |
5223 | * This symbol, if defined, indicates that the PerlIO abstraction should | |
5224 | * be used throughout. If not defined, stdio should be | |
5225 | * used in a fully backward compatible manner. | |
5ff3f7a4 | 5226 | */ |
08c92000 MB |
5227 | #ifndef USE_PERLIO |
5228 | #$useperlio USE_PERLIO /**/ | |
5229 | #endif | |
5ff3f7a4 | 5230 | |
f40bbcbf MB |
5231 | /* USE_QUADMATH: |
5232 | * This symbol, if defined, indicates that the quadmath library should | |
5233 | * be used when available. | |
5234 | */ | |
5235 | #ifndef USE_QUADMATH | |
5236 | #$usequadmath USE_QUADMATH /**/ | |
5237 | #endif | |
5238 | ||
08c92000 MB |
5239 | /* USE_SOCKS: |
5240 | * This symbol, if defined, indicates that Perl should | |
5241 | * be built to use socks. | |
a845a0d4 | 5242 | */ |
08c92000 MB |
5243 | #ifndef USE_SOCKS |
5244 | #$usesocks USE_SOCKS /**/ | |
5245 | #endif | |
a845a0d4 | 5246 | |
fe14fcc3 | 5247 | #endif |
8d063cd8 | 5248 | !GROK!THIS! |
43dddb59 | 5249 | ;; |
11e2f395 | 5250 | esac |