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