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