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 | |
d226c0a2 TC |
66 | /* HAS_OPENAT: |
67 | * This symbol is defined if the openat() routine is available. | |
68 | */ | |
69 | #$d_openat HAS_OPENAT /**/ | |
70 | ||
71 | /* HAS_UNLINKAT: | |
72 | * This symbol is defined if the unlinkat() routine is available. | |
73 | */ | |
74 | #$d_unlinkat HAS_UNLINKAT /**/ | |
75 | ||
76 | /* HAS_RENAMEAT: | |
77 | * This symbol is defined if the renameat() routine is available. | |
78 | */ | |
79 | #$d_renameat HAS_RENAMEAT /**/ | |
80 | ||
81 | /* HAS_LINKAT: | |
82 | * This symbol is defined if the linkat() routine is available. | |
83 | */ | |
84 | #$d_linkat HAS_LINKAT /**/ | |
85 | ||
86 | /* HAS_FCHMODAT: | |
87 | * This symbol is defined if the fchmodat() routine is available. | |
88 | */ | |
89 | #$d_fchmodat HAS_FCHMODAT /**/ | |
90 | ||
88fdc172 SB |
91 | /* HAS_BCMP: |
92 | * This symbol is defined if the bcmp() routine is available to | |
93 | * compare blocks of memory. | |
b4eb6b3d | 94 | */ |
88fdc172 | 95 | #$d_bcmp HAS_BCMP /**/ |
b4eb6b3d | 96 | |
88fdc172 SB |
97 | /* HAS_BCOPY: |
98 | * This symbol is defined if the bcopy() routine is available to | |
99 | * copy blocks of memory. | |
a687059c | 100 | */ |
88fdc172 | 101 | #$d_bcopy HAS_BCOPY /**/ |
a687059c | 102 | |
88fdc172 SB |
103 | /* HAS_BZERO: |
104 | * This symbol is defined if the bzero() routine is available to | |
105 | * set a memory block to 0. | |
0d3e774c | 106 | */ |
88fdc172 | 107 | #$d_bzero HAS_BZERO /**/ |
0d3e774c | 108 | |
f40bbcbf MB |
109 | /* HAS_CBRT: |
110 | * This symbol, if defined, indicates that the cbrt() (cube root) | |
111 | * function is available. | |
112 | */ | |
113 | #$d_cbrt HAS_CBRT /**/ | |
114 | ||
88fdc172 SB |
115 | /* HAS_CHOWN: |
116 | * This symbol, if defined, indicates that the chown routine is | |
117 | * available. | |
a0d0e21e | 118 | */ |
88fdc172 | 119 | #$d_chown HAS_CHOWN /**/ |
a0d0e21e | 120 | |
88fdc172 SB |
121 | /* HAS_CHROOT: |
122 | * This symbol, if defined, indicates that the chroot routine is | |
123 | * available. | |
a0d0e21e | 124 | */ |
88fdc172 | 125 | #$d_chroot HAS_CHROOT /**/ |
a0d0e21e | 126 | |
88fdc172 SB |
127 | /* HAS_CHSIZE: |
128 | * This symbol, if defined, indicates that the chsize routine is available | |
129 | * to truncate files. You might need a -lx to get this routine. | |
87250799 | 130 | */ |
88fdc172 | 131 | #$d_chsize HAS_CHSIZE /**/ |
87250799 | 132 | |
1d8eaf8c MB |
133 | /* HAS_CRYPT: |
134 | * This symbol, if defined, indicates that the crypt routine is available | |
135 | * to encrypt passwords and the like. | |
136 | */ | |
137 | #$d_crypt HAS_CRYPT /**/ | |
138 | ||
13cfc98d MB |
139 | /* HAS_CTERMID: |
140 | * This symbol, if defined, indicates that the ctermid routine is | |
141 | * available to generate filename for terminal. | |
142 | */ | |
143 | #$d_ctermid HAS_CTERMID /**/ | |
144 | ||
88fdc172 SB |
145 | /* HAS_CUSERID: |
146 | * This symbol, if defined, indicates that the cuserid routine is | |
147 | * available to get character login names. | |
13281fa4 | 148 | */ |
88fdc172 | 149 | #$d_cuserid HAS_CUSERID /**/ |
a0d0e21e | 150 | |
88fdc172 SB |
151 | /* HAS_DBL_DIG: |
152 | * This symbol, if defined, indicates that this system's <float.h> | |
153 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
154 | * of significant digits in a double precision number. If this | |
155 | * symbol is not defined, a guess of 15 is usually pretty good. | |
a0d0e21e | 156 | */ |
e5eef985 | 157 | #$d_dbl_dig HAS_DBL_DIG /**/ |
a0d0e21e | 158 | |
88fdc172 SB |
159 | /* HAS_DIFFTIME: |
160 | * This symbol, if defined, indicates that the difftime routine is | |
161 | * available. | |
a0d0e21e | 162 | */ |
88fdc172 | 163 | #$d_difftime HAS_DIFFTIME /**/ |
13281fa4 | 164 | |
88fdc172 SB |
165 | /* HAS_DLERROR: |
166 | * This symbol, if defined, indicates that the dlerror routine is | |
167 | * available to return a string describing the last error that | |
168 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
ecfc5424 | 169 | */ |
88fdc172 | 170 | #$d_dlerror HAS_DLERROR /**/ |
ecfc5424 | 171 | |
88fdc172 SB |
172 | /* HAS_DUP2: |
173 | * This symbol, if defined, indicates that the dup2 routine is | |
174 | * available to duplicate file descriptors. | |
a687059c | 175 | */ |
88fdc172 | 176 | #$d_dup2 HAS_DUP2 /**/ |
a687059c | 177 | |
88fdc172 SB |
178 | /* HAS_FCHMOD: |
179 | * This symbol, if defined, indicates that the fchmod routine is available | |
180 | * to change mode of opened files. If unavailable, use chmod(). | |
378cc40b | 181 | */ |
88fdc172 | 182 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b | 183 | |
88fdc172 SB |
184 | /* HAS_FCHOWN: |
185 | * This symbol, if defined, indicates that the fchown routine is available | |
186 | * to change ownership of opened files. If unavailable, use chown(). | |
378cc40b | 187 | */ |
88fdc172 | 188 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b | 189 | |
88fdc172 SB |
190 | /* HAS_FCNTL: |
191 | * This symbol, if defined, indicates to the C program that | |
192 | * the fcntl() function exists. | |
a687059c | 193 | */ |
88fdc172 | 194 | #$d_fcntl HAS_FCNTL /**/ |
a687059c | 195 | |
88fdc172 SB |
196 | /* HAS_FGETPOS: |
197 | * This symbol, if defined, indicates that the fgetpos routine is | |
198 | * available to get the file position indicator, similar to ftell(). | |
a0d0e21e | 199 | */ |
88fdc172 | 200 | #$d_fgetpos HAS_FGETPOS /**/ |
a0d0e21e | 201 | |
88fdc172 SB |
202 | /* HAS_FLOCK: |
203 | * This symbol, if defined, indicates that the flock routine is | |
204 | * available to do file locking. | |
a687059c | 205 | */ |
88fdc172 | 206 | #$d_flock HAS_FLOCK /**/ |
a687059c | 207 | |
88fdc172 SB |
208 | /* HAS_FORK: |
209 | * This symbol, if defined, indicates that the fork routine is | |
210 | * available. | |
a0d0e21e | 211 | */ |
88fdc172 | 212 | #$d_fork HAS_FORK /**/ |
a0d0e21e | 213 | |
88fdc172 SB |
214 | /* HAS_FSETPOS: |
215 | * This symbol, if defined, indicates that the fsetpos routine is | |
216 | * available to set the file position indicator, similar to fseek(). | |
a0d0e21e | 217 | */ |
88fdc172 | 218 | #$d_fsetpos HAS_FSETPOS /**/ |
a0d0e21e | 219 | |
88fdc172 SB |
220 | /* HAS_GETTIMEOFDAY: |
221 | * This symbol, if defined, indicates that the gettimeofday() system | |
222 | * call is available for a sub-second accuracy clock. Usually, the file | |
223 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). | |
224 | * The type "Timeval" should be used to refer to "struct timeval". | |
5f05dabc | 225 | */ |
88fdc172 SB |
226 | #$d_gettimeod HAS_GETTIMEOFDAY /**/ |
227 | #ifdef HAS_GETTIMEOFDAY | |
228 | #define Timeval struct timeval /* Structure used by gettimeofday() */ | |
229 | #endif | |
5f05dabc | 230 | |
88fdc172 SB |
231 | /* HAS_GETGROUPS: |
232 | * This symbol, if defined, indicates that the getgroups() routine is | |
233 | * available to get the list of process groups. If unavailable, multiple | |
234 | * groups are probably not supported. | |
378cc40b | 235 | */ |
88fdc172 | 236 | #$d_getgrps HAS_GETGROUPS /**/ |
378cc40b | 237 | |
88fdc172 SB |
238 | /* HAS_GETLOGIN: |
239 | * This symbol, if defined, indicates that the getlogin routine is | |
240 | * available to get the login name. | |
dfe9444c | 241 | */ |
88fdc172 | 242 | #$d_getlogin HAS_GETLOGIN /**/ |
dfe9444c | 243 | |
88fdc172 | 244 | /* HAS_GETPGID: |
bd4dc887 | 245 | * This symbol, if defined, indicates to the C program that |
88fdc172 SB |
246 | * the getpgid(pid) function is available to get the |
247 | * process group id. | |
a0d0e21e | 248 | */ |
88fdc172 | 249 | #$d_getpgid HAS_GETPGID /**/ |
a0d0e21e | 250 | |
88fdc172 SB |
251 | /* HAS_GETPGRP2: |
252 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) | |
253 | * routine is available to get the current process group. | |
a687059c | 254 | */ |
88fdc172 | 255 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
ecfc5424 | 256 | |
88fdc172 SB |
257 | /* HAS_GETPPID: |
258 | * This symbol, if defined, indicates that the getppid routine is | |
259 | * available to get the parent process ID. | |
378cc40b | 260 | */ |
88fdc172 | 261 | #$d_getppid HAS_GETPPID /**/ |
378cc40b | 262 | |
88fdc172 SB |
263 | /* HAS_GETPRIORITY: |
264 | * This symbol, if defined, indicates that the getpriority routine is | |
265 | * available to get a process's priority. | |
0d3e774c | 266 | */ |
88fdc172 | 267 | #$d_getprior HAS_GETPRIORITY /**/ |
0d3e774c | 268 | |
88fdc172 SB |
269 | /* HAS_INET_ATON: |
270 | * This symbol, if defined, indicates to the C program that the | |
271 | * inet_aton() function is available to parse IP address "dotted-quad" | |
272 | * strings. | |
a0d0e21e | 273 | */ |
88fdc172 | 274 | #$d_inetaton HAS_INET_ATON /**/ |
a0d0e21e | 275 | |
88fdc172 SB |
276 | /* HAS_KILLPG: |
277 | * This symbol, if defined, indicates that the killpg routine is available | |
278 | * to kill process groups. If unavailable, you probably should use kill | |
279 | * with a negative process number. | |
a687059c | 280 | */ |
88fdc172 | 281 | #$d_killpg HAS_KILLPG /**/ |
a687059c | 282 | |
88fdc172 SB |
283 | /* HAS_LINK: |
284 | * This symbol, if defined, indicates that the link routine is | |
285 | * available to create hard links. | |
a0d0e21e | 286 | */ |
88fdc172 | 287 | #$d_link HAS_LINK /**/ |
a0d0e21e | 288 | |
88fdc172 SB |
289 | /* HAS_LOCALECONV: |
290 | * This symbol, if defined, indicates that the localeconv routine is | |
291 | * available for numeric and monetary formatting conventions. | |
a0d0e21e | 292 | */ |
88fdc172 | 293 | #$d_locconv HAS_LOCALECONV /**/ |
a0d0e21e | 294 | |
88fdc172 SB |
295 | /* HAS_LOCKF: |
296 | * This symbol, if defined, indicates that the lockf routine is | |
297 | * available to do file locking. | |
a0d0e21e | 298 | */ |
88fdc172 | 299 | #$d_lockf HAS_LOCKF /**/ |
a0d0e21e | 300 | |
88fdc172 SB |
301 | /* HAS_LSTAT: |
302 | * This symbol, if defined, indicates that the lstat routine is | |
303 | * available to do file stats on symbolic links. | |
378cc40b | 304 | */ |
88fdc172 | 305 | #$d_lstat HAS_LSTAT /**/ |
2304df62 | 306 | |
88fdc172 SB |
307 | /* HAS_MBLEN: |
308 | * This symbol, if defined, indicates that the mblen routine is available | |
309 | * to find the number of bytes in a multibye character. | |
9f971974 | 310 | */ |
88fdc172 | 311 | #$d_mblen HAS_MBLEN /**/ |
9f971974 | 312 | |
88fdc172 SB |
313 | /* HAS_MBSTOWCS: |
314 | * This symbol, if defined, indicates that the mbstowcs routine is | |
9cdcdad1 | 315 | * available to convert a multibyte string into a wide character string. |
9f971974 | 316 | */ |
88fdc172 | 317 | #$d_mbstowcs HAS_MBSTOWCS /**/ |
9f971974 | 318 | |
88fdc172 SB |
319 | /* HAS_MBTOWC: |
320 | * This symbol, if defined, indicates that the mbtowc routine is available | |
9cdcdad1 | 321 | * to convert a multibyte to a wide character. |
9f971974 | 322 | */ |
88fdc172 | 323 | #$d_mbtowc HAS_MBTOWC /**/ |
378cc40b | 324 | |
88fdc172 SB |
325 | /* HAS_MEMCMP: |
326 | * This symbol, if defined, indicates that the memcmp routine is available | |
327 | * to compare blocks of memory. | |
a687059c | 328 | */ |
88fdc172 | 329 | #$d_memcmp HAS_MEMCMP /**/ |
fe14fcc3 | 330 | |
88fdc172 SB |
331 | /* HAS_MEMCPY: |
332 | * This symbol, if defined, indicates that the memcpy routine is available | |
333 | * to copy blocks of memory. | |
ecfc5424 | 334 | */ |
88fdc172 | 335 | #$d_memcpy HAS_MEMCPY /**/ |
ecfc5424 | 336 | |
88fdc172 SB |
337 | /* HAS_MEMMOVE: |
338 | * This symbol, if defined, indicates that the memmove routine is available | |
339 | * to copy potentially overlapping blocks of memory. This should be used | |
340 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
341 | * own version. | |
a0d0e21e | 342 | */ |
88fdc172 | 343 | #$d_memmove HAS_MEMMOVE /**/ |
a0d0e21e | 344 | |
88fdc172 SB |
345 | /* HAS_MEMSET: |
346 | * This symbol, if defined, indicates that the memset routine is available | |
347 | * to set blocks of memory. | |
fe749a9f | 348 | */ |
88fdc172 | 349 | #$d_memset HAS_MEMSET /**/ |
fe749a9f | 350 | |
88fdc172 SB |
351 | /* HAS_MKDIR: |
352 | * This symbol, if defined, indicates that the mkdir routine is available | |
353 | * to create directories. Otherwise you should fork off a new process to | |
354 | * exec /bin/mkdir. | |
fe749a9f | 355 | */ |
88fdc172 | 356 | #$d_mkdir HAS_MKDIR /**/ |
fe749a9f | 357 | |
88fdc172 SB |
358 | /* HAS_MKFIFO: |
359 | * This symbol, if defined, indicates that the mkfifo routine is | |
360 | * available to create FIFOs. Otherwise, mknod should be able to | |
361 | * do it for you. However, if mkfifo is there, mknod might require | |
362 | * super-user privileges which mkfifo will not. | |
fe14fcc3 | 363 | */ |
88fdc172 | 364 | #$d_mkfifo HAS_MKFIFO /**/ |
a687059c | 365 | |
88fdc172 SB |
366 | /* HAS_MKTIME: |
367 | * This symbol, if defined, indicates that the mktime routine is | |
368 | * available. | |
ecfc5424 | 369 | */ |
88fdc172 | 370 | #$d_mktime HAS_MKTIME /**/ |
ecfc5424 | 371 | |
88fdc172 SB |
372 | /* HAS_MSYNC: |
373 | * This symbol, if defined, indicates that the msync system call is | |
374 | * available to synchronize a mapped file. | |
a687059c | 375 | */ |
88fdc172 | 376 | #$d_msync HAS_MSYNC /**/ |
a687059c | 377 | |
88fdc172 SB |
378 | /* HAS_MUNMAP: |
379 | * This symbol, if defined, indicates that the munmap system call is | |
380 | * available to unmap a region, usually mapped by mmap(). | |
fe14fcc3 | 381 | */ |
88fdc172 | 382 | #$d_munmap HAS_MUNMAP /**/ |
a0d0e21e | 383 | |
88fdc172 SB |
384 | /* HAS_NICE: |
385 | * This symbol, if defined, indicates that the nice routine is | |
386 | * available. | |
8e07c86e | 387 | */ |
88fdc172 | 388 | #$d_nice HAS_NICE /**/ |
8e07c86e | 389 | |
88fdc172 SB |
390 | /* HAS_PATHCONF: |
391 | * This symbol, if defined, indicates that pathconf() is available | |
392 | * to determine file-system related limits and options associated | |
393 | * with a given filename. | |
a0d0e21e | 394 | */ |
88fdc172 SB |
395 | /* HAS_FPATHCONF: |
396 | * This symbol, if defined, indicates that pathconf() is available | |
397 | * to determine file-system related limits and options associated | |
398 | * with a given open file descriptor. | |
a0d0e21e | 399 | */ |
88fdc172 SB |
400 | #$d_pathconf HAS_PATHCONF /**/ |
401 | #$d_fpathconf HAS_FPATHCONF /**/ | |
a0d0e21e | 402 | |
88fdc172 SB |
403 | /* HAS_PAUSE: |
404 | * This symbol, if defined, indicates that the pause routine is | |
405 | * available to suspend a process until a signal is received. | |
a0d0e21e | 406 | */ |
88fdc172 | 407 | #$d_pause HAS_PAUSE /**/ |
a0d0e21e | 408 | |
88fdc172 SB |
409 | /* HAS_PIPE: |
410 | * This symbol, if defined, indicates that the pipe routine is | |
411 | * available to create an inter-process channel. | |
a0d0e21e | 412 | */ |
88fdc172 | 413 | #$d_pipe HAS_PIPE /**/ |
fe14fcc3 | 414 | |
1d8eaf8c MB |
415 | /* HAS_POLL: |
416 | * This symbol, if defined, indicates that the poll routine is | |
417 | * available to poll active file descriptors. Please check I_POLL and | |
418 | * I_SYS_POLL to know which header should be included as well. | |
419 | */ | |
420 | #$d_poll HAS_POLL /**/ | |
421 | ||
88fdc172 SB |
422 | /* HAS_READDIR: |
423 | * This symbol, if defined, indicates that the readdir routine is | |
424 | * available to read directory entries. You may have to include | |
425 | * <dirent.h>. See I_DIRENT. | |
378cc40b | 426 | */ |
88fdc172 | 427 | #$d_readdir HAS_READDIR /**/ |
378cc40b | 428 | |
88fdc172 SB |
429 | /* HAS_SEEKDIR: |
430 | * This symbol, if defined, indicates that the seekdir routine is | |
431 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
378cc40b | 432 | */ |
88fdc172 | 433 | #$d_seekdir HAS_SEEKDIR /**/ |
2304df62 | 434 | |
88fdc172 SB |
435 | /* HAS_TELLDIR: |
436 | * This symbol, if defined, indicates that the telldir routine is | |
437 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
a0d0e21e | 438 | */ |
88fdc172 | 439 | #$d_telldir HAS_TELLDIR /**/ |
a0d0e21e | 440 | |
88fdc172 SB |
441 | /* HAS_REWINDDIR: |
442 | * This symbol, if defined, indicates that the rewinddir routine is | |
443 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
a0d0e21e | 444 | */ |
88fdc172 | 445 | #$d_rewinddir HAS_REWINDDIR /**/ |
a0d0e21e | 446 | |
88fdc172 SB |
447 | /* HAS_READLINK: |
448 | * This symbol, if defined, indicates that the readlink routine is | |
449 | * available to read the value of a symbolic link. | |
dfe9444c | 450 | */ |
88fdc172 | 451 | #$d_readlink HAS_READLINK /**/ |
dfe9444c | 452 | |
f40bbcbf MB |
453 | /* HAS_REGCOMP: |
454 | * This symbol, if defined, indicates that the regcomp() routine is | |
455 | * available to do some regular patern matching (usually on POSIX.2 | |
456 | * conforming systems). | |
427d28ce | 457 | */ |
f40bbcbf | 458 | #$d_regcomp HAS_REGCOMP /* POSIX.2 */ |
427d28ce | 459 | |
88fdc172 SB |
460 | /* HAS_RENAME: |
461 | * This symbol, if defined, indicates that the rename routine is available | |
462 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
463 | * trick. | |
d8f2e4cc | 464 | */ |
88fdc172 | 465 | #$d_rename HAS_RENAME /**/ |
d8f2e4cc | 466 | |
88fdc172 SB |
467 | /* HAS_RMDIR: |
468 | * This symbol, if defined, indicates that the rmdir routine is | |
469 | * available to remove directories. Otherwise you should fork off a | |
470 | * new process to exec /bin/rmdir. | |
a687059c | 471 | */ |
88fdc172 | 472 | #$d_rmdir HAS_RMDIR /**/ |
a687059c | 473 | |
88fdc172 SB |
474 | /* HAS_SELECT: |
475 | * This symbol, if defined, indicates that the select routine is | |
476 | * available to select active file descriptors. If the timeout field | |
477 | * is used, <sys/time.h> may need to be included. | |
a687059c | 478 | */ |
88fdc172 | 479 | #$d_select HAS_SELECT /**/ |
a687059c | 480 | |
88fdc172 SB |
481 | /* HAS_SETEGID: |
482 | * This symbol, if defined, indicates that the setegid routine is available | |
483 | * to change the effective gid of the current program. | |
a687059c | 484 | */ |
88fdc172 | 485 | #$d_setegid HAS_SETEGID /**/ |
a687059c | 486 | |
88fdc172 SB |
487 | /* HAS_SETEUID: |
488 | * This symbol, if defined, indicates that the seteuid routine is available | |
489 | * to change the effective uid of the current program. | |
378cc40b | 490 | */ |
88fdc172 | 491 | #$d_seteuid HAS_SETEUID /**/ |
378cc40b | 492 | |
1d8eaf8c MB |
493 | /* HAS_SETGROUPS: |
494 | * This symbol, if defined, indicates that the setgroups() routine is | |
495 | * available to set the list of process groups. If unavailable, multiple | |
496 | * groups are probably not supported. | |
497 | */ | |
498 | #$d_setgrps HAS_SETGROUPS /**/ | |
499 | ||
88fdc172 SB |
500 | /* HAS_SETLINEBUF: |
501 | * This symbol, if defined, indicates that the setlinebuf routine is | |
502 | * available to change stderr or stdout from block-buffered or unbuffered | |
503 | * to a line-buffered mode. | |
378cc40b | 504 | */ |
88fdc172 | 505 | #$d_setlinebuf HAS_SETLINEBUF /**/ |
2304df62 | 506 | |
88fdc172 SB |
507 | /* HAS_SETLOCALE: |
508 | * This symbol, if defined, indicates that the setlocale routine is | |
509 | * available to handle locale-specific ctype implementations. | |
2304df62 | 510 | */ |
88fdc172 | 511 | #$d_setlocale HAS_SETLOCALE /**/ |
fe14fcc3 | 512 | |
88fdc172 SB |
513 | /* HAS_SETPGID: |
514 | * This symbol, if defined, indicates that the setpgid(pid, gpid) | |
515 | * routine is available to set process group ID. | |
c2960299 | 516 | */ |
88fdc172 | 517 | #$d_setpgid HAS_SETPGID /**/ |
dfe9444c | 518 | |
88fdc172 SB |
519 | /* HAS_SETPGRP2: |
520 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) | |
521 | * routine is available to set the current process group. | |
16d20bd9 | 522 | */ |
88fdc172 | 523 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
dfe9444c | 524 | |
88fdc172 SB |
525 | /* HAS_SETPRIORITY: |
526 | * This symbol, if defined, indicates that the setpriority routine is | |
527 | * available to set a process's priority. | |
c2960299 | 528 | */ |
88fdc172 | 529 | #$d_setprior HAS_SETPRIORITY /**/ |
8d063cd8 | 530 | |
88fdc172 SB |
531 | /* HAS_SETREGID: |
532 | * This symbol, if defined, indicates that the setregid routine is | |
533 | * available to change the real and effective gid of the current | |
534 | * process. | |
a89d8a78 | 535 | */ |
88fdc172 SB |
536 | /* HAS_SETRESGID: |
537 | * This symbol, if defined, indicates that the setresgid routine is | |
538 | * available to change the real, effective and saved gid of the current | |
539 | * process. | |
a89d8a78 | 540 | */ |
88fdc172 SB |
541 | #$d_setregid HAS_SETREGID /**/ |
542 | #$d_setresgid HAS_SETRESGID /**/ | |
a89d8a78 | 543 | |
88fdc172 SB |
544 | /* HAS_SETREUID: |
545 | * This symbol, if defined, indicates that the setreuid routine is | |
546 | * available to change the real and effective uid of the current | |
547 | * process. | |
a0d0e21e | 548 | */ |
88fdc172 SB |
549 | /* HAS_SETRESUID: |
550 | * This symbol, if defined, indicates that the setresuid routine is | |
551 | * available to change the real, effective and saved uid of the current | |
552 | * process. | |
2e1b3b7e | 553 | */ |
88fdc172 SB |
554 | #$d_setreuid HAS_SETREUID /**/ |
555 | #$d_setresuid HAS_SETRESUID /**/ | |
2e1b3b7e | 556 | |
88fdc172 SB |
557 | /* HAS_SETRGID: |
558 | * This symbol, if defined, indicates that the setrgid routine is available | |
559 | * to change the real gid of the current program. | |
a687059c | 560 | */ |
88fdc172 | 561 | #$d_setrgid HAS_SETRGID /**/ |
e5d73d77 | 562 | |
88fdc172 SB |
563 | /* HAS_SETRUID: |
564 | * This symbol, if defined, indicates that the setruid routine is available | |
565 | * to change the real uid of the current program. | |
ecfc5424 | 566 | */ |
88fdc172 | 567 | #$d_setruid HAS_SETRUID /**/ |
ecfc5424 | 568 | |
88fdc172 SB |
569 | /* HAS_SETSID: |
570 | * This symbol, if defined, indicates that the setsid routine is | |
571 | * available to set the process group ID. | |
9f971974 | 572 | */ |
88fdc172 | 573 | #$d_setsid HAS_SETSID /**/ |
9f971974 | 574 | |
f40bbcbf MB |
575 | /* HAS_STAT: |
576 | * This symbol, if defined, indicates that the stat routine is | |
577 | * available to get file status. | |
578 | */ | |
579 | #$d_stat HAS_STAT /**/ | |
580 | ||
88fdc172 SB |
581 | /* HAS_STRCHR: |
582 | * This symbol is defined to indicate that the strchr()/strrchr() | |
583 | * functions are available for string searching. If not, try the | |
584 | * index()/rindex() pair. | |
85e6fe83 | 585 | */ |
88fdc172 SB |
586 | /* HAS_INDEX: |
587 | * This symbol is defined to indicate that the index()/rindex() | |
588 | * functions are available for string searching. | |
a0d0e21e | 589 | */ |
88fdc172 SB |
590 | #$d_strchr HAS_STRCHR /**/ |
591 | #$d_index HAS_INDEX /**/ | |
85e6fe83 | 592 | |
88fdc172 SB |
593 | /* HAS_STRCOLL: |
594 | * This symbol, if defined, indicates that the strcoll routine is | |
595 | * available to compare strings using collating information. | |
87250799 | 596 | */ |
88fdc172 | 597 | #$d_strcoll HAS_STRCOLL /**/ |
87250799 | 598 | |
88fdc172 SB |
599 | /* HAS_STRTOD: |
600 | * This symbol, if defined, indicates that the strtod routine is | |
601 | * available to provide better numeric string conversion than atof(). | |
a0d0e21e | 602 | */ |
88fdc172 | 603 | #$d_strtod HAS_STRTOD /**/ |
a0d0e21e | 604 | |
88fdc172 SB |
605 | /* HAS_STRTOL: |
606 | * This symbol, if defined, indicates that the strtol routine is available | |
607 | * to provide better numeric string conversion than atoi() and friends. | |
85e6fe83 | 608 | */ |
88fdc172 | 609 | #$d_strtol HAS_STRTOL /**/ |
d8f2e4cc | 610 | |
88fdc172 SB |
611 | /* HAS_STRXFRM: |
612 | * This symbol, if defined, indicates that the strxfrm() routine is | |
613 | * available to transform strings. | |
d8f2e4cc | 614 | */ |
88fdc172 | 615 | #$d_strxfrm HAS_STRXFRM /**/ |
d8f2e4cc | 616 | |
88fdc172 SB |
617 | /* HAS_SYMLINK: |
618 | * This symbol, if defined, indicates that the symlink routine is available | |
619 | * to create symbolic links. | |
dfe9444c | 620 | */ |
88fdc172 | 621 | #$d_symlink HAS_SYMLINK /**/ |
dfe9444c | 622 | |
88fdc172 SB |
623 | /* HAS_SYSCALL: |
624 | * This symbol, if defined, indicates that the syscall routine is | |
625 | * available to call arbitrary system calls. If undefined, that's tough. | |
a0d0e21e | 626 | */ |
88fdc172 | 627 | #$d_syscall HAS_SYSCALL /**/ |
a687059c | 628 | |
88fdc172 SB |
629 | /* HAS_SYSCONF: |
630 | * This symbol, if defined, indicates that sysconf() is available | |
631 | * to determine system related limits and options. | |
aaacdc8b | 632 | */ |
88fdc172 SB |
633 | #$d_sysconf HAS_SYSCONF /**/ |
634 | ||
635 | /* HAS_SYSTEM: | |
636 | * This symbol, if defined, indicates that the system routine is | |
637 | * available to issue a shell command. | |
aaacdc8b | 638 | */ |
88fdc172 | 639 | #$d_system HAS_SYSTEM /**/ |
aaacdc8b | 640 | |
88fdc172 SB |
641 | /* HAS_TCGETPGRP: |
642 | * This symbol, if defined, indicates that the tcgetpgrp routine is | |
643 | * available to get foreground process group ID. | |
aaacdc8b | 644 | */ |
88fdc172 | 645 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
aaacdc8b | 646 | |
88fdc172 SB |
647 | /* HAS_TCSETPGRP: |
648 | * This symbol, if defined, indicates that the tcsetpgrp routine is | |
649 | * available to set foreground process group ID. | |
a22e52b9 | 650 | */ |
88fdc172 | 651 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ |
a22e52b9 | 652 | |
88fdc172 SB |
653 | /* HAS_TRUNCATE: |
654 | * This symbol, if defined, indicates that the truncate routine is | |
655 | * available to truncate files. | |
5ff3f7a4 | 656 | */ |
88fdc172 | 657 | #$d_truncate HAS_TRUNCATE /**/ |
5ff3f7a4 | 658 | |
88fdc172 SB |
659 | /* HAS_TZNAME: |
660 | * This symbol, if defined, indicates that the tzname[] array is | |
661 | * available to access timezone names. | |
5ff3f7a4 | 662 | */ |
88fdc172 | 663 | #$d_tzname HAS_TZNAME /**/ |
5ff3f7a4 | 664 | |
88fdc172 SB |
665 | /* HAS_UMASK: |
666 | * This symbol, if defined, indicates that the umask routine is | |
667 | * available to set and get the value of the file creation mask. | |
5ff3f7a4 | 668 | */ |
88fdc172 | 669 | #$d_umask HAS_UMASK /**/ |
5ff3f7a4 | 670 | |
88fdc172 SB |
671 | /* HAS_USLEEP: |
672 | * This symbol, if defined, indicates that the usleep routine is | |
673 | * available to let the process sleep on a sub-second accuracy. | |
5ff3f7a4 | 674 | */ |
88fdc172 | 675 | #$d_usleep HAS_USLEEP /**/ |
5ff3f7a4 | 676 | |
88fdc172 SB |
677 | /* HAS_WAIT4: |
678 | * This symbol, if defined, indicates that wait4() exists. | |
8e07c86e | 679 | */ |
88fdc172 | 680 | #$d_wait4 HAS_WAIT4 /**/ |
8e07c86e | 681 | |
88fdc172 SB |
682 | /* HAS_WAITPID: |
683 | * This symbol, if defined, indicates that the waitpid routine is | |
684 | * available to wait for child process. | |
1aef975c | 685 | */ |
88fdc172 | 686 | #$d_waitpid HAS_WAITPID /**/ |
85e6fe83 | 687 | |
88fdc172 SB |
688 | /* HAS_WCSTOMBS: |
689 | * This symbol, if defined, indicates that the wcstombs routine is | |
690 | * available to convert wide character strings to multibyte strings. | |
bccf77a5 | 691 | */ |
88fdc172 | 692 | #$d_wcstombs HAS_WCSTOMBS /**/ |
dfe9444c | 693 | |
88fdc172 SB |
694 | /* HAS_WCTOMB: |
695 | * This symbol, if defined, indicates that the wctomb routine is available | |
9cdcdad1 | 696 | * to convert a wide character to a multibyte. |
bccf77a5 | 697 | */ |
88fdc172 | 698 | #$d_wctomb HAS_WCTOMB /**/ |
bccf77a5 | 699 | |
1d8eaf8c MB |
700 | /* Groups_t: |
701 | * This symbol holds the type used for the second argument to | |
702 | * getgroups() and setgroups(). Usually, this is the same as | |
703 | * gidtype (gid_t) , but sometimes it isn't. | |
bd4dc887 AC |
704 | * It can be int, ushort, gid_t, etc... |
705 | * It may be necessary to include <sys/types.h> to get any | |
1d8eaf8c MB |
706 | * typedef'ed information. This is only required if you have |
707 | * getgroups() or setgroups().. | |
708 | */ | |
709 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) | |
710 | #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */ | |
711 | #endif | |
712 | ||
88fdc172 SB |
713 | /* I_ARPA_INET: |
714 | * This symbol, if defined, indicates to the C program that it should | |
715 | * include <arpa/inet.h> to get inet_addr and friends declarations. | |
ff935051 | 716 | */ |
88fdc172 | 717 | #$i_arpainet I_ARPA_INET /**/ |
ff935051 | 718 | |
88fdc172 SB |
719 | /* I_DBM: |
720 | * This symbol, if defined, indicates that <dbm.h> exists and should | |
721 | * be included. | |
ff935051 | 722 | */ |
88fdc172 SB |
723 | /* I_RPCSVC_DBM: |
724 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and | |
725 | * should be included. | |
10bc17b6 | 726 | */ |
88fdc172 SB |
727 | #$i_dbm I_DBM /**/ |
728 | #$i_rpcsvcdbm I_RPCSVC_DBM /**/ | |
10bc17b6 | 729 | |
88fdc172 SB |
730 | /* I_DLFCN: |
731 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
732 | * be included. | |
78a7c709 | 733 | */ |
88fdc172 | 734 | #$i_dlfcn I_DLFCN /**/ |
78a7c709 | 735 | |
88fdc172 SB |
736 | /* I_FCNTL: |
737 | * This manifest constant tells the C program to include <fcntl.h>. | |
c7aff470 | 738 | */ |
88fdc172 | 739 | #$i_fcntl I_FCNTL /**/ |
44b94491 | 740 | |
88fdc172 SB |
741 | /* I_FLOAT: |
742 | * This symbol, if defined, indicates to the C program that it should | |
743 | * include <float.h> to get definition of symbols like DBL_MAX or | |
744 | * DBL_MIN, i.e. machine dependent floating point values. | |
c7aff470 | 745 | */ |
88fdc172 | 746 | #$i_float I_FLOAT /**/ |
c7aff470 | 747 | |
13cfc98d MB |
748 | /* I_GDBM: |
749 | * This symbol, if defined, indicates that <gdbm.h> exists and should | |
750 | * be included. | |
751 | */ | |
752 | #$i_gdbm I_GDBM /**/ | |
753 | ||
88fdc172 SB |
754 | /* I_LIMITS: |
755 | * This symbol, if defined, indicates to the C program that it should | |
756 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
757 | * LONG_MAX, i.e. machine dependant limitations. | |
c7aff470 | 758 | */ |
88fdc172 | 759 | #$i_limits I_LIMITS /**/ |
c7aff470 | 760 | |
88fdc172 SB |
761 | /* I_LOCALE: |
762 | * This symbol, if defined, indicates to the C program that it should | |
763 | * include <locale.h>. | |
a845a0d4 | 764 | */ |
88fdc172 | 765 | #$i_locale I_LOCALE /**/ |
a845a0d4 | 766 | |
88fdc172 SB |
767 | /* I_MATH: |
768 | * This symbol, if defined, indicates to the C program that it should | |
769 | * include <math.h>. | |
a845a0d4 | 770 | */ |
88fdc172 | 771 | #$i_math I_MATH /**/ |
a845a0d4 | 772 | |
88fdc172 SB |
773 | /* I_MEMORY: |
774 | * This symbol, if defined, indicates to the C program that it should | |
775 | * include <memory.h>. | |
a845a0d4 | 776 | */ |
88fdc172 SB |
777 | #$i_memory I_MEMORY /**/ |
778 | ||
88fdc172 SB |
779 | /* I_NETINET_IN: |
780 | * This symbol, if defined, indicates to the C program that it should | |
781 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. | |
a845a0d4 | 782 | */ |
88fdc172 SB |
783 | #$i_niin I_NETINET_IN /**/ |
784 | ||
88fdc172 SB |
785 | /* I_STDDEF: |
786 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
787 | * be included. | |
a845a0d4 | 788 | */ |
88fdc172 SB |
789 | #$i_stddef I_STDDEF /**/ |
790 | ||
791 | /* I_STDLIB: | |
792 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
793 | * be included. | |
a845a0d4 | 794 | */ |
88fdc172 SB |
795 | #$i_stdlib I_STDLIB /**/ |
796 | ||
797 | /* I_STRING: | |
798 | * This symbol, if defined, indicates to the C program that it should | |
799 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
a845a0d4 | 800 | */ |
88fdc172 SB |
801 | #$i_string I_STRING /**/ |
802 | ||
803 | /* I_SYS_DIR: | |
804 | * This symbol, if defined, indicates to the C program that it should | |
805 | * include <sys/dir.h>. | |
a845a0d4 | 806 | */ |
88fdc172 SB |
807 | #$i_sysdir I_SYS_DIR /**/ |
808 | ||
809 | /* I_SYS_FILE: | |
810 | * This symbol, if defined, indicates to the C program that it should | |
811 | * include <sys/file.h> to get definition of R_OK and friends. | |
a845a0d4 | 812 | */ |
88fdc172 | 813 | #$i_sysfile I_SYS_FILE /**/ |
a845a0d4 | 814 | |
88fdc172 SB |
815 | /* I_SYS_IOCTL: |
816 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
817 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
a845a0d4 | 818 | */ |
88fdc172 SB |
819 | /* I_SYS_SOCKIO: |
820 | * This symbol, if defined, indicates the <sys/sockio.h> should be included | |
821 | * to get socket ioctl options, like SIOCATMARK. | |
a845a0d4 | 822 | */ |
88fdc172 SB |
823 | #$i_sysioctl I_SYS_IOCTL /**/ |
824 | #$i_syssockio I_SYS_SOCKIO /**/ | |
825 | ||
826 | /* I_SYS_NDIR: | |
827 | * This symbol, if defined, indicates to the C program that it should | |
828 | * include <sys/ndir.h>. | |
a845a0d4 | 829 | */ |
88fdc172 | 830 | #$i_sysndir I_SYS_NDIR /**/ |
a845a0d4 | 831 | |
88fdc172 SB |
832 | /* I_SYS_PARAM: |
833 | * This symbol, if defined, indicates to the C program that it should | |
834 | * include <sys/param.h>. | |
a845a0d4 | 835 | */ |
88fdc172 SB |
836 | #$i_sysparam I_SYS_PARAM /**/ |
837 | ||
216dac04 MB |
838 | /* I_SYS_POLL: |
839 | * This symbol, if defined, indicates that the program may include | |
840 | * <sys/poll.h>. When I_POLL is also defined, it's probably safest | |
841 | * to only include <poll.h>. | |
842 | */ | |
843 | #$i_syspoll I_SYS_POLL /**/ | |
844 | ||
88fdc172 SB |
845 | /* I_SYS_RESOURCE: |
846 | * This symbol, if defined, indicates to the C program that it should | |
847 | * include <sys/resource.h>. | |
a845a0d4 | 848 | */ |
88fdc172 | 849 | #$i_sysresrc I_SYS_RESOURCE /**/ |
a845a0d4 | 850 | |
88fdc172 SB |
851 | /* I_SYS_SELECT: |
852 | * This symbol, if defined, indicates to the C program that it should | |
853 | * include <sys/select.h> in order to get definition of struct timeval. | |
a845a0d4 | 854 | */ |
88fdc172 | 855 | #$i_sysselct I_SYS_SELECT /**/ |
a845a0d4 | 856 | |
88fdc172 | 857 | /* I_SYS_STAT: |
a845a0d4 | 858 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 859 | * include <sys/stat.h>. |
a845a0d4 | 860 | */ |
88fdc172 SB |
861 | #$i_sysstat I_SYS_STAT /**/ |
862 | ||
863 | /* I_SYS_TIMES: | |
a845a0d4 | 864 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 865 | * include <sys/times.h>. |
a845a0d4 | 866 | */ |
88fdc172 SB |
867 | #$i_systimes I_SYS_TIMES /**/ |
868 | ||
869 | /* I_SYS_TYPES: | |
a845a0d4 | 870 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 871 | * include <sys/types.h>. |
a845a0d4 | 872 | */ |
88fdc172 SB |
873 | #$i_systypes I_SYS_TYPES /**/ |
874 | ||
875 | /* I_SYS_UN: | |
876 | * This symbol, if defined, indicates to the C program that it should | |
877 | * include <sys/un.h> to get UNIX domain socket definitions. | |
a845a0d4 | 878 | */ |
88fdc172 SB |
879 | #$i_sysun I_SYS_UN /**/ |
880 | ||
881 | /* I_SYS_WAIT: | |
882 | * This symbol, if defined, indicates to the C program that it should | |
883 | * include <sys/wait.h>. | |
a845a0d4 | 884 | */ |
88fdc172 | 885 | #$i_syswait I_SYS_WAIT /**/ |
a845a0d4 | 886 | |
88fdc172 SB |
887 | /* I_UNISTD: |
888 | * This symbol, if defined, indicates to the C program that it should | |
889 | * include <unistd.h>. | |
a845a0d4 | 890 | */ |
88fdc172 | 891 | #$i_unistd I_UNISTD /**/ |
a845a0d4 | 892 | |
88fdc172 SB |
893 | /* I_UTIME: |
894 | * This symbol, if defined, indicates to the C program that it should | |
895 | * include <utime.h>. | |
a845a0d4 | 896 | */ |
88fdc172 | 897 | #$i_utime I_UTIME /**/ |
a845a0d4 | 898 | |
88fdc172 SB |
899 | /* I_VALUES: |
900 | * This symbol, if defined, indicates to the C program that it should | |
901 | * include <values.h> to get definition of symbols like MINFLOAT or | |
902 | * MAXLONG, i.e. machine dependant limitations. Probably, you | |
903 | * should use <limits.h> instead, if it is available. | |
a845a0d4 | 904 | */ |
88fdc172 SB |
905 | #$i_values I_VALUES /**/ |
906 | ||
907 | /* I_VFORK: | |
908 | * This symbol, if defined, indicates to the C program that it should | |
909 | * include vfork.h. | |
a845a0d4 | 910 | */ |
88fdc172 SB |
911 | #$i_vfork I_VFORK /**/ |
912 | ||
7e69463d AC |
913 | /* STDCHAR: |
914 | * This symbol is defined to be the type of char used in stdio.h. | |
915 | * It has the values "unsigned char" or "char". | |
916 | */ | |
917 | #define STDCHAR $stdchar /**/ | |
918 | ||
d03b3b00 MB |
919 | /* CAN_VAPROTO: |
920 | * This variable is defined on systems supporting prototype declaration | |
921 | * of functions with a variable number of arguments. | |
922 | */ | |
923 | /* _V: | |
924 | * This macro is used to declare function parameters in prototypes for | |
925 | * functions with a variable number of parameters. Use double parentheses. | |
926 | * For example: | |
927 | * | |
928 | * int printf _V((char *fmt, ...)); | |
929 | * | |
930 | * Remember to use the plain simple _() macro when declaring a function | |
931 | * with no variable number of arguments, since it might be possible to | |
932 | * have a non-effect _V() macro and still get prototypes via _(). | |
933 | */ | |
934 | #$vaproto CAN_VAPROTO /**/ | |
935 | #ifdef CAN_VAPROTO | |
936 | #define _V(args) args | |
937 | #else | |
938 | #define _V(args) () | |
939 | #endif | |
940 | ||
7e69463d AC |
941 | /* INTSIZE: |
942 | * This symbol contains the value of sizeof(int) so that the C | |
943 | * preprocessor can make decisions based on it. | |
a845a0d4 | 944 | */ |
7e69463d AC |
945 | /* LONGSIZE: |
946 | * This symbol contains the value of sizeof(long) so that the C | |
947 | * preprocessor can make decisions based on it. | |
eaf812ae | 948 | */ |
7e69463d AC |
949 | /* SHORTSIZE: |
950 | * This symbol contains the value of sizeof(short) so that the C | |
951 | * preprocessor can make decisions based on it. | |
952 | */ | |
953 | #define INTSIZE $intsize /**/ | |
954 | #define LONGSIZE $longsize /**/ | |
955 | #define SHORTSIZE $shortsize /**/ | |
eaf812ae | 956 | |
6e89a33a MB |
957 | /* MULTIARCH: |
958 | * This symbol, if defined, signifies that the build | |
959 | * process will produce some binary files that are going to be | |
960 | * used in a cross-platform environment. This is the case for | |
961 | * example with the NeXT "fat" binaries that contain executables | |
962 | * for several CPUs. | |
963 | */ | |
964 | #$multiarch MULTIARCH /**/ | |
965 | ||
7e69463d AC |
966 | /* HAS_QUAD: |
967 | * This symbol, if defined, tells that there's a 64-bit integer type, | |
968 | * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one | |
969 | * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, QUAD_IS_INT64_T, | |
970 | * or QUAD_IS___INT64. | |
b8677e3b | 971 | */ |
7e69463d AC |
972 | #$d_quad HAS_QUAD /**/ |
973 | #ifdef HAS_QUAD | |
974 | # define Quad_t $quadtype /**/ | |
975 | # define Uquad_t $uquadtype /**/ | |
976 | # define QUADKIND $quadkind /**/ | |
977 | # define QUAD_IS_INT 1 | |
978 | # define QUAD_IS_LONG 2 | |
979 | # define QUAD_IS_LONG_LONG 3 | |
980 | # define QUAD_IS_INT64_T 4 | |
981 | # define QUAD_IS___INT64 5 | |
982 | #endif | |
08c92000 | 983 | |
7e69463d AC |
984 | /* HAS_ACCESSX: |
985 | * This symbol, if defined, indicates that the accessx routine is | |
986 | * available to do extended access checks. | |
08c92000 | 987 | */ |
7e69463d | 988 | #$d_accessx HAS_ACCESSX /**/ |
08c92000 | 989 | |
7e69463d AC |
990 | /* HAS_EACCESS: |
991 | * This symbol, if defined, indicates that the eaccess routine is | |
992 | * available to do extended access checks. | |
08c92000 | 993 | */ |
7e69463d | 994 | #$d_eaccess HAS_EACCESS /**/ |
08c92000 | 995 | |
7e69463d AC |
996 | /* I_SYS_ACCESS: |
997 | * This symbol, if defined, indicates to the C program that it should | |
998 | * include <sys/access.h>. | |
f3f1a2d8 | 999 | */ |
7e69463d | 1000 | #$i_sysaccess I_SYS_ACCESS /**/ |
08c92000 | 1001 | |
7e69463d AC |
1002 | /* I_SYS_SECURITY: |
1003 | * This symbol, if defined, indicates to the C program that it should | |
1004 | * include <sys/security.h>. | |
06501368 | 1005 | */ |
7e69463d AC |
1006 | #$i_syssecrt I_SYS_SECURITY /**/ |
1007 | ||
1008 | /* MEM_ALIGNBYTES: | |
1009 | * This symbol contains the number of bytes required to align a | |
1010 | * double, or a long double when applicable. Usual values are 2, | |
1011 | * 4 and 8. The default is eight, for safety. For cross-compiling | |
1012 | * or multiarch support, Configure will set a minimum of 8. | |
06501368 | 1013 | */ |
7e69463d | 1014 | #define MEM_ALIGNBYTES $alignbytes |
06501368 | 1015 | |
b8677e3b MB |
1016 | /* BYTEORDER: |
1017 | * This symbol holds the hexadecimal constant defined in byteorder, | |
1018 | * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc... | |
1019 | * If the compiler supports cross-compiling or multiple-architecture | |
f05550c0 | 1020 | * binaries, use compiler-defined macros to |
b8677e3b | 1021 | * determine the byte order. |
08c92000 | 1022 | */ |
c9d1bf8e | 1023 | #if defined(MULTIARCH) |
b8677e3b MB |
1024 | # ifdef __LITTLE_ENDIAN__ |
1025 | # if LONGSIZE == 4 | |
1026 | # define BYTEORDER 0x1234 | |
1027 | # else | |
1028 | # if LONGSIZE == 8 | |
1029 | # define BYTEORDER 0x12345678 | |
1030 | # endif | |
1031 | # endif | |
1032 | # else | |
1033 | # ifdef __BIG_ENDIAN__ | |
1034 | # if LONGSIZE == 4 | |
1035 | # define BYTEORDER 0x4321 | |
1036 | # else | |
1037 | # if LONGSIZE == 8 | |
1038 | # define BYTEORDER 0x87654321 | |
1039 | # endif | |
1040 | # endif | |
1041 | # endif | |
1042 | # endif | |
b8677e3b MB |
1043 | #else |
1044 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ | |
f05550c0 | 1045 | #endif |
08c92000 | 1046 | |
b8677e3b MB |
1047 | /* CHARBITS: |
1048 | * This symbol contains the size of a char, so that the C preprocessor | |
1049 | * can make decisions based on it. | |
08c92000 | 1050 | */ |
b8677e3b | 1051 | #define CHARBITS $charbits /**/ |
08c92000 | 1052 | |
b8677e3b MB |
1053 | /* CASTI32: |
1054 | * This symbol is defined if the C compiler can cast negative | |
1055 | * or large floating point numbers to 32-bit ints. | |
eaf812ae | 1056 | */ |
b8677e3b MB |
1057 | #$d_casti32 CASTI32 /**/ |
1058 | ||
1059 | /* CASTNEGFLOAT: | |
1060 | * This symbol is defined if the C compiler can cast negative | |
1061 | * numbers to unsigned longs, ints and shorts. | |
fcdf39cf | 1062 | */ |
b8677e3b MB |
1063 | /* CASTFLAGS: |
1064 | * This symbol contains flags that say what difficulties the compiler | |
1065 | * has casting odd floating values to unsigned long: | |
1066 | * 0 = ok | |
1067 | * 1 = couldn't cast < 0 | |
1068 | * 2 = couldn't cast >= 0x80000000 | |
1069 | * 4 = couldn't cast in argument expression list | |
eaf812ae | 1070 | */ |
b8677e3b MB |
1071 | #$d_castneg CASTNEGFLOAT /**/ |
1072 | #define CASTFLAGS $castflags /**/ | |
eaf812ae | 1073 | |
b8677e3b MB |
1074 | /* VOID_CLOSEDIR: |
1075 | * This symbol, if defined, indicates that the closedir() routine | |
1076 | * does not return a value. | |
f244a502 | 1077 | */ |
b8677e3b | 1078 | #$d_void_closedir VOID_CLOSEDIR /**/ |
f244a502 | 1079 | |
7e69463d AC |
1080 | /* HAS_FD_SET: |
1081 | * This symbol, when defined, indicates presence of the fd_set typedef | |
1082 | * in <sys/types.h> | |
06501368 | 1083 | */ |
7e69463d | 1084 | #$d_fd_set HAS_FD_SET /**/ |
06501368 | 1085 | |
7e69463d AC |
1086 | /* Gconvert: |
1087 | * This preprocessor macro is defined to convert a floating point | |
1088 | * number to a string without a trailing decimal point. This | |
1089 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1090 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1091 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1092 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1093 | * macro are: value, number of digits, whether trailing zeros should | |
1094 | * be retained, and the output buffer. | |
1095 | * The usual values are: | |
1096 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1097 | * d_Gconvert='gcvt((x),(n),(b))' | |
1098 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1099 | * The last two assume trailing zeros should not be kept. | |
a845a0d4 | 1100 | */ |
7e69463d | 1101 | #define Gconvert(x,n,t,b) $d_Gconvert |
a845a0d4 | 1102 | |
7e69463d AC |
1103 | /* HAS_GETPAGESIZE: |
1104 | * This symbol, if defined, indicates that the getpagesize system call | |
1105 | * is available to get system page size, which is the granularity of | |
1106 | * many memory management calls. | |
06501368 | 1107 | */ |
7e69463d AC |
1108 | #$d_getpagsz HAS_GETPAGESIZE /**/ |
1109 | ||
1110 | /* HAS_GNULIBC: | |
1111 | * This symbol, if defined, indicates to the C program that | |
1112 | * the GNU C library is being used. A better check is to use | |
1113 | * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc. | |
06501368 | 1114 | */ |
7e69463d AC |
1115 | #$d_gnulibc HAS_GNULIBC /**/ |
1116 | #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) | |
1117 | # define _GNU_SOURCE | |
06501368 MB |
1118 | #endif |
1119 | ||
7e69463d AC |
1120 | /* HAS_ISASCII: |
1121 | * This manifest constant lets the C program know that isascii | |
1122 | * is available. | |
eaf812ae | 1123 | */ |
7e69463d | 1124 | #$d_isascii HAS_ISASCII /**/ |
eaf812ae | 1125 | |
7e69463d AC |
1126 | /* HAS_LCHOWN: |
1127 | * This symbol, if defined, indicates that the lchown routine is | |
1128 | * available to operate on a symbolic link (instead of following the | |
1129 | * link). | |
a845a0d4 | 1130 | */ |
7e69463d | 1131 | #$d_lchown HAS_LCHOWN /**/ |
a845a0d4 | 1132 | |
7e69463d AC |
1133 | /* HAS_OPEN3: |
1134 | * This manifest constant lets the C program know that the three | |
1135 | * argument form of open(2) is available. | |
0e0c5f82 | 1136 | */ |
7e69463d | 1137 | #$d_open3 HAS_OPEN3 /**/ |
0e0c5f82 | 1138 | |
7e69463d AC |
1139 | /* HAS_SAFE_BCOPY: |
1140 | * This symbol, if defined, indicates that the bcopy routine is available | |
1141 | * to copy potentially overlapping memory blocks. Normally, you should | |
1142 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
1143 | * own version. | |
06501368 | 1144 | */ |
7e69463d | 1145 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
06501368 | 1146 | |
7e69463d AC |
1147 | /* HAS_SAFE_MEMCPY: |
1148 | * This symbol, if defined, indicates that the memcpy routine is available | |
1149 | * to copy potentially overlapping memory blocks. If you need to | |
1150 | * copy overlapping memory blocks, you should check HAS_MEMMOVE and | |
1151 | * use memmove() instead, if available. | |
08c92000 | 1152 | */ |
7e69463d | 1153 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
a845a0d4 | 1154 | |
7e69463d AC |
1155 | /* HAS_SANE_MEMCMP: |
1156 | * This symbol, if defined, indicates that the memcmp routine is available | |
1157 | * and can be used to compare relative magnitudes of chars with their high | |
1158 | * bits set. If it is not defined, roll your own version. | |
06501368 | 1159 | */ |
7e69463d | 1160 | #$d_sanemcmp HAS_SANE_MEMCMP /**/ |
06501368 | 1161 | |
7e69463d AC |
1162 | /* HAS_SIGACTION: |
1163 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
1164 | * is available. | |
ed140128 | 1165 | */ |
7e69463d | 1166 | #$d_sigaction HAS_SIGACTION /**/ |
ed140128 | 1167 | |
7e69463d AC |
1168 | /* HAS_SIGINFO_SI_ERRNO: |
1169 | * This symbol, if defined, indicates that siginfo_t has the | |
1170 | * si_errno member | |
06501368 | 1171 | */ |
7e69463d AC |
1172 | /* HAS_SIGINFO_SI_PID: |
1173 | * This symbol, if defined, indicates that siginfo_t has the | |
1174 | * si_pid member | |
88fdc172 | 1175 | */ |
7e69463d AC |
1176 | /* HAS_SIGINFO_SI_UID: |
1177 | * This symbol, if defined, indicates that siginfo_t has the | |
1178 | * si_uid member | |
88fdc172 | 1179 | */ |
7e69463d AC |
1180 | /* HAS_SIGINFO_SI_ADDR: |
1181 | * This symbol, if defined, indicates that siginfo_t has the | |
1182 | * si_addr member | |
06501368 | 1183 | */ |
7e69463d AC |
1184 | /* HAS_SIGINFO_SI_STATUS: |
1185 | * This symbol, if defined, indicates that siginfo_t has the | |
1186 | * si_status member | |
eaf812ae | 1187 | */ |
7e69463d AC |
1188 | /* HAS_SIGINFO_SI_BAND: |
1189 | * This symbol, if defined, indicates that siginfo_t has the | |
1190 | * si_band member | |
eaf812ae | 1191 | */ |
7e69463d AC |
1192 | /* HAS_SIGINFO_SI_VALUE: |
1193 | * This symbol, if defined, indicates that siginfo_t has the | |
1194 | * si_value member | |
06501368 | 1195 | */ |
7e69463d AC |
1196 | #$d_siginfo_si_errno HAS_SIGINFO_SI_ERRNO /**/ |
1197 | #$d_siginfo_si_pid HAS_SIGINFO_SI_PID /**/ | |
1198 | #$d_siginfo_si_uid HAS_SIGINFO_SI_UID /**/ | |
1199 | #$d_siginfo_si_addr HAS_SIGINFO_SI_ADDR /**/ | |
1200 | #$d_siginfo_si_status HAS_SIGINFO_SI_STATUS /**/ | |
1201 | #$d_siginfo_si_band HAS_SIGINFO_SI_BAND /**/ | |
1202 | #$d_siginfo_si_value HAS_SIGINFO_SI_VALUE /**/ | |
06501368 | 1203 | |
7e69463d AC |
1204 | /* HAS_SIGSETJMP: |
1205 | * This variable indicates to the C program that the sigsetjmp() | |
1206 | * routine is available to save the calling process's registers | |
1207 | * and stack environment for later use by siglongjmp(), and | |
1208 | * to optionally save the process's signal mask. See | |
1209 | * Sigjmp_buf, Sigsetjmp, and Siglongjmp. | |
eaf812ae | 1210 | */ |
7e69463d AC |
1211 | /* Sigjmp_buf: |
1212 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. | |
06501368 | 1213 | */ |
7e69463d AC |
1214 | /* Sigsetjmp: |
1215 | * This macro is used in the same way as sigsetjmp(), but will invoke | |
1216 | * traditional setjmp() if sigsetjmp isn't available. | |
1217 | * See HAS_SIGSETJMP. | |
eaf812ae | 1218 | */ |
7e69463d AC |
1219 | /* Siglongjmp: |
1220 | * This macro is used in the same way as siglongjmp(), but will invoke | |
1221 | * traditional longjmp() if siglongjmp isn't available. | |
1222 | * See HAS_SIGSETJMP. | |
eaf812ae | 1223 | */ |
7e69463d AC |
1224 | #$d_sigsetjmp HAS_SIGSETJMP /**/ |
1225 | #ifdef HAS_SIGSETJMP | |
1226 | #define Sigjmp_buf sigjmp_buf | |
1227 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) | |
1228 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) | |
1229 | #else | |
1230 | #define Sigjmp_buf jmp_buf | |
1231 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) | |
1232 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) | |
1233 | #endif | |
06501368 | 1234 | |
7e69463d AC |
1235 | /* HAS_STATIC_INLINE: |
1236 | * This symbol, if defined, indicates that the C compiler supports | |
1237 | * C99-style static inline. That is, the function can't be called | |
1238 | * from another translation unit. | |
88fdc172 | 1239 | */ |
7e69463d AC |
1240 | /* PERL_STATIC_INLINE: |
1241 | * This symbol gives the best-guess incantation to use for static | |
1242 | * inline functions. If HAS_STATIC_INLINE is defined, this will | |
1243 | * give C99-style inline. If HAS_STATIC_INLINE is not defined, | |
1244 | * this will give a plain 'static'. It will always be defined | |
1245 | * to something that gives static linkage. | |
1246 | * Possibilities include | |
1247 | * static inline (c99) | |
1248 | * static __inline__ (gcc -ansi) | |
1249 | * static __inline (MSVC) | |
1250 | * static _inline (older MSVC) | |
1251 | * static (c89 compilers) | |
88fdc172 | 1252 | */ |
7e69463d AC |
1253 | #$d_static_inline HAS_STATIC_INLINE /**/ |
1254 | #define PERL_STATIC_INLINE $perl_static_inline /**/ | |
08c92000 | 1255 | |
7e69463d AC |
1256 | /* USE_STDIO_PTR: |
1257 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
1258 | * of the stdio FILE structure can be used to access the stdio buffer | |
1259 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
1260 | * and FILE_cnt(fp) macros will also be defined and should be used | |
1261 | * to access these fields. | |
06501368 | 1262 | */ |
7e69463d AC |
1263 | /* FILE_ptr: |
1264 | * This macro is used to access the _ptr field (or equivalent) of the | |
1265 | * FILE structure pointed to by its argument. This macro will always be | |
1266 | * defined if USE_STDIO_PTR is defined. | |
06501368 | 1267 | */ |
7e69463d AC |
1268 | /* STDIO_PTR_LVALUE: |
1269 | * This symbol is defined if the FILE_ptr macro can be used as an | |
1270 | * lvalue. | |
eaf812ae | 1271 | */ |
7e69463d AC |
1272 | /* FILE_cnt: |
1273 | * This macro is used to access the _cnt field (or equivalent) of the | |
1274 | * FILE structure pointed to by its argument. This macro will always be | |
1275 | * defined if USE_STDIO_PTR is defined. | |
a845a0d4 | 1276 | */ |
7e69463d AC |
1277 | /* STDIO_CNT_LVALUE: |
1278 | * This symbol is defined if the FILE_cnt macro can be used as an | |
1279 | * lvalue. | |
06501368 | 1280 | */ |
7e69463d AC |
1281 | /* STDIO_PTR_LVAL_SETS_CNT: |
1282 | * This symbol is defined if using the FILE_ptr macro as an lvalue | |
1283 | * to increase the pointer by n has the side effect of decreasing the | |
1284 | * value of File_cnt(fp) by n. | |
a845a0d4 | 1285 | */ |
7e69463d AC |
1286 | /* STDIO_PTR_LVAL_NOCHANGE_CNT: |
1287 | * This symbol is defined if using the FILE_ptr macro as an lvalue | |
1288 | * to increase the pointer by n leaves File_cnt(fp) unchanged. | |
06501368 | 1289 | */ |
7e69463d AC |
1290 | #$d_stdstdio USE_STDIO_PTR /**/ |
1291 | #ifdef USE_STDIO_PTR | |
1292 | #define FILE_ptr(fp) $stdio_ptr | |
1293 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ | |
1294 | #define FILE_cnt(fp) $stdio_cnt | |
1295 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ | |
1296 | #$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/ | |
1297 | #$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/ | |
1298 | #endif | |
06501368 | 1299 | |
7e69463d AC |
1300 | /* USE_STDIO_BASE: |
1301 | * This symbol is defined if the _base field (or similar) of the | |
1302 | * stdio FILE structure can be used to access the stdio buffer for | |
1303 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
1304 | * will also be defined and should be used to access this field. | |
1305 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
1306 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
1307 | * will never be defined unless USE_STDIO_PTR is. | |
08c92000 | 1308 | */ |
7e69463d AC |
1309 | /* FILE_base: |
1310 | * This macro is used to access the _base field (or equivalent) of the | |
1311 | * FILE structure pointed to by its argument. This macro will always be | |
1312 | * defined if USE_STDIO_BASE is defined. | |
a845a0d4 | 1313 | */ |
7e69463d AC |
1314 | /* FILE_bufsiz: |
1315 | * This macro is used to determine the number of bytes in the I/O | |
1316 | * buffer pointed to by _base field (or equivalent) of the FILE | |
1317 | * structure pointed to its argument. This macro will always be defined | |
1318 | * if USE_STDIO_BASE is defined. | |
a845a0d4 | 1319 | */ |
7e69463d AC |
1320 | #$d_stdiobase USE_STDIO_BASE /**/ |
1321 | #ifdef USE_STDIO_BASE | |
1322 | #define FILE_base(fp) $stdio_base | |
1323 | #define FILE_bufsiz(fp) $stdio_bufsiz | |
1324 | #endif | |
a845a0d4 | 1325 | |
7e69463d AC |
1326 | /* HAS_VPRINTF: |
1327 | * This symbol, if defined, indicates that the vprintf routine is available | |
1328 | * to printf with a pointer to an argument list. If unavailable, you | |
1329 | * may need to write your own, probably in terms of _doprnt(). | |
a845a0d4 | 1330 | */ |
7e69463d AC |
1331 | /* USE_CHAR_VSPRINTF: |
1332 | * This symbol is defined if this system has vsprintf() returning type | |
1333 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
1334 | * is up to the package author to declare vsprintf correctly based on the | |
1335 | * symbol. | |
06501368 | 1336 | */ |
7e69463d AC |
1337 | #$d_vprintf HAS_VPRINTF /**/ |
1338 | #$d_charvspr USE_CHAR_VSPRINTF /**/ | |
06501368 | 1339 | |
7e69463d AC |
1340 | /* DOUBLESIZE: |
1341 | * This symbol contains the size of a double, so that the C preprocessor | |
1342 | * can make decisions based on it. | |
06501368 | 1343 | */ |
7e69463d | 1344 | #define DOUBLESIZE $doublesize /**/ |
06501368 | 1345 | |
7e69463d AC |
1346 | /* I_TIME: |
1347 | * This symbol, if defined, indicates to the C program that it should | |
1348 | * include <time.h>. | |
06501368 | 1349 | */ |
7e69463d AC |
1350 | /* I_SYS_TIME: |
1351 | * This symbol, if defined, indicates to the C program that it should | |
1352 | * include <sys/time.h>. | |
06501368 | 1353 | */ |
7e69463d AC |
1354 | /* I_SYS_TIME_KERNEL: |
1355 | * This symbol, if defined, indicates to the C program that it should | |
1356 | * include <sys/time.h> with KERNEL defined. | |
06501368 | 1357 | */ |
7e69463d AC |
1358 | /* HAS_TM_TM_ZONE: |
1359 | * This symbol, if defined, indicates to the C program that | |
1360 | * the struct tm has a tm_zone field. | |
06501368 | 1361 | */ |
7e69463d AC |
1362 | /* HAS_TM_TM_GMTOFF: |
1363 | * This symbol, if defined, indicates to the C program that | |
1364 | * the struct tm has a tm_gmtoff field. | |
06501368 | 1365 | */ |
7e69463d AC |
1366 | #$i_time I_TIME /**/ |
1367 | #$i_systime I_SYS_TIME /**/ | |
1368 | #$i_systimek I_SYS_TIME_KERNEL /**/ | |
1369 | #$d_tm_tm_zone HAS_TM_TM_ZONE /**/ | |
1370 | #$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/ | |
06501368 | 1371 | |
7e69463d AC |
1372 | /* VAL_O_NONBLOCK: |
1373 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
1374 | * non-blocking I/O for the file descriptor. Note that there is no way | |
1375 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
1376 | * alternatively switch between blocking and non-blocking, use the | |
1377 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
a845a0d4 | 1378 | */ |
7e69463d AC |
1379 | /* VAL_EAGAIN: |
1380 | * This symbol holds the errno error code set by read() when no data was | |
1381 | * present on the non-blocking file descriptor. | |
a845a0d4 | 1382 | */ |
7e69463d AC |
1383 | /* RD_NODATA: |
1384 | * This symbol holds the return code from read() when no data is present | |
1385 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
1386 | * not defined, then you can't distinguish between no data and EOF by | |
1387 | * issuing a read(). You'll have to find another way to tell for sure! | |
eaf812ae | 1388 | */ |
7e69463d AC |
1389 | /* EOF_NONBLOCK: |
1390 | * This symbol, if defined, indicates to the C program that a read() on | |
1391 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
1392 | * held in RD_NODATA (-1 usually, in that case!). | |
eaf812ae | 1393 | */ |
7e69463d AC |
1394 | #define VAL_O_NONBLOCK $o_nonblock |
1395 | #define VAL_EAGAIN $eagain | |
1396 | #define RD_NODATA $rd_nodata | |
1397 | #$d_eofnblk EOF_NONBLOCK | |
eaf812ae | 1398 | |
7e69463d AC |
1399 | /* PTRSIZE: |
1400 | * This symbol contains the size of a pointer, so that the C preprocessor | |
1401 | * can make decisions based on it. It will be sizeof(void *) if | |
1402 | * the compiler supports (void *); otherwise it will be | |
1403 | * sizeof(char *). | |
06501368 | 1404 | */ |
7e69463d | 1405 | #define PTRSIZE $ptrsize /**/ |
06501368 | 1406 | |
7e69463d AC |
1407 | /* Drand01: |
1408 | * This macro is to be used to generate uniformly distributed | |
1409 | * random numbers over the range [0., 1.[. You may have to supply | |
1410 | * an 'extern double drand48();' in your program since SunOS 4.1.3 | |
1411 | * doesn't provide you with anything relevant in its headers. | |
1412 | * See HAS_DRAND48_PROTO. | |
eaf812ae | 1413 | */ |
7e69463d AC |
1414 | /* Rand_seed_t: |
1415 | * This symbol defines the type of the argument of the | |
1416 | * random seed function. | |
eaf812ae | 1417 | */ |
7e69463d AC |
1418 | /* seedDrand01: |
1419 | * This symbol defines the macro to be used in seeding the | |
1420 | * random number generator (see Drand01). | |
06501368 | 1421 | */ |
7e69463d AC |
1422 | /* RANDBITS: |
1423 | * This symbol indicates how many bits are produced by the | |
1424 | * function used to generate normalized random numbers. | |
1425 | * Values include 15, 16, 31, and 48. | |
06501368 | 1426 | */ |
7e69463d AC |
1427 | #define Drand01() $drand01 /**/ |
1428 | #define Rand_seed_t $randseedtype /**/ | |
1429 | #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/ | |
1430 | #define RANDBITS $randbits /**/ | |
06501368 | 1431 | |
7e69463d AC |
1432 | /* SSize_t: |
1433 | * This symbol holds the type used by functions that return | |
1434 | * a count of bytes or an error condition. It must be a signed type. | |
1435 | * It is usually ssize_t, but may be long or int, etc. | |
1436 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
1437 | * to get any typedef'ed information. | |
1438 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
06501368 | 1439 | */ |
7e69463d | 1440 | #define SSize_t $ssizetype /* signed count of bytes */ |
06501368 | 1441 | |
7e69463d AC |
1442 | /* EBCDIC: |
1443 | * This symbol, if defined, indicates that this system uses | |
1444 | * EBCDIC encoding. | |
eaf812ae | 1445 | */ |
7e69463d | 1446 | #$ebcdic EBCDIC /**/ |
eaf812ae | 1447 | |
7e69463d AC |
1448 | /* ARCHLIB: |
1449 | * This variable, if defined, holds the name of the directory in | |
1450 | * which the user wants to put architecture-dependent public | |
1451 | * library files for $package. It is most often a local directory | |
1452 | * such as /usr/local/lib. Programs using this variable must be | |
1453 | * prepared to deal with filename expansion. If ARCHLIB is the | |
1454 | * same as PRIVLIB, it is not defined, since presumably the | |
1455 | * program already searches PRIVLIB. | |
eaf812ae | 1456 | */ |
7e69463d AC |
1457 | /* ARCHLIB_EXP: |
1458 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
1459 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
eaf812ae | 1460 | */ |
7e69463d AC |
1461 | #$d_archlib ARCHLIB "$archlib" /**/ |
1462 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ | |
eaf812ae | 1463 | |
7e69463d AC |
1464 | /* BIN: |
1465 | * This symbol holds the path of the bin directory where the package will | |
1466 | * be installed. Program must be prepared to deal with ~name substitution. | |
eaf812ae | 1467 | */ |
7e69463d AC |
1468 | /* BIN_EXP: |
1469 | * This symbol is the filename expanded version of the BIN symbol, for | |
1470 | * programs that do not want to deal with that at run-time. | |
eaf812ae | 1471 | */ |
7e69463d AC |
1472 | /* PERL_RELOCATABLE_INC: |
1473 | * This symbol, if defined, indicates that we'd like to relocate entries | |
1474 | * in @INC at run time based on the location of the perl binary. | |
1475 | */ | |
1476 | #define BIN "$bin" /**/ | |
1477 | #define BIN_EXP "$binexp" /**/ | |
1478 | #define PERL_RELOCATABLE_INC "$userelocatableinc" /**/ | |
eaf812ae | 1479 | |
7e69463d AC |
1480 | /* PERL_INC_VERSION_LIST: |
1481 | * This variable specifies the list of subdirectories in over | |
1482 | * which perl.c:incpush() and lib/lib.pm will automatically | |
1483 | * search when adding directories to @INC, in a format suitable | |
1484 | * for a C initialization string. See the inc_version_list entry | |
1485 | * in Porting/Glossary for more details. | |
06501368 | 1486 | */ |
7e69463d | 1487 | #$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/ |
06501368 | 1488 | |
7e69463d AC |
1489 | /* INSTALL_USR_BIN_PERL: |
1490 | * This symbol, if defined, indicates that Perl is to be installed | |
1491 | * also as /usr/bin/perl. | |
a845a0d4 | 1492 | */ |
7e69463d | 1493 | #$installusrbinperl INSTALL_USR_BIN_PERL /**/ |
a845a0d4 | 1494 | |
7e69463d AC |
1495 | /* PERL_OTHERLIBDIRS: |
1496 | * This variable contains a colon-separated set of paths for the perl | |
1497 | * binary to search for additional library files or modules. | |
1498 | * These directories will be tacked to the end of @INC. | |
1499 | * Perl will automatically search below each path for version- | |
1500 | * and architecture-specific directories. See PERL_INC_VERSION_LIST | |
1501 | * for more details. | |
06501368 | 1502 | */ |
7e69463d | 1503 | #$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/ |
06501368 | 1504 | |
7e69463d AC |
1505 | /* PRIVLIB: |
1506 | * This symbol contains the name of the private library for this package. | |
1507 | * The library is private in the sense that it needn't be in anyone's | |
1508 | * execution path, but it should be accessible by the world. The program | |
1509 | * should be prepared to do ~ expansion. | |
06501368 | 1510 | */ |
7e69463d AC |
1511 | /* PRIVLIB_EXP: |
1512 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
1513 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
06501368 | 1514 | */ |
7e69463d AC |
1515 | #define PRIVLIB "$privlib" /**/ |
1516 | #define PRIVLIB_EXP "$privlibexp" /**/ | |
06501368 | 1517 | |
7e69463d AC |
1518 | /* SITEARCH: |
1519 | * This symbol contains the name of the private library for this package. | |
1520 | * The library is private in the sense that it needn't be in anyone's | |
1521 | * execution path, but it should be accessible by the world. The program | |
1522 | * should be prepared to do ~ expansion. | |
1523 | * The standard distribution will put nothing in this directory. | |
1524 | * After perl has been installed, users may install their own local | |
1525 | * architecture-dependent modules in this directory with | |
1526 | * MakeMaker Makefile.PL | |
1527 | * or equivalent. See INSTALL for details. | |
06501368 | 1528 | */ |
7e69463d AC |
1529 | /* SITEARCH_EXP: |
1530 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
1531 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
06501368 | 1532 | */ |
7e69463d AC |
1533 | #$d_sitearch SITEARCH "$sitearch" /**/ |
1534 | #$d_sitearch SITEARCH_EXP "$sitearchexp" /**/ | |
06501368 | 1535 | |
7e69463d AC |
1536 | /* SITELIB: |
1537 | * This symbol contains the name of the private library for this package. | |
1538 | * The library is private in the sense that it needn't be in anyone's | |
1539 | * execution path, but it should be accessible by the world. The program | |
1540 | * should be prepared to do ~ expansion. | |
1541 | * The standard distribution will put nothing in this directory. | |
1542 | * After perl has been installed, users may install their own local | |
1543 | * architecture-independent modules in this directory with | |
1544 | * MakeMaker Makefile.PL | |
1545 | * or equivalent. See INSTALL for details. | |
eaf812ae | 1546 | */ |
7e69463d AC |
1547 | /* SITELIB_EXP: |
1548 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
1549 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
eaf812ae | 1550 | */ |
7e69463d AC |
1551 | /* SITELIB_STEM: |
1552 | * This define is SITELIB_EXP with any trailing version-specific component | |
1553 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
1554 | * be tacked onto this variable to generate a list of directories to search. | |
eaf812ae | 1555 | */ |
7e69463d AC |
1556 | #define SITELIB "$sitelib" /**/ |
1557 | #define SITELIB_EXP "$sitelibexp" /**/ | |
1558 | #define SITELIB_STEM "$sitelib_stem" /**/ | |
eaf812ae | 1559 | |
7e69463d AC |
1560 | /* PERL_VENDORARCH: |
1561 | * If defined, this symbol contains the name of a private library. | |
1562 | * The library is private in the sense that it needn't be in anyone's | |
1563 | * execution path, but it should be accessible by the world. | |
1564 | * It may have a ~ on the front. | |
1565 | * The standard distribution will put nothing in this directory. | |
1566 | * Vendors who distribute perl may wish to place their own | |
1567 | * architecture-dependent modules and extensions in this directory with | |
1568 | * MakeMaker Makefile.PL INSTALLDIRS=vendor | |
1569 | * or equivalent. See INSTALL for details. | |
eaf812ae | 1570 | */ |
7e69463d AC |
1571 | /* PERL_VENDORARCH_EXP: |
1572 | * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used | |
1573 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
eaf812ae | 1574 | */ |
7e69463d AC |
1575 | #$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ |
1576 | #$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ | |
eaf812ae | 1577 | |
7e69463d AC |
1578 | /* PERL_VENDORLIB_EXP: |
1579 | * This symbol contains the ~name expanded version of VENDORLIB, to be used | |
1580 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
06501368 | 1581 | */ |
7e69463d AC |
1582 | /* PERL_VENDORLIB_STEM: |
1583 | * This define is PERL_VENDORLIB_EXP with any trailing version-specific component | |
1584 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
1585 | * be tacked onto this variable to generate a list of directories to search. | |
06501368 | 1586 | */ |
7e69463d AC |
1587 | #$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/ |
1588 | #$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/ | |
06501368 | 1589 | |
7e69463d AC |
1590 | /* OSNAME: |
1591 | * This symbol contains the name of the operating system, as determined | |
1592 | * by Configure. You shouldn't rely on it too much; the specific | |
1593 | * feature tests from Configure are generally more reliable. | |
a845a0d4 | 1594 | */ |
7e69463d AC |
1595 | /* OSVERS: |
1596 | * This symbol contains the version of the operating system, as determined | |
1597 | * by Configure. You shouldn't rely on it too much; the specific | |
1598 | * feature tests from Configure are generally more reliable. | |
a845a0d4 | 1599 | */ |
7e69463d AC |
1600 | #define OSNAME "$osname" /**/ |
1601 | #define OSVERS "$osvers" /**/ | |
a845a0d4 | 1602 | |
7e69463d AC |
1603 | /* CAT2: |
1604 | * This macro concatenates 2 tokens together. | |
a845a0d4 | 1605 | */ |
7e69463d AC |
1606 | /* STRINGIFY: |
1607 | * This macro surrounds its token with double quotes. | |
a845a0d4 | 1608 | */ |
7e69463d AC |
1609 | #if $cpp_stuff == 1 |
1610 | #define CAT2(a,b) a/**/b | |
1611 | #define STRINGIFY(a) "a" | |
1612 | #endif | |
1613 | #if $cpp_stuff == 42 | |
1614 | #define PeRl_CaTiFy(a, b) a ## b | |
1615 | #define PeRl_StGiFy(a) #a | |
1616 | #define CAT2(a,b) PeRl_CaTiFy(a,b) | |
1617 | #define StGiFy(a) PeRl_StGiFy(a) | |
1618 | #define STRINGIFY(a) PeRl_StGiFy(a) | |
1619 | #endif | |
1620 | #if $cpp_stuff != 1 && $cpp_stuff != 42 | |
1621 | #include "Bletch: How does this C preprocessor concatenate tokens?" | |
1622 | #endif | |
a845a0d4 | 1623 | |
7e69463d AC |
1624 | /* CPPSTDIN: |
1625 | * This symbol contains the first part of the string which will invoke | |
1626 | * the C preprocessor on the standard input and produce to standard | |
1627 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also | |
1628 | * call a wrapper. See CPPRUN. | |
a845a0d4 | 1629 | */ |
7e69463d AC |
1630 | /* CPPMINUS: |
1631 | * This symbol contains the second part of the string which will invoke | |
1632 | * the C preprocessor on the standard input and produce to standard | |
1633 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus | |
1634 | * to specify standard input, otherwise the value is "". | |
06501368 | 1635 | */ |
7e69463d AC |
1636 | /* CPPRUN: |
1637 | * This symbol contains the string which will invoke a C preprocessor on | |
1638 | * the standard input and produce to standard output. It needs to end | |
1639 | * with CPPLAST, after all other preprocessor flags have been specified. | |
1640 | * The main difference with CPPSTDIN is that this program will never be a | |
1641 | * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is | |
1642 | * available directly to the user. Note that it may well be different from | |
1643 | * the preprocessor used to compile the C program. | |
eaf812ae | 1644 | */ |
7e69463d AC |
1645 | /* CPPLAST: |
1646 | * This symbol is intended to be used along with CPPRUN in the same manner | |
1647 | * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "". | |
eaf812ae | 1648 | */ |
7e69463d AC |
1649 | #define CPPSTDIN "$cppstdin" |
1650 | #define CPPMINUS "$cppminus" | |
1651 | #define CPPRUN "$cpprun" | |
1652 | #define CPPLAST "$cpplast" | |
eaf812ae | 1653 | |
7e69463d AC |
1654 | /* HAS_ACCESS: |
1655 | * This manifest constant lets the C program know that the access() | |
1656 | * system call is available to check for accessibility using real UID/GID. | |
1657 | * (always present on UNIX.) | |
eaf812ae | 1658 | */ |
7e69463d | 1659 | #$d_access HAS_ACCESS /**/ |
eaf812ae | 1660 | |
7e69463d AC |
1661 | /* HASATTRIBUTE_FORMAT: |
1662 | * Can we handle GCC attribute for checking printf-style formats | |
eaf812ae | 1663 | */ |
7e69463d AC |
1664 | /* PRINTF_FORMAT_NULL_OK: |
1665 | * Allows __printf__ format to be null when checking printf-style | |
eaf812ae | 1666 | */ |
7e69463d AC |
1667 | /* HASATTRIBUTE_MALLOC: |
1668 | * Can we handle GCC attribute for malloc-style functions. | |
06501368 | 1669 | */ |
7e69463d AC |
1670 | /* HASATTRIBUTE_NONNULL: |
1671 | * Can we handle GCC attribute for nonnull function parms. | |
a845a0d4 | 1672 | */ |
7e69463d AC |
1673 | /* HASATTRIBUTE_NORETURN: |
1674 | * Can we handle GCC attribute for functions that do not return | |
a845a0d4 | 1675 | */ |
7e69463d AC |
1676 | /* HASATTRIBUTE_PURE: |
1677 | * Can we handle GCC attribute for pure functions | |
06501368 | 1678 | */ |
7e69463d AC |
1679 | /* HASATTRIBUTE_UNUSED: |
1680 | * Can we handle GCC attribute for unused variables and arguments | |
06501368 | 1681 | */ |
7e69463d AC |
1682 | /* HASATTRIBUTE_DEPRECATED: |
1683 | * Can we handle GCC attribute for marking deprecated APIs | |
08c92000 | 1684 | */ |
7e69463d AC |
1685 | /* HASATTRIBUTE_WARN_UNUSED_RESULT: |
1686 | * Can we handle GCC attribute for warning on unused results | |
06501368 | 1687 | */ |
7e69463d AC |
1688 | #$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/ |
1689 | #$d_attribute_format HASATTRIBUTE_FORMAT /**/ | |
1690 | #$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/ | |
1691 | #$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/ | |
1692 | #$d_attribute_malloc HASATTRIBUTE_MALLOC /**/ | |
1693 | #$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/ | |
1694 | #$d_attribute_pure HASATTRIBUTE_PURE /**/ | |
1695 | #$d_attribute_unused HASATTRIBUTE_UNUSED /**/ | |
1696 | #$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/ | |
06501368 | 1697 | |
7e69463d AC |
1698 | /* HAS_BACKTRACE: |
1699 | * This symbol, if defined, indicates that the backtrace() routine is | |
1700 | * available to get a stack trace. The <execinfo.h> header must be | |
1701 | * included to use this routine. | |
a845a0d4 | 1702 | */ |
7e69463d | 1703 | #$d_backtrace HAS_BACKTRACE /**/ |
b8677e3b | 1704 | |
7e69463d AC |
1705 | /* HASCONST: |
1706 | * This symbol, if defined, indicates that this C compiler knows about | |
1707 | * the const type. There is no need to actually test for that symbol | |
1708 | * within your programs. The mere use of the "const" keyword will | |
1709 | * trigger the necessary tests. | |
a845a0d4 | 1710 | */ |
7e69463d AC |
1711 | #$d_const HASCONST /**/ |
1712 | #ifndef HASCONST | |
1713 | #define const | |
1714 | #endif | |
a845a0d4 | 1715 | |
7e69463d AC |
1716 | /* HAS_CSH: |
1717 | * This symbol, if defined, indicates that the C-shell exists. | |
08c92000 | 1718 | */ |
7e69463d AC |
1719 | /* CSH: |
1720 | * This symbol, if defined, contains the full pathname of csh. | |
f025e94b | 1721 | */ |
7e69463d AC |
1722 | #$d_csh HAS_CSH /**/ |
1723 | #ifdef HAS_CSH | |
1724 | #define CSH "$full_csh" /**/ | |
8572b25d BH |
1725 | #endif |
1726 | ||
7e69463d AC |
1727 | /* HAS_DLADDR: |
1728 | * This symbol, if defined, indicates that the dladdr() routine is | |
1729 | * available to query dynamic linker information for an address. | |
1730 | * The <dlfcn.h> header must be included to use this routine. | |
08c92000 | 1731 | */ |
7e69463d | 1732 | #$d_dladdr HAS_DLADDR /**/ |
08c92000 | 1733 | |
7e69463d AC |
1734 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
1735 | * This symbol, if defined, indicates that the bug that prevents | |
1736 | * setuid scripts from being secure is not present in this kernel. | |
a845a0d4 | 1737 | */ |
7e69463d AC |
1738 | /* DOSUID: |
1739 | * This symbol, if defined, indicates that the C program should | |
1740 | * check the script that it is executing for setuid/setgid bits, and | |
1741 | * attempt to emulate setuid/setgid on systems that have disabled | |
1742 | * setuid #! scripts because the kernel can't do it securely. | |
1743 | * It is up to the package designer to make sure that this emulation | |
1744 | * is done securely. Among other things, it should do an fstat on | |
1745 | * the script it just opened to make sure it really is a setuid/setgid | |
1746 | * script, it should make sure the arguments passed correspond exactly | |
1747 | * to the argument on the #! line, and it should not trust any | |
1748 | * subprocesses to which it must pass the filename rather than the | |
1749 | * file descriptor of the script to be executed. | |
db8b8c75 | 1750 | */ |
7e69463d AC |
1751 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ |
1752 | #$d_dosuid DOSUID /**/ | |
1753 | ||
1754 | /* HAS_ENDGRENT: | |
1755 | * This symbol, if defined, indicates that the getgrent routine is | |
1756 | * available for finalizing sequential access of the group database. | |
dc91db6c | 1757 | */ |
7e69463d | 1758 | #$d_endgrent HAS_ENDGRENT /**/ |
a845a0d4 | 1759 | |
7e69463d AC |
1760 | /* HAS_ENDHOSTENT: |
1761 | * This symbol, if defined, indicates that the endhostent() routine is | |
1762 | * available to close whatever was being used for host queries. | |
eaf812ae | 1763 | */ |
7e69463d AC |
1764 | #$d_endhent HAS_ENDHOSTENT /**/ |
1765 | ||
1766 | /* HAS_ENDNETENT: | |
1767 | * This symbol, if defined, indicates that the endnetent() routine is | |
1768 | * available to close whatever was being used for network queries. | |
06501368 | 1769 | */ |
7e69463d | 1770 | #$d_endnent HAS_ENDNETENT /**/ |
eaf812ae | 1771 | |
7e69463d AC |
1772 | /* HAS_ENDPROTOENT: |
1773 | * This symbol, if defined, indicates that the endprotoent() routine is | |
1774 | * available to close whatever was being used for protocol queries. | |
a845a0d4 | 1775 | */ |
7e69463d | 1776 | #$d_endpent HAS_ENDPROTOENT /**/ |
06501368 | 1777 | |
7e69463d AC |
1778 | /* HAS_ENDPWENT: |
1779 | * This symbol, if defined, indicates that the getgrent routine is | |
1780 | * available for finalizing sequential access of the passwd database. | |
a845a0d4 | 1781 | */ |
7e69463d | 1782 | #$d_endpwent HAS_ENDPWENT /**/ |
06501368 | 1783 | |
7e69463d AC |
1784 | /* HAS_ENDSERVENT: |
1785 | * This symbol, if defined, indicates that the endservent() routine is | |
1786 | * available to close whatever was being used for service queries. | |
06501368 | 1787 | */ |
7e69463d | 1788 | #$d_endsent HAS_ENDSERVENT /**/ |
06501368 | 1789 | |
7e69463d AC |
1790 | /* FLEXFILENAMES: |
1791 | * This symbol, if defined, indicates that the system supports filenames | |
1792 | * longer than 14 characters. | |
06501368 | 1793 | */ |
7e69463d AC |
1794 | #$d_flexfnam FLEXFILENAMES /**/ |
1795 | ||
1796 | /* HAS_GETGRENT: | |
1797 | * This symbol, if defined, indicates that the getgrent routine is | |
1798 | * available for sequential access of the group database. | |
06501368 | 1799 | */ |
7e69463d | 1800 | #$d_getgrent HAS_GETGRENT /**/ |
06501368 | 1801 | |
7e69463d AC |
1802 | /* HAS_GETHOSTBYADDR: |
1803 | * This symbol, if defined, indicates that the gethostbyaddr() routine is | |
1804 | * available to look up hosts by their IP addresses. | |
06501368 | 1805 | */ |
7e69463d | 1806 | #$d_gethbyaddr HAS_GETHOSTBYADDR /**/ |
06501368 | 1807 | |
7e69463d AC |
1808 | /* HAS_GETHOSTBYNAME: |
1809 | * This symbol, if defined, indicates that the gethostbyname() routine is | |
1810 | * available to look up host names in some data base or other. | |
06501368 | 1811 | */ |
7e69463d | 1812 | #$d_gethbyname HAS_GETHOSTBYNAME /**/ |
06501368 | 1813 | |
7e69463d AC |
1814 | /* HAS_GETHOSTENT: |
1815 | * This symbol, if defined, indicates that the gethostent() routine is | |
1816 | * available to look up host names in some data base or another. | |
08c92000 | 1817 | */ |
7e69463d | 1818 | #$d_gethent HAS_GETHOSTENT /**/ |
a845a0d4 | 1819 | |
7e69463d AC |
1820 | /* HAS_GETHOSTNAME: |
1821 | * This symbol, if defined, indicates that the C program may use the | |
1822 | * gethostname() routine to derive the host name. See also HAS_UNAME | |
1823 | * and PHOSTNAME. | |
a845a0d4 | 1824 | */ |
7e69463d AC |
1825 | /* HAS_UNAME: |
1826 | * This symbol, if defined, indicates that the C program may use the | |
1827 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
1828 | * and PHOSTNAME. | |
a845a0d4 | 1829 | */ |
7e69463d AC |
1830 | /* PHOSTNAME: |
1831 | * This symbol, if defined, indicates the command to feed to the | |
1832 | * popen() routine to derive the host name. See also HAS_GETHOSTNAME | |
1833 | * and HAS_UNAME. Note that the command uses a fully qualified path, | |
1834 | * so that it is safe even if used by a process with super-user | |
1835 | * privileges. | |
eaf812ae | 1836 | */ |
7e69463d AC |
1837 | /* HAS_PHOSTNAME: |
1838 | * This symbol, if defined, indicates that the C program may use the | |
1839 | * contents of PHOSTNAME as a command to feed to the popen() routine | |
1840 | * to derive the host name. | |
eaf812ae | 1841 | */ |
7e69463d AC |
1842 | #$d_gethname HAS_GETHOSTNAME /**/ |
1843 | #$d_uname HAS_UNAME /**/ | |
1844 | #$d_phostname HAS_PHOSTNAME /**/ | |
1845 | #ifdef HAS_PHOSTNAME | |
1846 | #define PHOSTNAME "$aphostname" /* How to get the host name */ | |
1847 | #endif | |
eaf812ae | 1848 | |
7e69463d AC |
1849 | /* HAS_GETNETBYADDR: |
1850 | * This symbol, if defined, indicates that the getnetbyaddr() routine is | |
1851 | * available to look up networks by their IP addresses. | |
08c92000 | 1852 | */ |
7e69463d | 1853 | #$d_getnbyaddr HAS_GETNETBYADDR /**/ |
a845a0d4 | 1854 | |
7e69463d AC |
1855 | /* HAS_GETNETBYNAME: |
1856 | * This symbol, if defined, indicates that the getnetbyname() routine is | |
1857 | * available to look up networks by their names. | |
08c92000 | 1858 | */ |
7e69463d | 1859 | #$d_getnbyname HAS_GETNETBYNAME /**/ |
08c92000 | 1860 | |
7e69463d AC |
1861 | /* HAS_GETNETENT: |
1862 | * This symbol, if defined, indicates that the getnetent() routine is | |
1863 | * available to look up network names in some data base or another. | |
08c92000 | 1864 | */ |
7e69463d | 1865 | #$d_getnent HAS_GETNETENT /**/ |
b8677e3b | 1866 | |
7e69463d AC |
1867 | /* HAS_GETPROTOENT: |
1868 | * This symbol, if defined, indicates that the getprotoent() routine is | |
1869 | * available to look up protocols in some data base or another. | |
b8677e3b | 1870 | */ |
7e69463d | 1871 | #$d_getpent HAS_GETPROTOENT /**/ |
08c92000 | 1872 | |
7e69463d AC |
1873 | /* HAS_GETPGRP: |
1874 | * This symbol, if defined, indicates that the getpgrp routine is | |
1875 | * available to get the current process group. | |
06501368 | 1876 | */ |
7e69463d AC |
1877 | /* USE_BSD_GETPGRP: |
1878 | * This symbol, if defined, indicates that getpgrp needs one | |
1879 | * arguments whereas USG one needs none. | |
06501368 | 1880 | */ |
7e69463d AC |
1881 | #$d_getpgrp HAS_GETPGRP /**/ |
1882 | #$d_bsdgetpgrp USE_BSD_GETPGRP /**/ | |
06501368 | 1883 | |
7e69463d AC |
1884 | /* HAS_GETPROTOBYNAME: |
1885 | * This symbol, if defined, indicates that the getprotobyname() | |
1886 | * routine is available to look up protocols by their name. | |
08c92000 | 1887 | */ |
7e69463d AC |
1888 | /* HAS_GETPROTOBYNUMBER: |
1889 | * This symbol, if defined, indicates that the getprotobynumber() | |
1890 | * routine is available to look up protocols by their number. | |
08c92000 | 1891 | */ |
7e69463d AC |
1892 | #$d_getpbyname HAS_GETPROTOBYNAME /**/ |
1893 | #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/ | |
08c92000 | 1894 | |
7e69463d AC |
1895 | /* HAS_GETPWENT: |
1896 | * This symbol, if defined, indicates that the getpwent routine is | |
1897 | * available for sequential access of the passwd database. | |
1898 | * If this is not available, the older getpw() function may be available. | |
06501368 | 1899 | */ |
7e69463d | 1900 | #$d_getpwent HAS_GETPWENT /**/ |
06501368 | 1901 | |
7e69463d AC |
1902 | /* HAS_GETSERVENT: |
1903 | * This symbol, if defined, indicates that the getservent() routine is | |
1904 | * available to look up network services in some data base or another. | |
eaf812ae | 1905 | */ |
7e69463d | 1906 | #$d_getsent HAS_GETSERVENT /**/ |
eaf812ae | 1907 | |
7e69463d AC |
1908 | /* HAS_GETSERVBYNAME: |
1909 | * This symbol, if defined, indicates that the getservbyname() | |
1910 | * routine is available to look up services by their name. | |
eaf812ae | 1911 | */ |
7e69463d AC |
1912 | /* HAS_GETSERVBYPORT: |
1913 | * This symbol, if defined, indicates that the getservbyport() | |
1914 | * routine is available to look up services by their port. | |
eaf812ae | 1915 | */ |
7e69463d AC |
1916 | #$d_getsbyname HAS_GETSERVBYNAME /**/ |
1917 | #$d_getsbyport HAS_GETSERVBYPORT /**/ | |
eaf812ae | 1918 | |
7e69463d AC |
1919 | /* HAS_HTONL: |
1920 | * This symbol, if defined, indicates that the htonl() routine (and | |
1921 | * friends htons() ntohl() ntohs()) are available to do network | |
1922 | * order byte swapping. | |
06501368 | 1923 | */ |
7e69463d AC |
1924 | /* HAS_HTONS: |
1925 | * This symbol, if defined, indicates that the htons() routine (and | |
1926 | * friends htonl() ntohl() ntohs()) are available to do network | |
1927 | * order byte swapping. | |
eaf812ae | 1928 | */ |
7e69463d AC |
1929 | /* HAS_NTOHL: |
1930 | * This symbol, if defined, indicates that the ntohl() routine (and | |
1931 | * friends htonl() htons() ntohs()) are available to do network | |
1932 | * order byte swapping. | |
eaf812ae | 1933 | */ |
7e69463d AC |
1934 | /* HAS_NTOHS: |
1935 | * This symbol, if defined, indicates that the ntohs() routine (and | |
1936 | * friends htonl() htons() ntohl()) are available to do network | |
1937 | * order byte swapping. | |
06501368 | 1938 | */ |
7e69463d AC |
1939 | #$d_htonl HAS_HTONL /**/ |
1940 | #$d_htonl HAS_HTONS /**/ | |
1941 | #$d_htonl HAS_NTOHL /**/ | |
1942 | #$d_htonl HAS_NTOHS /**/ | |
06501368 | 1943 | |
7e69463d AC |
1944 | /* HAS_LONG_DOUBLE: |
1945 | * This symbol will be defined if the C compiler supports long | |
1946 | * doubles. | |
06501368 | 1947 | */ |
7e69463d AC |
1948 | /* LONG_DOUBLESIZE: |
1949 | * This symbol contains the size of a long double, so that the | |
1950 | * C preprocessor can make decisions based on it. It is only | |
1951 | * defined if the system supports long doubles. Note that this | |
1952 | * is sizeof(long double), which may include unused bytes. | |
06501368 | 1953 | */ |
7e69463d AC |
1954 | /* HAS_LDEXPL: |
1955 | * This symbol, if defined, indicates that the ldexpl routine is | |
1956 | * available to shift a long double floating-point number | |
1957 | * by an integral power of 2. | |
1958 | */ | |
1959 | /* LONG_DOUBLEKIND: | |
1960 | * LONG_DOUBLEKIND will be one of | |
1961 | * LONG_DOUBLE_IS_DOUBLE | |
1962 | * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN | |
1963 | * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN | |
1964 | * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN | |
1965 | * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN | |
1966 | * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_LE | |
1967 | * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_BE | |
1968 | * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_BE | |
1969 | * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_LE | |
884c85de | 1970 | * LONG_DOUBLE_IS_VAX_H_FLOAT |
7e69463d AC |
1971 | * LONG_DOUBLE_IS_UNKNOWN_FORMAT |
1972 | * It is only defined if the system supports long doubles. | |
1973 | */ | |
517f0560 | 1974 | /* LONG_DOUBLE_STYLE_IEEE: |
4cb05021 JH |
1975 | * This symbol, if defined, indicates that the long double |
1976 | * is any of the IEEE 754 style long doubles: | |
1977 | * LONG_DOUBLE_STYLE_IEEE_STD, LONG_DOUBLE_STYLE_IEEE_EXTENDED, | |
1978 | * LONG_DOUBLE_STYLE_IEEE_DOUBLEDOUBLE. | |
1979 | */ | |
517f0560 | 1980 | /* LONG_DOUBLE_STYLE_IEEE_DOUBLEDOUBLE: |
4cb05021 JH |
1981 | * This symbol, if defined, indicates that the long double is |
1982 | * the 128-bit double-double. | |
1983 | */ | |
517f0560 | 1984 | /* LONG_DOUBLE_STYLE_IEEE_EXTENDED: |
4cb05021 JH |
1985 | * This symbol, if defined, indicates that the long double is |
1986 | * the 80-bit IEEE 754. Note that despite the 'extended' this | |
1987 | * is less than the 'std', since this is an extension of | |
1988 | * the double precision. | |
1989 | */ | |
517f0560 | 1990 | /* LONG_DOUBLE_STYLE_IEEE_STD: |
4cb05021 JH |
1991 | * This symbol, if defined, indicates that the long double is |
1992 | * the 128-bit IEEE 754. | |
1993 | */ | |
517f0560 | 1994 | /* LONG_DOUBLE_STYLE_VAX: |
4cb05021 JH |
1995 | * This symbol, if defined, indicates that the long double is |
1996 | * the 128-bit VAX format H. | |
1997 | */ | |
7e69463d AC |
1998 | #$d_ldexpl HAS_LDEXPL /**/ |
1999 | #$d_longdbl HAS_LONG_DOUBLE /**/ | |
2000 | #ifdef HAS_LONG_DOUBLE | |
2001 | #define LONG_DOUBLESIZE $longdblsize /**/ | |
2002 | #define LONG_DOUBLEKIND $longdblkind /**/ | |
2003 | #define LONG_DOUBLE_IS_DOUBLE 0 | |
2004 | #define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1 | |
2005 | #define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2 | |
2006 | #define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3 | |
2007 | #define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4 | |
2008 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_LE 5 | |
2009 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_BE 6 | |
2010 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_BE 7 | |
2011 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_LE 8 | |
86ea01eb | 2012 | #define LONG_DOUBLE_IS_VAX_H_FLOAT 9 |
7e69463d AC |
2013 | #define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1 |
2014 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_LE /* back-compat */ | |
2015 | #define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_BE /* back-compat */ | |
4cb05021 JH |
2016 | #$d_long_double_style_ieee LONG_DOUBLE_STYLE_IEEE |
2017 | #$d_long_double_style_ieee_doubledouble LONG_DOUBLE_STYLE_IEEE_DOUBLEDOUBLE | |
2018 | #$d_long_double_style_ieee_extended LONG_DOUBLE_STYLE_IEEE_EXTENDED | |
2019 | #$d_long_double_style_ieee_std LONG_DOUBLE_STYLE_IEEE_STD | |
2020 | #$d_long_double_style_vax LONG_DOUBLE_STYLE_VAX | |
7e69463d | 2021 | #endif |
06501368 | 2022 | |
7e69463d AC |
2023 | /* HAS_LONG_LONG: |
2024 | * This symbol will be defined if the C compiler supports long long. | |
eaf812ae | 2025 | */ |
7e69463d AC |
2026 | /* LONGLONGSIZE: |
2027 | * This symbol contains the size of a long long, so that the | |
2028 | * C preprocessor can make decisions based on it. It is only | |
2029 | * defined if the system supports long long. | |
eaf812ae | 2030 | */ |
7e69463d AC |
2031 | #$d_longlong HAS_LONG_LONG /**/ |
2032 | #ifdef HAS_LONG_LONG | |
2033 | #define LONGLONGSIZE $longlongsize /**/ | |
2034 | #endif | |
2035 | ||
2036 | /* HAS_MEMCHR: | |
2037 | * This symbol, if defined, indicates that the memchr routine is available | |
2038 | * to locate characters within a C string. | |
2039 | */ | |
2040 | #$d_memchr HAS_MEMCHR /**/ | |
2041 | ||
2042 | /* HAS_MKSTEMP: | |
2043 | * This symbol, if defined, indicates that the mkstemp routine is | |
2044 | * available to exclusively create and open a uniquely named | |
2045 | * temporary file. | |
2046 | */ | |
2047 | #$d_mkstemp HAS_MKSTEMP /**/ | |
2048 | ||
2049 | /* HAS_MMAP: | |
2050 | * This symbol, if defined, indicates that the mmap system call is | |
2051 | * available to map a file into memory. | |
2052 | */ | |
2053 | /* Mmap_t: | |
2054 | * This symbol holds the return type of the mmap() system call | |
2055 | * (and simultaneously the type of the first argument). | |
2056 | * Usually set to 'void *' or 'caddr_t'. | |
2057 | */ | |
2058 | #$d_mmap HAS_MMAP /**/ | |
2059 | #define Mmap_t $mmaptype /**/ | |
2060 | ||
2061 | /* HAS_MSG: | |
2062 | * This symbol, if defined, indicates that the entire msg*(2) library is | |
2063 | * supported (IPC mechanism based on message queues). | |
2064 | */ | |
2065 | #$d_msg HAS_MSG /**/ | |
2066 | ||
2067 | /* HAS_SEM: | |
2068 | * This symbol, if defined, indicates that the entire sem*(2) library is | |
2069 | * supported. | |
2070 | */ | |
2071 | #$d_sem HAS_SEM /**/ | |
2072 | ||
2073 | /* HAS_SETGRENT: | |
2074 | * This symbol, if defined, indicates that the setgrent routine is | |
2075 | * available for initializing sequential access of the group database. | |
2076 | */ | |
2077 | #$d_setgrent HAS_SETGRENT /**/ | |
2078 | ||
2079 | /* HAS_SETHOSTENT: | |
2080 | * This symbol, if defined, indicates that the sethostent() routine is | |
2081 | * available. | |
2082 | */ | |
2083 | #$d_sethent HAS_SETHOSTENT /**/ | |
2084 | ||
2085 | /* HAS_SETNETENT: | |
2086 | * This symbol, if defined, indicates that the setnetent() routine is | |
2087 | * available. | |
2088 | */ | |
2089 | #$d_setnent HAS_SETNETENT /**/ | |
2090 | ||
2091 | /* HAS_SETPROTOENT: | |
2092 | * This symbol, if defined, indicates that the setprotoent() routine is | |
2093 | * available. | |
2094 | */ | |
2095 | #$d_setpent HAS_SETPROTOENT /**/ | |
2096 | ||
2097 | /* HAS_SETPGRP: | |
2098 | * This symbol, if defined, indicates that the setpgrp routine is | |
2099 | * available to set the current process group. | |
2100 | */ | |
2101 | /* USE_BSD_SETPGRP: | |
2102 | * This symbol, if defined, indicates that setpgrp needs two | |
2103 | * arguments whereas USG one needs none. See also HAS_SETPGID | |
2104 | * for a POSIX interface. | |
2105 | */ | |
2106 | #$d_setpgrp HAS_SETPGRP /**/ | |
2107 | #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ | |
eaf812ae | 2108 | |
06501368 MB |
2109 | /* HAS_SETPWENT: |
2110 | * This symbol, if defined, indicates that the setpwent routine is | |
2111 | * available for initializing sequential access of the passwd database. | |
2112 | */ | |
2113 | #$d_setpwent HAS_SETPWENT /**/ | |
2114 | ||
06501368 MB |
2115 | /* HAS_SETSERVENT: |
2116 | * This symbol, if defined, indicates that the setservent() routine is | |
2117 | * available. | |
2118 | */ | |
2119 | #$d_setsent HAS_SETSERVENT /**/ | |
2120 | ||
06501368 MB |
2121 | /* HAS_SETVBUF: |
2122 | * This symbol, if defined, indicates that the setvbuf routine is | |
2123 | * available to change buffering on an open stdio stream. | |
2124 | * to a line-buffered mode. | |
2125 | */ | |
2126 | #$d_setvbuf HAS_SETVBUF /**/ | |
2127 | ||
2128 | /* HAS_SHM: | |
2129 | * This symbol, if defined, indicates that the entire shm*(2) library is | |
2130 | * supported. | |
2131 | */ | |
2132 | #$d_shm HAS_SHM /**/ | |
2133 | ||
2134 | /* Shmat_t: | |
2135 | * This symbol holds the return type of the shmat() system call. | |
2136 | * Usually set to 'void *' or 'char *'. | |
2137 | */ | |
2138 | /* HAS_SHMAT_PROTOTYPE: | |
2139 | * This symbol, if defined, indicates that the sys/shm.h includes | |
2140 | * a prototype for shmat(). Otherwise, it is up to the program to | |
2141 | * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess, | |
2142 | * but not always right so it should be emitted by the program only | |
2143 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
2144 | */ | |
2145 | #define Shmat_t $shmattype /**/ | |
2146 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ | |
2147 | ||
06501368 MB |
2148 | /* HAS_SOCKET: |
2149 | * This symbol, if defined, indicates that the BSD socket interface is | |
2150 | * supported. | |
2151 | */ | |
2152 | /* HAS_SOCKETPAIR: | |
2153 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
2154 | * supported. | |
2155 | */ | |
06501368 MB |
2156 | /* HAS_SOCKADDR_SA_LEN: |
2157 | * This symbol, if defined, indicates that the struct sockaddr | |
2158 | * structure has a member called sa_len, indicating the length of | |
2159 | * the structure. | |
2160 | */ | |
18126d98 MB |
2161 | /* HAS_SOCKADDR_IN6: |
2162 | * This symbol, if defined, indicates the availability of | |
2163 | * struct sockaddr_in6; | |
2164 | */ | |
06501368 MB |
2165 | /* HAS_SIN6_SCOPE_ID: |
2166 | * This symbol, if defined, indicates that the struct sockaddr_in6 | |
2167 | * structure has a member called sin6_scope_id. | |
2168 | */ | |
122b9bf4 MB |
2169 | /* HAS_IP_MREQ: |
2170 | * This symbol, if defined, indicates the availability of | |
2171 | * struct ip_mreq; | |
2172 | */ | |
3e06601f MB |
2173 | /* HAS_IP_MREQ_SOURCE: |
2174 | * This symbol, if defined, indicates the availability of | |
2175 | * struct ip_mreq_source; | |
2176 | */ | |
18126d98 MB |
2177 | /* HAS_IPV6_MREQ: |
2178 | * This symbol, if defined, indicates the availability of | |
2179 | * struct ipv6_mreq; | |
2180 | */ | |
3e06601f MB |
2181 | /* HAS_IPV6_MREQ_SOURCE: |
2182 | * This symbol, if defined, indicates the availability of | |
2183 | * struct ipv6_mreq_source; | |
2184 | */ | |
06501368 MB |
2185 | #$d_socket HAS_SOCKET /**/ |
2186 | #$d_sockpair HAS_SOCKETPAIR /**/ | |
2187 | #$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/ | |
18126d98 | 2188 | #$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/ |
06501368 | 2189 | #$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/ |
122b9bf4 | 2190 | #$d_ip_mreq HAS_IP_MREQ /**/ |
3e06601f | 2191 | #$d_ip_mreq_source HAS_IP_MREQ_SOURCE /**/ |
18126d98 | 2192 | #$d_ipv6_mreq HAS_IPV6_MREQ /**/ |
3e06601f | 2193 | #$d_ipv6_mreq_source HAS_IPV6_MREQ_SOURCE /**/ |
06501368 | 2194 | |
06501368 MB |
2195 | /* USE_STAT_BLOCKS: |
2196 | * This symbol is defined if this system has a stat structure declaring | |
2197 | * st_blksize and st_blocks. | |
2198 | */ | |
2199 | #ifndef USE_STAT_BLOCKS | |
2200 | #$d_statblks USE_STAT_BLOCKS /**/ | |
2201 | #endif | |
2202 | ||
06501368 MB |
2203 | /* USE_STRUCT_COPY: |
2204 | * This symbol, if defined, indicates that this C compiler knows how | |
2205 | * to copy structures. If undefined, you'll need to use a block copy | |
2206 | * routine of some sort instead. | |
2207 | */ | |
2208 | #$d_strctcpy USE_STRUCT_COPY /**/ | |
2209 | ||
2210 | /* HAS_STRERROR: | |
2211 | * This symbol, if defined, indicates that the strerror routine is | |
2212 | * available to translate error numbers to strings. See the writeup | |
2213 | * of Strerror() in this file before you try to define your own. | |
2214 | */ | |
2215 | /* HAS_SYS_ERRLIST: | |
2216 | * This symbol, if defined, indicates that the sys_errlist array is | |
2217 | * available to translate error numbers to strings. The extern int | |
2218 | * sys_nerr gives the size of that table. | |
2219 | */ | |
2220 | /* Strerror: | |
2221 | * This preprocessor symbol is defined as a macro if strerror() is | |
2222 | * not available to translate error numbers to strings but sys_errlist[] | |
2223 | * array is there. | |
2224 | */ | |
2225 | #$d_strerror HAS_STRERROR /**/ | |
2226 | #$d_syserrlst HAS_SYS_ERRLIST /**/ | |
2227 | #define Strerror(e) $d_strerrm | |
2228 | ||
06501368 MB |
2229 | /* HAS_STRTOUL: |
2230 | * This symbol, if defined, indicates that the strtoul routine is | |
2231 | * available to provide conversion of strings to unsigned long. | |
2232 | */ | |
2233 | #$d_strtoul HAS_STRTOUL /**/ | |
2234 | ||
06501368 MB |
2235 | /* HAS_UNION_SEMUN: |
2236 | * This symbol, if defined, indicates that the union semun is | |
2237 | * defined by including <sys/sem.h>. If not, the user code | |
2238 | * probably needs to define it as: | |
2239 | * union semun { | |
2240 | * int val; | |
2241 | * struct semid_ds *buf; | |
2242 | * unsigned short *array; | |
2243 | * } | |
2244 | */ | |
2245 | /* USE_SEMCTL_SEMUN: | |
2246 | * This symbol, if defined, indicates that union semun is | |
2247 | * used for semctl IPC_STAT. | |
2248 | */ | |
2249 | /* USE_SEMCTL_SEMID_DS: | |
2250 | * This symbol, if defined, indicates that struct semid_ds * is | |
2251 | * used for semctl IPC_STAT. | |
2252 | */ | |
2253 | #$d_union_semun HAS_UNION_SEMUN /**/ | |
2254 | #$d_semctl_semun USE_SEMCTL_SEMUN /**/ | |
2255 | #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/ | |
2256 | ||
2257 | /* HAS_VFORK: | |
2258 | * This symbol, if defined, indicates that vfork() exists. | |
2259 | */ | |
2260 | #$d_vfork HAS_VFORK /**/ | |
2261 | ||
2262 | /* HAS_PSEUDOFORK: | |
2263 | * This symbol, if defined, indicates that an emulation of the | |
2264 | * fork routine is available. | |
2265 | */ | |
2266 | #$d_pseudofork HAS_PSEUDOFORK /**/ | |
2267 | ||
2268 | /* Signal_t: | |
2269 | * This symbol's value is either "void" or "int", corresponding to the | |
2270 | * appropriate return type of a signal handler. Thus, you can declare | |
2271 | * a signal handler using "Signal_t (*handler)()", and define the | |
2272 | * handler using "Signal_t handler(sig)". | |
2273 | */ | |
2274 | #define Signal_t $signal_t /* Signal handler's return type */ | |
2275 | ||
2276 | /* HASVOLATILE: | |
2277 | * This symbol, if defined, indicates that this C compiler knows about | |
2278 | * the volatile declaration. | |
2279 | */ | |
2280 | #$d_volatile HASVOLATILE /**/ | |
2281 | #ifndef HASVOLATILE | |
2282 | #define volatile | |
2283 | #endif | |
2284 | ||
06501368 MB |
2285 | /* I_DIRENT: |
2286 | * This symbol, if defined, indicates to the C program that it should | |
2287 | * include <dirent.h>. Using this symbol also triggers the definition | |
2288 | * of the Direntry_t define which ends up being 'struct dirent' or | |
2289 | * 'struct direct' depending on the availability of <dirent.h>. | |
2290 | */ | |
2291 | /* DIRNAMLEN: | |
2292 | * This symbol, if defined, indicates to the C program that the length | |
2293 | * of directory entry names is provided by a d_namlen field. Otherwise | |
2294 | * you need to do strlen() on the d_name field. | |
2295 | */ | |
2296 | /* Direntry_t: | |
2297 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
2298 | * whether dirent is available or not. You should use this pseudo type to | |
2299 | * portably declare your directory entries. | |
2300 | */ | |
2301 | #$i_dirent I_DIRENT /**/ | |
2302 | #$d_dirnamlen DIRNAMLEN /**/ | |
2303 | #define Direntry_t $direntrytype | |
2304 | ||
0e0c5f82 MB |
2305 | /* I_EXECINFO: |
2306 | * This symbol, if defined, indicates to the C program that it should | |
2307 | * include <execinfo.h> for backtrace() support. | |
2308 | */ | |
2309 | #$i_execinfo I_EXECINFO /**/ | |
2310 | ||
06501368 MB |
2311 | /* I_GRP: |
2312 | * This symbol, if defined, indicates to the C program that it should | |
2313 | * include <grp.h>. | |
2314 | */ | |
2315 | /* GRPASSWD: | |
2316 | * This symbol, if defined, indicates to the C program that struct group | |
2317 | * in <grp.h> contains gr_passwd. | |
2318 | */ | |
2319 | #$i_grp I_GRP /**/ | |
2320 | #$d_grpasswd GRPASSWD /**/ | |
2321 | ||
06501368 MB |
2322 | /* I_NDBM: |
2323 | * This symbol, if defined, indicates that <ndbm.h> exists and should | |
2324 | * be included. | |
2325 | */ | |
2326 | /* I_GDBMNDBM: | |
2327 | * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should | |
2328 | * be included. This was the location of the ndbm.h compatibility file | |
2329 | * in RedHat 7.1. | |
2330 | */ | |
2331 | /* I_GDBM_NDBM: | |
2332 | * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should | |
2333 | * be included. This is the location of the ndbm.h compatibility file | |
2334 | * in Debian 4.0. | |
2335 | */ | |
2336 | /* NDBM_H_USES_PROTOTYPES: | |
2337 | * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C | |
2338 | * prototypes instead of K&R style function declarations without any | |
2339 | * parameter information. While ANSI C prototypes are supported in C++, | |
2340 | * K&R style function declarations will yield errors. | |
2341 | */ | |
2342 | /* GDBMNDBM_H_USES_PROTOTYPES: | |
2343 | * This symbol, if defined, indicates that <gdbm/ndbm.h> uses real ANSI C | |
2344 | * prototypes instead of K&R style function declarations without any | |
2345 | * parameter information. While ANSI C prototypes are supported in C++, | |
2346 | * K&R style function declarations will yield errors. | |
2347 | */ | |
2348 | /* GDBM_NDBM_H_USES_PROTOTYPES: | |
2349 | * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C | |
2350 | * prototypes instead of K&R style function declarations without any | |
2351 | * parameter information. While ANSI C prototypes are supported in C++, | |
2352 | * K&R style function declarations will yield errors. | |
2353 | */ | |
2354 | #$i_ndbm I_NDBM /**/ | |
2355 | #$i_gdbmndbm I_GDBMNDBM /**/ | |
2356 | #$i_gdbm_ndbm I_GDBM_NDBM /**/ | |
2357 | #$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/ | |
2358 | #$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/ | |
2359 | #$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/ | |
2360 | ||
2361 | /* I_NETDB: | |
2362 | * This symbol, if defined, indicates that <netdb.h> exists and | |
2363 | * should be included. | |
2364 | */ | |
2365 | #$i_netdb I_NETDB /**/ | |
2366 | ||
2367 | /* I_NET_ERRNO: | |
2368 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
2369 | * should be included. | |
2370 | */ | |
2371 | #$i_neterrno I_NET_ERRNO /**/ | |
2372 | ||
06501368 MB |
2373 | /* I_PWD: |
2374 | * This symbol, if defined, indicates to the C program that it should | |
2375 | * include <pwd.h>. | |
2376 | */ | |
2377 | /* PWQUOTA: | |
2378 | * This symbol, if defined, indicates to the C program that struct passwd | |
2379 | * contains pw_quota. | |
2380 | */ | |
2381 | /* PWAGE: | |
2382 | * This symbol, if defined, indicates to the C program that struct passwd | |
2383 | * contains pw_age. | |
2384 | */ | |
2385 | /* PWCHANGE: | |
2386 | * This symbol, if defined, indicates to the C program that struct passwd | |
2387 | * contains pw_change. | |
2388 | */ | |
2389 | /* PWCLASS: | |
2390 | * This symbol, if defined, indicates to the C program that struct passwd | |
2391 | * contains pw_class. | |
2392 | */ | |
2393 | /* PWEXPIRE: | |
2394 | * This symbol, if defined, indicates to the C program that struct passwd | |
2395 | * contains pw_expire. | |
2396 | */ | |
2397 | /* PWCOMMENT: | |
2398 | * This symbol, if defined, indicates to the C program that struct passwd | |
2399 | * contains pw_comment. | |
2400 | */ | |
2401 | /* PWGECOS: | |
2402 | * This symbol, if defined, indicates to the C program that struct passwd | |
2403 | * contains pw_gecos. | |
2404 | */ | |
2405 | /* PWPASSWD: | |
2406 | * This symbol, if defined, indicates to the C program that struct passwd | |
2407 | * contains pw_passwd. | |
2408 | */ | |
2409 | #$i_pwd I_PWD /**/ | |
2410 | #$d_pwquota PWQUOTA /**/ | |
2411 | #$d_pwage PWAGE /**/ | |
2412 | #$d_pwchange PWCHANGE /**/ | |
2413 | #$d_pwclass PWCLASS /**/ | |
2414 | #$d_pwexpire PWEXPIRE /**/ | |
2415 | #$d_pwcomment PWCOMMENT /**/ | |
2416 | #$d_pwgecos PWGECOS /**/ | |
2417 | #$d_pwpasswd PWPASSWD /**/ | |
2418 | ||
06501368 MB |
2419 | /* I_SYSUIO: |
2420 | * This symbol, if defined, indicates that <sys/uio.h> exists and | |
2421 | * should be included. | |
2422 | */ | |
2423 | #$i_sysuio I_SYSUIO /**/ | |
2424 | ||
0e0c5f82 MB |
2425 | /* I_TERMIO: |
2426 | * This symbol, if defined, indicates that the program should include | |
2427 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
2428 | * the ioctl() calls that depend on the value of this symbol. | |
2429 | */ | |
2430 | /* I_TERMIOS: | |
2431 | * This symbol, if defined, indicates that the program should include | |
2432 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
2433 | * There are also differences in the ioctl() calls that depend on the | |
2434 | * value of this symbol. | |
2435 | */ | |
2436 | /* I_SGTTY: | |
2437 | * This symbol, if defined, indicates that the program should include | |
2438 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
2439 | * the ioctl() calls that depend on the value of this symbol. | |
2440 | */ | |
2441 | #$i_termio I_TERMIO /**/ | |
2442 | #$i_termios I_TERMIOS /**/ | |
2443 | #$i_sgtty I_SGTTY /**/ | |
2444 | ||
06501368 MB |
2445 | /* I_STDARG: |
2446 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
2447 | * be included. | |
2448 | */ | |
2449 | /* I_VARARGS: | |
2450 | * This symbol, if defined, indicates to the C program that it should | |
2451 | * include <varargs.h>. | |
2452 | */ | |
2453 | #$i_stdarg I_STDARG /**/ | |
2454 | #$i_varargs I_VARARGS /**/ | |
2455 | ||
06501368 MB |
2456 | /* Free_t: |
2457 | * This variable contains the return type of free(). It is usually | |
2458 | * void, but occasionally int. | |
2459 | */ | |
2460 | /* Malloc_t: | |
2461 | * This symbol is the type of pointer returned by malloc and realloc. | |
2462 | */ | |
2463 | #define Malloc_t $malloctype /**/ | |
2464 | #define Free_t $freetype /**/ | |
2465 | ||
2466 | /* PERL_MALLOC_WRAP: | |
2467 | * This symbol, if defined, indicates that we'd like malloc wrap checks. | |
2468 | */ | |
2469 | #$usemallocwrap PERL_MALLOC_WRAP /**/ | |
2470 | ||
2471 | /* MYMALLOC: | |
2472 | * This symbol, if defined, indicates that we're using our own malloc. | |
2473 | */ | |
2474 | #$d_mymalloc MYMALLOC /**/ | |
2475 | ||
06501368 MB |
2476 | /* CAN_PROTOTYPE: |
2477 | * If defined, this macro indicates that the C compiler can handle | |
2478 | * function prototypes. | |
2479 | */ | |
2480 | /* _: | |
2481 | * This macro is used to declare function parameters for folks who want | |
2482 | * to make declarations with prototypes using a different style than | |
2483 | * the above macros. Use double parentheses. For example: | |
2484 | * | |
2485 | * int main _((int argc, char *argv[])); | |
2486 | */ | |
2487 | #$prototype CAN_PROTOTYPE /**/ | |
2488 | #ifdef CAN_PROTOTYPE | |
2489 | #define _(args) args | |
2490 | #else | |
2491 | #define _(args) () | |
2492 | #endif | |
2493 | ||
06501368 MB |
2494 | /* SH_PATH: |
2495 | * This symbol contains the full pathname to the shell used on this | |
2496 | * on this system to execute Bourne shell scripts. Usually, this will be | |
2497 | * /bin/sh, though it's possible that some systems will have /bin/ksh, | |
2498 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as | |
2499 | * D:/bin/sh.exe. | |
2500 | */ | |
0b0a0724 | 2501 | #define SH_PATH "$targetsh" /**/ |
06501368 MB |
2502 | |
2503 | /* SIG_NAME: | |
2504 | * This symbol contains a list of signal names in order of | |
2505 | * signal number. This is intended | |
2506 | * to be used as a static array initialization, like this: | |
2507 | * char *sig_name[] = { SIG_NAME }; | |
2508 | * The signals in the list are separated with commas, and each signal | |
2509 | * is surrounded by double quotes. There is no leading SIG in the signal | |
2510 | * name, i.e. SIGQUIT is known as "QUIT". | |
2511 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
2512 | * etc., where nn is the actual signal number (e.g. NUM37). | |
2513 | * The signal number for sig_name[i] is stored in sig_num[i]. | |
2514 | * The last element is 0 to terminate the list with a NULL. This | |
2515 | * corresponds to the 0 at the end of the sig_name_init list. | |
2516 | * Note that this variable is initialized from the sig_name_init, | |
2517 | * not from sig_name (which is unused). | |
2518 | */ | |
2519 | /* SIG_NUM: | |
2520 | * This symbol contains a list of signal numbers, in the same order as the | |
2521 | * SIG_NAME list. It is suitable for static array initialization, as in: | |
2522 | * int sig_num[] = { SIG_NUM }; | |
2523 | * The signals in the list are separated with commas, and the indices | |
2524 | * within that list and the SIG_NAME list match, so it's easy to compute | |
2525 | * the signal name from a number or vice versa at the price of a small | |
2526 | * dynamic linear lookup. | |
2527 | * Duplicates are allowed, but are moved to the end of the list. | |
2528 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
2529 | * if (i < NSIG) then sig_number[i] == i. | |
2530 | * The last element is 0, corresponding to the 0 at the end of | |
2531 | * the sig_name_init list. | |
2532 | * Note that this variable is initialized from the sig_num_init, | |
2533 | * not from sig_num (which is unused). | |
2534 | */ | |
2535 | /* SIG_SIZE: | |
2536 | * This variable contains the number of elements of the SIG_NAME | |
2537 | * and SIG_NUM arrays, excluding the final NULL entry. | |
2538 | */ | |
2539 | #define SIG_NAME $sig_name_init /**/ | |
2540 | #define SIG_NUM $sig_num_init /**/ | |
2541 | #define SIG_SIZE $sig_size /**/ | |
2542 | ||
7e69463d AC |
2543 | /* USE_CROSS_COMPILE: |
2544 | * This symbol, if defined, indicates that Perl is being cross-compiled. | |
a33c94aa | 2545 | */ |
7e69463d AC |
2546 | /* PERL_TARGETARCH: |
2547 | * This symbol, if defined, indicates the target architecture | |
2548 | * Perl has been cross-compiled to. Undefined if not a cross-compile. | |
10bc17b6 | 2549 | */ |
7e69463d AC |
2550 | #ifndef USE_CROSS_COMPILE |
2551 | #$usecrosscompile USE_CROSS_COMPILE /**/ | |
2552 | #define PERL_TARGETARCH "$targetarch" /**/ | |
2553 | #endif | |
b8677e3b | 2554 | |
7e69463d AC |
2555 | /* PERL_USE_DEVEL: |
2556 | * This symbol, if defined, indicates that Perl was configured with | |
2557 | * -Dusedevel, to enable development features. This should not be | |
2558 | * done for production builds. | |
10bc17b6 | 2559 | */ |
7e69463d AC |
2560 | #$usedevel PERL_USE_DEVEL /**/ |
2561 | ||
2562 | /* HAS_ATOLF: | |
2563 | * This symbol, if defined, indicates that the atolf routine is | |
2564 | * available to convert strings into long doubles. | |
10bc17b6 | 2565 | */ |
7e69463d | 2566 | #$d_atolf HAS_ATOLF /**/ |
10bc17b6 | 2567 | |
7e69463d AC |
2568 | /* HAS_ATOLL: |
2569 | * This symbol, if defined, indicates that the atoll routine is | |
2570 | * available to convert strings into long longs. | |
06501368 | 2571 | */ |
7e69463d | 2572 | #$d_atoll HAS_ATOLL /**/ |
06501368 | 2573 | |
7e69463d AC |
2574 | /* HAS__FWALK: |
2575 | * This symbol, if defined, indicates that the _fwalk system call is | |
2576 | * available to apply a function to all the file handles. | |
06501368 | 2577 | */ |
7e69463d | 2578 | #$d__fwalk HAS__FWALK /**/ |
06501368 | 2579 | |
7e69463d AC |
2580 | /* HAS_ACOSH: |
2581 | * This symbol, if defined, indicates that the acosh routine is | |
2582 | * available to do the inverse hyperbolic cosine function. | |
06501368 | 2583 | */ |
7e69463d | 2584 | #$d_acosh HAS_ACOSH /**/ |
40613a90 | 2585 | |
f40bbcbf MB |
2586 | /* HAS_AINTL: |
2587 | * This symbol, if defined, indicates that the aintl routine is | |
2588 | * available. If copysignl is also present we can emulate modfl. | |
2589 | */ | |
2590 | #$d_aintl HAS_AINTL /**/ | |
2591 | ||
427d28ce JH |
2592 | /* HAS_ASINH: |
2593 | * This symbol, if defined, indicates that the asinh routine is | |
2594 | * available to do the inverse hyperbolic sine function. | |
2595 | */ | |
2596 | #$d_asinh HAS_ASINH /**/ | |
2597 | ||
2598 | /* HAS_ATANH: | |
2599 | * This symbol, if defined, indicates that the atanh routine is | |
2600 | * available to do the inverse hyperbolic tangent function. | |
2601 | */ | |
2602 | #$d_atanh HAS_ATANH /**/ | |
2603 | ||
ed140128 AD |
2604 | /* HAS_BUILTIN_CHOOSE_EXPR: |
2605 | * Can we handle GCC builtin for compile-time ternary-like expressions | |
2606 | */ | |
2607 | /* HAS_BUILTIN_EXPECT: | |
2608 | * Can we handle GCC builtin for telling that certain values are more | |
2609 | * likely | |
2610 | */ | |
2611 | #$d_builtin_expect HAS_BUILTIN_EXPECT /**/ | |
2612 | #$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/ | |
2613 | ||
2614 | /* HAS_C99_VARIADIC_MACROS: | |
2615 | * If defined, the compiler supports C99 variadic macros. | |
2616 | */ | |
2617 | #$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/ | |
2618 | ||
2619 | /* HAS_CLASS: | |
2620 | * This symbol, if defined, indicates that the class routine is | |
2621 | * available to classify doubles. Available for example in AIX. | |
2622 | * The returned values are defined in <float.h> and are: | |
2623 | * | |
2624 | * FP_PLUS_NORM Positive normalized, nonzero | |
2625 | * FP_MINUS_NORM Negative normalized, nonzero | |
2626 | * FP_PLUS_DENORM Positive denormalized, nonzero | |
2627 | * FP_MINUS_DENORM Negative denormalized, nonzero | |
2628 | * FP_PLUS_ZERO +0.0 | |
2629 | * FP_MINUS_ZERO -0.0 | |
2630 | * FP_PLUS_INF +INF | |
2631 | * FP_MINUS_INF -INF | |
2632 | * FP_NANS Signaling Not a Number (NaNS) | |
2633 | * FP_NANQ Quiet Not a Number (NaNQ) | |
2634 | */ | |
2635 | #$d_class HAS_CLASS /**/ | |
2636 | ||
2637 | /* HAS_CLEARENV: | |
2638 | * This symbol, if defined, indicates that the clearenv () routine is | |
2639 | * available for use. | |
2640 | */ | |
2641 | #$d_clearenv HAS_CLEARENV /**/ | |
2642 | ||
2643 | /* HAS_STRUCT_CMSGHDR: | |
2644 | * This symbol, if defined, indicates that the struct cmsghdr | |
2645 | * is supported. | |
2646 | */ | |
2647 | #$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/ | |
2648 | ||
f40bbcbf MB |
2649 | /* HAS_COPYSIGN: |
2650 | * This symbol, if defined, indicates that the copysign routine is | |
2651 | * available to do the copysign function. | |
2652 | */ | |
2653 | #$d_copysign HAS_COPYSIGN /**/ | |
2654 | ||
ed140128 AD |
2655 | /* HAS_COPYSIGNL: |
2656 | * This symbol, if defined, indicates that the copysignl routine is | |
2657 | * available. If aintl is also present we can emulate modfl. | |
2658 | */ | |
2659 | #$d_copysignl HAS_COPYSIGNL /**/ | |
2660 | ||
2661 | /* USE_CPLUSPLUS: | |
2662 | * This symbol, if defined, indicates that a C++ compiler was | |
2663 | * used to compiled Perl and will be used to compile extensions. | |
2664 | */ | |
2665 | #$d_cplusplus USE_CPLUSPLUS /**/ | |
2666 | ||
2667 | /* HAS_DBMINIT_PROTO: | |
2668 | * This symbol, if defined, indicates that the system provides | |
2669 | * a prototype for the dbminit() function. Otherwise, it is up | |
2670 | * to the program to supply one. A good guess is | |
2671 | * extern int dbminit(char *); | |
2672 | */ | |
2673 | #$d_dbminitproto HAS_DBMINIT_PROTO /**/ | |
2674 | ||
2675 | /* HAS_DIR_DD_FD: | |
2676 | * This symbol, if defined, indicates that the the DIR* dirstream | |
2677 | * structure contains a member variable named dd_fd. | |
2678 | */ | |
2679 | #$d_dir_dd_fd HAS_DIR_DD_FD /**/ | |
2680 | ||
2681 | /* HAS_DIRFD: | |
2682 | * This manifest constant lets the C program know that dirfd | |
2683 | * is available. | |
2684 | */ | |
2685 | #$d_dirfd HAS_DIRFD /**/ | |
2686 | ||
2687 | /* DLSYM_NEEDS_UNDERSCORE: | |
2688 | * This symbol, if defined, indicates that we need to prepend an | |
2689 | * underscore to the symbol name before calling dlsym(). This only | |
2690 | * makes sense if you *have* dlsym, which we will presume is the | |
2691 | * case if you're using dl_dlopen.xs. | |
2692 | */ | |
2693 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ | |
2694 | ||
f40bbcbf MB |
2695 | /* HAS_ERF: |
2696 | * This symbol, if defined, indicates that the erf routine is | |
2697 | * available to do the error function. | |
2698 | */ | |
2699 | #$d_erf HAS_ERF /**/ | |
2700 | ||
2701 | /* HAS_ERFC: | |
2702 | * This symbol, if defined, indicates that the erfc routine is | |
2703 | * available to do the complementary error function. | |
2704 | */ | |
2705 | #$d_erfc HAS_ERFC /**/ | |
2706 | ||
2707 | /* HAS_EXP2: | |
2708 | * This symbol, if defined, indicates that the exp2 routine is | |
2709 | * available to do the 2**x function. | |
2710 | */ | |
2711 | #$d_exp2 HAS_EXP2 /**/ | |
2712 | ||
2713 | /* HAS_EXPM1: | |
2714 | * This symbol, if defined, indicates that the expm1 routine is | |
2715 | * available to do the exp(x) - 1 when x is near 1 function. | |
2716 | */ | |
2717 | #$d_expm1 HAS_EXPM1 /**/ | |
2718 | ||
ed140128 AD |
2719 | /* HAS_FAST_STDIO: |
2720 | * This symbol, if defined, indicates that the "fast stdio" | |
2721 | * is available to manipulate the stdio buffers directly. | |
2722 | */ | |
2723 | #$d_faststdio HAS_FAST_STDIO /**/ | |
2724 | ||
2725 | /* HAS_FCHDIR: | |
2726 | * This symbol, if defined, indicates that the fchdir routine is | |
2727 | * available to change directory using a file descriptor. | |
2728 | */ | |
2729 | #$d_fchdir HAS_FCHDIR /**/ | |
2730 | ||
2731 | /* FCNTL_CAN_LOCK: | |
2732 | * This symbol, if defined, indicates that fcntl() can be used | |
2733 | * for file locking. Normally on Unix systems this is defined. | |
2734 | * It may be undefined on VMS. | |
2735 | */ | |
2736 | #$d_fcntl_can_lock FCNTL_CAN_LOCK /**/ | |
2737 | ||
8b8c6ab7 AD |
2738 | /* HAS_FDCLOSE: |
2739 | * This symbol, if defined, indicates that the fdclose routine is | |
2740 | * available to free a FILE structure without closing the underlying | |
2741 | * file descriptor. This function appeared in FreeBSD 10.2. | |
2742 | */ | |
2743 | #$d_fdclose HAS_FDCLOSE /**/ | |
2744 | ||
f40bbcbf MB |
2745 | /* HAS_FDIM: |
2746 | * This symbol, if defined, indicates that the fdim routine is | |
2747 | * available to do the positive difference function. | |
2748 | */ | |
2749 | #$d_fdim HAS_FDIM /**/ | |
2750 | ||
d0166596 MB |
2751 | /* HAS_FEGETROUND: |
2752 | * This symbol, if defined, indicates that the fegetround routine is | |
2753 | * available to return the macro corresponding to the current rounding | |
2754 | * mode. | |
2755 | */ | |
2756 | #$d_fegetround HAS_FEGETROUND /**/ | |
2757 | ||
ed140128 AD |
2758 | /* HAS_FINITE: |
2759 | * This symbol, if defined, indicates that the finite routine is | |
2760 | * available to check whether a double is finite (non-infinity non-NaN). | |
2761 | */ | |
2762 | #$d_finite HAS_FINITE /**/ | |
2763 | ||
2764 | /* HAS_FINITEL: | |
2765 | * This symbol, if defined, indicates that the finitel routine is | |
2766 | * available to check whether a long double is finite | |
2767 | * (non-infinity non-NaN). | |
2768 | */ | |
2769 | #$d_finitel HAS_FINITEL /**/ | |
2770 | ||
2771 | /* HAS_FLOCK_PROTO: | |
2772 | * This symbol, if defined, indicates that the system provides | |
2773 | * a prototype for the flock() function. Otherwise, it is up | |
2774 | * to the program to supply one. A good guess is | |
2775 | * extern int flock(int, int); | |
2776 | */ | |
2777 | #$d_flockproto HAS_FLOCK_PROTO /**/ | |
2778 | ||
f40bbcbf MB |
2779 | /* HAS_FMA: |
2780 | * This symbol, if defined, indicates that the fma routine is | |
2781 | * available to do the multiply-add function. | |
2782 | */ | |
2783 | #$d_fma HAS_FMA /**/ | |
2784 | ||
2785 | /* HAS_FMAX: | |
2786 | * This symbol, if defined, indicates that the fmax routine is | |
2787 | * available to do the maximum function. | |
2788 | */ | |
2789 | #$d_fmax HAS_FMAX /**/ | |
2790 | ||
2791 | /* HAS_FMIN: | |
2792 | * This symbol, if defined, indicates that the fmin routine is | |
2793 | * available to do the minimum function. | |
2794 | */ | |
2795 | #$d_fmin HAS_FMIN /**/ | |
2796 | ||
ed140128 AD |
2797 | /* HAS_FP_CLASS: |
2798 | * This symbol, if defined, indicates that the fp_class routine is | |
2799 | * available to classify doubles. Available for example in Digital UNIX. | |
2800 | * The returned values are defined in <math.h> and are: | |
2801 | * | |
2802 | * FP_SNAN Signaling NaN (Not-a-Number) | |
2803 | * FP_QNAN Quiet NaN (Not-a-Number) | |
2804 | * FP_POS_INF +infinity | |
2805 | * FP_NEG_INF -infinity | |
2806 | * FP_POS_NORM Positive normalized | |
2807 | * FP_NEG_NORM Negative normalized | |
2808 | * FP_POS_DENORM Positive denormalized | |
2809 | * FP_NEG_DENORM Negative denormalized | |
2810 | * FP_POS_ZERO +0.0 (positive zero) | |
2811 | * FP_NEG_ZERO -0.0 (negative zero) | |
2812 | */ | |
2813 | #$d_fp_class HAS_FP_CLASS /**/ | |
2814 | ||
b19ee02c JH |
2815 | /* HAS_FP_CLASSL: |
2816 | * This symbol, if defined, indicates that the fp_classl routine is | |
d0166596 MB |
2817 | * available to classify long doubles. Available for example in |
2818 | * Digital UNIX. See for possible values HAS_FP_CLASS. | |
b19ee02c JH |
2819 | */ |
2820 | #$d_fp_classl HAS_FP_CLASSL /**/ | |
2821 | ||
ed140128 AD |
2822 | /* HAS_FPCLASS: |
2823 | * This symbol, if defined, indicates that the fpclass routine is | |
2824 | * available to classify doubles. Available for example in Solaris/SVR4. | |
2825 | * The returned values are defined in <ieeefp.h> and are: | |
2826 | * | |
2827 | * FP_SNAN signaling NaN | |
2828 | * FP_QNAN quiet NaN | |
2829 | * FP_NINF negative infinity | |
2830 | * FP_PINF positive infinity | |
2831 | * FP_NDENORM negative denormalized non-zero | |
2832 | * FP_PDENORM positive denormalized non-zero | |
2833 | * FP_NZERO negative zero | |
2834 | * FP_PZERO positive zero | |
2835 | * FP_NNORM negative normalized non-zero | |
2836 | * FP_PNORM positive normalized non-zero | |
2837 | */ | |
2838 | #$d_fpclass HAS_FPCLASS /**/ | |
2839 | ||
2840 | /* HAS_FPCLASSIFY: | |
2841 | * This symbol, if defined, indicates that the fpclassify routine is | |
2842 | * available to classify doubles. Available for example in HP-UX. | |
2843 | * The returned values are defined in <math.h> and are | |
2844 | * | |
2845 | * FP_NORMAL Normalized | |
2846 | * FP_ZERO Zero | |
2847 | * FP_INFINITE Infinity | |
2848 | * FP_SUBNORMAL Denormalized | |
2849 | * FP_NAN NaN | |
2850 | * | |
2851 | */ | |
d0166596 MB |
2852 | /* HAS_FP_CLASSIFY: |
2853 | * This symbol, if defined, indicates that the fp_classify routine is | |
2854 | * available to classify doubles. The values are defined in <math.h> | |
2855 | * | |
2856 | * FP_NORMAL Normalized | |
2857 | * FP_ZERO Zero | |
2858 | * FP_INFINITE Infinity | |
2859 | * FP_SUBNORMAL Denormalized | |
2860 | * FP_NAN NaN | |
2861 | * | |
2862 | */ | |
2863 | #$d_fpclassify HAS_FPCLASSIFY /**/ | |
2864 | #$d_fp_classify HAS_FP_CLASSIFY /**/ | |
ed140128 AD |
2865 | |
2866 | /* HAS_FPCLASSL: | |
2867 | * This symbol, if defined, indicates that the fpclassl routine is | |
2868 | * available to classify long doubles. Available for example in IRIX. | |
2869 | * The returned values are defined in <ieeefp.h> and are: | |
2870 | * | |
2871 | * FP_SNAN signaling NaN | |
2872 | * FP_QNAN quiet NaN | |
2873 | * FP_NINF negative infinity | |
2874 | * FP_PINF positive infinity | |
2875 | * FP_NDENORM negative denormalized non-zero | |
2876 | * FP_PDENORM positive denormalized non-zero | |
2877 | * FP_NZERO negative zero | |
2878 | * FP_PZERO positive zero | |
2879 | * FP_NNORM negative normalized non-zero | |
2880 | * FP_PNORM positive normalized non-zero | |
2881 | */ | |
2882 | #$d_fpclassl HAS_FPCLASSL /**/ | |
2883 | ||
4c1a9b0c JH |
2884 | /* HAS_FPGETROUND: |
2885 | * This symbol, if defined, indicates that the fpgetround routine is | |
2886 | * available to get the floating point rounding mode. | |
2887 | */ | |
2888 | #$d_fpgetround HAS_FPGETROUND /**/ | |
2889 | ||
ed140128 AD |
2890 | /* HAS_FPOS64_T: |
2891 | * This symbol will be defined if the C compiler supports fpos64_t. | |
2892 | */ | |
2893 | #$d_fpos64_t HAS_FPOS64_T /**/ | |
2894 | ||
2895 | /* HAS_FREXPL: | |
2896 | * This symbol, if defined, indicates that the frexpl routine is | |
2897 | * available to break a long double floating-point number into | |
2898 | * a normalized fraction and an integral power of 2. | |
2899 | */ | |
2900 | #$d_frexpl HAS_FREXPL /**/ | |
2901 | ||
ea442100 JH |
2902 | /* HAS_STRUCT_FS_DATA: |
2903 | * This symbol, if defined, indicates that the struct fs_data | |
2904 | * to do statfs() is supported. | |
2905 | */ | |
2906 | #$d_fs_data_s HAS_STRUCT_FS_DATA /**/ | |
2907 | ||
ed140128 AD |
2908 | /* HAS_FSEEKO: |
2909 | * This symbol, if defined, indicates that the fseeko routine is | |
2910 | * available to fseek beyond 32 bits (useful for ILP32 hosts). | |
2911 | */ | |
2912 | #$d_fseeko HAS_FSEEKO /**/ | |
2913 | ||
ea442100 JH |
2914 | /* HAS_FSTATFS: |
2915 | * This symbol, if defined, indicates that the fstatfs routine is | |
2916 | * available to stat filesystems by file descriptors. | |
2917 | */ | |
2918 | #$d_fstatfs HAS_FSTATFS /**/ | |
2919 | ||
ed140128 AD |
2920 | /* HAS_FSYNC: |
2921 | * This symbol, if defined, indicates that the fsync routine is | |
2922 | * available to write a file's modified data and attributes to | |
2923 | * permanent storage. | |
2924 | */ | |
2925 | #$d_fsync HAS_FSYNC /**/ | |
2926 | ||
2927 | /* HAS_FTELLO: | |
2928 | * This symbol, if defined, indicates that the ftello routine is | |
2929 | * available to ftell beyond 32 bits (useful for ILP32 hosts). | |
2930 | */ | |
2931 | #$d_ftello HAS_FTELLO /**/ | |
2932 | ||
2933 | /* HAS_FUTIMES: | |
2934 | * This symbol, if defined, indicates that the futimes routine is | |
2935 | * available to change file descriptor time stamps with struct timevals. | |
2936 | */ | |
2937 | #$d_futimes HAS_FUTIMES /**/ | |
2938 | ||
0cc74f39 MB |
2939 | /* HAS_GAI_STRERROR: |
2940 | * This symbol, if defined, indicates that the gai_strerror routine | |
2941 | * is available to translate error codes returned by getaddrinfo() | |
2942 | * into human readable strings. | |
2943 | */ | |
2944 | #$d_gai_strerror HAS_GAI_STRERROR /**/ | |
2945 | ||
5086dff9 MB |
2946 | /* HAS_GETADDRINFO: |
2947 | * This symbol, if defined, indicates that the getaddrinfo() function | |
2948 | * is available for use. | |
2949 | */ | |
2950 | #$d_getaddrinfo HAS_GETADDRINFO /**/ | |
2951 | ||
ed140128 AD |
2952 | /* HAS_GETCWD: |
2953 | * This symbol, if defined, indicates that the getcwd routine is | |
2954 | * available to get the current working directory. | |
2955 | */ | |
2956 | #$d_getcwd HAS_GETCWD /**/ | |
2957 | ||
2958 | /* HAS_GETESPWNAM: | |
2959 | * This symbol, if defined, indicates that the getespwnam system call is | |
cd95ead5 | 2960 | * available to retrieve enhanced (shadow) password entries by name. |
ed140128 AD |
2961 | */ |
2962 | #$d_getespwnam HAS_GETESPWNAM /**/ | |
2963 | ||
ea442100 JH |
2964 | /* HAS_GETFSSTAT: |
2965 | * This symbol, if defined, indicates that the getfsstat routine is | |
2966 | * available to stat filesystems in bulk. | |
2967 | */ | |
2968 | #$d_getfsstat HAS_GETFSSTAT /**/ | |
2969 | ||
ed140128 AD |
2970 | /* HAS_GETITIMER: |
2971 | * This symbol, if defined, indicates that the getitimer routine is | |
2972 | * available to return interval timers. | |
2973 | */ | |
2974 | #$d_getitimer HAS_GETITIMER /**/ | |
2975 | ||
ea442100 JH |
2976 | /* HAS_GETMNT: |
2977 | * This symbol, if defined, indicates that the getmnt routine is | |
2978 | * available to get filesystem mount info by filename. | |
2979 | */ | |
2980 | #$d_getmnt HAS_GETMNT /**/ | |
2981 | ||
2982 | /* HAS_GETMNTENT: | |
2983 | * This symbol, if defined, indicates that the getmntent routine is | |
2984 | * available to iterate through mounted file systems to get their info. | |
2985 | */ | |
2986 | #$d_getmntent HAS_GETMNTENT /**/ | |
2987 | ||
5086dff9 MB |
2988 | /* HAS_GETNAMEINFO: |
2989 | * This symbol, if defined, indicates that the getnameinfo() function | |
2990 | * is available for use. | |
2991 | */ | |
2992 | #$d_getnameinfo HAS_GETNAMEINFO /**/ | |
2993 | ||
ed140128 AD |
2994 | /* HAS_GETPRPWNAM: |
2995 | * This symbol, if defined, indicates that the getprpwnam system call is | |
2996 | * available to retrieve protected (shadow) password entries by name. | |
2997 | */ | |
2998 | #$d_getprpwnam HAS_GETPRPWNAM /**/ | |
2999 | ||
3000 | /* HAS_GETSPNAM: | |
3001 | * This symbol, if defined, indicates that the getspnam system call is | |
3002 | * available to retrieve SysV shadow password entries by name. | |
3003 | */ | |
3004 | #$d_getspnam HAS_GETSPNAM /**/ | |
3005 | ||
ea442100 JH |
3006 | /* HAS_HASMNTOPT: |
3007 | * This symbol, if defined, indicates that the hasmntopt routine is | |
3008 | * available to query the mount options of file systems. | |
3009 | */ | |
3010 | #$d_hasmntopt HAS_HASMNTOPT /**/ | |
3011 | ||
427d28ce JH |
3012 | /* HAS_HYPOT: |
3013 | * This symbol, if defined, indicates that the hypot routine is | |
3014 | * available to do the hypotenuse function. | |
3015 | */ | |
3016 | #$d_hypot HAS_HYPOT /**/ | |
3017 | ||
3018 | /* HAS_ILOGB: | |
3019 | * This symbol, if defined, indicates that the ilogb routine is | |
f40bbcbf | 3020 | * available to get integer exponent of a floating-point value. |
427d28ce JH |
3021 | */ |
3022 | #$d_ilogb HAS_ILOGB /**/ | |
3023 | ||
ed140128 AD |
3024 | /* HAS_ILOGBL: |
3025 | * This symbol, if defined, indicates that the ilogbl routine is | |
3026 | * available. If scalbnl is also present we can emulate frexpl. | |
3027 | */ | |
3028 | #$d_ilogbl HAS_ILOGBL /**/ | |
3029 | ||
5086dff9 MB |
3030 | /* HAS_INETNTOP: |
3031 | * This symbol, if defined, indicates that the inet_ntop() function | |
3032 | * is available to parse IPv4 and IPv6 strings. | |
3033 | */ | |
3034 | #$d_inetntop HAS_INETNTOP /**/ | |
3035 | ||
3036 | /* HAS_INETPTON: | |
3037 | * This symbol, if defined, indicates that the inet_pton() function | |
3038 | * is available to parse IPv4 and IPv6 strings. | |
3039 | */ | |
3040 | #$d_inetpton HAS_INETPTON /**/ | |
3041 | ||
ed140128 AD |
3042 | /* HAS_INT64_T: |
3043 | * This symbol will defined if the C compiler supports int64_t. | |
3044 | * Usually the <inttypes.h> needs to be included, but sometimes | |
3045 | * <sys/types.h> is enough. | |
3046 | */ | |
3047 | #$d_int64_t HAS_INT64_T /**/ | |
3048 | ||
269a7913 | 3049 | /* HAS_ISBLANK: |
1332606d | 3050 | * This manifest constant lets the C program know that isblank |
269a7913 MB |
3051 | * is available. |
3052 | */ | |
3053 | #$d_isblank HAS_ISBLANK /**/ | |
3054 | ||
ed140128 AD |
3055 | /* HAS_ISFINITE: |
3056 | * This symbol, if defined, indicates that the isfinite routine is | |
3057 | * available to check whether a double is finite (non-infinity non-NaN). | |
3058 | */ | |
3059 | #$d_isfinite HAS_ISFINITE /**/ | |
3060 | ||
fa484e60 | 3061 | /* HAS_ISFINITEL: |
d0166596 MB |
3062 | * This symbol, if defined, indicates that the isfinitel routine is |
3063 | * available to check whether a long double is finite. | |
fa484e60 JH |
3064 | * (non-infinity non-NaN). |
3065 | */ | |
3066 | #$d_isfinitel HAS_ISFINITEL /**/ | |
3067 | ||
ed140128 AD |
3068 | /* HAS_ISINF: |
3069 | * This symbol, if defined, indicates that the isinf routine is | |
3070 | * available to check whether a double is an infinity. | |
3071 | */ | |
3072 | #$d_isinf HAS_ISINF /**/ | |
3073 | ||
d0166596 MB |
3074 | /* HAS_ISINFL: |
3075 | * This symbol, if defined, indicates that the isinfl routine is | |
fa484e60 JH |
3076 | * available to check whether a long double is an infinity. |
3077 | */ | |
3078 | #$d_isinfl HAS_ISINFL /**/ | |
3079 | ||
f40bbcbf MB |
3080 | /* HAS_ISLESS: |
3081 | * This symbol, if defined, indicates that the isless routine is | |
3082 | * available to do the isless function. | |
3083 | */ | |
3084 | #$d_isless HAS_ISLESS /**/ | |
3085 | ||
ed140128 AD |
3086 | /* HAS_ISNAN: |
3087 | * This symbol, if defined, indicates that the isnan routine is | |
3088 | * available to check whether a double is a NaN. | |
3089 | */ | |
3090 | #$d_isnan HAS_ISNAN /**/ | |
3091 | ||
3092 | /* HAS_ISNANL: | |
3093 | * This symbol, if defined, indicates that the isnanl routine is | |
3094 | * available to check whether a long double is a NaN. | |
3095 | */ | |
3096 | #$d_isnanl HAS_ISNANL /**/ | |
3097 | ||
427d28ce JH |
3098 | /* HAS_ISNORMAL: |
3099 | * This symbol, if defined, indicates that the isnormal routine is | |
3100 | * available to check whether a double is normal (non-zero normalized). | |
3101 | */ | |
3102 | #$d_isnormal HAS_ISNORMAL /**/ | |
3103 | ||
d0166596 MB |
3104 | /* HAS_J0: |
3105 | * This symbol, if defined, indicates to the C program that the | |
3106 | * j0() function is available for Bessel functions of the first | |
3107 | * kind of the order zero, for doubles. | |
3108 | */ | |
3109 | /* HAS_J0L: | |
3110 | * This symbol, if defined, indicates to the C program that the | |
3111 | * j0l() function is available for Bessel functions of the first | |
3112 | * kind of the order zero, for long doubles. | |
3113 | */ | |
3114 | #$d_j0 HAS_J0 /**/ | |
3115 | #$d_j0l HAS_J0L /**/ | |
3116 | ||
f40bbcbf MB |
3117 | /* HAS_LC_MONETARY_2008: |
3118 | * This symbol, if defined, indicates that the localeconv routine is | |
3119 | * available and has the additional members added in POSIX 1003.1-2008. | |
3120 | */ | |
3121 | #$d_lc_monetary_2008 HAS_LC_MONETARY_2008 /**/ | |
3122 | ||
ed140128 AD |
3123 | /* HAS_LDBL_DIG: |
3124 | * This symbol, if defined, indicates that this system's <float.h> | |
3125 | * or <limits.h> defines the symbol LDBL_DIG, which is the number | |
3126 | * of significant digits in a long double precision number. Unlike | |
3127 | * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined. | |
3128 | */ | |
06501368 | 3129 | #$d_ldbl_dig HAS_LDBL_DIG /* */ |
ed140128 | 3130 | |
427d28ce JH |
3131 | /* HAS_LGAMMA: |
3132 | * This symbol, if defined, indicates that the lgamma routine is | |
3133 | * available to do the log gamma function. See also HAS_TGAMMA and | |
3134 | * HAS_LGAMMA_R. | |
3135 | */ | |
3136 | #$d_lgamma HAS_LGAMMA /**/ | |
3137 | ||
3138 | /* HAS_LGAMMA_R: | |
3139 | * This symbol, if defined, indicates that the lgamma_r routine is | |
3140 | * available to do the log gamma function without using the global | |
3141 | * signgam variable. | |
3142 | */ | |
3143 | #$d_lgamma_r HAS_LGAMMA_R /**/ | |
3144 | ||
ed140128 AD |
3145 | /* LIBM_LIB_VERSION: |
3146 | * This symbol, if defined, indicates that libm exports _LIB_VERSION | |
3147 | * and that math.h defines the enum to manipulate it. | |
3148 | */ | |
3149 | #$d_libm_lib_version LIBM_LIB_VERSION /**/ | |
3150 | ||
427d28ce JH |
3151 | /* HAS_LLRINT: |
3152 | * This symbol, if defined, indicates that the llrint routine is | |
2640dfa8 MB |
3153 | * available to return the long long value closest to a double |
3154 | * (according to the current rounding mode). | |
427d28ce JH |
3155 | */ |
3156 | #$d_llrint HAS_LLRINT /**/ | |
3157 | ||
bc580dd3 JH |
3158 | /* HAS_LLRINTL: |
3159 | * This symbol, if defined, indicates that the llrintl routine is | |
2640dfa8 MB |
3160 | * available to return the long long value closest to a long double |
3161 | * (according to the current rounding mode). | |
bc580dd3 JH |
3162 | */ |
3163 | #$d_llrintl HAS_LLRINTL /**/ | |
3164 | ||
427d28ce JH |
3165 | /* HAS_LLROUND: |
3166 | * This symbol, if defined, indicates that the llround routine is | |
3167 | * available to return the nearest long long value. | |
3168 | */ | |
3169 | #$d_llround HAS_LLROUND /**/ | |
3170 | ||
bc580dd3 JH |
3171 | /* HAS_LLROUNDL: |
3172 | * This symbol, if defined, indicates that the llroundl routine is | |
68936db0 MB |
3173 | * available to return the nearest long long value away from zero of |
3174 | * the long double argument value. | |
bc580dd3 JH |
3175 | */ |
3176 | #$d_llroundl HAS_LLROUNDL /**/ | |
3177 | ||
427d28ce | 3178 | /* HAS_LOG1P: |
f40bbcbf MB |
3179 | * This symbol, if defined, indicates that the log1p routine is |
3180 | * available to do the logarithm of 1 plus argument function. | |
427d28ce JH |
3181 | */ |
3182 | #$d_log1p HAS_LOG1P /**/ | |
3183 | ||
3184 | /* HAS_LOG2: | |
f40bbcbf | 3185 | * This symbol, if defined, indicates that the log2 routine is |
427d28ce JH |
3186 | * available to do the log2 function. |
3187 | */ | |
3188 | #$d_log2 HAS_LOG2 /**/ | |
3189 | ||
3190 | /* HAS_LOGB: | |
f40bbcbf | 3191 | * This symbol, if defined, indicates that the logb routine is |
427d28ce JH |
3192 | * available to do the logb function. |
3193 | */ | |
3194 | #$d_logb HAS_LOGB /**/ | |
3195 | ||
3196 | /* HAS_LRINT: | |
3197 | * This symbol, if defined, indicates that the lrint routine is | |
2640dfa8 MB |
3198 | * available to return the integral value closest to a double |
3199 | * (according to the current rounding mode). | |
427d28ce JH |
3200 | */ |
3201 | #$d_lrint HAS_LRINT /**/ | |
3202 | ||
bc580dd3 JH |
3203 | /* HAS_LRINTL: |
3204 | * This symbol, if defined, indicates that the lrintl routine is | |
2640dfa8 MB |
3205 | * available to return the integral value closest to a long double |
3206 | * (according to the current rounding mode). | |
bc580dd3 JH |
3207 | */ |
3208 | #$d_lrintl HAS_LRINTL /**/ | |
3209 | ||
427d28ce JH |
3210 | /* HAS_LROUND: |
3211 | * This symbol, if defined, indicates that the lround routine is | |
3212 | * available to return the nearest integral value. | |
3213 | */ | |
3214 | #$d_lround HAS_LROUND /**/ | |
3215 | ||
bc580dd3 JH |
3216 | /* HAS_LROUNDL: |
3217 | * This symbol, if defined, indicates that the lroundl routine is | |
68936db0 MB |
3218 | * available to return the nearest integral value away from zero of |
3219 | * the long double argument value. | |
bc580dd3 JH |
3220 | */ |
3221 | #$d_lroundl HAS_LROUNDL /**/ | |
3222 | ||
ed140128 AD |
3223 | /* HAS_MADVISE: |
3224 | * This symbol, if defined, indicates that the madvise system call is | |
3225 | * available to map a file into memory. | |
3226 | */ | |
3227 | #$d_madvise HAS_MADVISE /**/ | |
3228 | ||
3229 | /* HAS_MALLOC_SIZE: | |
3230 | * This symbol, if defined, indicates that the malloc_size | |
3231 | * routine is available for use. | |
3232 | */ | |
3233 | #$d_malloc_size HAS_MALLOC_SIZE /**/ | |
3234 | ||
3235 | /* HAS_MALLOC_GOOD_SIZE: | |
3236 | * This symbol, if defined, indicates that the malloc_good_size | |
3237 | * routine is available for use. | |
3238 | */ | |
3239 | #$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/ | |
3240 | ||
3879c54d MB |
3241 | /* HAS_MEMMEM: |
3242 | * This symbol, if defined, indicates that the memmem routine is | |
3243 | * available to return a pointer to the start of the first occurance | |
3244 | * of a substring in a memory area (or NULL if not found). | |
3245 | */ | |
3246 | #$d_memmem HAS_MEMMEM /**/ | |
3247 | ||
ed140128 AD |
3248 | /* HAS_MKDTEMP: |
3249 | * This symbol, if defined, indicates that the mkdtemp routine is | |
3250 | * available to exclusively create a uniquely named temporary directory. | |
3251 | */ | |
3252 | #$d_mkdtemp HAS_MKDTEMP /**/ | |
3253 | ||
3254 | /* HAS_MKSTEMPS: | |
3255 | * This symbol, if defined, indicates that the mkstemps routine is | |
cd95ead5 | 3256 | * available to exclusively create and open a uniquely named |
ed140128 AD |
3257 | * (with a suffix) temporary file. |
3258 | */ | |
3259 | #$d_mkstemps HAS_MKSTEMPS /**/ | |
3260 | ||
3261 | /* HAS_MODFL: | |
3262 | * This symbol, if defined, indicates that the modfl routine is | |
3263 | * available to split a long double x into a fractional part f and | |
3264 | * an integer part i such that |f| < 1.0 and (f + i) = x. | |
3265 | */ | |
3266 | /* HAS_MODFL_PROTO: | |
3267 | * This symbol, if defined, indicates that the system provides | |
3268 | * a prototype for the modfl() function. Otherwise, it is up | |
3269 | * to the program to supply one. | |
3270 | */ | |
ed140128 AD |
3271 | #$d_modfl HAS_MODFL /**/ |
3272 | #$d_modflproto HAS_MODFL_PROTO /**/ | |
ed140128 AD |
3273 | |
3274 | /* HAS_MPROTECT: | |
3275 | * This symbol, if defined, indicates that the mprotect system call is | |
3276 | * available to modify the access protection of a memory mapped file. | |
3277 | */ | |
3278 | #$d_mprotect HAS_MPROTECT /**/ | |
3279 | ||
3280 | /* HAS_STRUCT_MSGHDR: | |
3281 | * This symbol, if defined, indicates that the struct msghdr | |
3282 | * is supported. | |
3283 | */ | |
3284 | #$d_msghdr_s HAS_STRUCT_MSGHDR /**/ | |
3285 | ||
f40bbcbf MB |
3286 | /* HAS_NAN: |
3287 | * This symbol, if defined, indicates that the nan routine is | |
3288 | * available to generate NaN. | |
3289 | */ | |
3290 | #$d_nan HAS_NAN /**/ | |
3291 | ||
3292 | /* HAS_NEARBYINT: | |
3293 | * This symbol, if defined, indicates that the nearbyint routine is | |
3294 | * available to return the integral value closest to (according to | |
3295 | * the current rounding mode) to x. | |
3296 | */ | |
3297 | #$d_nearbyint HAS_NEARBYINT /**/ | |
3298 | ||
ecb44b8e MB |
3299 | /* HAS_NEWLOCALE: |
3300 | * This symbol, if defined, indicates that the newlocale routine is | |
3301 | * available to return a new locale object or modify an existing | |
3302 | * locale object. | |
3303 | */ | |
3304 | /* HAS_FREELOCALE: | |
3305 | * This symbol, if defined, indicates that the freelocale routine is | |
3306 | * available to deallocates the resources associated with a locale object. | |
3307 | */ | |
3308 | /* HAS_USELOCALE: | |
3309 | * This symbol, if defined, indicates that the uselocale routine is | |
3310 | * available to set the current locale for the calling thread. | |
3311 | */ | |
bc900e45 AC |
3312 | /* HAS_QUERYLOCALE: |
3313 | * This symbol, if defined, indicates that the querylocale routine is | |
3314 | * available to return the name of the locale for a category mask. | |
3315 | */ | |
ec2bccfd MB |
3316 | /* I_XLOCALE: |
3317 | * This symbol, if defined, indicates to the C program that it should | |
3318 | * include <xlocale.h> to get uselocale() and its friends. | |
3319 | */ | |
ecb44b8e MB |
3320 | #$d_newlocale HAS_NEWLOCALE /**/ |
3321 | #$d_freelocale HAS_FREELOCALE /**/ | |
3322 | #$d_uselocale HAS_USELOCALE /**/ | |
bc900e45 | 3323 | #$d_querylocale HAS_QUERYLOCALE /**/ |
ec2bccfd | 3324 | #$i_xlocale I_XLOCALE /**/ |
ecb44b8e | 3325 | |
f40bbcbf MB |
3326 | /* HAS_NEXTAFTER: |
3327 | * This symbol, if defined, indicates that the nextafter routine is | |
3328 | * available to return the next machine representable double from | |
3329 | * x in direction y. | |
3330 | */ | |
3331 | #$d_nextafter HAS_NEXTAFTER /**/ | |
3332 | ||
3333 | /* HAS_NEXTTOWARD: | |
3334 | * This symbol, if defined, indicates that the nexttoward routine is | |
3335 | * available to return the next machine representable long double from | |
3336 | * x in direction y. | |
3337 | */ | |
3338 | #$d_nexttoward HAS_NEXTTOWARD /**/ | |
3339 | ||
ed140128 AD |
3340 | /* HAS_NL_LANGINFO: |
3341 | * This symbol, if defined, indicates that the nl_langinfo routine is | |
3342 | * available to return local data. You will also need <langinfo.h> | |
3343 | * and therefore I_LANGINFO. | |
3344 | */ | |
3345 | #$d_nl_langinfo HAS_NL_LANGINFO /**/ | |
3346 | ||
3347 | /* HAS_OFF64_T: | |
3348 | * This symbol will be defined if the C compiler supports off64_t. | |
3349 | */ | |
3350 | #$d_off64_t HAS_OFF64_T /**/ | |
3351 | ||
c796e3db MB |
3352 | /* HAS_PRCTL: |
3353 | * This symbol, if defined, indicates that the prctl routine is | |
3354 | * available to set process title. | |
b75ee85b JH |
3355 | * Note that there are at least two prctl variants: Linux and Irix. |
3356 | * While they are somewhat similar, they are incompatible. | |
c796e3db MB |
3357 | */ |
3358 | /* HAS_PRCTL_SET_NAME: | |
3359 | * This symbol, if defined, indicates that the prctl routine is | |
3360 | * available to set process title and supports PR_SET_NAME. | |
3361 | */ | |
3362 | #$d_prctl HAS_PRCTL /**/ | |
3363 | #$d_prctl_set_name HAS_PRCTL_SET_NAME /**/ | |
3364 | ||
ed140128 AD |
3365 | /* HAS_PROCSELFEXE: |
3366 | * This symbol is defined if PROCSELFEXE_PATH is a symlink | |
3367 | * to the absolute pathname of the executing program. | |
3368 | */ | |
3369 | /* PROCSELFEXE_PATH: | |
3370 | * If HAS_PROCSELFEXE is defined this symbol is the filename | |
3371 | * of the symbolic link pointing to the absolute pathname of | |
3372 | * the executing program. | |
3373 | */ | |
3374 | #$d_procselfexe HAS_PROCSELFEXE /**/ | |
3375 | #if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH) | |
3376 | #define PROCSELFEXE_PATH $procselfexe /**/ | |
3377 | #endif | |
3378 | ||
3379 | /* HAS_PTHREAD_ATTR_SETSCOPE: | |
3380 | * This symbol, if defined, indicates that the pthread_attr_setscope | |
3381 | * system call is available to set the contention scope attribute of | |
3382 | * a thread attribute object. | |
3383 | */ | |
3384 | #$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/ | |
3385 | ||
0e0c5f82 MB |
3386 | /* HAS_PTRDIFF_T: |
3387 | * This symbol will be defined if the C compiler supports ptrdiff_t. | |
3388 | */ | |
3389 | #$d_ptrdiff_t HAS_PTRDIFF_T /**/ | |
3390 | ||
ed140128 AD |
3391 | /* HAS_READV: |
3392 | * This symbol, if defined, indicates that the readv routine is | |
3393 | * available to do gather reads. You will also need <sys/uio.h> | |
3394 | * and there I_SYSUIO. | |
3395 | */ | |
3396 | #$d_readv HAS_READV /**/ | |
3397 | ||
3398 | /* HAS_RECVMSG: | |
3399 | * This symbol, if defined, indicates that the recvmsg routine is | |
3400 | * available to send structured socket messages. | |
3401 | */ | |
3402 | #$d_recvmsg HAS_RECVMSG /**/ | |
3403 | ||
f40bbcbf MB |
3404 | /* HAS_REMAINDER: |
3405 | * This symbol, if defined, indicates that the remainder routine is | |
3406 | * available to return the floating-point remainder. | |
3407 | */ | |
3408 | #$d_remainder HAS_REMAINDER /**/ | |
3409 | ||
3410 | /* HAS_REMQUO: | |
3411 | * This symbol, if defined, indicates that the remquo routine is | |
3412 | * available to return the remainder and part of quotient. | |
3413 | */ | |
3414 | #$d_remquo HAS_REMQUO /**/ | |
3415 | ||
3416 | /* HAS_RINT: | |
3417 | * This symbol, if defined, indicates that the rint routine is | |
3418 | * available to return the nearest integral value to x as double | |
3419 | * using the current rounding mode. | |
3420 | */ | |
3421 | #$d_rint HAS_RINT /**/ | |
3422 | ||
3423 | /* HAS_ROUND: | |
3424 | * This symbol, if defined, indicates that the round routine is | |
3425 | * available to round to nearest integer, away from zero. | |
3426 | */ | |
3427 | #$d_round HAS_ROUND /**/ | |
3428 | ||
ed140128 AD |
3429 | /* HAS_SBRK_PROTO: |
3430 | * This symbol, if defined, indicates that the system provides | |
3431 | * a prototype for the sbrk() function. Otherwise, it is up | |
3432 | * to the program to supply one. Good guesses are | |
3433 | * extern void* sbrk(int); | |
3434 | * extern void* sbrk(size_t); | |
3435 | */ | |
3436 | #$d_sbrkproto HAS_SBRK_PROTO /**/ | |
3437 | ||
427d28ce | 3438 | /* HAS_SCALBN: |
f40bbcbf MB |
3439 | * This symbol, if defined, indicates that the scalbn routine is |
3440 | * available to multiply floating-point number by integral power | |
3441 | * of radix. | |
427d28ce JH |
3442 | */ |
3443 | #$d_scalbn HAS_SCALBN /**/ | |
3444 | ||
ed140128 AD |
3445 | /* HAS_SCALBNL: |
3446 | * This symbol, if defined, indicates that the scalbnl routine is | |
3447 | * available. If ilogbl is also present we can emulate frexpl. | |
3448 | */ | |
3449 | #$d_scalbnl HAS_SCALBNL /**/ | |
3450 | ||
3451 | /* HAS_SENDMSG: | |
3452 | * This symbol, if defined, indicates that the sendmsg routine is | |
3453 | * available to send structured socket messages. | |
3454 | */ | |
3455 | #$d_sendmsg HAS_SENDMSG /**/ | |
3456 | ||
3457 | /* HAS_SETITIMER: | |
3458 | * This symbol, if defined, indicates that the setitimer routine is | |
3459 | * available to set interval timers. | |
3460 | */ | |
3461 | #$d_setitimer HAS_SETITIMER /**/ | |
3462 | ||
3463 | /* HAS_SETPROCTITLE: | |
3464 | * This symbol, if defined, indicates that the setproctitle routine is | |
3465 | * available to set process title. | |
3466 | */ | |
3467 | #$d_setproctitle HAS_SETPROCTITLE /**/ | |
3468 | ||
ed140128 AD |
3469 | /* HAS_SIGNBIT: |
3470 | * This symbol, if defined, indicates that the signbit routine is | |
3471 | * available to check if the given number has the sign bit set. | |
3472 | * This should include correct testing of -0.0. This will only be set | |
3473 | * if the signbit() routine is safe to use with the NV type used internally | |
3474 | * in perl. Users should call Perl_signbit(), which will be #defined to | |
3475 | * the system's signbit() function or macro if this symbol is defined. | |
3476 | */ | |
3477 | #$d_signbit HAS_SIGNBIT /**/ | |
3478 | ||
3479 | /* HAS_SIGPROCMASK: | |
3480 | * This symbol, if defined, indicates that the sigprocmask | |
3481 | * system call is available to examine or change the signal mask | |
3482 | * of the calling process. | |
3483 | */ | |
3484 | #$d_sigprocmask HAS_SIGPROCMASK /**/ | |
3485 | ||
3486 | /* USE_SITECUSTOMIZE: | |
3487 | * This symbol, if defined, indicates that sitecustomize should | |
3488 | * be used. | |
3489 | */ | |
3490 | #ifndef USE_SITECUSTOMIZE | |
3491 | #$usesitecustomize USE_SITECUSTOMIZE /**/ | |
3492 | #endif | |
3493 | ||
3494 | /* HAS_SNPRINTF: | |
3495 | * This symbol, if defined, indicates that the snprintf () library | |
3496 | * function is available for use. | |
3497 | */ | |
3498 | /* HAS_VSNPRINTF: | |
3499 | * This symbol, if defined, indicates that the vsnprintf () library | |
3500 | * function is available for use. | |
3501 | */ | |
3502 | #$d_snprintf HAS_SNPRINTF /**/ | |
3503 | #$d_vsnprintf HAS_VSNPRINTF /**/ | |
3504 | ||
3505 | /* HAS_SOCKATMARK: | |
3506 | * This symbol, if defined, indicates that the sockatmark routine is | |
3507 | * available to test whether a socket is at the out-of-band mark. | |
3508 | */ | |
3509 | #$d_sockatmark HAS_SOCKATMARK /**/ | |
3510 | ||
3511 | /* HAS_SOCKATMARK_PROTO: | |
3512 | * This symbol, if defined, indicates that the system provides | |
3513 | * a prototype for the sockatmark() function. Otherwise, it is up | |
3514 | * to the program to supply one. A good guess is | |
3515 | * extern int sockatmark(int); | |
3516 | */ | |
3517 | #$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/ | |
3518 | ||
3519 | /* HAS_SOCKS5_INIT: | |
3520 | * This symbol, if defined, indicates that the socks5_init routine is | |
3521 | * available to initialize SOCKS 5. | |
3522 | */ | |
3523 | #$d_socks5_init HAS_SOCKS5_INIT /**/ | |
3524 | ||
3525 | /* SPRINTF_RETURNS_STRLEN: | |
3526 | * This variable defines whether sprintf returns the length of the string | |
3527 | * (as per the ANSI spec). Some C libraries retain compatibility with | |
3528 | * pre-ANSI C and return a pointer to the passed in buffer; for these | |
3529 | * this variable will be undef. | |
3530 | */ | |
3531 | #$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/ | |
3532 | ||
3533 | /* HAS_SQRTL: | |
3534 | * This symbol, if defined, indicates that the sqrtl routine is | |
3535 | * available to do long double square roots. | |
3536 | */ | |
3537 | #$d_sqrtl HAS_SQRTL /**/ | |
3538 | ||
3539 | /* HAS_SETRESGID_PROTO: | |
3540 | * This symbol, if defined, indicates that the system provides | |
3541 | * a prototype for the setresgid() function. Otherwise, it is up | |
3542 | * to the program to supply one. Good guesses are | |
3543 | * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid); | |
3544 | */ | |
3545 | #$d_sresgproto HAS_SETRESGID_PROTO /**/ | |
3546 | ||
3547 | /* HAS_SETRESUID_PROTO: | |
3548 | * This symbol, if defined, indicates that the system provides | |
3549 | * a prototype for the setresuid() function. Otherwise, it is up | |
3550 | * to the program to supply one. Good guesses are | |
3551 | * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid); | |
3552 | */ | |
3553 | #$d_sresuproto HAS_SETRESUID_PROTO /**/ | |
3554 | ||
ea442100 JH |
3555 | /* HAS_STRUCT_STATFS_F_FLAGS: |
3556 | * This symbol, if defined, indicates that the struct statfs | |
3557 | * does have the f_flags member containing the mount flags of | |
3558 | * the filesystem containing the file. | |
3559 | * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3), | |
3560 | * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not | |
3561 | * have statfs() and struct statfs, they have ustat() and getmnt() | |
3562 | * with struct ustat and struct fs_data. | |
3563 | */ | |
3564 | #$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/ | |
3565 | ||
3566 | /* HAS_STRUCT_STATFS: | |
3567 | * This symbol, if defined, indicates that the struct statfs | |
3568 | * to do statfs() is supported. | |
3569 | */ | |
3570 | #$d_statfs_s HAS_STRUCT_STATFS /**/ | |
3571 | ||
3572 | /* HAS_FSTATVFS: | |
3573 | * This symbol, if defined, indicates that the fstatvfs routine is | |
3574 | * available to stat filesystems by file descriptors. | |
3575 | */ | |
3576 | #$d_fstatvfs HAS_FSTATVFS /**/ | |
3577 | ||
ef55c673 AC |
3578 | /* HAS_STRERROR_L: |
3579 | * This symbol, if defined, indicates that the strerror_l routine is | |
3580 | * available to return the error message for a given errno value in | |
3581 | * a particular locale (identified by a locale_t object). | |
3582 | */ | |
3583 | #$d_strerror_l HAS_STRERROR_L /**/ | |
3584 | ||
ed140128 AD |
3585 | /* HAS_STRFTIME: |
3586 | * This symbol, if defined, indicates that the strftime routine is | |
3587 | * available to do time formatting. | |
3588 | */ | |
3589 | #$d_strftime HAS_STRFTIME /**/ | |
3590 | ||
3591 | /* HAS_STRLCAT: | |
3592 | * This symbol, if defined, indicates that the strlcat () routine is | |
3593 | * available to do string concatenation. | |
3594 | */ | |
3595 | #$d_strlcat HAS_STRLCAT /**/ | |
3596 | ||
3597 | /* HAS_STRLCPY: | |
3598 | * This symbol, if defined, indicates that the strlcpy () routine is | |
3599 | * available to do string copying. | |
3600 | */ | |
3601 | #$d_strlcpy HAS_STRLCPY /**/ | |
3602 | ||
3603 | /* HAS_STRTOLD: | |
3604 | * This symbol, if defined, indicates that the strtold routine is | |
3605 | * available to convert strings to long doubles. | |
3606 | */ | |
3607 | #$d_strtold HAS_STRTOLD /**/ | |
3608 | ||
3609 | /* HAS_STRTOLL: | |
3610 | * This symbol, if defined, indicates that the strtoll routine is | |
3611 | * available to convert strings to long longs. | |
3612 | */ | |
3613 | #$d_strtoll HAS_STRTOLL /**/ | |
3614 | ||
3615 | /* HAS_STRTOQ: | |
3616 | * This symbol, if defined, indicates that the strtoq routine is | |
3617 | * available to convert strings to long longs (quads). | |
3618 | */ | |
3619 | #$d_strtoq HAS_STRTOQ /**/ | |
3620 | ||
3621 | /* HAS_STRTOULL: | |
3622 | * This symbol, if defined, indicates that the strtoull routine is | |
3623 | * available to convert strings to unsigned long longs. | |
3624 | */ | |
3625 | #$d_strtoull HAS_STRTOULL /**/ | |
3626 | ||
3627 | /* HAS_STRTOUQ: | |
3628 | * This symbol, if defined, indicates that the strtouq routine is | |
3629 | * available to convert strings to unsigned long longs (quads). | |
3630 | */ | |
3631 | #$d_strtouq HAS_STRTOUQ /**/ | |
3632 | ||
3633 | /* HAS_SYSCALL_PROTO: | |
3634 | * This symbol, if defined, indicates that the system provides | |
3635 | * a prototype for the syscall() function. Otherwise, it is up | |
3636 | * to the program to supply one. Good guesses are | |
3637 | * extern int syscall(int, ...); | |
3638 | * extern int syscall(long, ...); | |
3639 | */ | |
3640 | #$d_syscallproto HAS_SYSCALL_PROTO /**/ | |
3641 | ||
3642 | /* HAS_TELLDIR_PROTO: | |
3643 | * This symbol, if defined, indicates that the system provides | |
3644 | * a prototype for the telldir() function. Otherwise, it is up | |
3645 | * to the program to supply one. A good guess is | |
3646 | * extern long telldir(DIR*); | |
3647 | */ | |
3648 | #$d_telldirproto HAS_TELLDIR_PROTO /**/ | |
3649 | ||
f40bbcbf MB |
3650 | /* HAS_TGAMMA: |
3651 | * This symbol, if defined, indicates that the tgamma routine is | |
3652 | * available to do the gamma function. See also HAS_LGAMMA. | |
3653 | */ | |
3654 | #$d_tgamma HAS_TGAMMA /**/ | |
3655 | ||
96938616 MB |
3656 | /* HAS_CTIME64: |
3657 | * This symbol, if defined, indicates that the ctime64 () routine is | |
3658 | * available to do the 64bit variant of ctime () | |
3659 | */ | |
3660 | /* HAS_LOCALTIME64: | |
3661 | * This symbol, if defined, indicates that the localtime64 () routine is | |
3662 | * available to do the 64bit variant of localtime () | |
3663 | */ | |
3664 | /* HAS_GMTIME64: | |
3665 | * This symbol, if defined, indicates that the gmtime64 () routine is | |
3666 | * available to do the 64bit variant of gmtime () | |
3667 | */ | |
3668 | /* HAS_MKTIME64: | |
3669 | * This symbol, if defined, indicates that the mktime64 () routine is | |
3670 | * available to do the 64bit variant of mktime () | |
3671 | */ | |
3672 | /* HAS_DIFFTIME64: | |
3673 | * This symbol, if defined, indicates that the difftime64 () routine is | |
3674 | * available to do the 64bit variant of difftime () | |
3675 | */ | |
3676 | /* HAS_ASCTIME64: | |
3677 | * This symbol, if defined, indicates that the asctime64 () routine is | |
3678 | * available to do the 64bit variant of asctime () | |
3679 | */ | |
3680 | #$d_ctime64 HAS_CTIME64 /**/ | |
3681 | #$d_localtime64 HAS_LOCALTIME64 /**/ | |
3682 | #$d_gmtime64 HAS_GMTIME64 /**/ | |
3683 | #$d_mktime64 HAS_MKTIME64 /**/ | |
3684 | #$d_difftime64 HAS_DIFFTIME64 /**/ | |
3685 | #$d_asctime64 HAS_ASCTIME64 /**/ | |
3686 | ||
cbb9e8a7 MB |
3687 | /* HAS_TIMEGM: |
3688 | * This symbol, if defined, indicates that the timegm routine is | |
3689 | * available to do the opposite of gmtime () | |
3690 | */ | |
3691 | #$d_timegm HAS_TIMEGM /**/ | |
3692 | ||
427d28ce | 3693 | /* HAS_TRUNC: |
f40bbcbf MB |
3694 | * This symbol, if defined, indicates that the trunc routine is |
3695 | * available to round doubles towards zero. | |
427d28ce JH |
3696 | */ |
3697 | #$d_trunc HAS_TRUNC /**/ | |
3698 | ||
d6f85a58 MB |
3699 | /* HAS_TRUNCL: |
3700 | * This symbol, if defined, indicates that the truncl routine is | |
3701 | * available. If copysignl is also present we can emulate modfl. | |
3702 | */ | |
3703 | #$d_truncl HAS_TRUNCL /**/ | |
3704 | ||
ed140128 AD |
3705 | /* U32_ALIGNMENT_REQUIRED: |
3706 | * This symbol, if defined, indicates that you must access | |
3707 | * character data through U32-aligned pointers. | |
3708 | */ | |
3709 | #ifndef U32_ALIGNMENT_REQUIRED | |
3710 | #$d_u32align U32_ALIGNMENT_REQUIRED /**/ | |
3711 | #endif | |
3712 | ||
3713 | /* HAS_UALARM: | |
3714 | * This symbol, if defined, indicates that the ualarm routine is | |
3715 | * available to do alarms with microsecond granularity. | |
3716 | */ | |
3717 | #$d_ualarm HAS_UALARM /**/ | |
3718 | ||
3719 | /* HAS_UNORDERED: | |
3720 | * This symbol, if defined, indicates that the unordered routine is | |
3721 | * available to check whether two doubles are unordered | |
3722 | * (effectively: whether either of them is NaN) | |
3723 | */ | |
3724 | #$d_unordered HAS_UNORDERED /**/ | |
3725 | ||
3726 | /* HAS_UNSETENV: | |
3727 | * This symbol, if defined, indicates that the unsetenv () routine is | |
3728 | * available for use. | |
3729 | */ | |
3730 | #$d_unsetenv HAS_UNSETENV /**/ | |
3731 | ||
3732 | /* HAS_USLEEP_PROTO: | |
3733 | * This symbol, if defined, indicates that the system provides | |
3734 | * a prototype for the usleep() function. Otherwise, it is up | |
3735 | * to the program to supply one. A good guess is | |
3736 | * extern int usleep(useconds_t); | |
3737 | */ | |
3738 | #$d_usleepproto HAS_USLEEP_PROTO /**/ | |
3739 | ||
ea442100 JH |
3740 | /* HAS_USTAT: |
3741 | * This symbol, if defined, indicates that the ustat system call is | |
3742 | * available to query file system statistics by dev_t. | |
3743 | */ | |
3744 | #$d_ustat HAS_USTAT /**/ | |
3745 | ||
9cdcdad1 MB |
3746 | /* HAS_WCSCMP: |
3747 | * This symbol, if defined, indicates that the wcscmp routine is | |
3748 | * available to compare two wide character strings. | |
3749 | */ | |
3750 | #$d_wcscmp HAS_WCSCMP /**/ | |
3751 | ||
3752 | /* HAS_WCSXFRM: | |
3753 | * This symbol, if defined, indicates that the wcsxfrm routine is | |
3754 | * available to tranform a wide character string for wcscmp(). | |
3755 | */ | |
3756 | #$d_wcsxfrm HAS_WCSXFRM /**/ | |
3757 | ||
ed140128 AD |
3758 | /* HAS_WRITEV: |
3759 | * This symbol, if defined, indicates that the writev routine is | |
3760 | * available to do scatter writes. | |
3761 | */ | |
3762 | #$d_writev HAS_WRITEV /**/ | |
3763 | ||
32db2dd3 MB |
3764 | /* DEFAULT_INC_EXCLUDES_DOT: |
3765 | * This symbol, if defined, removes the legacy default behavior of | |
3766 | * including '.' at the end of @INC. | |
3767 | */ | |
3768 | #$default_inc_excludes_dot DEFAULT_INC_EXCLUDES_DOT /**/ | |
3769 | ||
ed140128 AD |
3770 | /* USE_DYNAMIC_LOADING: |
3771 | * This symbol, if defined, indicates that dynamic loading of | |
3772 | * some sort is available. | |
3773 | */ | |
3774 | #$usedl USE_DYNAMIC_LOADING /**/ | |
3775 | ||
3776 | /* FFLUSH_NULL: | |
a05353bf MB |
3777 | * This symbol, if defined, tells that fflush(NULL) correctly |
3778 | * flushes all pending stdio output without side effects. In | |
3779 | * particular, on some platforms calling fflush(NULL) *still* | |
3780 | * corrupts STDIN if it is a pipe. | |
ed140128 AD |
3781 | */ |
3782 | /* FFLUSH_ALL: | |
3783 | * This symbol, if defined, tells that to flush | |
3784 | * all pending stdio output one must loop through all | |
3785 | * the stdio file handles stored in an array and fflush them. | |
3786 | * Note that if fflushNULL is defined, fflushall will not | |
3787 | * even be probed for and will be left undefined. | |
3788 | */ | |
3789 | #$ff |