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 | */ |
e5eef985 | 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 | ||
bd31be4b NC |
745 | /* I_STDBOOL: |
746 | * This symbol, if defined, indicates that <stdbool.h> exists and should | |
747 | * be included. | |
748 | */ | |
749 | #$i_stdbool I_STDBOOL /**/ | |
750 | ||
88fdc172 SB |
751 | /* I_STDDEF: |
752 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
753 | * be included. | |
a845a0d4 | 754 | */ |
88fdc172 SB |
755 | #$i_stddef I_STDDEF /**/ |
756 | ||
757 | /* I_STDLIB: | |
758 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
759 | * be included. | |
a845a0d4 | 760 | */ |
88fdc172 SB |
761 | #$i_stdlib I_STDLIB /**/ |
762 | ||
763 | /* I_STRING: | |
764 | * This symbol, if defined, indicates to the C program that it should | |
765 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
a845a0d4 | 766 | */ |
88fdc172 SB |
767 | #$i_string I_STRING /**/ |
768 | ||
769 | /* I_SYS_DIR: | |
770 | * This symbol, if defined, indicates to the C program that it should | |
771 | * include <sys/dir.h>. | |
a845a0d4 | 772 | */ |
88fdc172 SB |
773 | #$i_sysdir I_SYS_DIR /**/ |
774 | ||
775 | /* I_SYS_FILE: | |
776 | * This symbol, if defined, indicates to the C program that it should | |
777 | * include <sys/file.h> to get definition of R_OK and friends. | |
a845a0d4 | 778 | */ |
88fdc172 | 779 | #$i_sysfile I_SYS_FILE /**/ |
a845a0d4 | 780 | |
88fdc172 SB |
781 | /* I_SYS_IOCTL: |
782 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
783 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
a845a0d4 | 784 | */ |
88fdc172 SB |
785 | /* I_SYS_SOCKIO: |
786 | * This symbol, if defined, indicates the <sys/sockio.h> should be included | |
787 | * to get socket ioctl options, like SIOCATMARK. | |
a845a0d4 | 788 | */ |
88fdc172 SB |
789 | #$i_sysioctl I_SYS_IOCTL /**/ |
790 | #$i_syssockio I_SYS_SOCKIO /**/ | |
791 | ||
792 | /* I_SYS_NDIR: | |
793 | * This symbol, if defined, indicates to the C program that it should | |
794 | * include <sys/ndir.h>. | |
a845a0d4 | 795 | */ |
88fdc172 | 796 | #$i_sysndir I_SYS_NDIR /**/ |
a845a0d4 | 797 | |
88fdc172 SB |
798 | /* I_SYS_PARAM: |
799 | * This symbol, if defined, indicates to the C program that it should | |
800 | * include <sys/param.h>. | |
a845a0d4 | 801 | */ |
88fdc172 SB |
802 | #$i_sysparam I_SYS_PARAM /**/ |
803 | ||
216dac04 MB |
804 | /* I_SYS_POLL: |
805 | * This symbol, if defined, indicates that the program may include | |
806 | * <sys/poll.h>. When I_POLL is also defined, it's probably safest | |
807 | * to only include <poll.h>. | |
808 | */ | |
809 | #$i_syspoll I_SYS_POLL /**/ | |
810 | ||
88fdc172 SB |
811 | /* I_SYS_RESOURCE: |
812 | * This symbol, if defined, indicates to the C program that it should | |
813 | * include <sys/resource.h>. | |
a845a0d4 | 814 | */ |
88fdc172 | 815 | #$i_sysresrc I_SYS_RESOURCE /**/ |
a845a0d4 | 816 | |
88fdc172 SB |
817 | /* I_SYS_SELECT: |
818 | * This symbol, if defined, indicates to the C program that it should | |
819 | * include <sys/select.h> in order to get definition of struct timeval. | |
a845a0d4 | 820 | */ |
88fdc172 | 821 | #$i_sysselct I_SYS_SELECT /**/ |
a845a0d4 | 822 | |
88fdc172 | 823 | /* I_SYS_STAT: |
a845a0d4 | 824 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 825 | * include <sys/stat.h>. |
a845a0d4 | 826 | */ |
88fdc172 SB |
827 | #$i_sysstat I_SYS_STAT /**/ |
828 | ||
829 | /* I_SYS_TIMES: | |
a845a0d4 | 830 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 831 | * include <sys/times.h>. |
a845a0d4 | 832 | */ |
88fdc172 SB |
833 | #$i_systimes I_SYS_TIMES /**/ |
834 | ||
835 | /* I_SYS_TYPES: | |
a845a0d4 | 836 | * This symbol, if defined, indicates to the C program that it should |
88fdc172 | 837 | * include <sys/types.h>. |
a845a0d4 | 838 | */ |
88fdc172 SB |
839 | #$i_systypes I_SYS_TYPES /**/ |
840 | ||
841 | /* I_SYS_UN: | |
842 | * This symbol, if defined, indicates to the C program that it should | |
843 | * include <sys/un.h> to get UNIX domain socket definitions. | |
a845a0d4 | 844 | */ |
88fdc172 SB |
845 | #$i_sysun I_SYS_UN /**/ |
846 | ||
847 | /* I_SYS_WAIT: | |
848 | * This symbol, if defined, indicates to the C program that it should | |
849 | * include <sys/wait.h>. | |
a845a0d4 | 850 | */ |
88fdc172 | 851 | #$i_syswait I_SYS_WAIT /**/ |
a845a0d4 | 852 | |
88fdc172 SB |
853 | /* I_TERMIO: |
854 | * This symbol, if defined, indicates that the program should include | |
855 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
856 | * the ioctl() calls that depend on the value of this symbol. | |
a845a0d4 | 857 | */ |
88fdc172 SB |
858 | /* I_TERMIOS: |
859 | * This symbol, if defined, indicates that the program should include | |
860 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
861 | * There are also differences in the ioctl() calls that depend on the | |
862 | * value of this symbol. | |
a845a0d4 | 863 | */ |
88fdc172 SB |
864 | /* I_SGTTY: |
865 | * This symbol, if defined, indicates that the program should include | |
866 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
867 | * the ioctl() calls that depend on the value of this symbol. | |
a845a0d4 | 868 | */ |
88fdc172 SB |
869 | #$i_termio I_TERMIO /**/ |
870 | #$i_termios I_TERMIOS /**/ | |
871 | #$i_sgtty I_SGTTY /**/ | |
872 | ||
873 | /* I_UNISTD: | |
874 | * This symbol, if defined, indicates to the C program that it should | |
875 | * include <unistd.h>. | |
a845a0d4 | 876 | */ |
88fdc172 | 877 | #$i_unistd I_UNISTD /**/ |
a845a0d4 | 878 | |
88fdc172 SB |
879 | /* I_UTIME: |
880 | * This symbol, if defined, indicates to the C program that it should | |
881 | * include <utime.h>. | |
a845a0d4 | 882 | */ |
88fdc172 | 883 | #$i_utime I_UTIME /**/ |
a845a0d4 | 884 | |
88fdc172 SB |
885 | /* I_VALUES: |
886 | * This symbol, if defined, indicates to the C program that it should | |
887 | * include <values.h> to get definition of symbols like MINFLOAT or | |
888 | * MAXLONG, i.e. machine dependant limitations. Probably, you | |
889 | * should use <limits.h> instead, if it is available. | |
a845a0d4 | 890 | */ |
88fdc172 SB |
891 | #$i_values I_VALUES /**/ |
892 | ||
893 | /* I_VFORK: | |
894 | * This symbol, if defined, indicates to the C program that it should | |
895 | * include vfork.h. | |
a845a0d4 | 896 | */ |
88fdc172 SB |
897 | #$i_vfork I_VFORK /**/ |
898 | ||
d03b3b00 MB |
899 | /* CAN_VAPROTO: |
900 | * This variable is defined on systems supporting prototype declaration | |
901 | * of functions with a variable number of arguments. | |
902 | */ | |
903 | /* _V: | |
904 | * This macro is used to declare function parameters in prototypes for | |
905 | * functions with a variable number of parameters. Use double parentheses. | |
906 | * For example: | |
907 | * | |
908 | * int printf _V((char *fmt, ...)); | |
909 | * | |
910 | * Remember to use the plain simple _() macro when declaring a function | |
911 | * with no variable number of arguments, since it might be possible to | |
912 | * have a non-effect _V() macro and still get prototypes via _(). | |
913 | */ | |
914 | #$vaproto CAN_VAPROTO /**/ | |
915 | #ifdef CAN_VAPROTO | |
916 | #define _V(args) args | |
917 | #else | |
918 | #define _V(args) () | |
919 | #endif | |
920 | ||
ed140128 AD |
921 | /* INTSIZE: |
922 | * This symbol contains the value of sizeof(int) so that the C | |
923 | * preprocessor can make decisions based on it. | |
a845a0d4 | 924 | */ |
ed140128 AD |
925 | /* LONGSIZE: |
926 | * This symbol contains the value of sizeof(long) so that the C | |
927 | * preprocessor can make decisions based on it. | |
a845a0d4 | 928 | */ |
ed140128 AD |
929 | /* SHORTSIZE: |
930 | * This symbol contains the value of sizeof(short) so that the C | |
931 | * preprocessor can make decisions based on it. | |
a845a0d4 | 932 | */ |
ed140128 AD |
933 | #define INTSIZE $intsize /**/ |
934 | #define LONGSIZE $longsize /**/ | |
935 | #define SHORTSIZE $shortsize /**/ | |
a845a0d4 | 936 | |
ed140128 AD |
937 | /* MULTIARCH: |
938 | * This symbol, if defined, signifies that the build | |
939 | * process will produce some binary files that are going to be | |
940 | * used in a cross-platform environment. This is the case for | |
941 | * example with the NeXT "fat" binaries that contain executables | |
942 | * for several CPUs. | |
a845a0d4 | 943 | */ |
ed140128 | 944 | #$multiarch MULTIARCH /**/ |
a845a0d4 | 945 | |
ed140128 AD |
946 | /* HAS_QUAD: |
947 | * This symbol, if defined, tells that there's a 64-bit integer type, | |
cd95ead5 | 948 | * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one |
ed140128 | 949 | * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T. |
eaf812ae | 950 | */ |
ed140128 AD |
951 | #$d_quad HAS_QUAD /**/ |
952 | #ifdef HAS_QUAD | |
953 | # define Quad_t $quadtype /**/ | |
954 | # define Uquad_t $uquadtype /**/ | |
955 | # define QUADKIND $quadkind /**/ | |
956 | # define QUAD_IS_INT 1 | |
957 | # define QUAD_IS_LONG 2 | |
958 | # define QUAD_IS_LONG_LONG 3 | |
959 | # define QUAD_IS_INT64_T 4 | |
eaf812ae MB |
960 | #endif |
961 | ||
b8677e3b MB |
962 | /* USE_CROSS_COMPILE: |
963 | * This symbol, if defined, indicates that Perl is being cross-compiled. | |
08c92000 | 964 | */ |
b8677e3b MB |
965 | /* PERL_TARGETARCH: |
966 | * This symbol, if defined, indicates the target architecture | |
967 | * Perl has been cross-compiled to. Undefined if not a cross-compile. | |
08c92000 | 968 | */ |
b8677e3b MB |
969 | #ifndef USE_CROSS_COMPILE |
970 | #$usecrosscompile USE_CROSS_COMPILE /**/ | |
971 | #define PERL_TARGETARCH "$targetarch" /**/ | |
972 | #endif | |
973 | ||
974 | /* MEM_ALIGNBYTES: | |
975 | * This symbol contains the number of bytes required to align a | |
976 | * double, or a long double when applicable. Usual values are 2, | |
977 | * 4 and 8. The default is eight, for safety. | |
978 | */ | |
979 | #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH) | |
980 | # define MEM_ALIGNBYTES 8 | |
981 | #else | |
982 | #define MEM_ALIGNBYTES $alignbytes | |
983 | #endif | |
08c92000 | 984 | |
08c92000 MB |
985 | /* ARCHLIB: |
986 | * This variable, if defined, holds the name of the directory in | |
987 | * which the user wants to put architecture-dependent public | |
988 | * library files for $package. It is most often a local directory | |
989 | * such as /usr/local/lib. Programs using this variable must be | |
990 | * prepared to deal with filename expansion. If ARCHLIB is the | |
991 | * same as PRIVLIB, it is not defined, since presumably the | |
992 | * program already searches PRIVLIB. | |
993 | */ | |
994 | /* ARCHLIB_EXP: | |
995 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
996 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
997 | */ | |
998 | #$d_archlib ARCHLIB "$archlib" /**/ | |
999 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ | |
1000 | ||
1001 | /* ARCHNAME: | |
1002 | * This symbol holds a string representing the architecture name. | |
1003 | * It may be used to construct an architecture-dependant pathname | |
1004 | * where library files may be held under a private library, for | |
1005 | * instance. | |
1006 | */ | |
1007 | #define ARCHNAME "$archname" /**/ | |
1008 | ||
08c92000 MB |
1009 | /* BIN: |
1010 | * This symbol holds the path of the bin directory where the package will | |
1011 | * be installed. Program must be prepared to deal with ~name substitution. | |
1012 | */ | |
1013 | /* BIN_EXP: | |
1014 | * This symbol is the filename expanded version of the BIN symbol, for | |
1015 | * programs that do not want to deal with that at run-time. | |
1016 | */ | |
f3f1a2d8 MB |
1017 | /* PERL_RELOCATABLE_INC: |
1018 | * This symbol, if defined, indicates that we'd like to relocate entries | |
1019 | * in @INC at run time based on the location of the perl binary. | |
1020 | */ | |
08c92000 MB |
1021 | #define BIN "$bin" /**/ |
1022 | #define BIN_EXP "$binexp" /**/ | |
f3f1a2d8 | 1023 | #define PERL_RELOCATABLE_INC "$userelocatableinc" /**/ |
08c92000 | 1024 | |
b8677e3b MB |
1025 | /* BYTEORDER: |
1026 | * This symbol holds the hexadecimal constant defined in byteorder, | |
1027 | * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc... | |
1028 | * If the compiler supports cross-compiling or multiple-architecture | |
1029 | * binaries (eg. on NeXT systems), use compiler-defined macros to | |
1030 | * determine the byte order. | |
1031 | * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture | |
1032 | * Binaries (MAB) on either big endian or little endian machines. | |
1033 | * The endian-ness is available at compile-time. This only matters | |
1034 | * for perl, where the config.h can be generated and installed on | |
1035 | * one system, and used by a different architecture to build an | |
1036 | * extension. Older versions of NeXT that might not have | |
1037 | * defined either *_ENDIAN__ were all on Motorola 680x0 series, | |
1038 | * so the default case (for NeXT) is big endian to catch them. | |
1039 | * This might matter for NeXT 3.0. | |
08c92000 | 1040 | */ |
b8677e3b MB |
1041 | #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH) |
1042 | # ifdef __LITTLE_ENDIAN__ | |
1043 | # if LONGSIZE == 4 | |
1044 | # define BYTEORDER 0x1234 | |
1045 | # else | |
1046 | # if LONGSIZE == 8 | |
1047 | # define BYTEORDER 0x12345678 | |
1048 | # endif | |
1049 | # endif | |
1050 | # else | |
1051 | # ifdef __BIG_ENDIAN__ | |
1052 | # if LONGSIZE == 4 | |
1053 | # define BYTEORDER 0x4321 | |
1054 | # else | |
1055 | # if LONGSIZE == 8 | |
1056 | # define BYTEORDER 0x87654321 | |
1057 | # endif | |
1058 | # endif | |
1059 | # endif | |
1060 | # endif | |
1061 | # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__)) | |
1062 | # define BYTEORDER 0x4321 | |
1063 | # endif | |
1064 | #else | |
1065 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ | |
1066 | #endif /* NeXT */ | |
08c92000 | 1067 | |
b8677e3b MB |
1068 | /* CHARBITS: |
1069 | * This symbol contains the size of a char, so that the C preprocessor | |
1070 | * can make decisions based on it. | |
08c92000 | 1071 | */ |
b8677e3b | 1072 | #define CHARBITS $charbits /**/ |
08c92000 | 1073 | |
ed140128 AD |
1074 | /* HAS_ACCESSX: |
1075 | * This symbol, if defined, indicates that the accessx routine is | |
1076 | * available to do extended access checks. | |
eaf812ae | 1077 | */ |
ed140128 | 1078 | #$d_accessx HAS_ACCESSX /**/ |
eaf812ae | 1079 | |
08c92000 MB |
1080 | /* HAS_ASCTIME_R: |
1081 | * This symbol, if defined, indicates that the asctime_r routine | |
1082 | * is available to asctime re-entrantly. | |
1083 | */ | |
1084 | /* ASCTIME_R_PROTO: | |
1085 | * This symbol encodes the prototype of asctime_r. | |
1086 | * It is zero if d_asctime_r is undef, and one of the | |
1087 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r | |
1088 | * is defined. | |
1089 | */ | |
1090 | #$d_asctime_r HAS_ASCTIME_R /**/ | |
1091 | #define ASCTIME_R_PROTO $asctime_r_proto /**/ | |
1092 | ||
b8677e3b MB |
1093 | /* CASTI32: |
1094 | * This symbol is defined if the C compiler can cast negative | |
1095 | * or large floating point numbers to 32-bit ints. | |
eaf812ae | 1096 | */ |
b8677e3b MB |
1097 | #$d_casti32 CASTI32 /**/ |
1098 | ||
1099 | /* CASTNEGFLOAT: | |
1100 | * This symbol is defined if the C compiler can cast negative | |
1101 | * numbers to unsigned longs, ints and shorts. | |
fcdf39cf | 1102 | */ |
b8677e3b MB |
1103 | /* CASTFLAGS: |
1104 | * This symbol contains flags that say what difficulties the compiler | |
1105 | * has casting odd floating values to unsigned long: | |
1106 | * 0 = ok | |
1107 | * 1 = couldn't cast < 0 | |
1108 | * 2 = couldn't cast >= 0x80000000 | |
1109 | * 4 = couldn't cast in argument expression list | |
eaf812ae | 1110 | */ |
b8677e3b MB |
1111 | #$d_castneg CASTNEGFLOAT /**/ |
1112 | #define CASTFLAGS $castflags /**/ | |
eaf812ae | 1113 | |
b8677e3b MB |
1114 | /* VOID_CLOSEDIR: |
1115 | * This symbol, if defined, indicates that the closedir() routine | |
1116 | * does not return a value. | |
f244a502 | 1117 | */ |
b8677e3b | 1118 | #$d_void_closedir VOID_CLOSEDIR /**/ |
f244a502 | 1119 | |
08c92000 MB |
1120 | /* HAS_CRYPT_R: |
1121 | * This symbol, if defined, indicates that the crypt_r routine | |
1122 | * is available to crypt re-entrantly. | |
a845a0d4 | 1123 | */ |
08c92000 MB |
1124 | /* CRYPT_R_PROTO: |
1125 | * This symbol encodes the prototype of crypt_r. | |
1126 | * It is zero if d_crypt_r is undef, and one of the | |
1127 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r | |
1128 | * is defined. | |
a845a0d4 | 1129 | */ |
08c92000 MB |
1130 | #$d_crypt_r HAS_CRYPT_R /**/ |
1131 | #define CRYPT_R_PROTO $crypt_r_proto /**/ | |
a845a0d4 | 1132 | |
eaf812ae MB |
1133 | /* HAS_CTERMID_R: |
1134 | * This symbol, if defined, indicates that the ctermid_r routine | |
1135 | * is available to ctermid re-entrantly. | |
1136 | */ | |
1137 | /* CTERMID_R_PROTO: | |
1138 | * This symbol encodes the prototype of ctermid_r. | |
1139 | * It is zero if d_ctermid_r is undef, and one of the | |
1140 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctermid_r | |
1141 | * is defined. | |
1142 | */ | |
1143 | #$d_ctermid_r HAS_CTERMID_R /**/ | |
1144 | #define CTERMID_R_PROTO $ctermid_r_proto /**/ | |
1145 | ||
08c92000 MB |
1146 | /* HAS_CTIME_R: |
1147 | * This symbol, if defined, indicates that the ctime_r routine | |
1148 | * is available to ctime re-entrantly. | |
a845a0d4 | 1149 | */ |
08c92000 MB |
1150 | /* CTIME_R_PROTO: |
1151 | * This symbol encodes the prototype of ctime_r. | |
1152 | * It is zero if d_ctime_r is undef, and one of the | |
1153 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r | |
1154 | * is defined. | |
a845a0d4 | 1155 | */ |
08c92000 MB |
1156 | #$d_ctime_r HAS_CTIME_R /**/ |
1157 | #define CTIME_R_PROTO $ctime_r_proto /**/ | |
a845a0d4 | 1158 | |
08c92000 MB |
1159 | /* HAS_DRAND48_R: |
1160 | * This symbol, if defined, indicates that the drand48_r routine | |
1161 | * is available to drand48 re-entrantly. | |
a845a0d4 | 1162 | */ |
08c92000 MB |
1163 | /* DRAND48_R_PROTO: |
1164 | * This symbol encodes the prototype of drand48_r. | |
1165 | * It is zero if d_drand48_r is undef, and one of the | |
1166 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r | |
1167 | * is defined. | |
1168 | */ | |
1169 | #$d_drand48_r HAS_DRAND48_R /**/ | |
1170 | #define DRAND48_R_PROTO $drand48_r_proto /**/ | |
a845a0d4 | 1171 | |
ed140128 AD |
1172 | /* HAS_EACCESS: |
1173 | * This symbol, if defined, indicates that the eaccess routine is | |
1174 | * available to do extended access checks. | |
1175 | */ | |
1176 | #$d_eaccess HAS_EACCESS /**/ | |
1177 | ||
08c92000 MB |
1178 | /* HAS_ENDGRENT_R: |
1179 | * This symbol, if defined, indicates that the endgrent_r routine | |
1180 | * is available to endgrent re-entrantly. | |
88fdc172 | 1181 | */ |
08c92000 MB |
1182 | /* ENDGRENT_R_PROTO: |
1183 | * This symbol encodes the prototype of endgrent_r. | |
1184 | * It is zero if d_endgrent_r is undef, and one of the | |
1185 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r | |
1186 | * is defined. | |
88fdc172 | 1187 | */ |
08c92000 MB |
1188 | #$d_endgrent_r HAS_ENDGRENT_R /**/ |
1189 | #define ENDGRENT_R_PROTO $endgrent_r_proto /**/ | |
1190 | ||
eaf812ae MB |
1191 | /* HAS_ENDHOSTENT_R: |
1192 | * This symbol, if defined, indicates that the endhostent_r routine | |
1193 | * is available to endhostent re-entrantly. | |
1194 | */ | |
1195 | /* ENDHOSTENT_R_PROTO: | |
1196 | * This symbol encodes the prototype of endhostent_r. | |
1197 | * It is zero if d_endhostent_r is undef, and one of the | |
1198 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endhostent_r | |
1199 | * is defined. | |
1200 | */ | |
1201 | #$d_endhostent_r HAS_ENDHOSTENT_R /**/ | |
1202 | #define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/ | |
1203 | ||
eaf812ae MB |
1204 | /* HAS_ENDNETENT_R: |
1205 | * This symbol, if defined, indicates that the endnetent_r routine | |
1206 | * is available to endnetent re-entrantly. | |
1207 | */ | |
1208 | /* ENDNETENT_R_PROTO: | |
1209 | * This symbol encodes the prototype of endnetent_r. | |
1210 | * It is zero if d_endnetent_r is undef, and one of the | |
1211 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r | |
1212 | * is defined. | |
1213 | */ | |
1214 | #$d_endnetent_r HAS_ENDNETENT_R /**/ | |
1215 | #define ENDNETENT_R_PROTO $endnetent_r_proto /**/ | |
1216 | ||
eaf812ae MB |
1217 | /* HAS_ENDPROTOENT_R: |
1218 | * This symbol, if defined, indicates that the endprotoent_r routine | |
1219 | * is available to endprotoent re-entrantly. | |
1220 | */ | |
1221 | /* ENDPROTOENT_R_PROTO: | |
1222 | * This symbol encodes the prototype of endprotoent_r. | |
1223 | * It is zero if d_endprotoent_r is undef, and one of the | |
1224 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endprotoent_r | |
1225 | * is defined. | |
1226 | */ | |
1227 | #$d_endprotoent_r HAS_ENDPROTOENT_R /**/ | |
1228 | #define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/ | |
1229 | ||
08c92000 MB |
1230 | /* HAS_ENDPWENT_R: |
1231 | * This symbol, if defined, indicates that the endpwent_r routine | |
1232 | * is available to endpwent re-entrantly. | |
88fdc172 | 1233 | */ |
08c92000 MB |
1234 | /* ENDPWENT_R_PROTO: |
1235 | * This symbol encodes the prototype of endpwent_r. | |
1236 | * It is zero if d_endpwent_r is undef, and one of the | |
1237 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r | |
1238 | * is defined. | |
88fdc172 | 1239 | */ |
08c92000 MB |
1240 | #$d_endpwent_r HAS_ENDPWENT_R /**/ |
1241 | #define ENDPWENT_R_PROTO $endpwent_r_proto /**/ | |
1242 | ||
eaf812ae MB |
1243 | /* HAS_ENDSERVENT_R: |
1244 | * This symbol, if defined, indicates that the endservent_r routine | |
1245 | * is available to endservent re-entrantly. | |
1246 | */ | |
1247 | /* ENDSERVENT_R_PROTO: | |
1248 | * This symbol encodes the prototype of endservent_r. | |
1249 | * It is zero if d_endservent_r is undef, and one of the | |
1250 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endservent_r | |
1251 | * is defined. | |
1252 | */ | |
1253 | #$d_endservent_r HAS_ENDSERVENT_R /**/ | |
1254 | #define ENDSERVENT_R_PROTO $endservent_r_proto /**/ | |
1255 | ||
b8677e3b MB |
1256 | /* HAS_FD_SET: |
1257 | * This symbol, when defined, indicates presence of the fd_set typedef | |
1258 | * in <sys/types.h> | |
a845a0d4 | 1259 | */ |
b8677e3b | 1260 | #$d_fd_set HAS_FD_SET /**/ |
a845a0d4 | 1261 | |
b8677e3b MB |
1262 | /* Gconvert: |
1263 | * This preprocessor macro is defined to convert a floating point | |
1264 | * number to a string without a trailing decimal point. This | |
1265 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1266 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1267 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1268 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1269 | * macro are: value, number of digits, whether trailing zeros should | |
1270 | * be retained, and the output buffer. | |
1271 | * The usual values are: | |
1272 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1273 | * d_Gconvert='gcvt((x),(n),(b))' | |
1274 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1275 | * The last two assume trailing zeros should not be kept. | |
a845a0d4 | 1276 | */ |
b8677e3b | 1277 | #define Gconvert(x,n,t,b) $d_Gconvert |
a845a0d4 | 1278 | |
08c92000 MB |
1279 | /* HAS_GETGRENT_R: |
1280 | * This symbol, if defined, indicates that the getgrent_r routine | |
1281 | * is available to getgrent re-entrantly. | |
a845a0d4 | 1282 | */ |
08c92000 MB |
1283 | /* GETGRENT_R_PROTO: |
1284 | * This symbol encodes the prototype of getgrent_r. | |
1285 | * It is zero if d_getgrent_r is undef, and one of the | |
1286 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r | |
1287 | * is defined. | |
1288 | */ | |
1289 | #$d_getgrent_r HAS_GETGRENT_R /**/ | |
1290 | #define GETGRENT_R_PROTO $getgrent_r_proto /**/ | |
a845a0d4 | 1291 | |
08c92000 MB |
1292 | /* HAS_GETGRGID_R: |
1293 | * This symbol, if defined, indicates that the getgrgid_r routine | |
1294 | * is available to getgrgid re-entrantly. | |
a845a0d4 | 1295 | */ |
08c92000 MB |
1296 | /* GETGRGID_R_PROTO: |
1297 | * This symbol encodes the prototype of getgrgid_r. | |
1298 | * It is zero if d_getgrgid_r is undef, and one of the | |
1299 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r | |
1300 | * is defined. | |
a845a0d4 | 1301 | */ |
08c92000 MB |
1302 | #$d_getgrgid_r HAS_GETGRGID_R /**/ |
1303 | #define GETGRGID_R_PROTO $getgrgid_r_proto /**/ | |
a845a0d4 | 1304 | |
08c92000 MB |
1305 | /* HAS_GETGRNAM_R: |
1306 | * This symbol, if defined, indicates that the getgrnam_r routine | |
1307 | * is available to getgrnam re-entrantly. | |
a845a0d4 | 1308 | */ |
08c92000 MB |
1309 | /* GETGRNAM_R_PROTO: |
1310 | * This symbol encodes the prototype of getgrnam_r. | |
1311 | * It is zero if d_getgrnam_r is undef, and one of the | |
1312 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r | |
1313 | * is defined. | |
a845a0d4 | 1314 | */ |
08c92000 MB |
1315 | #$d_getgrnam_r HAS_GETGRNAM_R /**/ |
1316 | #define GETGRNAM_R_PROTO $getgrnam_r_proto /**/ | |
a845a0d4 | 1317 | |
eaf812ae MB |
1318 | /* HAS_GETHOSTBYADDR_R: |
1319 | * This symbol, if defined, indicates that the gethostbyaddr_r routine | |
1320 | * is available to gethostbyaddr re-entrantly. | |
a845a0d4 | 1321 | */ |
eaf812ae MB |
1322 | /* GETHOSTBYADDR_R_PROTO: |
1323 | * This symbol encodes the prototype of gethostbyaddr_r. | |
1324 | * It is zero if d_gethostbyaddr_r is undef, and one of the | |
1325 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyaddr_r | |
1326 | * is defined. | |
a845a0d4 | 1327 | */ |
eaf812ae MB |
1328 | #$d_gethostbyaddr_r HAS_GETHOSTBYADDR_R /**/ |
1329 | #define GETHOSTBYADDR_R_PROTO $gethostbyaddr_r_proto /**/ | |
08c92000 | 1330 | |
eaf812ae MB |
1331 | /* HAS_GETHOSTBYNAME_R: |
1332 | * This symbol, if defined, indicates that the gethostbyname_r routine | |
1333 | * is available to gethostbyname re-entrantly. | |
a845a0d4 | 1334 | */ |
eaf812ae MB |
1335 | /* GETHOSTBYNAME_R_PROTO: |
1336 | * This symbol encodes the prototype of gethostbyname_r. | |
1337 | * It is zero if d_gethostbyname_r is undef, and one of the | |
1338 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyname_r | |
08c92000 | 1339 | * is defined. |
a845a0d4 | 1340 | */ |
eaf812ae MB |
1341 | #$d_gethostbyname_r HAS_GETHOSTBYNAME_R /**/ |
1342 | #define GETHOSTBYNAME_R_PROTO $gethostbyname_r_proto /**/ | |
1343 | ||
1344 | /* HAS_GETHOSTENT_R: | |
1345 | * This symbol, if defined, indicates that the gethostent_r routine | |
1346 | * is available to gethostent re-entrantly. | |
1347 | */ | |
1348 | /* GETHOSTENT_R_PROTO: | |
1349 | * This symbol encodes the prototype of gethostent_r. | |
1350 | * It is zero if d_gethostent_r is undef, and one of the | |
1351 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostent_r | |
1352 | * is defined. | |
1353 | */ | |
1354 | #$d_gethostent_r HAS_GETHOSTENT_R /**/ | |
1355 | #define GETHOSTENT_R_PROTO $gethostent_r_proto /**/ | |
1356 | ||
eaf812ae MB |
1357 | /* HAS_GETLOGIN_R: |
1358 | * This symbol, if defined, indicates that the getlogin_r routine | |
1359 | * is available to getlogin re-entrantly. | |
1360 | */ | |
1361 | /* GETLOGIN_R_PROTO: | |
1362 | * This symbol encodes the prototype of getlogin_r. | |
1363 | * It is zero if d_getlogin_r is undef, and one of the | |
1364 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r | |
1365 | * is defined. | |
1366 | */ | |
1367 | #$d_getlogin_r HAS_GETLOGIN_R /**/ | |
1368 | #define GETLOGIN_R_PROTO $getlogin_r_proto /**/ | |
1369 | ||
eaf812ae MB |
1370 | /* HAS_GETNETBYADDR_R: |
1371 | * This symbol, if defined, indicates that the getnetbyaddr_r routine | |
1372 | * is available to getnetbyaddr re-entrantly. | |
1373 | */ | |
1374 | /* GETNETBYADDR_R_PROTO: | |
1375 | * This symbol encodes the prototype of getnetbyaddr_r. | |
1376 | * It is zero if d_getnetbyaddr_r is undef, and one of the | |
1377 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyaddr_r | |
1378 | * is defined. | |
1379 | */ | |
1380 | #$d_getnetbyaddr_r HAS_GETNETBYADDR_R /**/ | |
1381 | #define GETNETBYADDR_R_PROTO $getnetbyaddr_r_proto /**/ | |
1382 | ||
1383 | /* HAS_GETNETBYNAME_R: | |
1384 | * This symbol, if defined, indicates that the getnetbyname_r routine | |
1385 | * is available to getnetbyname re-entrantly. | |
1386 | */ | |
1387 | /* GETNETBYNAME_R_PROTO: | |
1388 | * This symbol encodes the prototype of getnetbyname_r. | |
1389 | * It is zero if d_getnetbyname_r is undef, and one of the | |
1390 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyname_r | |
1391 | * is defined. | |
1392 | */ | |
1393 | #$d_getnetbyname_r HAS_GETNETBYNAME_R /**/ | |
1394 | #define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/ | |
1395 | ||
1396 | /* HAS_GETNETENT_R: | |
1397 | * This symbol, if defined, indicates that the getnetent_r routine | |
1398 | * is available to getnetent re-entrantly. | |
1399 | */ | |
1400 | /* GETNETENT_R_PROTO: | |
1401 | * This symbol encodes the prototype of getnetent_r. | |
1402 | * It is zero if d_getnetent_r is undef, and one of the | |
1403 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetent_r | |
1404 | * is defined. | |
1405 | */ | |
1406 | #$d_getnetent_r HAS_GETNETENT_R /**/ | |
1407 | #define GETNETENT_R_PROTO $getnetent_r_proto /**/ | |
1408 | ||
b8677e3b MB |
1409 | /* HAS_GETPAGESIZE: |
1410 | * This symbol, if defined, indicates that the getpagesize system call | |
1411 | * is available to get system page size, which is the granularity of | |
1412 | * many memory management calls. | |
a845a0d4 | 1413 | */ |
b8677e3b | 1414 | #$d_getpagsz HAS_GETPAGESIZE /**/ |
a845a0d4 | 1415 | |
eaf812ae MB |
1416 | /* HAS_GETPROTOBYNAME_R: |
1417 | * This symbol, if defined, indicates that the getprotobyname_r routine | |
1418 | * is available to getprotobyname re-entrantly. | |
1419 | */ | |
1420 | /* GETPROTOBYNAME_R_PROTO: | |
1421 | * This symbol encodes the prototype of getprotobyname_r. | |
1422 | * It is zero if d_getprotobyname_r is undef, and one of the | |
1423 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobyname_r | |
1424 | * is defined. | |
1425 | */ | |
1426 | #$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/ | |
1427 | #define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/ | |
1428 | ||
1429 | /* HAS_GETPROTOBYNUMBER_R: | |
1430 | * This symbol, if defined, indicates that the getprotobynumber_r routine | |
1431 | * is available to getprotobynumber re-entrantly. | |
1432 | */ | |
1433 | /* GETPROTOBYNUMBER_R_PROTO: | |
1434 | * This symbol encodes the prototype of getprotobynumber_r. | |
1435 | * It is zero if d_getprotobynumber_r is undef, and one of the | |
1436 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobynumber_r | |
1437 | * is defined. | |
1438 | */ | |
1439 | #$d_getprotobynumber_r HAS_GETPROTOBYNUMBER_R /**/ | |
1440 | #define GETPROTOBYNUMBER_R_PROTO $getprotobynumber_r_proto /**/ | |
1441 | ||
1442 | /* HAS_GETPROTOENT_R: | |
1443 | * This symbol, if defined, indicates that the getprotoent_r routine | |
1444 | * is available to getprotoent re-entrantly. | |
1445 | */ | |
1446 | /* GETPROTOENT_R_PROTO: | |
1447 | * This symbol encodes the prototype of getprotoent_r. | |
1448 | * It is zero if d_getprotoent_r is undef, and one of the | |
1449 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotoent_r | |
1450 | * is defined. | |
1451 | */ | |
1452 | #$d_getprotoent_r HAS_GETPROTOENT_R /**/ | |
1453 | #define GETPROTOENT_R_PROTO $getprotoent_r_proto /**/ | |
1454 | ||
08c92000 MB |
1455 | /* HAS_GETPWENT_R: |
1456 | * This symbol, if defined, indicates that the getpwent_r routine | |
1457 | * is available to getpwent re-entrantly. | |
a845a0d4 | 1458 | */ |
08c92000 MB |
1459 | /* GETPWENT_R_PROTO: |
1460 | * This symbol encodes the prototype of getpwent_r. | |
1461 | * It is zero if d_getpwent_r is undef, and one of the | |
1462 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r | |
1463 | * is defined. | |
a845a0d4 | 1464 | */ |
08c92000 MB |
1465 | #$d_getpwent_r HAS_GETPWENT_R /**/ |
1466 | #define GETPWENT_R_PROTO $getpwent_r_proto /**/ | |
a845a0d4 | 1467 | |
08c92000 MB |
1468 | /* HAS_GETPWNAM_R: |
1469 | * This symbol, if defined, indicates that the getpwnam_r routine | |
1470 | * is available to getpwnam re-entrantly. | |
a845a0d4 | 1471 | */ |
08c92000 MB |
1472 | /* GETPWNAM_R_PROTO: |
1473 | * This symbol encodes the prototype of getpwnam_r. | |
1474 | * It is zero if d_getpwnam_r is undef, and one of the | |
1475 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r | |
1476 | * is defined. | |
a845a0d4 | 1477 | */ |
08c92000 MB |
1478 | #$d_getpwnam_r HAS_GETPWNAM_R /**/ |
1479 | #define GETPWNAM_R_PROTO $getpwnam_r_proto /**/ | |
a845a0d4 | 1480 | |
08c92000 MB |
1481 | /* HAS_GETPWUID_R: |
1482 | * This symbol, if defined, indicates that the getpwuid_r routine | |
1483 | * is available to getpwuid re-entrantly. | |
10bc17b6 | 1484 | */ |
08c92000 MB |
1485 | /* GETPWUID_R_PROTO: |
1486 | * This symbol encodes the prototype of getpwuid_r. | |
1487 | * It is zero if d_getpwuid_r is undef, and one of the | |
1488 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r | |
1489 | * is defined. | |
a845a0d4 | 1490 | */ |
08c92000 MB |
1491 | #$d_getpwuid_r HAS_GETPWUID_R /**/ |
1492 | #define GETPWUID_R_PROTO $getpwuid_r_proto /**/ | |
a845a0d4 | 1493 | |
eaf812ae MB |
1494 | /* HAS_GETSERVBYNAME_R: |
1495 | * This symbol, if defined, indicates that the getservbyname_r routine | |
1496 | * is available to getservbyname re-entrantly. | |
1497 | */ | |
1498 | /* GETSERVBYNAME_R_PROTO: | |
1499 | * This symbol encodes the prototype of getservbyname_r. | |
1500 | * It is zero if d_getservbyname_r is undef, and one of the | |
1501 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyname_r | |
1502 | * is defined. | |
1503 | */ | |
1504 | #$d_getservbyname_r HAS_GETSERVBYNAME_R /**/ | |
1505 | #define GETSERVBYNAME_R_PROTO $getservbyname_r_proto /**/ | |
1506 | ||
1507 | /* HAS_GETSERVBYPORT_R: | |
1508 | * This symbol, if defined, indicates that the getservbyport_r routine | |
1509 | * is available to getservbyport re-entrantly. | |
1510 | */ | |
1511 | /* GETSERVBYPORT_R_PROTO: | |
1512 | * This symbol encodes the prototype of getservbyport_r. | |
1513 | * It is zero if d_getservbyport_r is undef, and one of the | |
1514 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyport_r | |
1515 | * is defined. | |
1516 | */ | |
1517 | #$d_getservbyport_r HAS_GETSERVBYPORT_R /**/ | |
1518 | #define GETSERVBYPORT_R_PROTO $getservbyport_r_proto /**/ | |
1519 | ||
1520 | /* HAS_GETSERVENT_R: | |
1521 | * This symbol, if defined, indicates that the getservent_r routine | |
1522 | * is available to getservent re-entrantly. | |
1523 | */ | |
1524 | /* GETSERVENT_R_PROTO: | |
1525 | * This symbol encodes the prototype of getservent_r. | |
1526 | * It is zero if d_getservent_r is undef, and one of the | |
1527 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservent_r | |
1528 | * is defined. | |
1529 | */ | |
1530 | #$d_getservent_r HAS_GETSERVENT_R /**/ | |
1531 | #define GETSERVENT_R_PROTO $getservent_r_proto /**/ | |
1532 | ||
08c92000 MB |
1533 | /* HAS_GETSPNAM_R: |
1534 | * This symbol, if defined, indicates that the getspnam_r routine | |
1535 | * is available to getspnam re-entrantly. | |
a845a0d4 | 1536 | */ |
08c92000 MB |
1537 | /* GETSPNAM_R_PROTO: |
1538 | * This symbol encodes the prototype of getspnam_r. | |
1539 | * It is zero if d_getspnam_r is undef, and one of the | |
1540 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r | |
1541 | * is defined. | |
a845a0d4 | 1542 | */ |
08c92000 MB |
1543 | #$d_getspnam_r HAS_GETSPNAM_R /**/ |
1544 | #define GETSPNAM_R_PROTO $getspnam_r_proto /**/ | |
a845a0d4 | 1545 | |
08c92000 MB |
1546 | /* HAS_GMTIME_R: |
1547 | * This symbol, if defined, indicates that the gmtime_r routine | |
1548 | * is available to gmtime re-entrantly. | |
1549 | */ | |
1550 | /* GMTIME_R_PROTO: | |
1551 | * This symbol encodes the prototype of gmtime_r. | |
1552 | * It is zero if d_gmtime_r is undef, and one of the | |
1553 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r | |
1554 | * is defined. | |
1555 | */ | |
1556 | #$d_gmtime_r HAS_GMTIME_R /**/ | |
1557 | #define GMTIME_R_PROTO $gmtime_r_proto /**/ | |
1558 | ||
b8677e3b MB |
1559 | /* HAS_GNULIBC: |
1560 | * This symbol, if defined, indicates to the C program that | |
1561 | * the GNU C library is being used. A better check is to use | |
1562 | * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc. | |
a845a0d4 | 1563 | */ |
b8677e3b MB |
1564 | #$d_gnulibc HAS_GNULIBC /**/ |
1565 | #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) | |
1566 | # define _GNU_SOURCE | |
1567 | #endif | |
1568 | ||
1569 | /* HAS_ISASCII: | |
1570 | * This manifest constant lets the C program know that isascii | |
1571 | * is available. | |
a845a0d4 | 1572 | */ |
b8677e3b MB |
1573 | #$d_isascii HAS_ISASCII /**/ |
1574 | ||
1575 | /* HAS_LCHOWN: | |
1576 | * This symbol, if defined, indicates that the lchown routine is | |
1577 | * available to operate on a symbolic link (instead of following the | |
1578 | * link). | |
a845a0d4 | 1579 | */ |
b8677e3b | 1580 | #$d_lchown HAS_LCHOWN /**/ |
a845a0d4 | 1581 | |
08c92000 MB |
1582 | /* HAS_LOCALTIME_R: |
1583 | * This symbol, if defined, indicates that the localtime_r routine | |
1584 | * is available to localtime re-entrantly. | |
1585 | */ | |
f025e94b MB |
1586 | /* LOCALTIME_R_NEEDS_TZSET: |
1587 | * Many libc's localtime_r implementations do not call tzset, | |
1588 | * making them differ from localtime(), and making timezone | |
47d847ba | 1589 | * changes using \$ENV{TZ} without explicitly calling tzset |
f025e94b MB |
1590 | * impossible. This symbol makes us call tzset before localtime_r |
1591 | */ | |
8572b25d BH |
1592 | #$d_localtime_r_needs_tzset LOCALTIME_R_NEEDS_TZSET /**/ |
1593 | #ifdef LOCALTIME_R_NEEDS_TZSET | |
1594 | #define L_R_TZSET tzset(), | |
1595 | #else | |
1596 | #define L_R_TZSET | |
1597 | #endif | |
1598 | ||
08c92000 MB |
1599 | /* LOCALTIME_R_PROTO: |
1600 | * This symbol encodes the prototype of localtime_r. | |
1601 | * It is zero if d_localtime_r is undef, and one of the | |
1602 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r | |
1603 | * is defined. | |
1604 | */ | |
1605 | #$d_localtime_r HAS_LOCALTIME_R /**/ | |
1606 | #define LOCALTIME_R_PROTO $localtime_r_proto /**/ | |
1607 | ||
b8677e3b MB |
1608 | /* HAS_OPEN3: |
1609 | * This manifest constant lets the C program know that the three | |
1610 | * argument form of open(2) is available. | |
08c92000 | 1611 | */ |
b8677e3b | 1612 | #$d_open3 HAS_OPEN3 /**/ |
08c92000 | 1613 | |
b8677e3b MB |
1614 | /* OLD_PTHREAD_CREATE_JOINABLE: |
1615 | * This symbol, if defined, indicates how to create pthread | |
1616 | * in joinable (aka undetached) state. NOTE: not defined | |
1617 | * if pthread.h already has defined PTHREAD_CREATE_JOINABLE | |
1618 | * (the new version of the constant). | |
1619 | * If defined, known values are PTHREAD_CREATE_UNDETACHED | |
1620 | * and __UNDETACHED. | |
a845a0d4 | 1621 | */ |
08c92000 | 1622 | #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/ |
a845a0d4 | 1623 | |
eaf812ae MB |
1624 | /* HAS_PTHREAD_ATFORK: |
1625 | * This symbol, if defined, indicates that the pthread_atfork routine | |
1626 | * is available to setup fork handlers. | |
1627 | */ | |
1628 | #$d_pthread_atfork HAS_PTHREAD_ATFORK /**/ | |
1629 | ||
08c92000 | 1630 | /* HAS_PTHREAD_YIELD: |
c0bacbef | 1631 | * This symbol, if defined, indicates that the pthread_yield |
08c92000 MB |
1632 | * routine is available to yield the execution of the current |
1633 | * thread. sched_yield is preferable to pthread_yield. | |
a845a0d4 | 1634 | */ |
08c92000 MB |
1635 | /* SCHED_YIELD: |
1636 | * This symbol defines the way to yield the execution of | |
1637 | * the current thread. Known ways are sched_yield, | |
1638 | * pthread_yield, and pthread_yield with NULL. | |
a845a0d4 | 1639 | */ |
08c92000 MB |
1640 | /* HAS_SCHED_YIELD: |
1641 | * This symbol, if defined, indicates that the sched_yield | |
1642 | * routine is available to yield the execution of the current | |
1643 | * thread. sched_yield is preferable to pthread_yield. | |
1644 | */ | |
1645 | #$d_pthread_yield HAS_PTHREAD_YIELD /**/ | |
1646 | #define SCHED_YIELD $sched_yield /**/ | |
1647 | #$d_sched_yield HAS_SCHED_YIELD /**/ | |
a845a0d4 | 1648 | |
08c92000 MB |
1649 | /* HAS_RANDOM_R: |
1650 | * This symbol, if defined, indicates that the random_r routine | |
1651 | * is available to random re-entrantly. | |
a845a0d4 | 1652 | */ |
08c92000 MB |
1653 | /* RANDOM_R_PROTO: |
1654 | * This symbol encodes the prototype of random_r. | |
1655 | * It is zero if d_random_r is undef, and one of the | |
1656 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r | |
1657 | * is defined. | |
a845a0d4 | 1658 | */ |
08c92000 MB |
1659 | #$d_random_r HAS_RANDOM_R /**/ |
1660 | #define RANDOM_R_PROTO $random_r_proto /**/ | |
a845a0d4 | 1661 | |
eaf812ae MB |
1662 | /* HAS_READDIR64_R: |
1663 | * This symbol, if defined, indicates that the readdir64_r routine | |
1664 | * is available to readdir64 re-entrantly. | |
1665 | */ | |
1666 | /* READDIR64_R_PROTO: | |
1667 | * This symbol encodes the prototype of readdir64_r. | |
1668 | * It is zero if d_readdir64_r is undef, and one of the | |
1669 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r | |
1670 | * is defined. | |
1671 | */ | |
1672 | #$d_readdir64_r HAS_READDIR64_R /**/ | |
1673 | #define READDIR64_R_PROTO $readdir64_r_proto /**/ | |
1674 | ||
08c92000 MB |
1675 | /* HAS_READDIR_R: |
1676 | * This symbol, if defined, indicates that the readdir_r routine | |
1677 | * is available to readdir re-entrantly. | |
a845a0d4 | 1678 | */ |
08c92000 MB |
1679 | /* READDIR_R_PROTO: |
1680 | * This symbol encodes the prototype of readdir_r. | |
1681 | * It is zero if d_readdir_r is undef, and one of the | |
1682 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r | |
1683 | * is defined. | |
1684 | */ | |
1685 | #$d_readdir_r HAS_READDIR_R /**/ | |
1686 | #define READDIR_R_PROTO $readdir_r_proto /**/ | |
a845a0d4 | 1687 | |
b8677e3b MB |
1688 | /* HAS_SAFE_BCOPY: |
1689 | * This symbol, if defined, indicates that the bcopy routine is available | |
1690 | * to copy potentially overlapping memory blocks. Normally, you should | |
1691 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
1692 | * own version. | |
08c92000 | 1693 | */ |
b8677e3b | 1694 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
08c92000 | 1695 | |
b8677e3b MB |
1696 | /* HAS_SAFE_MEMCPY: |
1697 | * This symbol, if defined, indicates that the memcpy routine is available | |
1698 | * to copy potentially overlapping memory blocks. If you need to | |
1699 | * copy overlapping memory blocks, you should check HAS_MEMMOVE and | |
1700 | * use memmove() instead, if available. | |
08c92000 | 1701 | */ |
b8677e3b MB |
1702 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
1703 | ||
1704 | /* HAS_SANE_MEMCMP: | |
1705 | * This symbol, if defined, indicates that the memcmp routine is available | |
1706 | * and can be used to compare relative magnitudes of chars with their high | |
1707 | * bits set. If it is not defined, roll your own version. | |
1708 | */ | |
1709 | #$d_sanemcmp HAS_SANE_MEMCMP /**/ | |
08c92000 MB |
1710 | |
1711 | /* HAS_SETGRENT_R: | |
1712 | * This symbol, if defined, indicates that the setgrent_r routine | |
1713 | * is available to setgrent re-entrantly. | |
1714 | */ | |
1715 | /* SETGRENT_R_PROTO: | |
1716 | * This symbol encodes the prototype of setgrent_r. | |
1717 | * It is zero if d_setgrent_r is undef, and one of the | |
1718 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r | |
1719 | * is defined. | |
1720 | */ | |
1721 | #$d_setgrent_r HAS_SETGRENT_R /**/ | |
1722 | #define SETGRENT_R_PROTO $setgrent_r_proto /**/ | |
1723 | ||
eaf812ae MB |
1724 | /* HAS_SETHOSTENT_R: |
1725 | * This symbol, if defined, indicates that the sethostent_r routine | |
1726 | * is available to sethostent re-entrantly. | |
1727 | */ | |
1728 | /* SETHOSTENT_R_PROTO: | |
1729 | * This symbol encodes the prototype of sethostent_r. | |
1730 | * It is zero if d_sethostent_r is undef, and one of the | |
1731 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r | |
1732 | * is defined. | |
1733 | */ | |
1734 | #$d_sethostent_r HAS_SETHOSTENT_R /**/ | |
1735 | #define SETHOSTENT_R_PROTO $sethostent_r_proto /**/ | |
1736 | ||
eaf812ae MB |
1737 | /* HAS_SETLOCALE_R: |
1738 | * This symbol, if defined, indicates that the setlocale_r routine | |
1739 | * is available to setlocale re-entrantly. | |
1740 | */ | |
1741 | /* SETLOCALE_R_PROTO: | |
1742 | * This symbol encodes the prototype of setlocale_r. | |
1743 | * It is zero if d_setlocale_r is undef, and one of the | |
1744 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r | |
1745 | * is defined. | |
1746 | */ | |
1747 | #$d_setlocale_r HAS_SETLOCALE_R /**/ | |
1748 | #define SETLOCALE_R_PROTO $setlocale_r_proto /**/ | |
1749 | ||
eaf812ae MB |
1750 | /* HAS_SETNETENT_R: |
1751 | * This symbol, if defined, indicates that the setnetent_r routine | |
1752 | * is available to setnetent re-entrantly. | |
1753 | */ | |
1754 | /* SETNETENT_R_PROTO: | |
1755 | * This symbol encodes the prototype of setnetent_r. | |
1756 | * It is zero if d_setnetent_r is undef, and one of the | |
1757 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r | |
1758 | * is defined. | |
1759 | */ | |
1760 | #$d_setnetent_r HAS_SETNETENT_R /**/ | |
1761 | #define SETNETENT_R_PROTO $setnetent_r_proto /**/ | |
1762 | ||
eaf812ae MB |
1763 | /* HAS_SETPROTOENT_R: |
1764 | * This symbol, if defined, indicates that the setprotoent_r routine | |
1765 | * is available to setprotoent re-entrantly. | |
1766 | */ | |
1767 | /* SETPROTOENT_R_PROTO: | |
1768 | * This symbol encodes the prototype of setprotoent_r. | |
1769 | * It is zero if d_setprotoent_r is undef, and one of the | |
1770 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r | |
1771 | * is defined. | |
1772 | */ | |
1773 | #$d_setprotoent_r HAS_SETPROTOENT_R /**/ | |
1774 | #define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/ | |
1775 | ||
08c92000 MB |
1776 | /* HAS_SETPWENT_R: |
1777 | * This symbol, if defined, indicates that the setpwent_r routine | |
1778 | * is available to setpwent re-entrantly. | |
1779 | */ | |
1780 | /* SETPWENT_R_PROTO: | |
1781 | * This symbol encodes the prototype of setpwent_r. | |
1782 | * It is zero if d_setpwent_r is undef, and one of the | |
1783 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r | |
1784 | * is defined. | |
1785 | */ | |
1786 | #$d_setpwent_r HAS_SETPWENT_R /**/ | |
1787 | #define SETPWENT_R_PROTO $setpwent_r_proto /**/ | |
1788 | ||
eaf812ae MB |
1789 | /* HAS_SETSERVENT_R: |
1790 | * This symbol, if defined, indicates that the setservent_r routine | |
1791 | * is available to setservent re-entrantly. | |
1792 | */ | |
1793 | /* SETSERVENT_R_PROTO: | |
1794 | * This symbol encodes the prototype of setservent_r. | |
1795 | * It is zero if d_setservent_r is undef, and one of the | |
1796 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r | |
1797 | * is defined. | |
1798 | */ | |
1799 | #$d_setservent_r HAS_SETSERVENT_R /**/ | |
1800 | #define SETSERVENT_R_PROTO $setservent_r_proto /**/ | |
1801 | ||
b8677e3b MB |
1802 | /* HAS_SIGACTION: |
1803 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
1804 | * is available. | |
eaf812ae | 1805 | */ |
b8677e3b | 1806 | #$d_sigaction HAS_SIGACTION /**/ |
eaf812ae | 1807 | |
b8677e3b MB |
1808 | /* HAS_SIGSETJMP: |
1809 | * This variable indicates to the C program that the sigsetjmp() | |
1810 | * routine is available to save the calling process's registers | |
1811 | * and stack environment for later use by siglongjmp(), and | |
1812 | * to optionally save the process's signal mask. See | |
1813 | * Sigjmp_buf, Sigsetjmp, and Siglongjmp. | |
10bc17b6 | 1814 | */ |
b8677e3b MB |
1815 | /* Sigjmp_buf: |
1816 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. | |
c7aff470 | 1817 | */ |
b8677e3b MB |
1818 | /* Sigsetjmp: |
1819 | * This macro is used in the same way as sigsetjmp(), but will invoke | |
1820 | * traditional setjmp() if sigsetjmp isn't available. | |
1821 | * See HAS_SIGSETJMP. | |
b363b713 | 1822 | */ |
b8677e3b MB |
1823 | /* Siglongjmp: |
1824 | * This macro is used in the same way as siglongjmp(), but will invoke | |
1825 | * traditional longjmp() if siglongjmp isn't available. | |
1826 | * See HAS_SIGSETJMP. | |
a7fea17f | 1827 | */ |
b8677e3b MB |
1828 | #$d_sigsetjmp HAS_SIGSETJMP /**/ |
1829 | #ifdef HAS_SIGSETJMP | |
1830 | #define Sigjmp_buf sigjmp_buf | |
1831 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) | |
1832 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) | |
1833 | #else | |
1834 | #define Sigjmp_buf jmp_buf | |
1835 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) | |
1836 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) | |
1837 | #endif | |
44b94491 | 1838 | |
08c92000 MB |
1839 | /* HAS_SRAND48_R: |
1840 | * This symbol, if defined, indicates that the srand48_r routine | |
1841 | * is available to srand48 re-entrantly. | |
1842 | */ | |
1843 | /* SRAND48_R_PROTO: | |
1844 | * This symbol encodes the prototype of srand48_r. | |
1845 | * It is zero if d_srand48_r is undef, and one of the | |
1846 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r | |
1847 | * is defined. | |
1848 | */ | |
1849 | #$d_srand48_r HAS_SRAND48_R /**/ | |
1850 | #define SRAND48_R_PROTO $srand48_r_proto /**/ | |
1851 | ||
1852 | /* HAS_SRANDOM_R: | |
1853 | * This symbol, if defined, indicates that the srandom_r routine | |
1854 | * is available to srandom re-entrantly. | |
1855 | */ | |
1856 | /* SRANDOM_R_PROTO: | |
1857 | * This symbol encodes the prototype of srandom_r. | |
1858 | * It is zero if d_srandom_r is undef, and one of the | |
1859 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r | |
1860 | * is defined. | |
1861 | */ | |
1862 | #$d_srandom_r HAS_SRANDOM_R /**/ | |
1863 | #define SRANDOM_R_PROTO $srandom_r_proto /**/ | |
1864 | ||
b8677e3b MB |
1865 | /* USE_STDIO_PTR: |
1866 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
1867 | * of the stdio FILE structure can be used to access the stdio buffer | |
1868 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
1869 | * and FILE_cnt(fp) macros will also be defined and should be used | |
1870 | * to access these fields. | |
a33c94aa | 1871 | */ |
b8677e3b MB |
1872 | /* FILE_ptr: |
1873 | * This macro is used to access the _ptr field (or equivalent) of the | |
1874 | * FILE structure pointed to by its argument. This macro will always be | |
1875 | * defined if USE_STDIO_PTR is defined. | |
43dddb59 | 1876 | */ |
b8677e3b MB |
1877 | /* STDIO_PTR_LVALUE: |
1878 | * This symbol is defined if the FILE_ptr macro can be used as an | |
1879 | * lvalue. | |
08c92000 | 1880 | */ |
b8677e3b MB |
1881 | /* FILE_cnt: |
1882 | * This macro is used to access the _cnt field (or equivalent) of the | |
1883 | * FILE structure pointed to by its argument. This macro will always be | |
1884 | * defined if USE_STDIO_PTR is defined. | |
08c92000 | 1885 | */ |
b8677e3b MB |
1886 | /* STDIO_CNT_LVALUE: |
1887 | * This symbol is defined if the FILE_cnt macro can be used as an | |
1888 | * lvalue. | |
08c92000 | 1889 | */ |
b8677e3b MB |
1890 | /* STDIO_PTR_LVAL_SETS_CNT: |
1891 | * This symbol is defined if using the FILE_ptr macro as an lvalue | |
1892 | * to increase the pointer by n has the side effect of decreasing the | |
1893 | * value of File_cnt(fp) by n. | |
1894 | */ | |
1895 | /* STDIO_PTR_LVAL_NOCHANGE_CNT: | |
1896 | * This symbol is defined if using the FILE_ptr macro as an lvalue | |
1897 | * to increase the pointer by n leaves File_cnt(fp) unchanged. | |
1898 | */ | |
1899 | #$d_stdstdio USE_STDIO_PTR /**/ | |
1900 | #ifdef USE_STDIO_PTR | |
1901 | #define FILE_ptr(fp) $stdio_ptr | |
1902 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ | |
1903 | #define FILE_cnt(fp) $stdio_cnt | |
1904 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ | |
1905 | #$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/ | |
1906 | #$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/ | |
1907 | #endif | |
1908 | ||
1909 | /* USE_STDIO_BASE: | |
1910 | * This symbol is defined if the _base field (or similar) of the | |
1911 | * stdio FILE structure can be used to access the stdio buffer for | |
1912 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
1913 | * will also be defined and should be used to access this field. | |
1914 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
1915 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
1916 | * will never be defined unless USE_STDIO_PTR is. | |
1917 | */ | |
1918 | /* FILE_base: | |
1919 | * This macro is used to access the _base field (or equivalent) of the | |
1920 | * FILE structure pointed to by its argument. This macro will always be | |
1921 | * defined if USE_STDIO_BASE is defined. | |
1922 | */ | |
1923 | /* FILE_bufsiz: | |
1924 | * This macro is used to determine the number of bytes in the I/O | |
1925 | * buffer pointed to by _base field (or equivalent) of the FILE | |
1926 | * structure pointed to its argument. This macro will always be defined | |
1927 | * if USE_STDIO_BASE is defined. | |
1928 | */ | |
1929 | #$d_stdiobase USE_STDIO_BASE /**/ | |
1930 | #ifdef USE_STDIO_BASE | |
1931 | #define FILE_base(fp) $stdio_base | |
1932 | #define FILE_bufsiz(fp) $stdio_bufsiz | |
1933 | #endif | |
08c92000 MB |
1934 | |
1935 | /* HAS_STRERROR_R: | |
1936 | * This symbol, if defined, indicates that the strerror_r routine | |
1937 | * is available to strerror re-entrantly. | |
1938 | */ | |
1939 | /* STRERROR_R_PROTO: | |
1940 | * This symbol encodes the prototype of strerror_r. | |
1941 | * It is zero if d_strerror_r is undef, and one of the | |
1942 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r | |
1943 | * is defined. | |
1944 | */ | |
1945 | #$d_strerror_r HAS_STRERROR_R /**/ | |
1946 | #define STRERROR_R_PROTO $strerror_r_proto /**/ | |
1947 | ||
08c92000 MB |
1948 | /* HAS_TMPNAM_R: |
1949 | * This symbol, if defined, indicates that the tmpnam_r routine | |
1950 | * is available to tmpnam re-entrantly. | |
1951 | */ | |
1952 | /* TMPNAM_R_PROTO: | |
1953 | * This symbol encodes the prototype of tmpnam_r. | |
1954 | * It is zero if d_tmpnam_r is undef, and one of the | |
1955 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r | |
1956 | * is defined. | |
1957 | */ | |
1958 | #$d_tmpnam_r HAS_TMPNAM_R /**/ | |
1959 | #define TMPNAM_R_PROTO $tmpnam_r_proto /**/ | |
1960 | ||
eaf812ae MB |
1961 | /* HAS_TTYNAME_R: |
1962 | * This symbol, if defined, indicates that the ttyname_r routine | |
1963 | * is available to ttyname re-entrantly. | |
1964 | */ | |
1965 | /* TTYNAME_R_PROTO: | |
1966 | * This symbol encodes the prototype of ttyname_r. | |
1967 | * It is zero if d_ttyname_r is undef, and one of the | |
1968 | * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r | |
1969 | * is defined. | |
1970 | */ | |
1971 | #$d_ttyname_r HAS_TTYNAME_R /**/ | |
1972 | #define TTYNAME_R_PROTO $ttyname_r_proto /**/ | |
1973 | ||
b8677e3b MB |
1974 | /* HAS_VPRINTF: |
1975 | * This symbol, if defined, indicates that the vprintf routine is available | |
1976 | * to printf with a pointer to an argument list. If unavailable, you | |
1977 | * may need to write your own, probably in terms of _doprnt(). | |
c5f05a91 | 1978 | */ |
b8677e3b MB |
1979 | /* USE_CHAR_VSPRINTF: |
1980 | * This symbol is defined if this system has vsprintf() returning type | |
1981 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
1982 | * is up to the package author to declare vsprintf correctly based on the | |
1983 | * symbol. | |
233e16ce | 1984 | */ |
b8677e3b MB |
1985 | #$d_vprintf HAS_VPRINTF /**/ |
1986 | #$d_charvspr USE_CHAR_VSPRINTF /**/ | |
233e16ce | 1987 | |
b8677e3b MB |
1988 | /* DOUBLESIZE: |
1989 | * This symbol contains the size of a double, so that the C preprocessor | |
1990 | * can make decisions based on it. | |
a3540c92 | 1991 | */ |
b8677e3b | 1992 | #define DOUBLESIZE $doublesize /**/ |
a3540c92 | 1993 | |
b8677e3b MB |
1994 | /* I_MACH_CTHREADS: |
1995 | * This symbol, if defined, indicates to the C program that it should | |
1996 | * include <mach/cthreads.h>. | |
43dddb59 | 1997 | */ |
b8677e3b | 1998 | #$i_machcthr I_MACH_CTHREADS /**/ |
43dddb59 | 1999 | |
b8677e3b MB |
2000 | /* I_PTHREAD: |
2001 | * This symbol, if defined, indicates to the C program that it should | |
2002 | * include <pthread.h>. | |
08c92000 | 2003 | */ |
b8677e3b | 2004 | #$i_pthread I_PTHREAD /**/ |
08c92000 | 2005 | |
b8677e3b MB |
2006 | /* I_SYS_ACCESS: |
2007 | * This symbol, if defined, indicates to the C program that it should | |
2008 | * include <sys/access.h>. | |
08c92000 | 2009 | */ |
b8677e3b | 2010 | #$i_sysaccess I_SYS_ACCESS /**/ |
08c92000 | 2011 | |
b8677e3b MB |
2012 | /* I_SYS_SECURITY: |
2013 | * This symbol, if defined, indicates to the C program that it should | |
2014 | * include <sys/security.h>. | |
08c92000 | 2015 | */ |
b8677e3b | 2016 | #$i_syssecrt I_SYS_SECURITY /**/ |
08c92000 | 2017 | |
b8677e3b MB |
2018 | /* I_TIME: |
2019 | * This symbol, if defined, indicates to the C program that it should | |
2020 | * include <time.h>. | |
08c92000 | 2021 | */ |
b8677e3b MB |
2022 | /* I_SYS_TIME: |
2023 | * This symbol, if defined, indicates to the C program that it should | |
2024 | * include <sys/time.h>. | |
08c92000 | 2025 | */ |
b8677e3b | 2026 | /* I_SYS_TIME_KERNEL: |
43dddb59 | 2027 | * This symbol, if defined, indicates to the C program that it should |
b8677e3b | 2028 | * include <sys/time.h> with KERNEL defined. |
43dddb59 | 2029 | */ |
b8677e3b MB |
2030 | /* HAS_TM_TM_ZONE: |
2031 | * This symbol, if defined, indicates to the C program that | |
2032 | * the struct tm has a tm_zone field. | |
43dddb59 | 2033 | */ |
b8677e3b MB |
2034 | /* HAS_TM_TM_GMTOFF: |
2035 | * This symbol, if defined, indicates to the C program that | |
2036 | * the struct tm has a tm_gmtoff field. | |
43dddb59 | 2037 | */ |
b8677e3b MB |
2038 | #$i_time I_TIME /**/ |
2039 | #$i_systime I_SYS_TIME /**/ | |
2040 | #$i_systimek I_SYS_TIME_KERNEL /**/ | |
2041 | #$d_tm_tm_zone HAS_TM_TM_ZONE /**/ | |
2042 | #$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/ | |
43dddb59 | 2043 | |
b8677e3b MB |
2044 | /* PERL_INC_VERSION_LIST: |
2045 | * This variable specifies the list of subdirectories in over | |
2046 | * which perl.c:incpush() and lib/lib.pm will automatically | |
2047 | * search when adding directories to @INC, in a format suitable | |
2048 | * for a C initialization string. See the inc_version_list entry | |
2049 | * in Porting/Glossary for more details. | |
08c92000 | 2050 | */ |
b8677e3b | 2051 | #$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/ |
08c92000 | 2052 | |
b8677e3b MB |
2053 | /* INSTALL_USR_BIN_PERL: |
2054 | * This symbol, if defined, indicates that Perl is to be installed | |
2055 | * also as /usr/bin/perl. | |
08c92000 | 2056 | */ |
b8677e3b | 2057 | #$installusrbinperl INSTALL_USR_BIN_PERL /**/ |
08c92000 | 2058 | |
b8677e3b MB |
2059 | /* VAL_O_NONBLOCK: |
2060 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
2061 | * non-blocking I/O for the file descriptor. Note that there is no way | |
2062 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
2063 | * alternatively switch between blocking and non-blocking, use the | |
2064 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
eaf812ae | 2065 | */ |
b8677e3b MB |
2066 | /* VAL_EAGAIN: |
2067 | * This symbol holds the errno error code set by read() when no data was | |
2068 | * present on the non-blocking file descriptor. | |
1d8eaf8c | 2069 | */ |
b8677e3b MB |
2070 | /* RD_NODATA: |
2071 | * This symbol holds the return code from read() when no data is present | |
2072 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
2073 | * not defined, then you can't distinguish between no data and EOF by | |
2074 | * issuing a read(). You'll have to find another way to tell for sure! | |
e74475c7 | 2075 | */ |
b8677e3b MB |
2076 | /* EOF_NONBLOCK: |
2077 | * This symbol, if defined, indicates to the C program that a read() on | |
2078 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
2079 | * held in RD_NODATA (-1 usually, in that case!). | |
e74475c7 | 2080 | */ |
b8677e3b MB |
2081 | #define VAL_O_NONBLOCK $o_nonblock |
2082 | #define VAL_EAGAIN $eagain | |
2083 | #define RD_NODATA $rd_nodata | |
2084 | #$d_eofnblk EOF_NONBLOCK | |
eaf812ae | 2085 | |
b8677e3b MB |
2086 | /* PERL_OTHERLIBDIRS: |
2087 | * This variable contains a colon-separated set of paths for the perl | |
2088 | * binary to search for additional library files or modules. | |
2089 | * These directories will be tacked to the end of @INC. | |
2090 | * Perl will automatically search below each path for version- | |
2091 | * and architecture-specific directories. See PERL_INC_VERSION_LIST | |
2092 | * for more details. | |
08c92000 | 2093 | */ |
b8677e3b | 2094 | #$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/ |
08c92000 | 2095 | |
b8677e3b MB |
2096 | /* PRIVLIB: |
2097 | * This symbol contains the name of the private library for this package. | |
2098 | * The library is private in the sense that it needn't be in anyone's | |
2099 | * execution path, but it should be accessible by the world. The program | |
2100 | * should be prepared to do ~ expansion. | |
c0bacbef | 2101 | */ |
b8677e3b MB |
2102 | /* PRIVLIB_EXP: |
2103 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
2104 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
2105 | */ | |
2106 | #define PRIVLIB "$privlib" /**/ | |
2107 | #define PRIVLIB_EXP "$privlibexp" /**/ | |
c0bacbef | 2108 | |
b8677e3b MB |
2109 | /* PTRSIZE: |
2110 | * This symbol contains the size of a pointer, so that the C preprocessor | |
2111 | * can make decisions based on it. It will be sizeof(void *) if | |
2112 | * the compiler supports (void *); otherwise it will be | |
2113 | * sizeof(char *). | |
08c92000 | 2114 | */ |
b8677e3b | 2115 | #define PTRSIZE $ptrsize /**/ |
08c92000 | 2116 | |
b8677e3b MB |
2117 | /* Drand01: |
2118 | * This macro is to be used to generate uniformly distributed | |
2119 | * random numbers over the range [0., 1.[. You may have to supply | |
2120 | * an 'extern double drand48();' in your program since SunOS 4.1.3 | |
2121 | * doesn't provide you with anything relevant in its headers. | |
2122 | * See HAS_DRAND48_PROTO. | |
a33c94aa | 2123 | */ |
b8677e3b MB |
2124 | /* Rand_seed_t: |
2125 | * This symbol defines the type of the argument of the | |
2126 | * random seed function. | |
49dabb45 | 2127 | */ |
b8677e3b MB |
2128 | /* seedDrand01: |
2129 | * This symbol defines the macro to be used in seeding the | |
2130 | * random number generator (see Drand01). | |
3813c136 | 2131 | */ |
b8677e3b MB |
2132 | /* RANDBITS: |
2133 | * This symbol indicates how many bits are produced by the | |
2134 | * function used to generate normalized random numbers. | |
2135 | * Values include 15, 16, 31, and 48. | |
1acc7ade | 2136 | */ |
b8677e3b MB |
2137 | #define Drand01() $drand01 /**/ |
2138 | #define Rand_seed_t $randseedtype /**/ | |
2139 | #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/ | |
2140 | #define RANDBITS $randbits /**/ | |
2141 | ||
2142 | /* SITEARCH: | |
2143 | * This symbol contains the name of the private library for this package. | |
2144 | * The library is private in the sense that it needn't be in anyone's | |
2145 | * execution path, but it should be accessible by the world. The program | |
2146 | * should be prepared to do ~ expansion. | |
2147 | * The standard distribution will put nothing in this directory. | |
2148 | * After perl has been installed, users may install their own local | |
2149 | * architecture-dependent modules in this directory with | |
2150 | * MakeMaker Makefile.PL | |
2151 | * or equivalent. See INSTALL for details. | |
a33c94aa | 2152 | */ |
b8677e3b MB |
2153 | /* SITEARCH_EXP: |
2154 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
2155 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
10bc17b6 | 2156 | */ |
b8677e3b MB |
2157 | #$d_sitearch SITEARCH "$sitearch" /**/ |
2158 | #$d_sitearch SITEARCH_EXP "$sitearchexp" /**/ | |
2159 | ||
2160 | /* SITELIB: | |
2161 | * This symbol contains the name of the private library for this package. | |
2162 | * The library is private in the sense that it needn't be in anyone's | |
2163 | * execution path, but it should be accessible by the world. The program | |
2164 | * should be prepared to do ~ expansion. | |
2165 | * The standard distribution will put nothing in this directory. | |
2166 | * After perl has been installed, users may install their own local | |
2167 | * architecture-independent modules in this directory with | |
2168 | * MakeMaker Makefile.PL | |
2169 | * or equivalent. See INSTALL for details. | |
10bc17b6 | 2170 | */ |
b8677e3b MB |
2171 | /* SITELIB_EXP: |
2172 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
2173 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
10bc17b6 | 2174 | */ |
b8677e3b MB |
2175 | /* SITELIB_STEM: |
2176 | * This define is SITELIB_EXP with any trailing version-specific component | |
2177 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
2178 | * be tacked onto this variable to generate a list of directories to search. | |
10bc17b6 | 2179 | */ |
b8677e3b MB |
2180 | #define SITELIB "$sitelib" /**/ |
2181 | #define SITELIB_EXP "$sitelibexp" /**/ | |
2182 | #define SITELIB_STEM "$sitelib_stem" /**/ | |
10bc17b6 | 2183 | |
b8677e3b MB |
2184 | /* SSize_t: |
2185 | * This symbol holds the type used by functions that return | |
2186 | * a count of bytes or an error condition. It must be a signed type. | |
2187 | * It is usually ssize_t, but may be long or int, etc. | |
2188 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
2189 | * to get any typedef'ed information. | |
2190 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
10bc17b6 | 2191 | */ |
b8677e3b | 2192 | #define SSize_t $ssizetype /* signed count of bytes */ |
08c92000 | 2193 | |
b8677e3b MB |
2194 | /* USE_ITHREADS: |
2195 | * This symbol, if defined, indicates that Perl should be built to | |
2196 | * use the interpreter-based threading implementation. | |
a33c94aa | 2197 | */ |
b8677e3b MB |
2198 | /* USE_5005THREADS: |
2199 | * This symbol, if defined, indicates that Perl should be built to | |
2200 | * use the 5.005-based threading implementation. | |
2201 | * Only valid up to 5.8.x. | |
4e0554ec | 2202 | */ |
b8677e3b MB |
2203 | /* OLD_PTHREADS_API: |
2204 | * This symbol, if defined, indicates that Perl should | |
2205 | * be built to use the old draft POSIX threads API. | |
eaf812ae | 2206 | */ |
b8677e3b MB |
2207 | /* USE_REENTRANT_API: |
2208 | * This symbol, if defined, indicates that Perl should | |
2209 | * try to use the various _r versions of library functions. | |
2210 | * This is extremely experimental. | |
eaf812ae | 2211 | */ |
b8677e3b MB |
2212 | #$use5005threads USE_5005THREADS /**/ |
2213 | #$useithreads USE_ITHREADS /**/ | |
2214 | #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) | |
2215 | #define USE_THREADS /* until src is revised*/ | |
2216 | #endif | |
2217 | #$d_oldpthreads OLD_PTHREADS_API /**/ | |
2218 | #$usereentrant USE_REENTRANT_API /**/ | |
eaf812ae | 2219 | |
b8677e3b MB |
2220 | /* PERL_VENDORARCH: |
2221 | * If defined, this symbol contains the name of a private library. | |
2222 | * The library is private in the sense that it needn't be in anyone's | |
2223 | * execution path, but it should be accessible by the world. | |
2224 | * It may have a ~ on the front. | |
2225 | * The standard distribution will put nothing in this directory. | |
2226 | * Vendors who distribute perl may wish to place their own | |
2227 | * architecture-dependent modules and extensions in this directory with | |
2228 | * MakeMaker Makefile.PL INSTALLDIRS=vendor | |
2229 | * or equivalent. See INSTALL for details. | |
36adc09b | 2230 | */ |
b8677e3b MB |
2231 | /* PERL_VENDORARCH_EXP: |
2232 | * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used | |
2233 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
a33c94aa | 2234 | */ |
b8677e3b MB |
2235 | #$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ |
2236 | #$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ | |
a33c94aa | 2237 | |
b8677e3b MB |
2238 | /* PERL_VENDORLIB_EXP: |
2239 | * This symbol contains the ~name expanded version of VENDORLIB, to be used | |
2240 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
15b61c98 | 2241 | */ |
b8677e3b MB |
2242 | /* PERL_VENDORLIB_STEM: |
2243 | * This define is PERL_VENDORLIB_EXP with any trailing version-specific component | |
2244 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
2245 | * be tacked onto this variable to generate a list of directories to search. | |
a33c94aa | 2246 | */ |
b8677e3b MB |
2247 | #$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/ |
2248 | #$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/ | |
a33c94aa | 2249 | |
b8677e3b MB |
2250 | /* HAS_STATIC_INLINE: |
2251 | * This symbol, if defined, indicates that the C compiler supports | |
2252 | * C99-style static inline. That is, the function can't be called | |
2253 | * from another translation unit. | |
3813c136 | 2254 | */ |
b8677e3b MB |
2255 | /* PERL_STATIC_INLINE: |
2256 | * This symbol gives the best-guess incantation to use for static | |
2257 | * inline functions. If HAS_STATIC_INLINE is defined, this will | |
2258 | * give C99-style inline. If HAS_STATIC_INLINE is not defined, | |
2259 | * this will give a plain 'static'. It will always be defined | |
2260 | * to something that gives static linkage. | |
2261 | * Possibilities include | |
2262 | * static inline (c99) | |
2263 | * static __inline__ (gcc -ansi) | |
2264 | * static __inline (MSVC) | |
2265 | * static _inline (older MSVC) | |
2266 | * static (c89 compilers) | |
08c92000 | 2267 | */ |
b8677e3b MB |
2268 | #$d_static_inline HAS_STATIC_INLINE /**/ |
2269 | #define PERL_STATIC_INLINE $perl_static_inline /**/ | |
a845a0d4 | 2270 | |
b8677e3b MB |
2271 | /* EBCDIC: |
2272 | * This symbol, if defined, indicates that this system uses | |
2273 | * EBCDIC encoding. | |
a33c94aa | 2274 | */ |
b8677e3b | 2275 | #$ebcdic EBCDIC /**/ |
a33c94aa | 2276 | |
b8677e3b MB |
2277 | /* OSNAME: |
2278 | * This symbol contains the name of the operating system, as determined | |
2279 | * by Configure. You shouldn't rely on it too much; the specific | |
2280 | * feature tests from Configure are generally more reliable. | |
10bc17b6 | 2281 | */ |
b8677e3b MB |
2282 | /* OSVERS: |
2283 | * This symbol contains the version of the operating system, as determined | |
2284 | * by Configure. You shouldn't rely on it too much; the specific | |
2285 | * feature tests from Configure are generally more reliable. | |
2286 | */ | |
2287 | #define OSNAME "$osname" /**/ | |
2288 | #define OSVERS "$osvers" /**/ | |
a845a0d4 | 2289 | |
b8677e3b MB |
2290 | /* CAT2: |
2291 | * This macro concatenates 2 tokens together. | |
44b94491 | 2292 | */ |
b8677e3b MB |
2293 | /* STRINGIFY: |
2294 | * This macro surrounds its token with double quotes. | |
2295 | */ | |
2296 | #if $cpp_stuff == 1 | |
2297 | #define CAT2(a,b) a/**/b | |
2298 | #define STRINGIFY(a) "a" | |
2299 | #endif | |
2300 | #if $cpp_stuff == 42 | |
2301 | #define PeRl_CaTiFy(a, b) a ## b | |
2302 | #define PeRl_StGiFy(a) #a | |
2303 | #define CAT2(a,b) PeRl_CaTiFy(a,b) | |
2304 | #define StGiFy(a) PeRl_StGiFy(a) | |
2305 | #define STRINGIFY(a) PeRl_StGiFy(a) | |
2306 | #endif | |
2307 | #if $cpp_stuff != 1 && $cpp_stuff != 42 | |
2308 | #include "Bletch: How does this C preprocessor concatenate tokens?" | |
2309 | #endif | |
78a7c709 | 2310 | |
b8677e3b MB |
2311 | /* CPPSTDIN: |
2312 | * This symbol contains the first part of the string which will invoke | |
2313 | * the C preprocessor on the standard input and produce to standard | |
2314 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also | |
2315 | * call a wrapper. See CPPRUN. | |
44b94491 | 2316 | */ |
b8677e3b MB |
2317 | /* CPPMINUS: |
2318 | * This symbol contains the second part of the string which will invoke | |
2319 | * the C preprocessor on the standard input and produce to standard | |
2320 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus | |
2321 | * to specify standard input, otherwise the value is "". | |
44b94491 | 2322 | */ |
b8677e3b MB |
2323 | /* CPPRUN: |
2324 | * This symbol contains the string which will invoke a C preprocessor on | |
2325 | * the standard input and produce to standard output. It needs to end | |
2326 | * with CPPLAST, after all other preprocessor flags have been specified. | |
2327 | * The main difference with CPPSTDIN is that this program will never be a | |
2328 | * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is | |
2329 | * available directly to the user. Note that it may well be different from | |
2330 | * the preprocessor used to compile the C program. | |
78a7c709 | 2331 | */ |
b8677e3b MB |
2332 | /* CPPLAST: |
2333 | * This symbol is intended to be used along with CPPRUN in the same manner | |
2334 | * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "". | |
a33c94aa | 2335 | */ |
b8677e3b MB |
2336 | #define CPPSTDIN "$cppstdin" |
2337 | #define CPPMINUS "$cppminus" | |
2338 | #define CPPRUN "$cpprun" | |
2339 | #define CPPLAST "$cpplast" | |
a33c94aa | 2340 | |
b8677e3b MB |
2341 | /* HAS_ACCESS: |
2342 | * This manifest constant lets the C program know that the access() | |
2343 | * system call is available to check for accessibility using real UID/GID. | |
2344 | * (always present on UNIX.) | |
a33c94aa | 2345 | */ |
b8677e3b | 2346 | #$d_access HAS_ACCESS /**/ |
a33c94aa | 2347 | |
b8677e3b MB |
2348 | /* HASATTRIBUTE_FORMAT: |
2349 | * Can we handle GCC attribute for checking printf-style formats | |
253687a9 | 2350 | */ |
b8677e3b MB |
2351 | /* PRINTF_FORMAT_NULL_OK: |
2352 | * Allows __printf__ format to be null when checking printf-style | |
a33c94aa | 2353 | */ |
b8677e3b MB |
2354 | /* HASATTRIBUTE_MALLOC: |
2355 | * Can we handle GCC attribute for malloc-style functions. | |
10bc17b6 | 2356 | */ |
b8677e3b MB |
2357 | /* HASATTRIBUTE_NONNULL: |
2358 | * Can we handle GCC attribute for nonnull function parms. | |
2359 | */ | |
2360 | /* HASATTRIBUTE_NORETURN: | |
2361 | * Can we handle GCC attribute for functions that do not return | |
2362 | */ | |
2363 | /* HASATTRIBUTE_PURE: | |
2364 | * Can we handle GCC attribute for pure functions | |
2365 | */ | |
2366 | /* HASATTRIBUTE_UNUSED: | |
2367 | * Can we handle GCC attribute for unused variables and arguments | |
2368 | */ | |
2369 | /* HASATTRIBUTE_DEPRECATED: | |
2370 | * Can we handle GCC attribute for marking deprecated APIs | |
2371 | */ | |
2372 | /* HASATTRIBUTE_WARN_UNUSED_RESULT: | |
2373 | * Can we handle GCC attribute for warning on unused results | |
2374 | */ | |
2375 | #$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/ | |
2376 | #$d_attribute_format HASATTRIBUTE_FORMAT /**/ | |
2377 | #$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/ | |
2378 | #$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/ | |
2379 | #$d_attribute_malloc HASATTRIBUTE_MALLOC /**/ | |
2380 | #$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/ | |
2381 | #$d_attribute_pure HASATTRIBUTE_PURE /**/ | |
2382 | #$d_attribute_unused HASATTRIBUTE_UNUSED /**/ | |
2383 | #$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/ | |
ed140128 | 2384 | |
b8677e3b MB |
2385 | /* HASCONST: |
2386 | * This symbol, if defined, indicates that this C compiler knows about | |
2387 | * the const type. There is no need to actually test for that symbol | |
2388 | * within your programs. The mere use of the "const" keyword will | |
2389 | * trigger the necessary tests. | |
10bc17b6 | 2390 | */ |
b8677e3b MB |
2391 | #$d_const HASCONST /**/ |
2392 | #ifndef HASCONST | |
2393 | #define const | |
2394 | #endif | |
2395 | ||
2396 | /* HAS_CSH: | |
2397 | * This symbol, if defined, indicates that the C-shell exists. | |
a33c94aa | 2398 | */ |
b8677e3b MB |
2399 | /* CSH: |
2400 | * This symbol, if defined, contains the full pathname of csh. | |
2401 | */ | |
2402 | #$d_csh HAS_CSH /**/ | |
2403 | #ifdef HAS_CSH | |
2404 | #define CSH "$full_csh" /**/ | |
ed140128 AD |
2405 | #endif |
2406 | ||
b8677e3b MB |
2407 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
2408 | * This symbol, if defined, indicates that the bug that prevents | |
2409 | * setuid scripts from being secure is not present in this kernel. | |
dfe9444c | 2410 | */ |
b8677e3b MB |
2411 | /* DOSUID: |
2412 | * This symbol, if defined, indicates that the C program should | |
2413 | * check the script that it is executing for setuid/setgid bits, and | |
2414 | * attempt to emulate setuid/setgid on systems that have disabled | |
2415 | * setuid #! scripts because the kernel can't do it securely. | |
2416 | * It is up to the package designer to make sure that this emulation | |
2417 | * is done securely. Among other things, it should do an fstat on | |
2418 | * the script it just opened to make sure it really is a setuid/setgid | |
2419 | * script, it should make sure the arguments passed correspond exactly | |
2420 | * to the argument on the #! line, and it should not trust any | |
2421 | * subprocesses to which it must pass the filename rather than the | |
2422 | * file descriptor of the script to be executed. | |
2423 | */ | |
2424 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ | |
2425 | #$d_dosuid DOSUID /**/ | |
ed140128 | 2426 | |
b8677e3b MB |
2427 | /* HAS_ENDGRENT: |
2428 | * This symbol, if defined, indicates that the getgrent routine is | |
2429 | * available for finalizing sequential access of the group database. | |
36adc09b | 2430 | */ |
b8677e3b | 2431 | #$d_endgrent HAS_ENDGRENT /**/ |
ed140128 | 2432 | |
b8677e3b MB |
2433 | /* HAS_ENDHOSTENT: |
2434 | * This symbol, if defined, indicates that the endhostent() routine is | |
2435 | * available to close whatever was being used for host queries. | |
ed140128 | 2436 | */ |
b8677e3b MB |
2437 | #$d_endhent HAS_ENDHOSTENT /**/ |
2438 | ||
2439 | /* HAS_ENDNETENT: | |
2440 | * This symbol, if defined, indicates that the endnetent() routine is | |
2441 | * available to close whatever was being used for network queries. | |
ed140128 | 2442 | */ |
b8677e3b | 2443 | #$d_endnent HAS_ENDNETENT /**/ |
ed140128 | 2444 | |
b8677e3b MB |
2445 | /* HAS_ENDPROTOENT: |
2446 | * This symbol, if defined, indicates that the endprotoent() routine is | |
2447 | * available to close whatever was being used for protocol queries. | |
ed140128 | 2448 | */ |
b8677e3b MB |
2449 | #$d_endpent HAS_ENDPROTOENT /**/ |
2450 | ||
2451 | /* HAS_ENDPWENT: | |
2452 | * This symbol, if defined, indicates that the getgrent routine is | |
2453 | * available for finalizing sequential access of the passwd database. | |
ed140128 | 2454 | */ |
b8677e3b | 2455 | #$d_endpwent HAS_ENDPWENT /**/ |
ed140128 | 2456 | |
b8677e3b MB |
2457 | /* HAS_ENDSERVENT: |
2458 | * This symbol, if defined, indicates that the endservent() routine is | |
2459 | * available to close whatever was being used for service queries. | |
ed140128 | 2460 | */ |
b8677e3b MB |
2461 | #$d_endsent HAS_ENDSERVENT /**/ |
2462 | ||
2463 | /* FLEXFILENAMES: | |
2464 | * This symbol, if defined, indicates that the system supports filenames | |
2465 | * longer than 14 characters. | |
ed140128 | 2466 | */ |
b8677e3b MB |
2467 | #$d_flexfnam FLEXFILENAMES /**/ |
2468 | ||
2469 | /* HAS_GETGRENT: | |
2470 | * This symbol, if defined, indicates that the getgrent routine is | |
2471 | * available for sequential access of the group database. | |
ed140128 | 2472 | */ |
b8677e3b | 2473 | #$d_getgrent HAS_GETGRENT /**/ |
ed140128 | 2474 | |
b8677e3b MB |
2475 | /* HAS_GETHOSTBYADDR: |
2476 | * This symbol, if defined, indicates that the gethostbyaddr() routine is | |
2477 | * available to look up hosts by their IP addresses. | |
ed140128 | 2478 | */ |
b8677e3b | 2479 | #$d_gethbyaddr HAS_GETHOSTBYADDR /**/ |
ed140128 | 2480 | |
b8677e3b MB |
2481 | /* HAS_GETHOSTBYNAME: |
2482 | * This symbol, if defined, indicates that the gethostbyname() routine is | |
2483 | * available to look up host names in some data base or other. | |
ed140128 | 2484 | */ |
b8677e3b | 2485 | #$d_gethbyname HAS_GETHOSTBYNAME /**/ |
ed140128 | 2486 | |
b8677e3b MB |
2487 | /* HAS_GETHOSTENT: |
2488 | * This symbol, if defined, indicates that the gethostent() routine is | |
2489 | * available to look up host names in some data base or another. | |
ed140128 | 2490 | */ |
b8677e3b | 2491 | #$d_gethent HAS_GETHOSTENT /**/ |
ed140128 | 2492 | |
b8677e3b MB |
2493 | /* HAS_GETHOSTNAME: |
2494 | * This symbol, if defined, indicates that the C program may use the | |
2495 | * gethostname() routine to derive the host name. See also HAS_UNAME | |
2496 | * and PHOSTNAME. | |
73e6e416 | 2497 | */ |
b8677e3b MB |
2498 | /* HAS_UNAME: |
2499 | * This symbol, if defined, indicates that the C program may use the | |
2500 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
2501 | * and PHOSTNAME. | |
2502 | */ | |
2503 | /* PHOSTNAME: | |
2504 | * This symbol, if defined, indicates the command to feed to the | |
2505 | * popen() routine to derive the host name. See also HAS_GETHOSTNAME | |
2506 | * and HAS_UNAME. Note that the command uses a fully qualified path, | |
2507 | * so that it is safe even if used by a process with super-user | |
2508 | * privileges. | |
2509 | */ | |
2510 | /* HAS_PHOSTNAME: | |
2511 | * This symbol, if defined, indicates that the C program may use the | |
2512 | * contents of PHOSTNAME as a command to feed to the popen() routine | |
2513 | * to derive the host name. | |
2514 | */ | |
2515 | #$d_gethname HAS_GETHOSTNAME /**/ | |
2516 | #$d_uname HAS_UNAME /**/ | |
2517 | #$d_phostname HAS_PHOSTNAME /**/ | |
2518 | #ifdef HAS_PHOSTNAME | |
2519 | #define PHOSTNAME "$aphostname" /* How to get the host name */ | |
2520 | #endif | |
73e6e416 | 2521 | |
b8677e3b MB |
2522 | /* HAS_GETNETBYADDR: |
2523 | * This symbol, if defined, indicates that the getnetbyaddr() routine is | |
2524 | * available to look up networks by their IP addresses. | |
ed140128 | 2525 | */ |
b8677e3b | 2526 | #$d_getnbyaddr HAS_GETNETBYADDR /**/ |
ed140128 | 2527 | |
b8677e3b MB |
2528 | /* HAS_GETNETBYNAME: |
2529 | * This symbol, if defined, indicates that the getnetbyname() routine is | |
2530 | * available to look up networks by their names. | |
ed140128 | 2531 | */ |
b8677e3b | 2532 | #$d_getnbyname HAS_GETNETBYNAME /**/ |
ed140128 | 2533 | |
b8677e3b MB |
2534 | /* HAS_GETNETENT: |
2535 | * This symbol, if defined, indicates that the getnetent() routine is | |
2536 | * available to look up network names in some data base or another. | |
ed140128 | 2537 | */ |
b8677e3b | 2538 | #$d_getnent HAS_GETNETENT /**/ |
ed140128 | 2539 | |
b8677e3b MB |
2540 | /* HAS_GETPROTOENT: |
2541 | * This symbol, if defined, indicates that the getprotoent() routine is | |
2542 | * available to look up protocols in some data base or another. | |
ed140128 | 2543 | */ |
b8677e3b | 2544 | #$d_getpent HAS_GETPROTOENT /**/ |
ed140128 | 2545 | |
b8677e3b MB |
2546 | /* HAS_GETPGRP: |
2547 | * This symbol, if defined, indicates that the getpgrp routine is | |
2548 | * available to get the current process group. | |
ed140128 | 2549 | */ |
b8677e3b MB |
2550 | /* USE_BSD_GETPGRP: |
2551 | * This symbol, if defined, indicates that getpgrp needs one | |
2552 | * arguments whereas USG one needs none. | |
ed140128 | 2553 | */ |
b8677e3b MB |
2554 | #$d_getpgrp HAS_GETPGRP /**/ |
2555 | #$d_bsdgetpgrp USE_BSD_GETPGRP /**/ | |
2556 | ||
2557 | /* HAS_GETPROTOBYNAME: | |
2558 | * This symbol, if defined, indicates that the getprotobyname() | |
2559 | * routine is available to look up protocols by their name. | |
ed140128 | 2560 | */ |
b8677e3b MB |
2561 | /* HAS_GETPROTOBYNUMBER: |
2562 | * This symbol, if defined, indicates that the getprotobynumber() | |
2563 | * routine is available to look up protocols by their number. | |
ed140128 | 2564 | */ |
b8677e3b MB |
2565 | #$d_getpbyname HAS_GETPROTOBYNAME /**/ |
2566 | #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/ | |
ed140128 | 2567 | |
b8677e3b MB |
2568 | /* HAS_GETPWENT: |
2569 | * This symbol, if defined, indicates that the getpwent routine is | |
2570 | * available for sequential access of the passwd database. | |
2571 | * If this is not available, the older getpw() function may be available. | |
ed140128 | 2572 | */ |
b8677e3b MB |
2573 | #$d_getpwent HAS_GETPWENT /**/ |
2574 | ||
2575 | /* HAS_GETSERVENT: | |
2576 | * This symbol, if defined, indicates that the getservent() routine is | |
2577 | * available to look up network services in some data base or another. | |
ed140128 | 2578 | */ |
b8677e3b | 2579 | #$d_getsent HAS_GETSERVENT /**/ |
ed140128 | 2580 | |
b8677e3b MB |
2581 | /* HAS_GETSERVBYNAME: |
2582 | * This symbol, if defined, indicates that the getservbyname() | |
2583 | * routine is available to look up services by their name. | |
ed140128 | 2584 | */ |
b8677e3b MB |
2585 | /* HAS_GETSERVBYPORT: |
2586 | * This symbol, if defined, indicates that the getservbyport() | |
2587 | * routine is available to look up services by their port. | |
ed140128 | 2588 | */ |
b8677e3b MB |
2589 | #$d_getsbyname HAS_GETSERVBYNAME /**/ |
2590 | #$d_getsbyport HAS_GETSERVBYPORT /**/ | |
ed140128 | 2591 | |
b8677e3b MB |
2592 | /* HAS_HTONL: |
2593 | * This symbol, if defined, indicates that the htonl() routine (and | |
2594 | * friends htons() ntohl() ntohs()) are available to do network | |
2595 | * order byte swapping. | |
ed140128 | 2596 | */ |
b8677e3b MB |
2597 | /* HAS_HTONS: |
2598 | * This symbol, if defined, indicates that the htons() routine (and | |
2599 | * friends htonl() ntohl() ntohs()) are available to do network | |
2600 | * order byte swapping. | |
ed140128 | 2601 | */ |
b8677e3b MB |
2602 | /* HAS_NTOHL: |
2603 | * This symbol, if defined, indicates that the ntohl() routine (and | |
2604 | * friends htonl() htons() ntohs()) are available to do network | |
2605 | * order byte swapping. | |
ed140128 | 2606 | */ |
b8677e3b MB |
2607 | /* HAS_NTOHS: |
2608 | * This symbol, if defined, indicates that the ntohs() routine (and | |
2609 | * friends htonl() htons() ntohl()) are available to do network | |
2610 | * order byte swapping. | |
2611 | */ | |
2612 | #$d_htonl HAS_HTONL /**/ | |
2613 | #$d_htonl HAS_HTONS /**/ | |
2614 | #$d_htonl HAS_NTOHL /**/ | |
2615 | #$d_htonl HAS_NTOHS /**/ | |
ed140128 | 2616 | |
b8677e3b MB |
2617 | /* HAS_LONG_DOUBLE: |
2618 | * This symbol will be defined if the C compiler supports long | |
2619 | * doubles. | |
ed140128 | 2620 | */ |
b8677e3b MB |
2621 | /* LONG_DOUBLESIZE: |
2622 | * This symbol contains the size of a long double, so that the | |
2623 | * C preprocessor can make decisions based on it. It is only | |
2624 | * defined if the system supports long doubles. | |
2625 | */ | |
2626 | #$d_longdbl HAS_LONG_DOUBLE /**/ | |
2627 | #ifdef HAS_LONG_DOUBLE | |
2628 | #define LONG_DOUBLESIZE $longdblsize /**/ | |
ed140128 AD |
2629 | #endif |
2630 | ||
b8677e3b MB |
2631 | /* HAS_LONG_LONG: |
2632 | * This symbol will be defined if the C compiler supports long long. | |
ed140128 | 2633 | */ |
b8677e3b MB |
2634 | /* LONGLONGSIZE: |
2635 | * This symbol contains the size of a long long, so that the | |
2636 | * C preprocessor can make decisions based on it. It is only | |
2637 | * defined if the system supports long long. | |
2638 | */ | |
2639 | #$d_longlong HAS_LONG_LONG /**/ | |
2640 | #ifdef HAS_LONG_LONG | |
2641 | #define LONGLONGSIZE $longlongsize /**/ | |
2642 | #endif | |
ed140128 | 2643 | |
b8677e3b MB |
2644 | /* HAS_MEMCHR: |
2645 | * This symbol, if defined, indicates that the memchr routine is available | |
2646 | * to locate characters within a C string. | |
c193ef60 | 2647 | */ |
b8677e3b | 2648 | #$d_memchr HAS_MEMCHR /**/ |
c193ef60 | 2649 | |
b8677e3b MB |
2650 | /* HAS_MKSTEMP: |
2651 | * This symbol, if defined, indicates that the mkstemp routine is | |
2652 | * available to exclusively create and open a uniquely named | |
2653 | * temporary file. | |
ed140128 | 2654 | */ |
b8677e3b | 2655 | #$d_mkstemp HAS_MKSTEMP /**/ |
ed140128 | 2656 | |
b8677e3b MB |
2657 | /* HAS_MMAP: |
2658 | * This symbol, if defined, indicates that the mmap system call is | |
2659 | * available to map a file into memory. | |
ed140128 | 2660 | */ |
b8677e3b MB |
2661 | /* Mmap_t: |
2662 | * This symbol holds the return type of the mmap() system call | |
2663 | * (and simultaneously the type of the first argument). | |
2664 | * Usually set to 'void *' or 'caddr_t'. | |
ed140128 | 2665 | */ |
b8677e3b MB |
2666 | #$d_mmap HAS_MMAP /**/ |
2667 | #define Mmap_t $mmaptype /**/ | |
ed140128 | 2668 | |
b8677e3b MB |
2669 | /* HAS_MSG: |
2670 | * This symbol, if defined, indicates that the entire msg*(2) library is | |
2671 | * supported (IPC mechanism based on message queues). | |
ed140128 | 2672 | */ |
b8677e3b | 2673 | #$d_msg HAS_MSG /**/ |
ed140128 | 2674 | |
b8677e3b MB |
2675 | /* HAS_SEM: |
2676 | * This symbol, if defined, indicates that the entire sem*(2) library is | |
2677 | * supported. | |
ed140128 | 2678 | */ |
b8677e3b | 2679 | #$d_sem HAS_SEM /**/ |
ed140128 | 2680 | |
b8677e3b MB |
2681 | /* HAS_SETGRENT: |
2682 | * This symbol, if defined, indicates that the setgrent routine is | |
2683 | * available for initializing sequential access of the group database. | |
ed140128 | 2684 | */ |
b8677e3b | 2685 | #$d_setgrent HAS_SETGRENT /**/ |
ed140128 | 2686 | |
b8677e3b MB |
2687 | /* HAS_SETHOSTENT: |
2688 | * This symbol, if defined, indicates that the sethostent() routine is | |
2689 | * available. | |
ed140128 | 2690 | */ |
b8677e3b | 2691 | #$d_sethent HAS_SETHOSTENT /**/ |
ed140128 | 2692 | |
b8677e3b MB |
2693 | /* HAS_SETNETENT: |
2694 | * This symbol, if defined, indicates that the setnetent() routine is | |
2695 | * available. | |
ed140128 | 2696 | */ |
b8677e3b | 2697 | #$d_setnent HAS_SETNETENT /**/ |
34f1896b | 2698 | |
b8677e3b MB |
2699 | /* HAS_SETPROTOENT: |
2700 | * This symbol, if defined, indicates that the setprotoent() routine is | |
2701 | * available. | |
ed140128 | 2702 | */ |
b8677e3b | 2703 | #$d_setpent HAS_SETPROTOENT /**/ |
ed140128 | 2704 | |
b8677e3b MB |
2705 | /* HAS_SETPGRP: |
2706 | * This symbol, if defined, indicates that the setpgrp routine is | |
2707 | * available to set the current process group. | |
ed140128 | 2708 | */ |
b8677e3b MB |
2709 | /* USE_BSD_SETPGRP: |
2710 | * This symbol, if defined, indicates that setpgrp needs two | |
2711 | * arguments whereas USG one needs none. See also HAS_SETPGID | |
2712 | * for a POSIX interface. | |
ed140128 | 2713 | */ |
b8677e3b MB |
2714 | #$d_setpgrp HAS_SETPGRP /**/ |
2715 | #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ | |
ed140128 | 2716 | |
b8677e3b MB |
2717 | /* HAS_SETPWENT: |
2718 | * This symbol, if defined, indicates that the setpwent routine is | |
2719 | * available for initializing sequential access of the passwd database. | |
ed140128 | 2720 | */ |
b8677e3b | 2721 | #$d_setpwent HAS_SETPWENT /**/ |
ed140128 | 2722 | |
b8677e3b MB |
2723 | /* HAS_SETSERVENT: |
2724 | * This symbol, if defined, indicates that the setservent() routine is | |
2725 | * available. | |
ed140128 | 2726 | */ |
b8677e3b | 2727 | #$d_setsent HAS_SETSERVENT /**/ |
ed140128 | 2728 | |
b8677e3b MB |
2729 | /* HAS_SETVBUF: |
2730 | * This symbol, if defined, indicates that the setvbuf routine is | |
2731 | * available to change buffering on an open stdio stream. | |
2732 | * to a line-buffered mode. | |
ed140128 | 2733 | */ |
b8677e3b | 2734 | #$d_setvbuf HAS_SETVBUF /**/ |
ed140128 | 2735 | |
b8677e3b MB |
2736 | /* HAS_SHM: |
2737 | * This symbol, if defined, indicates that the entire shm*(2) library is | |
2738 | * supported. | |
ed140128 | 2739 | */ |
b8677e3b | 2740 | #$d_shm HAS_SHM /**/ |
ed140128 | 2741 | |
b8677e3b MB |
2742 | /* Shmat_t: |
2743 | * This symbol holds the return type of the shmat() system call. | |
2744 | * Usually set to 'void *' or 'char *'. | |
17a6c8e3 | 2745 | */ |
b8677e3b MB |
2746 | /* HAS_SHMAT_PROTOTYPE: |
2747 | * This symbol, if defined, indicates that the sys/shm.h includes | |
2748 | * a prototype for shmat(). Otherwise, it is up to the program to | |
2749 | * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess, | |
2750 | * but not always right so it should be emitted by the program only | |
2751 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
17a6c8e3 | 2752 | */ |
b8677e3b MB |
2753 | #define Shmat_t $shmattype /**/ |
2754 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ | |
17a6c8e3 | 2755 | |
b8677e3b MB |
2756 | /* HAS_SOCKET: |
2757 | * This symbol, if defined, indicates that the BSD socket interface is | |
2758 | * supported. | |
ed140128 | 2759 | */ |
b8677e3b MB |
2760 | /* HAS_SOCKETPAIR: |
2761 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
2762 | * supported. | |
ed140128 | 2763 | */ |
b8677e3b MB |
2764 | /* HAS_MSG_CTRUNC: |
2765 | * This symbol, if defined, indicates that the MSG_CTRUNC is supported. | |
2766 | * Checking just with #ifdef might not be enough because this symbol | |
2767 | * has been known to be an enum. | |
ed140128 | 2768 | */ |
b8677e3b MB |
2769 | /* HAS_MSG_DONTROUTE: |
2770 | * This symbol, if defined, indicates that the MSG_DONTROUTE is supported. | |
2771 | * Checking just with #ifdef might not be enough because this symbol | |
2772 | * has been known to be an enum. | |
ed140128 | 2773 | */ |
b8677e3b MB |
2774 | /* HAS_MSG_OOB: |
2775 | * This symbol, if defined, indicates that the MSG_OOB is supported. | |
2776 | * Checking just with #ifdef might not be enough because this symbol | |
2777 | * has been known to be an enum. | |
ed140128 | 2778 | */ |
b8677e3b MB |
2779 | /* HAS_MSG_PEEK: |
2780 | * This symbol, if defined, indicates that the MSG_PEEK is supported. | |
2781 | * Checking just with #ifdef might not be enough because this symbol | |
2782 | * has been known to be an enum. | |
ed140128 | 2783 | */ |
b8677e3b MB |
2784 | /* HAS_MSG_PROXY: |
2785 | * This symbol, if defined, indicates that the MSG_PROXY is supported. | |
2786 | * Checking just with #ifdef might not be enough because this symbol | |
2787 | * has been known to be an enum. | |
ed140128 | 2788 | */ |
b8677e3b MB |
2789 | /* HAS_SCM_RIGHTS: |
2790 | * This symbol, if defined, indicates that the SCM_RIGHTS is supported. | |
2791 | * Checking just with #ifdef might not be enough because this symbol | |
2792 | * has been known to be an enum. | |
ed140128 | 2793 | */ |
b8677e3b MB |
2794 | /* HAS_SOCKADDR_SA_LEN: |
2795 | * This symbol, if defined, indicates that the struct sockaddr | |
2796 | * structure has a member called sa_len, indicating the length of | |
2797 | * the structure. | |
ed140128 | 2798 | */ |
f53580fe MB |
2799 | /* HAS_SIN6_SCOPE_ID: |
2800 | * This symbol, if defined, indicates that the struct sockaddr_in6 | |
2801 | * structure has a member called sin6_scope_id. | |
2802 | */ | |
b8677e3b MB |
2803 | #$d_socket HAS_SOCKET /**/ |
2804 | #$d_sockpair HAS_SOCKETPAIR /**/ | |
2805 | #$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/ | |
2806 | #$d_msg_ctrunc HAS_MSG_CTRUNC /**/ | |
2807 | #$d_msg_dontroute HAS_MSG_DONTROUTE /**/ | |
2808 | #$d_msg_oob HAS_MSG_OOB /**/ | |
2809 | #$d_msg_peek HAS_MSG_PEEK /**/ | |
2810 | #$d_msg_proxy HAS_MSG_PROXY /**/ | |
2811 | #$d_scm_rights HAS_SCM_RIGHTS /**/ | |
f53580fe | 2812 | #$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/ |
ed140128 | 2813 | |
b8677e3b MB |
2814 | /* USE_STAT_BLOCKS: |
2815 | * This symbol is defined if this system has a stat structure declaring | |
2816 | * st_blksize and st_blocks. | |
ed140128 | 2817 | */ |
b8677e3b MB |
2818 | #ifndef USE_STAT_BLOCKS |
2819 | #$d_statblks USE_STAT_BLOCKS /**/ | |
2820 | #endif | |
ed140128 | 2821 | |
b8677e3b MB |
2822 | /* USE_STRUCT_COPY: |
2823 | * This symbol, if defined, indicates that this C compiler knows how | |
2824 | * to copy structures. If undefined, you'll need to use a block copy | |
2825 | * routine of some sort instead. | |
ed140128 | 2826 | */ |
b8677e3b | 2827 | #$d_strctcpy USE_STRUCT_COPY /**/ |
ed140128 | 2828 | |
b8677e3b MB |
2829 | /* HAS_STRERROR: |
2830 | * This symbol, if defined, indicates that the strerror routine is | |
2831 | * available to translate error numbers to strings. See the writeup | |
2832 | * of Strerror() in this file before you try to define your own. | |
ed140128 | 2833 | */ |
b8677e3b MB |
2834 | /* HAS_SYS_ERRLIST: |
2835 | * This symbol, if defined, indicates that the sys_errlist array is | |
2836 | * available to translate error numbers to strings. The extern int | |
2837 | * sys_nerr gives the size of that table. | |
ed140128 | 2838 | */ |
b8677e3b MB |
2839 | /* Strerror: |
2840 | * This preprocessor symbol is defined as a macro if strerror() is | |
2841 | * not available to translate error numbers to strings but sys_errlist[] | |
2842 | * array is there. | |
ed140128 | 2843 | */ |
b8677e3b MB |
2844 | #$d_strerror HAS_STRERROR /**/ |
2845 | #$d_syserrlst HAS_SYS_ERRLIST /**/ | |
2846 | #define Strerror(e) $d_strerrm | |
2847 | ||
2848 | /* HAS_STRTOUL: | |
2849 | * This symbol, if defined, indicates that the strtoul routine is | |
2850 | * available to provide conversion of strings to unsigned long. | |
ed140128 | 2851 | */ |
b8677e3b MB |
2852 | #$d_strtoul HAS_STRTOUL /**/ |
2853 | ||
2854 | /* HAS_UNION_SEMUN: | |
2855 | * This symbol, if defined, indicates that the union semun is | |
2856 | * defined by including <sys/sem.h>. If not, the user code | |
2857 | * probably needs to define it as: | |
2858 | * union semun { | |
2859 | * int val; | |
2860 | * struct semid_ds *buf; | |
2861 | * unsigned short *array; | |
2862 | * } | |
ed140128 | 2863 | */ |
b8677e3b MB |
2864 | /* USE_SEMCTL_SEMUN: |
2865 | * This symbol, if defined, indicates that union semun is | |
2866 | * used for semctl IPC_STAT. | |
2867 | */ | |
2868 | /* USE_SEMCTL_SEMID_DS: | |
2869 | * This symbol, if defined, indicates that struct semid_ds * is | |
2870 | * used for semctl IPC_STAT. | |
2871 | */ | |
2872 | #$d_union_semun HAS_UNION_SEMUN /**/ | |
2873 | #$d_semctl_semun USE_SEMCTL_SEMUN /**/ | |
2874 | #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/ | |
ed140128 | 2875 | |
b8677e3b MB |
2876 | /* HAS_VFORK: |
2877 | * This symbol, if defined, indicates that vfork() exists. | |
ed140128 | 2878 | */ |
b8677e3b MB |
2879 | #$d_vfork HAS_VFORK /**/ |
2880 | ||
2881 | /* HAS_PSEUDOFORK: | |
2882 | * This symbol, if defined, indicates that an emulation of the | |
2883 | * fork routine is available. | |
ed140128 | 2884 | */ |
b8677e3b MB |
2885 | #$d_pseudofork HAS_PSEUDOFORK /**/ |
2886 | ||
2887 | /* Signal_t: | |
2888 | * This symbol's value is either "void" or "int", corresponding to the | |
2889 | * appropriate return type of a signal handler. Thus, you can declare | |
2890 | * a signal handler using "Signal_t (*handler)()", and define the | |
2891 | * handler using "Signal_t handler(sig)". | |
ed140128 | 2892 | */ |
b8677e3b MB |
2893 | #define Signal_t $signal_t /* Signal handler's return type */ |
2894 | ||
2895 | /* HASVOLATILE: | |
2896 | * This symbol, if defined, indicates that this C compiler knows about | |
2897 | * the volatile declaration. | |
ed140128 | 2898 | */ |
b8677e3b MB |
2899 | #$d_volatile HASVOLATILE /**/ |
2900 | #ifndef HASVOLATILE | |
2901 | #define volatile | |
2902 | #endif | |
ed140128 | 2903 | |
b8677e3b MB |
2904 | /* I_DIRENT: |
2905 | * This symbol, if defined, indicates to the C program that it should | |
2906 | * include <dirent.h>. Using this symbol also triggers the definition | |
2907 | * of the Direntry_t define which ends up being 'struct dirent' or | |
2908 | * 'struct direct' depending on the availability of <dirent.h>. | |
ed140128 | 2909 | */ |
b8677e3b MB |
2910 | /* DIRNAMLEN: |
2911 | * This symbol, if defined, indicates to the C program that the length | |
2912 | * of directory entry names is provided by a d_namlen field. Otherwise | |
2913 | * you need to do strlen() on the d_name field. | |
2914 | */ | |
2915 | /* Direntry_t: | |
2916 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
2917 | * whether dirent is available or not. You should use this pseudo type to | |
2918 | * portably declare your directory entries. | |
2919 | */ | |
2920 | #$i_dirent I_DIRENT /**/ | |
2921 | #$d_dirnamlen DIRNAMLEN /**/ | |
2922 | #define Direntry_t $direntrytype | |
ed140128 | 2923 | |
b8677e3b MB |
2924 | /* I_GRP: |
2925 | * This symbol, if defined, indicates to the C program that it should | |
2926 | * include <grp.h>. | |
ed140128 | 2927 | */ |
b8677e3b MB |
2928 | /* GRPASSWD: |
2929 | * This symbol, if defined, indicates to the C program that struct group | |
2930 | * in <grp.h> contains gr_passwd. | |
ed140128 | 2931 | */ |
b8677e3b MB |
2932 | #$i_grp I_GRP /**/ |
2933 | #$d_grpasswd GRPASSWD /**/ | |
2934 | ||
2935 | /* I_NDBM: | |
2936 | * This symbol, if defined, indicates that <ndbm.h> exists and should | |
2937 | * be included. | |
2938 | */ | |
2939 | /* I_GDBMNDBM: | |
2940 | * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should | |
2941 | * be included. This was the location of the ndbm.h compatibility file | |
2942 | * in RedHat 7.1. | |
2943 | */ | |
2944 | /* I_GDBM_NDBM: | |
2945 | * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should | |
2946 | * be included. This is the location of the ndbm.h compatibility file | |
2947 | * in Debian 4.0. | |
2948 | */ | |
2949 | /* NDBM_H_USES_PROTOTYPES: | |
2950 | * This symbol, if defined, indicates that <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 | /* GDBMNDBM_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 | /* GDBM_NDBM_H_USES_PROTOTYPES: | |
2962 | * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C | |
2963 | * prototypes instead of K&R style function declarations without any | |
2964 | * parameter information. While ANSI C prototypes are supported in C++, | |
2965 | * K&R style function declarations will yield errors. | |
2966 | */ | |
2967 | #$i_ndbm I_NDBM /**/ | |
2968 | #$i_gdbmndbm I_GDBMNDBM /**/ | |
2969 | #$i_gdbm_ndbm I_GDBM_NDBM /**/ | |
2970 | #$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/ | |
2971 | #$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/ | |
2972 | #$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/ | |
2973 | ||
2974 | /* I_NETDB: | |
2975 | * This symbol, if defined, indicates that <netdb.h> exists and | |
2976 | * should be included. | |
2977 | */ | |
2978 | #$i_netdb I_NETDB /**/ | |
2979 | ||
2980 | /* I_NET_ERRNO: | |
2981 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
2982 | * should be included. | |
2983 | */ | |
2984 | #$i_neterrno I_NET_ERRNO /**/ | |
2985 | ||
2986 | /* I_PWD: | |
2987 | * This symbol, if defined, indicates to the C program that it should | |
2988 | * include <pwd.h>. | |
2989 | */ | |
2990 | /* PWQUOTA: | |
2991 | * This symbol, if defined, indicates to the C program that struct passwd | |
2992 | * contains pw_quota. | |
2993 | */ | |
2994 | /* PWAGE: | |
2995 | * This symbol, if defined, indicates to the C program that struct passwd | |
2996 | * contains pw_age. | |
2997 | */ | |
2998 | /* PWCHANGE: | |
2999 | * This symbol, if defined, indicates to the C program that struct passwd | |
3000 | * contains pw_change. | |
3001 | */ | |
3002 | /* PWCLASS: | |
3003 | * This symbol, if defined, indicates to the C program that struct passwd | |
3004 | * contains pw_class. | |
3005 | */ | |
3006 | /* PWEXPIRE: | |
3007 | * This symbol, if defined, indicates to the C program that struct passwd | |
3008 | * contains pw_expire. | |
3009 | */ | |
3010 | /* PWCOMMENT: | |
3011 | * This symbol, if defined, indicates to the C program that struct passwd | |
3012 | * contains pw_comment. | |
3013 | */ | |
3014 | /* PWGECOS: | |
3015 | * This symbol, if defined, indicates to the C program that struct passwd | |
3016 | * contains pw_gecos. | |
3017 | */ | |
3018 | /* PWPASSWD: | |
3019 | * This symbol, if defined, indicates to the C program that struct passwd | |
3020 | * contains pw_passwd. | |
3021 | */ | |
3022 | #$i_pwd I_PWD /**/ | |
3023 | #$d_pwquota PWQUOTA /**/ | |
3024 | #$d_pwage PWAGE /**/ | |
3025 | #$d_pwchange PWCHANGE /**/ | |
3026 | #$d_pwclass PWCLASS /**/ | |
3027 | #$d_pwexpire PWEXPIRE /**/ | |
3028 | #$d_pwcomment PWCOMMENT /**/ | |
3029 | #$d_pwgecos PWGECOS /**/ | |
3030 | #$d_pwpasswd PWPASSWD /**/ | |
3031 | ||
3032 | /* I_SYSUIO: | |
3033 | * This symbol, if defined, indicates that <sys/uio.h> exists and | |
3034 | * should be included. | |
3035 | */ | |
3036 | #$i_sysuio I_SYSUIO /**/ | |
3037 | ||
3038 | /* I_STDARG: | |
3039 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
3040 | * be included. | |
3041 | */ | |
3042 | /* I_VARARGS: | |
3043 | * This symbol, if defined, indicates to the C program that it should | |
3044 | * include <varargs.h>. | |
3045 | */ | |
3046 | #$i_stdarg I_STDARG /**/ | |
3047 | #$i_varargs I_VARARGS /**/ | |
3048 | ||
3049 | /* Free_t: | |
3050 | * This variable contains the return type of free(). It is usually | |
3051 | * void, but occasionally int. | |
3052 | */ | |
3053 | /* Malloc_t: | |
3054 | * This symbol is the type of pointer returned by malloc and realloc. | |
3055 | */ | |
3056 | #define Malloc_t $malloctype /**/ | |
3057 | #define Free_t $freetype /**/ | |
3058 | ||
3059 | /* PERL_MALLOC_WRAP: | |
3060 | * This symbol, if defined, indicates that we'd like malloc wrap checks. | |
3061 | */ | |
3062 | #$usemallocwrap PERL_MALLOC_WRAP /**/ | |
3063 | ||
3064 | /* MYMALLOC: | |
3065 | * This symbol, if defined, indicates that we're using our own malloc. | |
3066 | */ | |
3067 | #$d_mymalloc MYMALLOC /**/ | |
3068 | ||
3069 | /* CAN_PROTOTYPE: | |
3070 | * If defined, this macro indicates that the C compiler can handle | |
3071 | * function prototypes. | |
3072 | */ | |
3073 | /* _: | |
3074 | * This macro is used to declare function parameters for folks who want | |
3075 | * to make declarations with prototypes using a different style than | |
3076 | * the above macros. Use double parentheses. For example: | |
3077 | * | |
3078 | * int main _((int argc, char *argv[])); | |
3079 | */ | |
3080 | #$prototype CAN_PROTOTYPE /**/ | |
3081 | #ifdef CAN_PROTOTYPE | |
3082 | #define _(args) args | |
3083 | #else | |
3084 | #define _(args) () | |
3085 | #endif | |
3086 | ||
3087 | /* SH_PATH: | |
3088 | * This symbol contains the full pathname to the shell used on this | |
3089 | * on this system to execute Bourne shell scripts. Usually, this will be | |
3090 | * /bin/sh, though it's possible that some systems will have /bin/ksh, | |
3091 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as | |
3092 | * D:/bin/sh.exe. | |
3093 | */ | |
3094 | #define SH_PATH "$sh" /**/ | |
3095 | ||
3096 | /* SIG_NAME: | |
3097 | * This symbol contains a list of signal names in order of | |
3098 | * signal number. This is intended | |
3099 | * to be used as a static array initialization, like this: | |
3100 | * char *sig_name[] = { SIG_NAME }; | |
3101 | * The signals in the list are separated with commas, and each signal | |
3102 | * is surrounded by double quotes. There is no leading SIG in the signal | |
3103 | * name, i.e. SIGQUIT is known as "QUIT". | |
3104 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
3105 | * etc., where nn is the actual signal number (e.g. NUM37). | |
3106 | * The signal number for sig_name[i] is stored in sig_num[i]. | |
3107 | * The last element is 0 to terminate the list with a NULL. This | |
3108 | * corresponds to the 0 at the end of the sig_name_init list. | |
3109 | * Note that this variable is initialized from the sig_name_init, | |
3110 | * not from sig_name (which is unused). | |
3111 | */ | |
3112 | /* SIG_NUM: | |
3113 | * This symbol contains a list of signal numbers, in the same order as the | |
3114 | * SIG_NAME list. It is suitable for static array initialization, as in: | |
3115 | * int sig_num[] = { SIG_NUM }; | |
3116 | * The signals in the list are separated with commas, and the indices | |
3117 | * within that list and the SIG_NAME list match, so it's easy to compute | |
3118 | * the signal name from a number or vice versa at the price of a small | |
3119 | * dynamic linear lookup. | |
3120 | * Duplicates are allowed, but are moved to the end of the list. | |
3121 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
3122 | * if (i < NSIG) then sig_number[i] == i. | |
3123 | * The last element is 0, corresponding to the 0 at the end of | |
3124 | * the sig_name_init list. | |
3125 | * Note that this variable is initialized from the sig_num_init, | |
3126 | * not from sig_num (which is unused). | |
ed140128 | 3127 | */ |
b8677e3b MB |
3128 | /* SIG_SIZE: |
3129 | * This variable contains the number of elements of the SIG_NAME | |
3130 | * and SIG_NUM arrays, excluding the final NULL entry. | |
ed140128 | 3131 | */ |
b8677e3b MB |
3132 | #define SIG_NAME $sig_name_init /**/ |
3133 | #define SIG_NUM $sig_num_init /**/ | |
3134 | #define SIG_SIZE $sig_size /**/ | |
ed140128 | 3135 | |
b8677e3b MB |
3136 | /* STDCHAR: |
3137 | * This symbol is defined to be the type of char used in stdio.h. | |
3138 | * It has the values "unsigned char" or "char". | |
ed140128 | 3139 | */ |
b8677e3b | 3140 | #define STDCHAR $stdchar /**/ |
ed140128 | 3141 | |
b8677e3b MB |
3142 | /* VOIDFLAGS: |
3143 | * This symbol indicates how much support of the void type is given by this | |
3144 | * compiler. What various bits mean: | |
3145 | * | |
3146 | * 1 = supports declaration of void | |
3147 | * 2 = supports arrays of pointers to functions returning void | |
3148 | * 4 = supports comparisons between pointers to void functions and | |
3149 | * addresses of void functions | |
cd95ead5 | 3150 | * 8 = supports declaration of generic void pointers |
b8677e3b MB |
3151 | * |
3152 | * The package designer should define VOIDUSED to indicate the requirements | |
3153 | * of the package. This can be done either by #defining VOIDUSED before | |
3154 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
3155 | * latter approach is taken, only those flags will be tested. If the | |
3156 | * level of void support necessary is not present, defines void to int. | |
ed140128 | 3157 | */ |
b8677e3b MB |
3158 | #ifndef VOIDUSED |
3159 | #define VOIDUSED $defvoidused | |
3160 | #endif | |
3161 | #define VOIDFLAGS $voidflags | |
3162 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
3163 | #define void int /* is void to be avoided? */ | |
3164 | #define M_VOID /* Xenix strikes again */ | |
3165 | #endif | |
ed140128 | 3166 | |
1be1b388 MB |
3167 | /* PERL_USE_DEVEL: |
3168 | * This symbol, if defined, indicates that Perl was configured with | |
3169 | * -Dusedevel, to enable development features. This should not be | |
3170 | * done for production builds. | |
3171 | */ | |
3172 | #$usedevel PERL_USE_DEVEL /**/ | |
3173 | ||
ed140128 AD |
3174 | /* HAS_ATOLF: |
3175 | * This symbol, if defined, indicates that the atolf routine is | |
3176 | * available to convert strings into long doubles. | |
3177 | */ | |
3178 | #$d_atolf HAS_ATOLF /**/ | |
3179 | ||
3180 | /* HAS_ATOLL: | |
3181 | * This symbol, if defined, indicates that the atoll routine is | |
3182 | * available to convert strings into long longs. | |
3183 | */ | |
3184 | #$d_atoll HAS_ATOLL /**/ | |
3185 | ||
3186 | /* HAS__FWALK: | |
3187 | * This symbol, if defined, indicates that the _fwalk system call is | |
3188 | * available to apply a function to all the file handles. | |
3189 | */ | |
3190 | #$d__fwalk HAS__FWALK /**/ | |
3191 | ||
3192 | /* HAS_AINTL: | |
3193 | * This symbol, if defined, indicates that the aintl routine is | |
3194 | * available. If copysignl is also present we can emulate modfl. | |
3195 | */ | |
3196 | #$d_aintl HAS_AINTL /**/ | |
3197 | ||
3198 | /* HAS_BUILTIN_CHOOSE_EXPR: | |
3199 | * Can we handle GCC builtin for compile-time ternary-like expressions | |
3200 | */ | |
3201 | /* HAS_BUILTIN_EXPECT: | |
3202 | * Can we handle GCC builtin for telling that certain values are more | |
3203 | * likely | |
3204 | */ | |
3205 | #$d_builtin_expect HAS_BUILTIN_EXPECT /**/ | |
3206 | #$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/ | |
3207 | ||
3208 | /* HAS_C99_VARIADIC_MACROS: | |
3209 | * If defined, the compiler supports C99 variadic macros. | |
3210 | */ | |
3211 | #$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/ | |
3212 | ||
3213 | /* HAS_CLASS: | |
3214 | * This symbol, if defined, indicates that the class routine is | |
3215 | * available to classify doubles. Available for example in AIX. | |
3216 | * The returned values are defined in <float.h> and are: | |
3217 | * | |
3218 | * FP_PLUS_NORM Positive normalized, nonzero | |
3219 | * FP_MINUS_NORM Negative normalized, nonzero | |
3220 | * FP_PLUS_DENORM Positive denormalized, nonzero | |
3221 | * FP_MINUS_DENORM Negative denormalized, nonzero | |
3222 | * FP_PLUS_ZERO +0.0 | |
3223 | * FP_MINUS_ZERO -0.0 | |
3224 | * FP_PLUS_INF +INF | |
3225 | * FP_MINUS_INF -INF | |
3226 | * FP_NANS Signaling Not a Number (NaNS) | |
3227 | * FP_NANQ Quiet Not a Number (NaNQ) | |
3228 | */ | |
3229 | #$d_class HAS_CLASS /**/ | |
3230 | ||
3231 | /* HAS_CLEARENV: | |
3232 | * This symbol, if defined, indicates that the clearenv () routine is | |
3233 | * available for use. | |
3234 | */ | |
3235 | #$d_clearenv HAS_CLEARENV /**/ | |
3236 | ||
3237 | /* HAS_STRUCT_CMSGHDR: | |
3238 | * This symbol, if defined, indicates that the struct cmsghdr | |
3239 | * is supported. | |
3240 | */ | |
3241 | #$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/ | |
3242 | ||
3243 | /* HAS_COPYSIGNL: | |
3244 | * This symbol, if defined, indicates that the copysignl routine is | |
3245 | * available. If aintl is also present we can emulate modfl. | |
3246 | */ | |
3247 | #$d_copysignl HAS_COPYSIGNL /**/ | |
3248 | ||
3249 | /* USE_CPLUSPLUS: | |
3250 | * This symbol, if defined, indicates that a C++ compiler was | |
3251 | * used to compiled Perl and will be used to compile extensions. | |
3252 | */ | |
3253 | #$d_cplusplus USE_CPLUSPLUS /**/ | |
3254 | ||
3255 | /* HAS_DBMINIT_PROTO: | |
3256 | * This symbol, if defined, indicates that the system provides | |
3257 | * a prototype for the dbminit() function. Otherwise, it is up | |
3258 | * to the program to supply one. A good guess is | |
3259 | * extern int dbminit(char *); | |
3260 | */ | |
3261 | #$d_dbminitproto HAS_DBMINIT_PROTO /**/ | |
3262 | ||
3263 | /* HAS_DIR_DD_FD: | |
3264 | * This symbol, if defined, indicates that the the DIR* dirstream | |
3265 | * structure contains a member variable named dd_fd. | |
3266 | */ | |
3267 | #$d_dir_dd_fd HAS_DIR_DD_FD /**/ | |
3268 | ||
3269 | /* HAS_DIRFD: | |
3270 | * This manifest constant lets the C program know that dirfd | |
3271 | * is available. | |
3272 | */ | |
3273 | #$d_dirfd HAS_DIRFD /**/ | |
3274 | ||
3275 | /* DLSYM_NEEDS_UNDERSCORE: | |
3276 | * This symbol, if defined, indicates that we need to prepend an | |
3277 | * underscore to the symbol name before calling dlsym(). This only | |
3278 | * makes sense if you *have* dlsym, which we will presume is the | |
3279 | * case if you're using dl_dlopen.xs. | |
3280 | */ | |
3281 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ | |
3282 | ||
3283 | /* HAS_FAST_STDIO: | |
3284 | * This symbol, if defined, indicates that the "fast stdio" | |
3285 | * is available to manipulate the stdio buffers directly. | |
3286 | */ | |
3287 | #$d_faststdio HAS_FAST_STDIO /**/ | |
3288 | ||
3289 | /* HAS_FCHDIR: | |
3290 | * This symbol, if defined, indicates that the fchdir routine is | |
3291 | * available to change directory using a file descriptor. | |
3292 | */ | |
3293 | #$d_fchdir HAS_FCHDIR /**/ | |
3294 | ||
3295 | /* FCNTL_CAN_LOCK: | |
3296 | * This symbol, if defined, indicates that fcntl() can be used | |
3297 | * for file locking. Normally on Unix systems this is defined. | |
3298 | * It may be undefined on VMS. | |
3299 | */ | |
3300 | #$d_fcntl_can_lock FCNTL_CAN_LOCK /**/ | |
3301 | ||
3302 | /* HAS_FINITE: | |
3303 | * This symbol, if defined, indicates that the finite routine is | |
3304 | * available to check whether a double is finite (non-infinity non-NaN). | |
3305 | */ | |
3306 | #$d_finite HAS_FINITE /**/ | |
3307 | ||
3308 | /* HAS_FINITEL: | |
3309 | * This symbol, if defined, indicates that the finitel routine is | |
3310 | * available to check whether a long double is finite | |
3311 | * (non-infinity non-NaN). | |
3312 | */ | |
3313 | #$d_finitel HAS_FINITEL /**/ | |
3314 | ||
3315 | /* HAS_FLOCK_PROTO: | |
3316 | * This symbol, if defined, indicates that the system provides | |
3317 | * a prototype for the flock() function. Otherwise, it is up | |
3318 | * to the program to supply one. A good guess is | |
3319 | * extern int flock(int, int); | |
3320 | */ | |
3321 | #$d_flockproto HAS_FLOCK_PROTO /**/ | |
3322 | ||
3323 | /* HAS_FP_CLASS: | |
3324 | * This symbol, if defined, indicates that the fp_class routine is | |
3325 | * available to classify doubles. Available for example in Digital UNIX. | |
3326 | * The returned values are defined in <math.h> and are: | |
3327 | * | |
3328 | * FP_SNAN Signaling NaN (Not-a-Number) | |
3329 | * FP_QNAN Quiet NaN (Not-a-Number) | |
3330 | * FP_POS_INF +infinity | |
3331 | * FP_NEG_INF -infinity | |
3332 | * FP_POS_NORM Positive normalized | |
3333 | * FP_NEG_NORM Negative normalized | |
3334 | * FP_POS_DENORM Positive denormalized | |
3335 | * FP_NEG_DENORM Negative denormalized | |
3336 | * FP_POS_ZERO +0.0 (positive zero) | |
3337 | * FP_NEG_ZERO -0.0 (negative zero) | |
3338 | */ | |
3339 | #$d_fp_class HAS_FP_CLASS /**/ | |
3340 | ||
3341 | /* HAS_FPCLASS: | |
3342 | * This symbol, if defined, indicates that the fpclass routine is | |
3343 | * available to classify doubles. Available for example in Solaris/SVR4. | |
3344 | * The returned values are defined in <ieeefp.h> and are: | |
3345 | * | |
3346 | * FP_SNAN signaling NaN | |
3347 | * FP_QNAN quiet NaN | |
3348 | * FP_NINF negative infinity | |
3349 | * FP_PINF positive infinity | |
3350 | * FP_NDENORM negative denormalized non-zero | |
3351 | * FP_PDENORM positive denormalized non-zero | |
3352 | * FP_NZERO negative zero | |
3353 | * FP_PZERO positive zero | |
3354 | * FP_NNORM negative normalized non-zero | |
3355 | * FP_PNORM positive normalized non-zero | |
3356 | */ | |
3357 | #$d_fpclass HAS_FPCLASS /**/ | |
3358 | ||
3359 | /* HAS_FPCLASSIFY: | |
3360 | * This symbol, if defined, indicates that the fpclassify routine is | |
3361 | * available to classify doubles. Available for example in HP-UX. | |
3362 | * The returned values are defined in <math.h> and are | |
3363 | * | |
3364 | * FP_NORMAL Normalized | |
3365 | * FP_ZERO Zero | |
3366 | * FP_INFINITE Infinity | |
3367 | * FP_SUBNORMAL Denormalized | |
3368 | * FP_NAN NaN | |
3369 | * | |
3370 | */ | |
3371 | #$d_fpclassify HAS_FPCLASSIFY /**/ | |
3372 | ||
3373 | /* HAS_FPCLASSL: | |
3374 | * This symbol, if defined, indicates that the fpclassl routine is | |
3375 | * available to classify long doubles. Available for example in IRIX. | |
3376 | * The returned values are defined in <ieeefp.h> and are: | |
3377 | * | |
3378 | * FP_SNAN signaling NaN | |
3379 | * FP_QNAN quiet NaN | |
3380 | * FP_NINF negative infinity | |
3381 | * FP_PINF positive infinity | |
3382 | * FP_NDENORM negative denormalized non-zero | |
3383 | * FP_PDENORM positive denormalized non-zero | |
3384 | * FP_NZERO negative zero | |
3385 | * FP_PZERO positive zero | |
3386 | * FP_NNORM negative normalized non-zero | |
3387 | * FP_PNORM positive normalized non-zero | |
3388 | */ | |
3389 | #$d_fpclassl HAS_FPCLASSL /**/ | |
3390 | ||
3391 | /* HAS_FPOS64_T: | |
3392 | * This symbol will be defined if the C compiler supports fpos64_t. | |
3393 | */ | |
3394 | #$d_fpos64_t HAS_FPOS64_T /**/ | |
3395 | ||
3396 | /* HAS_FREXPL: | |
3397 | * This symbol, if defined, indicates that the frexpl routine is | |
3398 | * available to break a long double floating-point number into | |
3399 | * a normalized fraction and an integral power of 2. | |
3400 | */ | |
3401 | #$d_frexpl HAS_FREXPL /**/ | |
3402 | ||
3403 | /* HAS_STRUCT_FS_DATA: | |
3404 | * This symbol, if defined, indicates that the struct fs_data | |
3405 | * to do statfs() is supported. | |
3406 | */ | |
3407 | #$d_fs_data_s HAS_STRUCT_FS_DATA /**/ | |
3408 | ||
3409 | /* HAS_FSEEKO: | |
3410 | * This symbol, if defined, indicates that the fseeko routine is | |
3411 | * available to fseek beyond 32 bits (useful for ILP32 hosts). | |
3412 | */ | |
3413 | #$d_fseeko HAS_FSEEKO /**/ | |
3414 | ||
3415 | /* HAS_FSTATFS: | |
3416 | * This symbol, if defined, indicates that the fstatfs routine is | |
3417 | * available to stat filesystems by file descriptors. | |
3418 | */ | |
3419 | #$d_fstatfs HAS_FSTATFS /**/ | |
3420 | ||
3421 | /* HAS_FSYNC: | |
3422 | * This symbol, if defined, indicates that the fsync routine is | |
3423 | * available to write a file's modified data and attributes to | |
3424 | * permanent storage. | |
3425 | */ | |
3426 | #$d_fsync HAS_FSYNC /**/ | |
3427 | ||
3428 | /* HAS_FTELLO: | |
3429 | * This symbol, if defined, indicates that the ftello routine is | |
3430 | * available to ftell beyond 32 bits (useful for ILP32 hosts). | |
3431 | */ | |
3432 | #$d_ftello HAS_FTELLO /**/ | |
3433 | ||
3434 | /* HAS_FUTIMES: | |
3435 | * This symbol, if defined, indicates that the futimes routine is | |
3436 | * available to change file descriptor time stamps with struct timevals. | |
3437 | */ | |
3438 | #$d_futimes HAS_FUTIMES /**/ | |
3439 | ||
5086dff9 MB |
3440 | /* HAS_GETADDRINFO: |
3441 | * This symbol, if defined, indicates that the getaddrinfo() function | |
3442 | * is available for use. | |
3443 | */ | |
3444 | #$d_getaddrinfo HAS_GETADDRINFO /**/ | |
3445 | ||
ed140128 AD |
3446 | /* HAS_GETCWD: |
3447 | * This symbol, if defined, indicates that the getcwd routine is | |
3448 | * available to get the current working directory. | |
3449 | */ | |
3450 | #$d_getcwd HAS_GETCWD /**/ | |
3451 | ||
3452 | /* HAS_GETESPWNAM: | |
3453 | * This symbol, if defined, indicates that the getespwnam system call is | |
cd95ead5 | 3454 | * available to retrieve enhanced (shadow) password entries by name. |
ed140128 AD |
3455 | */ |
3456 | #$d_getespwnam HAS_GETESPWNAM /**/ | |
3457 | ||
3458 | /* HAS_GETFSSTAT: | |
3459 | * This symbol, if defined, indicates that the getfsstat routine is | |
3460 | * available to stat filesystems in bulk. | |
3461 | */ | |
3462 | #$d_getfsstat HAS_GETFSSTAT /**/ | |
3463 | ||
3464 | /* HAS_GETITIMER: | |
3465 | * This symbol, if defined, indicates that the getitimer routine is | |
3466 | * available to return interval timers. | |
3467 | */ | |
3468 | #$d_getitimer HAS_GETITIMER /**/ | |
3469 | ||
3470 | /* HAS_GETMNT: | |
3471 | * This symbol, if defined, indicates that the getmnt routine is | |
3472 | * available to get filesystem mount info by filename. | |
3473 | */ | |
3474 | #$d_getmnt HAS_GETMNT /**/ | |
3475 | ||
3476 | /* HAS_GETMNTENT: | |
3477 | * This symbol, if defined, indicates that the getmntent routine is | |
3478 | * available to iterate through mounted file systems to get their info. | |
3479 | */ | |
3480 | #$d_getmntent HAS_GETMNTENT /**/ | |
3481 | ||
5086dff9 MB |
3482 | /* HAS_GETNAMEINFO: |
3483 | * This symbol, if defined, indicates that the getnameinfo() function | |
3484 | * is available for use. | |
3485 | */ | |
3486 | #$d_getnameinfo HAS_GETNAMEINFO /**/ | |
3487 | ||
ed140128 AD |
3488 | /* HAS_GETPRPWNAM: |
3489 | * This symbol, if defined, indicates that the getprpwnam system call is | |
3490 | * available to retrieve protected (shadow) password entries by name. | |
3491 | */ | |
3492 | #$d_getprpwnam HAS_GETPRPWNAM /**/ | |
3493 | ||
3494 | /* HAS_GETSPNAM: | |
3495 | * This symbol, if defined, indicates that the getspnam system call is | |
3496 | * available to retrieve SysV shadow password entries by name. | |
3497 | */ | |
3498 | #$d_getspnam HAS_GETSPNAM /**/ | |
3499 | ||
3500 | /* HAS_HASMNTOPT: | |
3501 | * This symbol, if defined, indicates that the hasmntopt routine is | |
3502 | * available to query the mount options of file systems. | |
3503 | */ | |
3504 | #$d_hasmntopt HAS_HASMNTOPT /**/ | |
3505 | ||
3506 | /* HAS_ILOGBL: | |
3507 | * This symbol, if defined, indicates that the ilogbl routine is | |
3508 | * available. If scalbnl is also present we can emulate frexpl. | |
3509 | */ | |
3510 | #$d_ilogbl HAS_ILOGBL /**/ | |
3511 | ||
5086dff9 MB |
3512 | /* HAS_INETNTOP: |
3513 | * This symbol, if defined, indicates that the inet_ntop() function | |
3514 | * is available to parse IPv4 and IPv6 strings. | |
3515 | */ | |
3516 | #$d_inetntop HAS_INETNTOP /**/ | |
3517 | ||
3518 | /* HAS_INETPTON: | |
3519 | * This symbol, if defined, indicates that the inet_pton() function | |
3520 | * is available to parse IPv4 and IPv6 strings. | |
3521 | */ | |
3522 | #$d_inetpton HAS_INETPTON /**/ | |
3523 | ||
ed140128 AD |
3524 | /* HAS_INT64_T: |
3525 | * This symbol will defined if the C compiler supports int64_t. | |
3526 | * Usually the <inttypes.h> needs to be included, but sometimes | |
3527 | * <sys/types.h> is enough. | |
3528 | */ | |
3529 | #$d_int64_t HAS_INT64_T /**/ | |
3530 | ||
3531 | /* HAS_ISFINITE: | |
3532 | * This symbol, if defined, indicates that the isfinite routine is | |
3533 | * available to check whether a double is finite (non-infinity non-NaN). | |
3534 | */ | |
3535 | #$d_isfinite HAS_ISFINITE /**/ | |
3536 | ||
3537 | /* HAS_ISINF: | |
3538 | * This symbol, if defined, indicates that the isinf routine is | |
3539 | * available to check whether a double is an infinity. | |
3540 | */ | |
3541 | #$d_isinf HAS_ISINF /**/ | |
3542 | ||
3543 | /* HAS_ISNAN: | |
3544 | * This symbol, if defined, indicates that the isnan routine is | |
3545 | * available to check whether a double is a NaN. | |
3546 | */ | |
3547 | #$d_isnan HAS_ISNAN /**/ | |
3548 | ||
3549 | /* HAS_ISNANL: | |
3550 | * This symbol, if defined, indicates that the isnanl routine is | |
3551 | * available to check whether a long double is a NaN. | |
3552 | */ | |
3553 | #$d_isnanl HAS_ISNANL /**/ | |
3554 | ||
3555 | /* HAS_LDBL_DIG: | |
3556 | * This symbol, if defined, indicates that this system's <float.h> | |
3557 | * or <limits.h> defines the symbol LDBL_DIG, which is the number | |
3558 | * of significant digits in a long double precision number. Unlike | |
3559 | * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined. | |
3560 | */ | |
e5eef985 | 3561 | #$d_ldbl_dig HAS_LDBL_DIG /**/ |
ed140128 AD |
3562 | |
3563 | /* LIBM_LIB_VERSION: | |
3564 | * This symbol, if defined, indicates that libm exports _LIB_VERSION | |
3565 | * and that math.h defines the enum to manipulate it. | |
3566 | */ | |
3567 | #$d_libm_lib_version LIBM_LIB_VERSION /**/ | |
3568 | ||
3569 | /* HAS_MADVISE: | |
3570 | * This symbol, if defined, indicates that the madvise system call is | |
3571 | * available to map a file into memory. | |
3572 | */ | |
3573 | #$d_madvise HAS_MADVISE /**/ | |
3574 | ||
3575 | /* HAS_MALLOC_SIZE: | |
3576 | * This symbol, if defined, indicates that the malloc_size | |
3577 | * routine is available for use. | |
3578 | */ | |
3579 | #$d_malloc_size HAS_MALLOC_SIZE /**/ | |
3580 | ||
3581 | /* HAS_MALLOC_GOOD_SIZE: | |
3582 | * This symbol, if defined, indicates that the malloc_good_size | |
3583 | * routine is available for use. | |
3584 | */ | |
3585 | #$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/ | |
3586 | ||
3587 | /* HAS_MKDTEMP: | |
3588 | * This symbol, if defined, indicates that the mkdtemp routine is | |
3589 | * available to exclusively create a uniquely named temporary directory. | |
3590 | */ | |
3591 | #$d_mkdtemp HAS_MKDTEMP /**/ | |
3592 | ||
3593 | /* HAS_MKSTEMPS: | |
3594 | * This symbol, if defined, indicates that the mkstemps routine is | |
cd95ead5 | 3595 | * available to exclusively create and open a uniquely named |
ed140128 AD |
3596 | * (with a suffix) temporary file. |
3597 | */ | |
3598 | #$d_mkstemps HAS_MKSTEMPS /**/ | |
3599 | ||
3600 | /* HAS_MODFL: | |
3601 | * This symbol, if defined, indicates that the modfl routine is | |
3602 | * available to split a long double x into a fractional part f and | |
3603 | * an integer part i such that |f| < 1.0 and (f + i) = x. | |
3604 | */ | |
3605 | /* HAS_MODFL_PROTO: | |
3606 | * This symbol, if defined, indicates that the system provides | |
3607 | * a prototype for the modfl() function. Otherwise, it is up | |
3608 | * to the program to supply one. | |
3609 | */ | |
3610 | /* HAS_MODFL_POW32_BUG: | |
3611 | * This symbol, if defined, indicates that the modfl routine is | |
3612 | * broken for long doubles >= pow(2, 32). | |
3613 | * For example from 4294967303.150000 one would get 4294967302.000000 | |
3614 | * and 1.150000. The bug has been seen in certain versions of glibc, | |
3615 | * release 2.2.2 is known to be okay. | |
3616 | */ | |
3617 | #$d_modfl HAS_MODFL /**/ | |
3618 | #$d_modflproto HAS_MODFL_PROTO /**/ | |
3619 | #$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/ | |
3620 | ||
3621 | /* HAS_MPROTECT: | |
3622 | * This symbol, if defined, indicates that the mprotect system call is | |
3623 | * available to modify the access protection of a memory mapped file. | |
3624 | */ | |
3625 | #$d_mprotect HAS_MPROTECT /**/ | |
3626 | ||
3627 | /* HAS_STRUCT_MSGHDR: | |
3628 | * This symbol, if defined, indicates that the struct msghdr | |
3629 | * is supported. | |
3630 | */ | |
3631 | #$d_msghdr_s HAS_STRUCT_MSGHDR /**/ | |
3632 | ||
3633 | /* HAS_NL_LANGINFO: | |
3634 | * This symbol, if defined, indicates that the nl_langinfo routine is | |
3635 | * available to return local data. You will also need <langinfo.h> | |
3636 | * and therefore I_LANGINFO. | |
3637 | */ | |
3638 | #$d_nl_langinfo HAS_NL_LANGINFO /**/ | |
3639 | ||
3640 | /* HAS_OFF64_T: | |
3641 | * This symbol will be defined if the C compiler supports off64_t. | |
3642 | */ | |
3643 | #$d_off64_t HAS_OFF64_T /**/ | |
3644 | ||
c796e3db MB |
3645 | /* HAS_PRCTL: |
3646 | * This symbol, if defined, indicates that the prctl routine is | |
3647 | * available to set process title. | |
3648 | */ | |
3649 | /* HAS_PRCTL_SET_NAME: | |
3650 | * This symbol, if defined, indicates that the prctl routine is | |
3651 | * available to set process title and supports PR_SET_NAME. | |
3652 | */ | |
3653 | #$d_prctl HAS_PRCTL /**/ | |
3654 | #$d_prctl_set_name HAS_PRCTL_SET_NAME /**/ | |
3655 | ||
ed140128 AD |
3656 | /* HAS_PROCSELFEXE: |
3657 | * This symbol is defined if PROCSELFEXE_PATH is a symlink | |
3658 | * to the absolute pathname of the executing program. | |
3659 | */ | |
3660 | /* PROCSELFEXE_PATH: | |
3661 | * If HAS_PROCSELFEXE is defined this symbol is the filename | |
3662 | * of the symbolic link pointing to the absolute pathname of | |
3663 | * the executing program. | |
3664 | */ | |
3665 | #$d_procselfexe HAS_PROCSELFEXE /**/ | |
3666 | #if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH) | |
3667 | #define PROCSELFEXE_PATH $procselfexe /**/ | |
3668 | #endif | |
3669 | ||
3670 | /* HAS_PTHREAD_ATTR_SETSCOPE: | |
3671 | * This symbol, if defined, indicates that the pthread_attr_setscope | |
3672 | * system call is available to set the contention scope attribute of | |
3673 | * a thread attribute object. | |
3674 | */ | |
3675 | #$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/ | |
3676 | ||
3677 | /* HAS_READV: | |
3678 | * This symbol, if defined, indicates that the readv routine is | |
3679 | * available to do gather reads. You will also need <sys/uio.h> | |
3680 | * and there I_SYSUIO. | |
3681 | */ | |
3682 | #$d_readv HAS_READV /**/ | |
3683 | ||
3684 | /* HAS_RECVMSG: | |
3685 | * This symbol, if defined, indicates that the recvmsg routine is | |
3686 | * available to send structured socket messages. | |
3687 | */ | |
3688 | #$d_recvmsg HAS_RECVMSG /**/ | |
3689 | ||
3690 | /* HAS_SBRK_PROTO: | |
3691 | * This symbol, if defined, indicates that the system provides | |
3692 | * a prototype for the sbrk() function. Otherwise, it is up | |
3693 | * to the program to supply one. Good guesses are | |
3694 | * extern void* sbrk(int); | |
3695 | * extern void* sbrk(size_t); | |
3696 | */ | |
3697 | #$d_sbrkproto HAS_SBRK_PROTO /**/ | |
3698 | ||
3699 | /* HAS_SCALBNL: | |
3700 | * This symbol, if defined, indicates that the scalbnl routine is | |
3701 | * available. If ilogbl is also present we can emulate frexpl. | |
3702 | */ | |
3703 | #$d_scalbnl HAS_SCALBNL /**/ | |
3704 | ||
3705 | /* HAS_SENDMSG: | |
3706 | * This symbol, if defined, indicates that the sendmsg routine is | |
3707 | * available to send structured socket messages. | |
3708 | */ | |
3709 | #$d_sendmsg HAS_SENDMSG /**/ | |
3710 | ||
3711 | /* HAS_SETITIMER: | |
3712 | * This symbol, if defined, indicates that the setitimer routine is | |
3713 | * available to set interval timers. | |
3714 | */ | |
3715 | #$d_setitimer HAS_SETITIMER /**/ | |
3716 | ||
3717 | /* HAS_SETPROCTITLE: | |
3718 | * This symbol, if defined, indicates that the setproctitle routine is | |
3719 | * available to set process title. | |
3720 | */ | |
3721 | #$d_setproctitle HAS_SETPROCTITLE /**/ | |
3722 | ||
3723 | /* USE_SFIO: | |
3724 | * This symbol, if defined, indicates that sfio should | |
3725 | * be used. | |
3726 | */ | |
3727 | #$d_sfio USE_SFIO /**/ | |
3728 | ||
3729 | /* HAS_SIGNBIT: | |
3730 | * This symbol, if defined, indicates that the signbit routine is | |
3731 | * available to check if the given number has the sign bit set. | |
3732 | * This should include correct testing of -0.0. This will only be set | |
3733 | * if the signbit() routine is safe to use with the NV type used internally | |
3734 | * in perl. Users should call Perl_signbit(), which will be #defined to | |
3735 | * the system's signbit() function or macro if this symbol is defined. | |
3736 | */ | |
3737 | #$d_signbit HAS_SIGNBIT /**/ | |
3738 | ||
3739 | /* HAS_SIGPROCMASK: | |
3740 | * This symbol, if defined, indicates that the sigprocmask | |
3741 | * system call is available to examine or change the signal mask | |
3742 | * of the calling process. | |
3743 | */ | |
3744 | #$d_sigprocmask HAS_SIGPROCMASK /**/ | |
3745 | ||
3746 | /* USE_SITECUSTOMIZE: | |
3747 | * This symbol, if defined, indicates that sitecustomize should | |
3748 | * be used. | |
3749 | */ | |
3750 | #ifndef USE_SITECUSTOMIZE | |
3751 | #$usesitecustomize USE_SITECUSTOMIZE /**/ | |
3752 | #endif | |
3753 | ||
3754 | /* HAS_SNPRINTF: | |
3755 | * This symbol, if defined, indicates that the snprintf () library | |
3756 | * function is available for use. | |
3757 | */ | |
3758 | /* HAS_VSNPRINTF: | |
3759 | * This symbol, if defined, indicates that the vsnprintf () library | |
3760 | * function is available for use. | |
3761 | */ | |
3762 | #$d_snprintf HAS_SNPRINTF /**/ | |
3763 | #$d_vsnprintf HAS_VSNPRINTF /**/ | |
3764 | ||
3765 | /* HAS_SOCKATMARK: | |
3766 | * This symbol, if defined, indicates that the sockatmark routine is | |
3767 | * available to test whether a socket is at the out-of-band mark. | |
3768 | */ | |
3769 | #$d_sockatmark HAS_SOCKATMARK /**/ | |
3770 | ||
3771 | /* HAS_SOCKATMARK_PROTO: | |
3772 | * This symbol, if defined, indicates that the system provides | |
3773 | * a prototype for the sockatmark() function. Otherwise, it is up | |
3774 | * to the program to supply one. A good guess is | |
3775 | * extern int sockatmark(int); | |
3776 | */ | |
3777 | #$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/ | |
3778 | ||
3779 | /* HAS_SOCKS5_INIT: | |
3780 | * This symbol, if defined, indicates that the socks5_init routine is | |
3781 | * available to initialize SOCKS 5. | |