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