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