Commit | Line | Data |
---|---|---|
8d063cd8 LW |
1 | case $CONFIG in |
2 | '') | |
2304df62 AD |
3 | if test -f config.sh; then TOP=.; |
4 | elif test -f ../config.sh; then TOP=..; | |
5 | elif test -f ../../config.sh; then TOP=../..; | |
6 | elif test -f ../../../config.sh; then TOP=../../..; | |
7 | elif test -f ../../../../config.sh; then TOP=../../../..; | |
8 | else | |
9 | echo "Can't find config.sh."; exit 1 | |
10 | fi | |
11 | . $TOP/config.sh | |
12 | ;; | |
13 | esac | |
14 | case "$0" in | |
15 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; | |
8d063cd8 LW |
16 | esac |
17 | echo "Extracting config.h (with variable substitutions)" | |
a26b0745 | 18 | sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!' |
2304df62 AD |
19 | /* |
20 | * This file was produced by running the config_h.SH script, which | |
8d063cd8 LW |
21 | * gets its values from config.sh, which is generally produced by |
22 | * running Configure. | |
23 | * | |
24 | * Feel free to modify any of this as the need arises. Note, however, | |
1aef975c AD |
25 | * that running config_h.SH again will wipe out any changes you've made. |
26 | * For a more permanent change edit config.sh and rerun config_h.SH. | |
2304df62 | 27 | * |
dfe9444c | 28 | * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ |
8d063cd8 LW |
29 | */ |
30 | ||
dfe9444c AD |
31 | /* |
32 | * Package name : $package | |
33 | * Source directory : $src | |
34 | * Configuration time: $cf_time | |
35 | * Configured by : $cf_by | |
36 | * Target system : $myuname | |
2304df62 | 37 | */ |
8d063cd8 | 38 | |
2304df62 AD |
39 | #ifndef _config_h_ |
40 | #define _config_h_ | |
41 | ||
dfe9444c AD |
42 | /* LOC_SED: |
43 | * This symbol holds the complete pathname to the sed program. | |
774d564b | 44 | */ |
dfe9444c | 45 | #define LOC_SED "$full_sed" /**/ |
774d564b | 46 | |
2304df62 AD |
47 | /* BIN: |
48 | * This symbol holds the path of the bin directory where the package will | |
49 | * be installed. Program must be prepared to deal with ~name substitution. | |
a687059c | 50 | */ |
2ae324a7 | 51 | /* BIN_EXP: |
52 | * This symbol is the filename expanded version of the BIN symbol, for | |
53 | * programs that do not want to deal with that at run-time. | |
54 | */ | |
2304df62 | 55 | #define BIN "$bin" /**/ |
2ae324a7 | 56 | #define BIN_EXP "$binexp" /**/ |
a687059c | 57 | |
2304df62 | 58 | /* CPPSTDIN: |
36ce8bec DF |
59 | * This symbol contains the first part of the string which will invoke |
60 | * the C preprocessor on the standard input and produce to standard | |
2304df62 AD |
61 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
62 | * call a wrapper. See CPPRUN. | |
36ce8bec | 63 | */ |
2304df62 | 64 | /* CPPMINUS: |
36ce8bec DF |
65 | * This symbol contains the second part of the string which will invoke |
66 | * the C preprocessor on the standard input and produce to standard | |
378cc40b | 67 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus |
36ce8bec DF |
68 | * to specify standard input, otherwise the value is "". |
69 | */ | |
378cc40b | 70 | #define CPPSTDIN "$cppstdin" |
36ce8bec DF |
71 | #define CPPMINUS "$cppminus" |
72 | ||
a0d0e21e LW |
73 | /* HAS_ALARM: |
74 | * This symbol, if defined, indicates that the alarm routine is | |
75 | * available. | |
76 | */ | |
77 | #$d_alarm HAS_ALARM /**/ | |
78 | ||
ecfc5424 AD |
79 | /* HASATTRIBUTE: |
80 | * This symbol indicates the C compiler can check for function attributes, | |
81 | * such as printf formats. This is normally only supported by GNU cc. | |
82 | */ | |
83 | #$d_attribut HASATTRIBUTE /**/ | |
84 | #ifndef HASATTRIBUTE | |
85 | #define __attribute__(_arg_) | |
86 | #endif | |
87 | ||
2304df62 AD |
88 | /* HAS_BCMP: |
89 | * This symbol is defined if the bcmp() routine is available to | |
90 | * compare blocks of memory. | |
a687059c | 91 | */ |
2304df62 | 92 | #$d_bcmp HAS_BCMP /**/ |
a687059c | 93 | |
2304df62 AD |
94 | /* HAS_BCOPY: |
95 | * This symbol is defined if the bcopy() routine is available to | |
96 | * copy blocks of memory. | |
c51b80d1 | 97 | */ |
2304df62 | 98 | #$d_bcopy HAS_BCOPY /**/ |
c51b80d1 | 99 | |
2304df62 AD |
100 | /* HAS_BZERO: |
101 | * This symbol is defined if the bzero() routine is available to | |
102 | * set a memory block to 0. | |
0d3e774c | 103 | */ |
2304df62 | 104 | #$d_bzero HAS_BZERO /**/ |
0d3e774c | 105 | |
a0d0e21e LW |
106 | /* HAS_CHOWN: |
107 | * This symbol, if defined, indicates that the chown routine is | |
108 | * available. | |
109 | */ | |
110 | #$d_chown HAS_CHOWN /**/ | |
111 | ||
112 | /* HAS_CHROOT: | |
113 | * This symbol, if defined, indicates that the chroot routine is | |
114 | * available. | |
115 | */ | |
116 | #$d_chroot HAS_CHROOT /**/ | |
117 | ||
2304df62 | 118 | /* HAS_CHSIZE: |
87250799 LW |
119 | * This symbol, if defined, indicates that the chsize routine is available |
120 | * to truncate files. You might need a -lx to get this routine. | |
121 | */ | |
fe14fcc3 | 122 | #$d_chsize HAS_CHSIZE /**/ |
87250799 | 123 | |
2304df62 AD |
124 | /* HASCONST: |
125 | * This symbol, if defined, indicates that this C compiler knows about | |
126 | * the const type. There is no need to actually test for that symbol | |
127 | * within your programs. The mere use of the "const" keyword will | |
128 | * trigger the necessary tests. | |
129 | */ | |
130 | #$d_const HASCONST /**/ | |
131 | #ifndef HASCONST | |
132 | #define const | |
133 | #endif | |
134 | ||
135 | /* HAS_CRYPT: | |
2e1b3b7e KK |
136 | * This symbol, if defined, indicates that the crypt routine is available |
137 | * to encrypt passwords and the like. | |
138 | */ | |
2304df62 | 139 | #$d_crypt HAS_CRYPT /**/ |
2e1b3b7e | 140 | |
a0d0e21e LW |
141 | /* HAS_CUSERID: |
142 | * This symbol, if defined, indicates that the cuserid routine is | |
143 | * available to get character login names. | |
13281fa4 | 144 | */ |
a0d0e21e LW |
145 | #$d_cuserid HAS_CUSERID /**/ |
146 | ||
147 | /* HAS_DBL_DIG: | |
148 | * This symbol, if defined, indicates that this system's <float.h> | |
149 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
150 | * of significant digits in a double precision number. If this | |
151 | * symbol is not defined, a guess of 15 is usually pretty good. | |
152 | */ | |
153 | #$d_dbl_dig HAS_DBL_DIG /* */ | |
154 | ||
155 | /* HAS_DIFFTIME: | |
156 | * This symbol, if defined, indicates that the difftime routine is | |
157 | * available. | |
158 | */ | |
159 | #$d_difftime HAS_DIFFTIME /**/ | |
13281fa4 | 160 | |
ecfc5424 AD |
161 | /* HAS_DLERROR: |
162 | * This symbol, if defined, indicates that the dlerror routine is | |
163 | * available to return a string describing the last error that | |
164 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
165 | */ | |
166 | #$d_dlerror HAS_DLERROR /**/ | |
167 | ||
dfe9444c AD |
168 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
169 | * This symbol, if defined, indicates that the bug that prevents | |
170 | * setuid scripts from being secure is not present in this kernel. | |
171 | */ | |
172 | /* DOSUID: | |
173 | * This symbol, if defined, indicates that the C program should | |
174 | * check the script that it is executing for setuid/setgid bits, and | |
175 | * attempt to emulate setuid/setgid on systems that have disabled | |
176 | * setuid #! scripts because the kernel can't do it securely. | |
177 | * It is up to the package designer to make sure that this emulation | |
178 | * is done securely. Among other things, it should do an fstat on | |
179 | * the script it just opened to make sure it really is a setuid/setgid | |
180 | * script, it should make sure the arguments passed correspond exactly | |
181 | * to the argument on the #! line, and it should not trust any | |
182 | * subprocesses to which it must pass the filename rather than the | |
183 | * file descriptor of the script to be executed. | |
184 | */ | |
185 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ | |
186 | #$d_dosuid DOSUID /**/ | |
187 | ||
2304df62 AD |
188 | /* HAS_DUP2: |
189 | * This symbol, if defined, indicates that the dup2 routine is | |
190 | * available to duplicate file descriptors. | |
a687059c | 191 | */ |
2304df62 | 192 | #$d_dup2 HAS_DUP2 /**/ |
a687059c | 193 | |
2304df62 | 194 | /* HAS_FCHMOD: |
378cc40b LW |
195 | * This symbol, if defined, indicates that the fchmod routine is available |
196 | * to change mode of opened files. If unavailable, use chmod(). | |
197 | */ | |
2304df62 | 198 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b | 199 | |
2304df62 | 200 | /* HAS_FCHOWN: |
378cc40b LW |
201 | * This symbol, if defined, indicates that the fchown routine is available |
202 | * to change ownership of opened files. If unavailable, use chown(). | |
203 | */ | |
2304df62 | 204 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b | 205 | |
2304df62 | 206 | /* HAS_FCNTL: |
fe14fcc3 LW |
207 | * This symbol, if defined, indicates to the C program that |
208 | * the fcntl() function exists. | |
a687059c | 209 | */ |
2304df62 | 210 | #$d_fcntl HAS_FCNTL /**/ |
a687059c | 211 | |
a0d0e21e LW |
212 | /* HAS_FGETPOS: |
213 | * This symbol, if defined, indicates that the fgetpos routine is | |
214 | * available to get the file position indicator, similar to ftell(). | |
215 | */ | |
216 | #$d_fgetpos HAS_FGETPOS /**/ | |
217 | ||
2304df62 | 218 | /* FLEXFILENAMES: |
7e1cf235 LW |
219 | * This symbol, if defined, indicates that the system supports filenames |
220 | * longer than 14 characters. | |
221 | */ | |
222 | #$d_flexfnam FLEXFILENAMES /**/ | |
223 | ||
2304df62 AD |
224 | /* HAS_FLOCK: |
225 | * This symbol, if defined, indicates that the flock routine is | |
a687059c LW |
226 | * available to do file locking. |
227 | */ | |
2304df62 | 228 | #$d_flock HAS_FLOCK /**/ |
a687059c | 229 | |
a0d0e21e LW |
230 | /* HAS_FORK: |
231 | * This symbol, if defined, indicates that the fork routine is | |
232 | * available. | |
233 | */ | |
234 | #$d_fork HAS_FORK /**/ | |
235 | ||
236 | /* HAS_FSETPOS: | |
237 | * This symbol, if defined, indicates that the fsetpos routine is | |
238 | * available to set the file position indicator, similar to fseek(). | |
239 | */ | |
240 | #$d_fsetpos HAS_FSETPOS /**/ | |
241 | ||
465fbd0a JH |
242 | /* I_SYS_MOUNT: |
243 | * This symbol, if defined, indicates to the C program that it should | |
244 | * include <sys/mount.h>. | |
245 | */ | |
246 | #$i_sysmount I_SYS_MOUNT /**/ | |
247 | ||
248 | /* HAS_FSTATFS: | |
249 | * This symbol, if defined, indicates that the fstatfs routine is | |
250 | * available to stat the filesystem of a file descriptor. | |
251 | */ | |
252 | #$d_fstatfs HAS_FSTATFS /**/ | |
253 | ||
254 | /* HAS_STRUCT_STATFS_FLAGS: | |
255 | * This symbol, if defined, indicates that the struct statfs has | |
256 | * the f_flags member for mount flags. | |
257 | */ | |
258 | #$d_statfsflags HAS_STRUCT_STATFS_FLAGS /**/ | |
259 | ||
260 | /* I_SYS_STATVFS: | |
261 | * This symbol, if defined, indicates to the C program that it should | |
262 | * include <sys/statvfs.h>. | |
263 | */ | |
264 | #$i_sysstatvfs I_SYS_STATVFS /**/ | |
265 | ||
266 | /* HAS_FSTATVFS: | |
267 | * This symbol, if defined, indicates that the fstatvfs routine is | |
268 | * available to stat the filesystem of a file descriptor. | |
269 | */ | |
f82e96e5 | 270 | #$d_fstatvfs HAS_FSTATVFS /**/ |
465fbd0a JH |
271 | |
272 | /* I_MNTENT: | |
273 | * This symbol, if defined, indicates to the C program that it should | |
274 | * include <mntent.h>. | |
275 | */ | |
f82e96e5 | 276 | #$i_mntent I_MNTENT /**/ |
465fbd0a JH |
277 | |
278 | /* HAS_GETMNTENT: | |
279 | * This symbol, if defined, indicates that the getmntent routine is | |
280 | * available to lookup mount entries in some data base or other. | |
281 | */ | |
282 | #$d_getmntent HAS_GETMNTENT /**/ | |
283 | ||
284 | /* HAS_HASMNTOPT: | |
285 | * This symbol, if defined, indicates that the hasmntopt routine is | |
286 | * available to query mount entries returned by getmntent. | |
287 | */ | |
288 | #$d_hasmntopt HAS_HASMNTOPT /**/ | |
289 | ||
5f05dabc | 290 | /* HAS_GETTIMEOFDAY: |
291 | * This symbol, if defined, indicates that the gettimeofday() system | |
292 | * call is available for a sub-second accuracy clock. Usually, the file | |
293 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). | |
294 | * The type "Timeval" should be used to refer to "struct timeval". | |
295 | */ | |
296 | #$d_gettimeod HAS_GETTIMEOFDAY /**/ | |
297 | #ifdef HAS_GETTIMEOFDAY | |
298 | #define Timeval struct timeval /* Structure used by gettimeofday() */ | |
299 | #endif | |
300 | ||
2304df62 | 301 | /* HAS_GETGROUPS: |
378cc40b LW |
302 | * This symbol, if defined, indicates that the getgroups() routine is |
303 | * available to get the list of process groups. If unavailable, multiple | |
304 | * groups are probably not supported. | |
305 | */ | |
2304df62 | 306 | #$d_getgrps HAS_GETGROUPS /**/ |
378cc40b | 307 | |
2304df62 AD |
308 | /* HAS_UNAME: |
309 | * This symbol, if defined, indicates that the C program may use the | |
310 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
311 | * and PHOSTNAME. | |
312 | */ | |
313 | #$d_uname HAS_UNAME /**/ | |
a687059c | 314 | |
a0d0e21e LW |
315 | /* HAS_GETLOGIN: |
316 | * This symbol, if defined, indicates that the getlogin routine is | |
317 | * available to get the login name. | |
318 | */ | |
319 | #$d_getlogin HAS_GETLOGIN /**/ | |
320 | ||
dfe9444c AD |
321 | /* HAS_GETPGID: |
322 | * This symbol, if defined, indicates to the C program that | |
323 | * the getpgid(pid) function is available to get the | |
324 | * process group id. | |
325 | */ | |
326 | #$d_getpgid HAS_GETPGID /**/ | |
327 | ||
328 | /* HAS_GETPGRP: | |
329 | * This symbol, if defined, indicates that the getpgrp routine is | |
330 | * available to get the current process group. | |
331 | */ | |
332 | /* USE_BSD_GETPGRP: | |
333 | * This symbol, if defined, indicates that getpgrp needs one | |
334 | * arguments whereas USG one needs none. | |
335 | */ | |
336 | #$d_getpgrp HAS_GETPGRP /**/ | |
337 | #$d_bsdgetpgrp USE_BSD_GETPGRP /**/ | |
338 | ||
2304df62 | 339 | /* HAS_GETPGRP2: |
d8f2e4cc LW |
340 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
341 | * routine is available to get the current process group. | |
342 | */ | |
2304df62 | 343 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
d8f2e4cc | 344 | |
a0d0e21e LW |
345 | /* HAS_GETPPID: |
346 | * This symbol, if defined, indicates that the getppid routine is | |
347 | * available to get the parent process ID. | |
348 | */ | |
349 | #$d_getppid HAS_GETPPID /**/ | |
350 | ||
2304df62 AD |
351 | /* HAS_GETPRIORITY: |
352 | * This symbol, if defined, indicates that the getpriority routine is | |
a687059c LW |
353 | * available to get a process's priority. |
354 | */ | |
2304df62 | 355 | #$d_getprior HAS_GETPRIORITY /**/ |
a687059c | 356 | |
a0d0e21e LW |
357 | /* HAS_HTONL: |
358 | * This symbol, if defined, indicates that the htonl() routine (and | |
359 | * friends htons() ntohl() ntohs()) are available to do network | |
360 | * order byte swapping. | |
361 | */ | |
362 | /* HAS_HTONS: | |
363 | * This symbol, if defined, indicates that the htons() routine (and | |
364 | * friends htonl() ntohl() ntohs()) are available to do network | |
365 | * order byte swapping. | |
366 | */ | |
367 | /* HAS_NTOHL: | |
368 | * This symbol, if defined, indicates that the ntohl() routine (and | |
369 | * friends htonl() htons() ntohs()) are available to do network | |
370 | * order byte swapping. | |
371 | */ | |
372 | /* HAS_NTOHS: | |
373 | * This symbol, if defined, indicates that the ntohs() routine (and | |
374 | * friends htonl() htons() ntohl()) are available to do network | |
375 | * order byte swapping. | |
376 | */ | |
377 | #$d_htonl HAS_HTONL /**/ | |
378 | #$d_htonl HAS_HTONS /**/ | |
379 | #$d_htonl HAS_NTOHL /**/ | |
380 | #$d_htonl HAS_NTOHS /**/ | |
381 | ||
dfe9444c AD |
382 | /* HAS_INET_ATON: |
383 | * This symbol, if defined, indicates to the C program that the | |
384 | * inet_aton() function is available to parse IP address "dotted-quad" | |
385 | * strings. | |
ecfc5424 | 386 | */ |
dfe9444c | 387 | #$d_inetaton HAS_INET_ATON /**/ |
ecfc5424 | 388 | |
2304df62 | 389 | /* HAS_KILLPG: |
378cc40b LW |
390 | * This symbol, if defined, indicates that the killpg routine is available |
391 | * to kill process groups. If unavailable, you probably should use kill | |
392 | * with a negative process number. | |
393 | */ | |
2304df62 | 394 | #$d_killpg HAS_KILLPG /**/ |
378cc40b | 395 | |
2304df62 AD |
396 | /* HAS_LINK: |
397 | * This symbol, if defined, indicates that the link routine is | |
398 | * available to create hard links. | |
0d3e774c | 399 | */ |
2304df62 | 400 | #$d_link HAS_LINK /**/ |
0d3e774c | 401 | |
ecfc5424 AD |
402 | /* HAS_LOCALECONV: |
403 | * This symbol, if defined, indicates that the localeconv routine is | |
404 | * available for numeric and monetary formatting conventions. | |
405 | */ | |
406 | #$d_locconv HAS_LOCALECONV /**/ | |
407 | ||
a0d0e21e LW |
408 | /* HAS_LOCKF: |
409 | * This symbol, if defined, indicates that the lockf routine is | |
410 | * available to do file locking. | |
411 | */ | |
412 | #$d_lockf HAS_LOCKF /**/ | |
413 | ||
2304df62 AD |
414 | /* HAS_LSTAT: |
415 | * This symbol, if defined, indicates that the lstat routine is | |
416 | * available to do file stats on symbolic links. | |
a687059c | 417 | */ |
2304df62 | 418 | #$d_lstat HAS_LSTAT /**/ |
a687059c | 419 | |
a0d0e21e LW |
420 | /* HAS_MBLEN: |
421 | * This symbol, if defined, indicates that the mblen routine is available | |
422 | * to find the number of bytes in a multibye character. | |
423 | */ | |
424 | #$d_mblen HAS_MBLEN /**/ | |
425 | ||
426 | /* HAS_MBSTOWCS: | |
427 | * This symbol, if defined, indicates that the mbstowcs routine is | |
428 | * available to covert a multibyte string into a wide character string. | |
429 | */ | |
430 | #$d_mbstowcs HAS_MBSTOWCS /**/ | |
431 | ||
432 | /* HAS_MBTOWC: | |
433 | * This symbol, if defined, indicates that the mbtowc routine is available | |
434 | * to covert a multibyte to a wide character. | |
435 | */ | |
436 | #$d_mbtowc HAS_MBTOWC /**/ | |
437 | ||
2304df62 AD |
438 | /* HAS_MEMCMP: |
439 | * This symbol, if defined, indicates that the memcmp routine is available | |
440 | * to compare blocks of memory. | |
378cc40b | 441 | */ |
2304df62 AD |
442 | #$d_memcmp HAS_MEMCMP /**/ |
443 | ||
444 | /* HAS_MEMCPY: | |
9f971974 | 445 | * This symbol, if defined, indicates that the memcpy routine is available |
2304df62 | 446 | * to copy blocks of memory. |
9f971974 | 447 | */ |
2304df62 | 448 | #$d_memcpy HAS_MEMCPY /**/ |
9f971974 | 449 | |
2304df62 | 450 | /* HAS_MEMMOVE: |
9f971974 | 451 | * This symbol, if defined, indicates that the memmove routine is available |
2304df62 AD |
452 | * to copy potentially overlapping blocks of memory. This should be used |
453 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
454 | * own version. | |
9f971974 | 455 | */ |
2304df62 | 456 | #$d_memmove HAS_MEMMOVE /**/ |
9f971974 | 457 | |
2304df62 | 458 | /* HAS_MEMSET: |
9f971974 | 459 | * This symbol, if defined, indicates that the memset routine is available |
2304df62 | 460 | * to set blocks of memory. |
9f971974 | 461 | */ |
2304df62 | 462 | #$d_memset HAS_MEMSET /**/ |
378cc40b | 463 | |
2304df62 | 464 | /* HAS_MKDIR: |
a687059c LW |
465 | * This symbol, if defined, indicates that the mkdir routine is available |
466 | * to create directories. Otherwise you should fork off a new process to | |
467 | * exec /bin/mkdir. | |
468 | */ | |
2304df62 | 469 | #$d_mkdir HAS_MKDIR /**/ |
fe14fcc3 | 470 | |
ecfc5424 AD |
471 | /* HAS_MKFIFO: |
472 | * This symbol, if defined, indicates that the mkfifo routine is | |
473 | * available to create FIFOs. Otherwise, mknod should be able to | |
474 | * do it for you. However, if mkfifo is there, mknod might require | |
475 | * super-user privileges which mkfifo will not. | |
476 | */ | |
477 | #$d_mkfifo HAS_MKFIFO /**/ | |
478 | ||
a0d0e21e LW |
479 | /* HAS_MKTIME: |
480 | * This symbol, if defined, indicates that the mktime routine is | |
481 | * available. | |
482 | */ | |
483 | #$d_mktime HAS_MKTIME /**/ | |
484 | ||
2304df62 | 485 | /* HAS_MSG: |
fe14fcc3 | 486 | * This symbol, if defined, indicates that the entire msg*(2) library is |
2304df62 | 487 | * supported (IPC mechanism based on message queues). |
fe14fcc3 | 488 | */ |
2304df62 | 489 | #$d_msg HAS_MSG /**/ |
fe14fcc3 | 490 | |
a0d0e21e LW |
491 | /* HAS_NICE: |
492 | * This symbol, if defined, indicates that the nice routine is | |
493 | * available. | |
fe14fcc3 | 494 | */ |
a0d0e21e | 495 | #$d_nice HAS_NICE /**/ |
a687059c | 496 | |
ecfc5424 AD |
497 | /* HAS_PATHCONF: |
498 | * This symbol, if defined, indicates that pathconf() is available | |
499 | * to determine file-system related limits and options associated | |
500 | * with a given filename. | |
501 | */ | |
502 | /* HAS_FPATHCONF: | |
503 | * This symbol, if defined, indicates that pathconf() is available | |
504 | * to determine file-system related limits and options associated | |
505 | * with a given open file descriptor. | |
506 | */ | |
507 | #$d_pathconf HAS_PATHCONF /**/ | |
508 | #$d_fpathconf HAS_FPATHCONF /**/ | |
509 | ||
a0d0e21e LW |
510 | /* HAS_PAUSE: |
511 | * This symbol, if defined, indicates that the pause routine is | |
512 | * available to suspend a process until a signal is received. | |
a687059c | 513 | */ |
a0d0e21e | 514 | #$d_pause HAS_PAUSE /**/ |
a687059c | 515 | |
a0d0e21e LW |
516 | /* HAS_PIPE: |
517 | * This symbol, if defined, indicates that the pipe routine is | |
518 | * available to create an inter-process channel. | |
fe14fcc3 | 519 | */ |
a0d0e21e LW |
520 | #$d_pipe HAS_PIPE /**/ |
521 | ||
8e07c86e AD |
522 | /* HAS_POLL: |
523 | * This symbol, if defined, indicates that the poll routine is | |
dfe9444c AD |
524 | * available to poll active file descriptors. You may safely |
525 | * include <poll.h> when this symbol is defined. | |
8e07c86e AD |
526 | */ |
527 | #$d_poll HAS_POLL /**/ | |
528 | ||
a0d0e21e LW |
529 | /* HAS_READDIR: |
530 | * This symbol, if defined, indicates that the readdir routine is | |
531 | * available to read directory entries. You may have to include | |
532 | * <dirent.h>. See I_DIRENT. | |
533 | */ | |
534 | #$d_readdir HAS_READDIR /**/ | |
535 | ||
536 | /* HAS_SEEKDIR: | |
537 | * This symbol, if defined, indicates that the seekdir routine is | |
538 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
539 | */ | |
540 | #$d_seekdir HAS_SEEKDIR /**/ | |
541 | ||
542 | /* HAS_TELLDIR: | |
543 | * This symbol, if defined, indicates that the telldir routine is | |
544 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
545 | */ | |
546 | #$d_telldir HAS_TELLDIR /**/ | |
547 | ||
548 | /* HAS_REWINDDIR: | |
549 | * This symbol, if defined, indicates that the rewinddir routine is | |
550 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
551 | */ | |
552 | #$d_rewinddir HAS_REWINDDIR /**/ | |
553 | ||
554 | /* HAS_READLINK: | |
555 | * This symbol, if defined, indicates that the readlink routine is | |
556 | * available to read the value of a symbolic link. | |
557 | */ | |
558 | #$d_readlink HAS_READLINK /**/ | |
fe14fcc3 | 559 | |
2304df62 | 560 | /* HAS_RENAME: |
378cc40b LW |
561 | * This symbol, if defined, indicates that the rename routine is available |
562 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
563 | * trick. | |
564 | */ | |
2304df62 | 565 | #$d_rename HAS_RENAME /**/ |
378cc40b | 566 | |
2304df62 AD |
567 | /* HAS_RMDIR: |
568 | * This symbol, if defined, indicates that the rmdir routine is | |
569 | * available to remove directories. Otherwise you should fork off a | |
570 | * new process to exec /bin/rmdir. | |
9f971974 | 571 | */ |
2304df62 | 572 | #$d_rmdir HAS_RMDIR /**/ |
9f971974 | 573 | |
2304df62 AD |
574 | /* HAS_SELECT: |
575 | * This symbol, if defined, indicates that the select routine is | |
576 | * available to select active file descriptors. If the timeout field | |
577 | * is used, <sys/time.h> may need to be included. | |
fe14fcc3 | 578 | */ |
2304df62 | 579 | #$d_select HAS_SELECT /**/ |
a687059c | 580 | |
2304df62 | 581 | /* HAS_SEM: |
fe14fcc3 LW |
582 | * This symbol, if defined, indicates that the entire sem*(2) library is |
583 | * supported. | |
584 | */ | |
2304df62 | 585 | #$d_sem HAS_SEM /**/ |
fe14fcc3 | 586 | |
2304df62 | 587 | /* HAS_SETEGID: |
378cc40b LW |
588 | * This symbol, if defined, indicates that the setegid routine is available |
589 | * to change the effective gid of the current program. | |
590 | */ | |
2304df62 | 591 | #$d_setegid HAS_SETEGID /**/ |
378cc40b | 592 | |
2304df62 | 593 | /* HAS_SETEUID: |
378cc40b LW |
594 | * This symbol, if defined, indicates that the seteuid routine is available |
595 | * to change the effective uid of the current program. | |
596 | */ | |
2304df62 AD |
597 | #$d_seteuid HAS_SETEUID /**/ |
598 | ||
a0d0e21e LW |
599 | /* HAS_SETLINEBUF: |
600 | * This symbol, if defined, indicates that the setlinebuf routine is | |
601 | * available to change stderr or stdout from block-buffered or unbuffered | |
602 | * to a line-buffered mode. | |
603 | */ | |
604 | #$d_setlinebuf HAS_SETLINEBUF /**/ | |
605 | ||
606 | /* HAS_SETLOCALE: | |
607 | * This symbol, if defined, indicates that the setlocale routine is | |
608 | * available to handle locale-specific ctype implementations. | |
609 | */ | |
610 | #$d_setlocale HAS_SETLOCALE /**/ | |
611 | ||
dfe9444c AD |
612 | /* HAS_SETPGID: |
613 | * This symbol, if defined, indicates that the setpgid(pid, gpid) | |
614 | * routine is available to set process group ID. | |
615 | */ | |
616 | #$d_setpgid HAS_SETPGID /**/ | |
617 | ||
618 | /* HAS_SETPGRP: | |
619 | * This symbol, if defined, indicates that the setpgrp routine is | |
620 | * available to set the current process group. | |
621 | */ | |
622 | /* USE_BSD_SETPGRP: | |
623 | * This symbol, if defined, indicates that setpgrp needs two | |
624 | * arguments whereas USG one needs none. See also HAS_SETPGID | |
625 | * for a POSIX interface. | |
626 | */ | |
627 | #$d_setpgrp HAS_SETPGRP /**/ | |
628 | #$d_bsdsetpgrp USE_BSD_SETPGRP /**/ | |
629 | ||
2304df62 | 630 | /* HAS_SETPGRP2: |
d8f2e4cc LW |
631 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
632 | * routine is available to set the current process group. | |
633 | */ | |
2304df62 | 634 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
d8f2e4cc | 635 | |
2304df62 AD |
636 | /* HAS_SETPRIORITY: |
637 | * This symbol, if defined, indicates that the setpriority routine is | |
a687059c LW |
638 | * available to set a process's priority. |
639 | */ | |
2304df62 | 640 | #$d_setprior HAS_SETPRIORITY /**/ |
a687059c | 641 | |
2304df62 | 642 | /* HAS_SETREGID: |
a687059c | 643 | * This symbol, if defined, indicates that the setregid routine is |
2304df62 AD |
644 | * available to change the real and effective gid of the current |
645 | * process. | |
a687059c | 646 | */ |
2304df62 | 647 | /* HAS_SETRESGID: |
a687059c LW |
648 | * This symbol, if defined, indicates that the setresgid routine is |
649 | * available to change the real, effective and saved gid of the current | |
2304df62 | 650 | * process. |
a687059c | 651 | */ |
2304df62 AD |
652 | #$d_setregid HAS_SETREGID /**/ |
653 | #$d_setresgid HAS_SETRESGID /**/ | |
a687059c | 654 | |
2304df62 | 655 | /* HAS_SETREUID: |
a687059c | 656 | * This symbol, if defined, indicates that the setreuid routine is |
2304df62 AD |
657 | * available to change the real and effective uid of the current |
658 | * process. | |
a687059c | 659 | */ |
2304df62 | 660 | /* HAS_SETRESUID: |
a687059c LW |
661 | * This symbol, if defined, indicates that the setresuid routine is |
662 | * available to change the real, effective and saved uid of the current | |
2304df62 | 663 | * process. |
a687059c | 664 | */ |
2304df62 AD |
665 | #$d_setreuid HAS_SETREUID /**/ |
666 | #$d_setresuid HAS_SETRESUID /**/ | |
a687059c | 667 | |
2304df62 | 668 | /* HAS_SETRGID: |
378cc40b LW |
669 | * This symbol, if defined, indicates that the setrgid routine is available |
670 | * to change the real gid of the current program. | |
671 | */ | |
2304df62 | 672 | #$d_setrgid HAS_SETRGID /**/ |
378cc40b | 673 | |
2304df62 | 674 | /* HAS_SETRUID: |
378cc40b LW |
675 | * This symbol, if defined, indicates that the setruid routine is available |
676 | * to change the real uid of the current program. | |
677 | */ | |
2304df62 AD |
678 | #$d_setruid HAS_SETRUID /**/ |
679 | ||
680 | /* HAS_SETSID: | |
681 | * This symbol, if defined, indicates that the setsid routine is | |
682 | * available to set the process group ID. | |
683 | */ | |
684 | #$d_setsid HAS_SETSID /**/ | |
fe14fcc3 | 685 | |
2304df62 | 686 | /* HAS_SHM: |
fe14fcc3 LW |
687 | * This symbol, if defined, indicates that the entire shm*(2) library is |
688 | * supported. | |
689 | */ | |
2304df62 | 690 | #$d_shm HAS_SHM /**/ |
fe14fcc3 | 691 | |
a0d0e21e LW |
692 | /* Shmat_t: |
693 | * This symbol holds the return type of the shmat() system call. | |
694 | * Usually set to 'void *' or 'char *'. | |
fe14fcc3 | 695 | */ |
a0d0e21e LW |
696 | /* HAS_SHMAT_PROTOTYPE: |
697 | * This symbol, if defined, indicates that the sys/shm.h includes | |
698 | * a prototype for shmat(). Otherwise, it is up to the program to | |
699 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, | |
700 | * but not always right so it should be emitted by the program only | |
701 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
fe14fcc3 | 702 | */ |
a0d0e21e LW |
703 | #define Shmat_t $shmattype /**/ |
704 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ | |
fe14fcc3 | 705 | |
2304df62 | 706 | /* USE_STAT_BLOCKS: |
c51b80d1 LW |
707 | * This symbol is defined if this system has a stat structure declaring |
708 | * st_blksize and st_blocks. | |
709 | */ | |
2304df62 | 710 | #$d_statblks USE_STAT_BLOCKS /**/ |
c51b80d1 | 711 | |
dfe9444c AD |
712 | /* HAS_STRCHR: |
713 | * This symbol is defined to indicate that the strchr()/strrchr() | |
714 | * functions are available for string searching. If not, try the | |
715 | * index()/rindex() pair. | |
16d20bd9 | 716 | */ |
dfe9444c AD |
717 | /* HAS_INDEX: |
718 | * This symbol is defined to indicate that the index()/rindex() | |
719 | * functions are available for string searching. | |
c2960299 | 720 | */ |
dfe9444c AD |
721 | #$d_strchr HAS_STRCHR /**/ |
722 | #$d_index HAS_INDEX /**/ | |
723 | ||
724 | /* HAS_STRCOLL: | |
725 | * This symbol, if defined, indicates that the strcoll routine is | |
726 | * available to compare strings using collating information. | |
16d20bd9 | 727 | */ |
dfe9444c AD |
728 | #$d_strcoll HAS_STRCOLL /**/ |
729 | ||
730 | /* USE_STRUCT_COPY: | |
731 | * This symbol, if defined, indicates that this C compiler knows how | |
732 | * to copy structures. If undefined, you'll need to use a block copy | |
733 | * routine of some sort instead. | |
c2960299 | 734 | */ |
dfe9444c | 735 | #$d_strctcpy USE_STRUCT_COPY /**/ |
8d063cd8 | 736 | |
a0d0e21e LW |
737 | /* HAS_STRERROR: |
738 | * This symbol, if defined, indicates that the strerror routine is | |
739 | * available to translate error numbers to strings. See the writeup | |
740 | * of Strerror() in this file before you try to define your own. | |
741 | */ | |
742 | /* HAS_SYS_ERRLIST: | |
743 | * This symbol, if defined, indicates that the sys_errlist array is | |
744 | * available to translate error numbers to strings. The extern int | |
745 | * sys_nerr gives the size of that table. | |
746 | */ | |
747 | /* Strerror: | |
748 | * This preprocessor symbol is defined as a macro if strerror() is | |
749 | * not available to translate error numbers to strings but sys_errlist[] | |
750 | * array is there. | |
751 | */ | |
752 | #$d_strerror HAS_STRERROR /**/ | |
753 | #$d_syserrlst HAS_SYS_ERRLIST /**/ | |
754 | #define Strerror(e) $d_strerrm | |
755 | ||
a89d8a78 DH |
756 | /* HAS_STRTOD: |
757 | * This symbol, if defined, indicates that the strtod routine is | |
5f05dabc | 758 | * available to provide better numeric string conversion than atof(). |
a89d8a78 DH |
759 | */ |
760 | #$d_strtod HAS_STRTOD /**/ | |
761 | ||
762 | /* HAS_STRTOL: | |
5f05dabc | 763 | * This symbol, if defined, indicates that the strtol routine is available |
764 | * to provide better numeric string conversion than atoi() and friends. | |
a89d8a78 DH |
765 | */ |
766 | #$d_strtol HAS_STRTOL /**/ | |
767 | ||
768 | /* HAS_STRTOUL: | |
769 | * This symbol, if defined, indicates that the strtoul routine is | |
5f05dabc | 770 | * available to provide conversion of strings to unsigned long. |
a89d8a78 DH |
771 | */ |
772 | #$d_strtoul HAS_STRTOUL /**/ | |
773 | ||
a0d0e21e LW |
774 | /* HAS_STRXFRM: |
775 | * This symbol, if defined, indicates that the strxfrm() routine is | |
776 | * available to transform strings. | |
777 | */ | |
778 | #$d_strxfrm HAS_STRXFRM /**/ | |
779 | ||
2304df62 | 780 | /* HAS_SYMLINK: |
2e1b3b7e KK |
781 | * This symbol, if defined, indicates that the symlink routine is available |
782 | * to create symbolic links. | |
783 | */ | |
2304df62 | 784 | #$d_symlink HAS_SYMLINK /**/ |
2e1b3b7e | 785 | |
2304df62 AD |
786 | /* HAS_SYSCALL: |
787 | * This symbol, if defined, indicates that the syscall routine is | |
788 | * available to call arbitrary system calls. If undefined, that's tough. | |
a687059c | 789 | */ |
2304df62 | 790 | #$d_syscall HAS_SYSCALL /**/ |
e5d73d77 | 791 | |
ecfc5424 AD |
792 | /* HAS_SYSCONF: |
793 | * This symbol, if defined, indicates that sysconf() is available | |
794 | * to determine system related limits and options. | |
795 | */ | |
796 | #$d_sysconf HAS_SYSCONF /**/ | |
797 | ||
2304df62 AD |
798 | /* HAS_SYSTEM: |
799 | * This symbol, if defined, indicates that the system routine is | |
800 | * available to issue a shell command. | |
9f971974 | 801 | */ |
2304df62 | 802 | #$d_system HAS_SYSTEM /**/ |
9f971974 | 803 | |
a0d0e21e LW |
804 | /* HAS_TCGETPGRP: |
805 | * This symbol, if defined, indicates that the tcgetpgrp routine is | |
806 | * available to get foreground process group ID. | |
85e6fe83 | 807 | */ |
a0d0e21e LW |
808 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
809 | ||
810 | /* HAS_TCSETPGRP: | |
811 | * This symbol, if defined, indicates that the tcsetpgrp routine is | |
812 | * available to set foreground process group ID. | |
813 | */ | |
814 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ | |
85e6fe83 | 815 | |
2304df62 | 816 | /* HAS_TRUNCATE: |
87250799 LW |
817 | * This symbol, if defined, indicates that the truncate routine is |
818 | * available to truncate files. | |
819 | */ | |
2304df62 | 820 | #$d_truncate HAS_TRUNCATE /**/ |
87250799 | 821 | |
a0d0e21e LW |
822 | /* HAS_TZNAME: |
823 | * This symbol, if defined, indicates that the tzname[] array is | |
824 | * available to access timezone names. | |
825 | */ | |
826 | #$d_tzname HAS_TZNAME /**/ | |
827 | ||
828 | /* HAS_UMASK: | |
829 | * This symbol, if defined, indicates that the umask routine is | |
830 | * available to set and get the value of the file creation mask. | |
831 | */ | |
832 | #$d_umask HAS_UMASK /**/ | |
833 | ||
834 | /* HAS_VFORK: | |
835 | * This symbol, if defined, indicates that vfork() exists. | |
2304df62 | 836 | */ |
a0d0e21e | 837 | #$d_vfork HAS_VFORK /**/ |
2304df62 | 838 | |
2304df62 | 839 | /* HASVOLATILE: |
afd9f252 LW |
840 | * This symbol, if defined, indicates that this C compiler knows about |
841 | * the volatile declaration. | |
842 | */ | |
843 | #$d_volatile HASVOLATILE /**/ | |
2304df62 AD |
844 | #ifndef HASVOLATILE |
845 | #define volatile | |
846 | #endif | |
afd9f252 | 847 | |
2304df62 | 848 | /* HAS_WAIT4: |
bf38876a LW |
849 | * This symbol, if defined, indicates that wait4() exists. |
850 | */ | |
2304df62 | 851 | #$d_wait4 HAS_WAIT4 /**/ |
bf38876a | 852 | |
2304df62 AD |
853 | /* HAS_WAITPID: |
854 | * This symbol, if defined, indicates that the waitpid routine is | |
855 | * available to wait for child process. | |
39c3038c | 856 | */ |
2304df62 | 857 | #$d_waitpid HAS_WAITPID /**/ |
39c3038c | 858 | |
a0d0e21e LW |
859 | /* HAS_WCSTOMBS: |
860 | * This symbol, if defined, indicates that the wcstombs routine is | |
861 | * available to convert wide character strings to multibyte strings. | |
862 | */ | |
863 | #$d_wcstombs HAS_WCSTOMBS /**/ | |
864 | ||
865 | /* HAS_WCTOMB: | |
866 | * This symbol, if defined, indicates that the wctomb routine is available | |
867 | * to covert a wide character to a multibyte. | |
868 | */ | |
869 | #$d_wctomb HAS_WCTOMB /**/ | |
870 | ||
93341792 AD |
871 | /* EBCDIC: |
872 | * This symbol, if defined, indicates that this system uses | |
873 | * EBCDIC encoding. | |
7f20e9dd | 874 | */ |
93341792 AD |
875 | #$ebcdic EBCDIC /**/ |
876 | ||
28e8609d JH |
877 | /* I_ARPA_INET: |
878 | * This symbol, if defined, indicates that <arpa/inet.h> exists and should | |
879 | * be included. | |
880 | */ | |
93341792 | 881 | #$i_arpainet I_ARPA_INET /**/ |
28e8609d | 882 | |
dfe9444c AD |
883 | /* I_DBM: |
884 | * This symbol, if defined, indicates that <dbm.h> exists and should | |
885 | * be included. | |
232e078e | 886 | */ |
dfe9444c AD |
887 | /* I_RPCSVC_DBM: |
888 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and | |
889 | * should be included. | |
232e078e | 890 | */ |
dfe9444c AD |
891 | #$i_dbm I_DBM /**/ |
892 | #$i_rpcsvcdbm I_RPCSVC_DBM /**/ | |
232e078e | 893 | |
2304df62 AD |
894 | /* I_DIRENT: |
895 | * This symbol, if defined, indicates to the C program that it should | |
896 | * include <dirent.h>. Using this symbol also triggers the definition | |
897 | * of the Direntry_t define which ends up being 'struct dirent' or | |
898 | * 'struct direct' depending on the availability of <dirent.h>. | |
1c3d792e | 899 | */ |
2304df62 AD |
900 | /* DIRNAMLEN: |
901 | * This symbol, if defined, indicates to the C program that the length | |
902 | * of directory entry names is provided by a d_namlen field. Otherwise | |
903 | * you need to do strlen() on the d_name field. | |
904 | */ | |
a0d0e21e LW |
905 | /* Direntry_t: |
906 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
907 | * whether dirent is available or not. You should use this pseudo type to | |
908 | * portably declare your directory entries. | |
909 | */ | |
2304df62 AD |
910 | #$i_dirent I_DIRENT /**/ |
911 | #$d_dirnamlen DIRNAMLEN /**/ | |
a0d0e21e LW |
912 | #define Direntry_t $direntrytype |
913 | ||
914 | /* I_DLFCN: | |
915 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
916 | * be included. | |
917 | */ | |
918 | #$i_dlfcn I_DLFCN /**/ | |
1c3d792e | 919 | |
2304df62 | 920 | /* I_FCNTL: |
fe14fcc3 | 921 | * This manifest constant tells the C program to include <fcntl.h>. |
a687059c | 922 | */ |
2304df62 | 923 | #$i_fcntl I_FCNTL /**/ |
a687059c | 924 | |
a0d0e21e LW |
925 | /* I_FLOAT: |
926 | * This symbol, if defined, indicates to the C program that it should | |
927 | * include <float.h> to get definition of symbols like DBL_MAX or | |
928 | * DBL_MIN, i.e. machine dependent floating point values. | |
a687059c | 929 | */ |
a0d0e21e | 930 | #$i_float I_FLOAT /**/ |
a687059c | 931 | |
2304df62 | 932 | /* I_GRP: |
a687059c | 933 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 934 | * include <grp.h>. |
a687059c | 935 | */ |
28e8609d JH |
936 | /* GRPASSWD: |
937 | * This symbol, if defined, indicates to the C program that struct group | |
938 | * contains gr_passwd. | |
939 | */ | |
940 | /* HAS_SETGRENT: | |
941 | * This symbol, if defined, indicates that the getgrent routine is | |
942 | * available for initializing sequential access of the group database. | |
943 | */ | |
944 | /* HAS_GETGRENT: | |
945 | * This symbol, if defined, indicates that the getgrent routine is | |
946 | * available for sequential access of the group database. | |
947 | */ | |
948 | /* HAS_ENDGRENT: | |
949 | * This symbol, if defined, indicates that the getgrent routine is | |
950 | * available for finalizing sequential access of the group database. | |
951 | */ | |
2304df62 | 952 | #$i_grp I_GRP /**/ |
28e8609d JH |
953 | #$d_grpasswd GRPASSWD /**/ |
954 | #$d_setgrent HAS_SETGRENT /**/ | |
955 | #$d_getgrent HAS_GETGRENT /**/ | |
956 | #$d_endgrent HAS_ENDGRENT /**/ | |
a687059c | 957 | |
a0d0e21e LW |
958 | /* I_LIMITS: |
959 | * This symbol, if defined, indicates to the C program that it should | |
960 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
961 | * LONG_MAX, i.e. machine dependant limitations. | |
962 | */ | |
963 | #$i_limits I_LIMITS /**/ | |
964 | ||
dfe9444c AD |
965 | /* I_LOCALE: |
966 | * This symbol, if defined, indicates to the C program that it should | |
967 | * include <locale.h>. | |
968 | */ | |
969 | #$i_locale I_LOCALE /**/ | |
970 | ||
a0d0e21e LW |
971 | /* I_MATH: |
972 | * This symbol, if defined, indicates to the C program that it should | |
973 | * include <math.h>. | |
974 | */ | |
975 | #$i_math I_MATH /**/ | |
976 | ||
977 | /* I_MEMORY: | |
978 | * This symbol, if defined, indicates to the C program that it should | |
979 | * include <memory.h>. | |
980 | */ | |
981 | #$i_memory I_MEMORY /**/ | |
982 | ||
232e078e | 983 | /* I_NDBM: |
16d20bd9 | 984 | * This symbol, if defined, indicates that <ndbm.h> exists and should |
232e078e AD |
985 | * be included. |
986 | */ | |
987 | #$i_ndbm I_NDBM /**/ | |
988 | ||
ecfc5424 AD |
989 | /* I_NET_ERRNO: |
990 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
991 | * should be included. | |
2304df62 | 992 | */ |
ecfc5424 | 993 | #$i_neterrno I_NET_ERRNO /**/ |
2304df62 AD |
994 | |
995 | /* I_NETINET_IN: | |
03a14243 | 996 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 997 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
03a14243 | 998 | */ |
2304df62 | 999 | #$i_niin I_NETINET_IN /**/ |
03a14243 | 1000 | |
dfe9444c AD |
1001 | /* I_SFIO: |
1002 | * This symbol, if defined, indicates to the C program that it should | |
1003 | * include <sfio.h>. | |
1004 | */ | |
1005 | #$i_sfio I_SFIO /**/ | |
1006 | ||
2304df62 AD |
1007 | /* I_STDDEF: |
1008 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
a687059c LW |
1009 | * be included. |
1010 | */ | |
2304df62 | 1011 | #$i_stddef I_STDDEF /**/ |
a687059c | 1012 | |
a0d0e21e LW |
1013 | /* I_STDLIB: |
1014 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
1015 | * be included. | |
1016 | */ | |
1017 | #$i_stdlib I_STDLIB /**/ | |
1018 | ||
1019 | /* I_STRING: | |
85e6fe83 LW |
1020 | * This symbol, if defined, indicates to the C program that it should |
1021 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
1022 | */ | |
1023 | #$i_string I_STRING /**/ | |
1024 | ||
2304df62 AD |
1025 | /* I_SYS_DIR: |
1026 | * This symbol, if defined, indicates to the C program that it should | |
1027 | * include <sys/dir.h>. | |
d8f2e4cc | 1028 | */ |
2304df62 AD |
1029 | #$i_sysdir I_SYS_DIR /**/ |
1030 | ||
1031 | /* I_SYS_FILE: | |
1032 | * This symbol, if defined, indicates to the C program that it should | |
1033 | * include <sys/file.h> to get definition of R_OK and friends. | |
d8f2e4cc | 1034 | */ |
2304df62 AD |
1035 | #$i_sysfile I_SYS_FILE /**/ |
1036 | ||
1037 | /* I_SYS_IOCTL: | |
1038 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
1039 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
d8f2e4cc | 1040 | */ |
2304df62 AD |
1041 | #$i_sysioctl I_SYS_IOCTL /**/ |
1042 | ||
1043 | /* I_SYS_NDIR: | |
1044 | * This symbol, if defined, indicates to the C program that it should | |
1045 | * include <sys/ndir.h>. | |
1046 | */ | |
1047 | #$i_sysndir I_SYS_NDIR /**/ | |
1048 | ||
a0d0e21e LW |
1049 | /* I_SYS_PARAM: |
1050 | * This symbol, if defined, indicates to the C program that it should | |
1051 | * include <sys/param.h>. | |
1052 | */ | |
1053 | #$i_sysparam I_SYS_PARAM /**/ | |
1054 | ||
e876cf0b | 1055 | /* I_SYS_RESOURCE: |
1056 | * This symbol, if defined, indicates to the C program that it should | |
1057 | * include <sys/resource.h>. | |
1058 | */ | |
1059 | #$i_sysresrc I_SYS_RESOURCE /**/ | |
1060 | ||
2304df62 AD |
1061 | /* I_SYS_SELECT: |
1062 | * This symbol, if defined, indicates to the C program that it should | |
1063 | * include <sys/select.h> in order to get definition of struct timeval. | |
1064 | */ | |
1065 | #$i_sysselct I_SYS_SELECT /**/ | |
1066 | ||
dfe9444c AD |
1067 | /* I_SYS_STAT: |
1068 | * This symbol, if defined, indicates to the C program that it should | |
1069 | * include <sys/stat.h>. | |
1070 | */ | |
1071 | #$i_sysstat I_SYS_STAT /**/ | |
1072 | ||
a0d0e21e LW |
1073 | /* I_SYS_TIMES: |
1074 | * This symbol, if defined, indicates to the C program that it should | |
1075 | * include <sys/times.h>. | |
1076 | */ | |
1077 | #$i_systimes I_SYS_TIMES /**/ | |
1078 | ||
bd89102f AD |
1079 | /* I_SYS_TYPES: |
1080 | * This symbol, if defined, indicates to the C program that it should | |
1081 | * include <sys/types.h>. | |
1082 | */ | |
1083 | #$i_systypes I_SYS_TYPES /**/ | |
1084 | ||
25f94b33 AD |
1085 | /* I_SYS_UN: |
1086 | * This symbol, if defined, indicates to the C program that it should | |
1087 | * include <sys/un.h> to get UNIX domain socket definitions. | |
1088 | */ | |
1089 | #$i_sysun I_SYS_UN /**/ | |
1090 | ||
e876cf0b | 1091 | /* I_SYS_WAIT: |
1092 | * This symbol, if defined, indicates to the C program that it should | |
1093 | * include <sys/wait.h>. | |
1094 | */ | |
1095 | #$i_syswait I_SYS_WAIT /**/ | |
1096 | ||
a0d0e21e LW |
1097 | /* I_TERMIO: |
1098 | * This symbol, if defined, indicates that the program should include | |
1099 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
1100 | * the ioctl() calls that depend on the value of this symbol. | |
1101 | */ | |
1102 | /* I_TERMIOS: | |
1103 | * This symbol, if defined, indicates that the program should include | |
1104 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
1105 | * There are also differences in the ioctl() calls that depend on the | |
1106 | * value of this symbol. | |
1107 | */ | |
1108 | /* I_SGTTY: | |
1109 | * This symbol, if defined, indicates that the program should include | |
1110 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
1111 | * the ioctl() calls that depend on the value of this symbol. | |
1112 | */ | |
1113 | #$i_termio I_TERMIO /**/ | |
1114 | #$i_termios I_TERMIOS /**/ | |
1115 | #$i_sgtty I_SGTTY /**/ | |
1116 | ||
85e6fe83 LW |
1117 | /* I_UNISTD: |
1118 | * This symbol, if defined, indicates to the C program that it should | |
1119 | * include <unistd.h>. | |
1120 | */ | |
1121 | #$i_unistd I_UNISTD /**/ | |
d8f2e4cc | 1122 | |
2304df62 | 1123 | /* I_UTIME: |
d8f2e4cc | 1124 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1125 | * include <utime.h>. |
d8f2e4cc | 1126 | */ |
2304df62 | 1127 | #$i_utime I_UTIME /**/ |
d8f2e4cc | 1128 | |
dfe9444c AD |
1129 | /* I_VALUES: |
1130 | * This symbol, if defined, indicates to the C program that it should | |
1131 | * include <values.h> to get definition of symbols like MINFLOAT or | |
1132 | * MAXLONG, i.e. machine dependant limitations. Probably, you | |
1133 | * should use <limits.h> instead, if it is available. | |
1134 | */ | |
1135 | #$i_values I_VALUES /**/ | |
1136 | ||
e876cf0b | 1137 | /* I_STDARG: |
1138 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
1139 | * be included. | |
1140 | */ | |
1141 | /* I_VARARGS: | |
1142 | * This symbol, if defined, indicates to the C program that it should | |
1143 | * include <varargs.h>. | |
1144 | */ | |
1145 | #$i_stdarg I_STDARG /**/ | |
1146 | #$i_varargs I_VARARGS /**/ | |
1147 | ||
a0d0e21e LW |
1148 | /* I_VFORK: |
1149 | * This symbol, if defined, indicates to the C program that it should | |
1150 | * include vfork.h. | |
1151 | */ | |
1152 | #$i_vfork I_VFORK /**/ | |
a687059c | 1153 | |
a0d0e21e LW |
1154 | /* CAN_PROTOTYPE: |
1155 | * If defined, this macro indicates that the C compiler can handle | |
1156 | * function prototypes. | |
85e6fe83 | 1157 | */ |
a0d0e21e LW |
1158 | /* _: |
1159 | * This macro is used to declare function parameters for folks who want | |
1160 | * to make declarations with prototypes using a different style than | |
1161 | * the above macros. Use double parentheses. For example: | |
1162 | * | |
1163 | * int main _((int argc, char *argv[])); | |
1164 | */ | |
1165 | #$prototype CAN_PROTOTYPE /**/ | |
1166 | #ifdef CAN_PROTOTYPE | |
1167 | #define _(args) args | |
1168 | #else | |
1169 | #define _(args) () | |
1170 | #endif | |
85e6fe83 | 1171 | |
dfe9444c AD |
1172 | /* SH_PATH: |
1173 | * This symbol contains the full pathname to the shell used on this | |
1174 | * on this system to execute Bourne shell scripts. Usually, this will be | |
1175 | * /bin/sh, though it's possible that some systems will have /bin/ksh, | |
1176 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as | |
1177 | * D:/bin/sh.exe. | |
a0d0e21e | 1178 | */ |
dfe9444c | 1179 | #define SH_PATH "$sh" /**/ |
a0d0e21e | 1180 | |
2304df62 AD |
1181 | /* STDCHAR: |
1182 | * This symbol is defined to be the type of char used in stdio.h. | |
1183 | * It has the values "unsigned char" or "char". | |
fe14fcc3 | 1184 | */ |
2304df62 AD |
1185 | #define STDCHAR $stdchar /**/ |
1186 | ||
dfe9444c AD |
1187 | /* MEM_ALIGNBYTES: |
1188 | * This symbol contains the number of bytes required to align a | |
1189 | * double. Usual values are 2, 4 and 8. | |
1190 | * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture | |
1191 | * Binaries (MAB) for targets with varying alignment. This only matters | |
1192 | * for perl, where the config.h can be generated and installed on one | |
1193 | * system, and used by a different architecture to build an extension. | |
1194 | * The default is eight, for safety. | |
5f05dabc | 1195 | */ |
dfe9444c | 1196 | #define MEM_ALIGNBYTES $alignbytes /**/ |
5f05dabc | 1197 | |
8e07c86e | 1198 | /* BYTEORDER: |
e876cf0b | 1199 | * This symbol holds the hexadecimal constant defined in byteorder, |
8e07c86e | 1200 | * i.e. 0x1234 or 0x4321, etc... |
7bac28a0 | 1201 | * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture |
e876cf0b | 1202 | * Binaries (MAB) on either big endian or little endian machines. |
1203 | * The endian-ness is available at compile-time. This only matters | |
1204 | * for perl, where the config.h can be generated and installed on | |
1205 | * one system, and used by a different architecture to build an | |
1206 | * extension. Older versions of NeXT that might not have | |
1207 | * defined either *_ENDIAN__ were all on Motorola 680x0 series, | |
1208 | * so the default case (for NeXT) is big endian to catch them. | |
1209 | * This might matter for NeXT 3.0. | |
8e07c86e | 1210 | */ |
40750cc0 | 1211 | #ifndef NeXT |
8e07c86e | 1212 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ |
760ac839 LW |
1213 | #else /* NeXT */ |
1214 | #ifdef __LITTLE_ENDIAN__ | |
40750cc0 | 1215 | #define BYTEORDER 0x1234 |
760ac839 LW |
1216 | #else /* __BIG_ENDIAN__ */ |
1217 | #define BYTEORDER 0x4321 | |
40750cc0 | 1218 | #endif /* ENDIAN CHECK */ |
760ac839 | 1219 | #endif /* NeXT */ |
8e07c86e | 1220 | |
dfe9444c AD |
1221 | /* CASTI32: |
1222 | * This symbol is defined if the C compiler can cast negative | |
1223 | * or large floating point numbers to 32-bit ints. | |
1aef975c | 1224 | */ |
dfe9444c | 1225 | #$d_casti32 CASTI32 /**/ |
85e6fe83 | 1226 | |
dfe9444c AD |
1227 | /* CASTNEGFLOAT: |
1228 | * This symbol is defined if the C compiler can cast negative | |
1229 | * numbers to unsigned longs, ints and shorts. | |
85e6fe83 | 1230 | */ |
dfe9444c AD |
1231 | /* CASTFLAGS: |
1232 | * This symbol contains flags that say what difficulties the compiler | |
1233 | * has casting odd floating values to unsigned long: | |
1234 | * 0 = ok | |
1235 | * 1 = couldn't cast < 0 | |
1236 | * 2 = couldn't cast >= 0x80000000 | |
1237 | * 4 = couldn't cast in argument expression list | |
bccf77a5 | 1238 | */ |
dfe9444c AD |
1239 | #$d_castneg CASTNEGFLOAT /**/ |
1240 | #define CASTFLAGS $castflags /**/ | |
1241 | ||
1242 | /* VOID_CLOSEDIR: | |
1243 | * This symbol, if defined, indicates that the closedir() routine | |
1244 | * does not return a value. | |
bccf77a5 | 1245 | */ |
dfe9444c | 1246 | #$d_void_closedir VOID_CLOSEDIR /**/ |
bccf77a5 | 1247 | |
8e07c86e AD |
1248 | /* Gconvert: |
1249 | * This preprocessor macro is defined to convert a floating point | |
1250 | * number to a string without a trailing decimal point. This | |
1251 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1252 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1253 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1254 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1255 | * macro are: value, number of digits, whether trailing zeros should | |
1256 | * be retained, and the output buffer. | |
1257 | * Possible values are: | |
1258 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1259 | * d_Gconvert='gcvt((x),(n),(b))' | |
1260 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1261 | * The last two assume trailing zeros should not be kept. | |
1262 | */ | |
1263 | #define Gconvert(x,n,t,b) $d_Gconvert | |
1264 | ||
dfe9444c | 1265 | /* HAS_GNULIBC: |
c1b76f5d | 1266 | * This symbol, if defined, indicates to the C program that |
dfe9444c | 1267 | * the GNU C library is being used. |
c1b76f5d | 1268 | */ |
dfe9444c AD |
1269 | #$d_gnulibc HAS_GNULIBC /**/ |
1270 | /* HAS_ISASCII: | |
1271 | * This manifest constant lets the C program know that isascii | |
1272 | * is available. | |
c1b76f5d | 1273 | */ |
dfe9444c | 1274 | #$d_isascii HAS_ISASCII /**/ |
c1b76f5d | 1275 | |
dd64f1c3 AD |
1276 | /* HAS_LCHOWN: |
1277 | * This symbol, if defined, indicates that the lchown routine is | |
1278 | * available to operate on a symbolic link (instead of following the | |
1279 | * link). | |
1280 | */ | |
1281 | #$d_lchown HAS_LCHOWN /**/ | |
1282 | ||
dfe9444c AD |
1283 | /* HAS_OPEN3: |
1284 | * This manifest constant lets the C program know that the three | |
1285 | * argument form of open(2) is available. | |
774d564b | 1286 | */ |
dfe9444c | 1287 | #$d_open3 HAS_OPEN3 /**/ |
774d564b | 1288 | |
dfe9444c AD |
1289 | /* HAS_SAFE_BCOPY: |
1290 | * This symbol, if defined, indicates that the bcopy routine is available | |
1291 | * to copy potentially overlapping memory blocks. Otherwise you should | |
1292 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
1293 | * own version. | |
c1b76f5d | 1294 | */ |
dfe9444c | 1295 | #$d_safebcpy HAS_SAFE_BCOPY /**/ |
c1b76f5d | 1296 | |
dfe9444c AD |
1297 | /* HAS_SAFE_MEMCPY: |
1298 | * This symbol, if defined, indicates that the memcpy routine is available | |
1299 | * to copy potentially overlapping memory blocks. Otherwise you should | |
1300 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
1301 | * own version. | |
c1b76f5d | 1302 | */ |
dfe9444c | 1303 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ |
c1b76f5d | 1304 | |
dfe9444c AD |
1305 | /* HAS_SANE_MEMCMP: |
1306 | * This symbol, if defined, indicates that the memcmp routine is available | |
1307 | * and can be used to compare relative magnitudes of chars with their high | |
1308 | * bits set. If it is not defined, roll your own version. | |
760ac839 | 1309 | */ |
dfe9444c | 1310 | #$d_sanemcmp HAS_SANE_MEMCMP /**/ |
760ac839 | 1311 | |
dfe9444c AD |
1312 | /* HAS_SIGACTION: |
1313 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
1314 | * is available. | |
52e1cb5e | 1315 | */ |
dfe9444c | 1316 | #$d_sigaction HAS_SIGACTION /**/ |
52e1cb5e | 1317 | |
a5f75d66 | 1318 | /* Sigjmp_buf: |
760ac839 | 1319 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. |
a5f75d66 AD |
1320 | */ |
1321 | /* Sigsetjmp: | |
760ac839 LW |
1322 | * This macro is used in the same way as sigsetjmp(), but will invoke |
1323 | * traditional setjmp() if sigsetjmp isn't available. | |
1324 | * See HAS_SIGSETJMP. | |
a5f75d66 AD |
1325 | */ |
1326 | /* Siglongjmp: | |
760ac839 LW |
1327 | * This macro is used in the same way as siglongjmp(), but will invoke |
1328 | * traditional longjmp() if siglongjmp isn't available. | |
1329 | * See HAS_SIGSETJMP. | |
a5f75d66 AD |
1330 | */ |
1331 | #$d_sigsetjmp HAS_SIGSETJMP /**/ | |
1332 | #ifdef HAS_SIGSETJMP | |
1333 | #define Sigjmp_buf sigjmp_buf | |
760ac839 LW |
1334 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) |
1335 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) | |
a5f75d66 AD |
1336 | #else |
1337 | #define Sigjmp_buf jmp_buf | |
760ac839 LW |
1338 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) |
1339 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) | |
a5f75d66 AD |
1340 | #endif |
1341 | ||
dfe9444c AD |
1342 | /* USE_STDIO_PTR: |
1343 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
1344 | * of the stdio FILE structure can be used to access the stdio buffer | |
1345 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
1346 | * and FILE_cnt(fp) macros will also be defined and should be used | |
1347 | * to access these fields. | |
a687059c | 1348 | */ |
dfe9444c AD |
1349 | /* FILE_ptr: |
1350 | * This macro is used to access the _ptr field (or equivalent) of the | |
1351 | * FILE structure pointed to by its argument. This macro will always be | |
1352 | * defined if USE_STDIO_PTR is defined. | |
1353 | */ | |
1354 | /* STDIO_PTR_LVALUE: | |
1355 | * This symbol is defined if the FILE_ptr macro can be used as an | |
1356 | * lvalue. | |
1357 | */ | |
1358 | /* FILE_cnt: | |
1359 | * This macro is used to access the _cnt field (or equivalent) of the | |
1360 | * FILE structure pointed to by its argument. This macro will always be | |
1361 | * defined if USE_STDIO_PTR is defined. | |
1362 | */ | |
1363 | /* STDIO_CNT_LVALUE: | |
1364 | * This symbol is defined if the FILE_cnt macro can be used as an | |
1365 | * lvalue. | |
1366 | */ | |
1367 | #$d_stdstdio USE_STDIO_PTR /**/ | |
1368 | #ifdef USE_STDIO_PTR | |
1369 | #define FILE_ptr(fp) $stdio_ptr | |
1370 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ | |
1371 | #define FILE_cnt(fp) $stdio_cnt | |
1372 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ | |
1373 | #endif | |
a687059c | 1374 | |
dfe9444c AD |
1375 | /* USE_STDIO_BASE: |
1376 | * This symbol is defined if the _base field (or similar) of the | |
1377 | * stdio FILE structure can be used to access the stdio buffer for | |
1378 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
1379 | * will also be defined and should be used to access this field. | |
1380 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
1381 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
1382 | * will never be defined unless USE_STDIO_PTR is. | |
8e07c86e | 1383 | */ |
dfe9444c AD |
1384 | /* FILE_base: |
1385 | * This macro is used to access the _base field (or equivalent) of the | |
1386 | * FILE structure pointed to by its argument. This macro will always be | |
1387 | * defined if USE_STDIO_BASE is defined. | |
8e07c86e | 1388 | */ |
dfe9444c AD |
1389 | /* FILE_bufsiz: |
1390 | * This macro is used to determine the number of bytes in the I/O | |
1391 | * buffer pointed to by _base field (or equivalent) of the FILE | |
1392 | * structure pointed to its argument. This macro will always be defined | |
1393 | * if USE_STDIO_BASE is defined. | |
1394 | */ | |
1395 | #$d_stdiobase USE_STDIO_BASE /**/ | |
1396 | #ifdef USE_STDIO_BASE | |
1397 | #define FILE_base(fp) $stdio_base | |
1398 | #define FILE_bufsiz(fp) $stdio_bufsiz | |
1399 | #endif | |
8e07c86e | 1400 | |
dfe9444c AD |
1401 | /* HAS_VPRINTF: |
1402 | * This symbol, if defined, indicates that the vprintf routine is available | |
1403 | * to printf with a pointer to an argument list. If unavailable, you | |
1404 | * may need to write your own, probably in terms of _doprnt(). | |
4633a7c4 | 1405 | */ |
dfe9444c AD |
1406 | /* USE_CHAR_VSPRINTF: |
1407 | * This symbol is defined if this system has vsprintf() returning type | |
1408 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
1409 | * is up to the package author to declare vsprintf correctly based on the | |
1410 | * symbol. | |
1411 | */ | |
1412 | #$d_vprintf HAS_VPRINTF /**/ | |
1413 | #$d_charvspr USE_CHAR_VSPRINTF /**/ | |
4633a7c4 | 1414 | |
693762b4 AD |
1415 | /* DOUBLESIZE: |
1416 | * This symbol contains the size of a double, so that the C preprocessor | |
1417 | * can make decisions based on it. | |
1418 | */ | |
1419 | #define DOUBLESIZE $doublesize /**/ | |
1420 | ||
dfe9444c | 1421 | /* I_TIME: |
760ac839 | 1422 | * This symbol, if defined, indicates to the C program that it should |
dfe9444c | 1423 | * include <time.h>. |
760ac839 | 1424 | */ |
dfe9444c | 1425 | /* I_SYS_TIME: |
1aef975c | 1426 | * This symbol, if defined, indicates to the C program that it should |
dfe9444c | 1427 | * include <sys/time.h>. |
1aef975c | 1428 | */ |
dfe9444c | 1429 | /* I_SYS_TIME_KERNEL: |
bccf77a5 | 1430 | * This symbol, if defined, indicates to the C program that it should |
dfe9444c | 1431 | * include <sys/time.h> with KERNEL defined. |
bccf77a5 | 1432 | */ |
dfe9444c AD |
1433 | #$i_time I_TIME /**/ |
1434 | #$i_systime I_SYS_TIME /**/ | |
1435 | #$i_systimek I_SYS_TIME_KERNEL /**/ | |
8e07c86e | 1436 | |
dfe9444c AD |
1437 | /* INTSIZE: |
1438 | * This symbol contains the value of sizeof(int) so that the C | |
1439 | * preprocessor can make decisions based on it. | |
94b6baf5 | 1440 | */ |
dfe9444c AD |
1441 | /* LONGSIZE: |
1442 | * This symbol contains the value of sizeof(long) so that the C | |
1443 | * preprocessor can make decisions based on it. | |
36ce8bec | 1444 | */ |
dfe9444c AD |
1445 | /* SHORTSIZE: |
1446 | * This symbol contains the value of sizeof(short) so that the C | |
1447 | * preprocessor can make decisions based on it. | |
1448 | */ | |
1449 | #define INTSIZE $intsize /**/ | |
1450 | #define LONGSIZE $longsize /**/ | |
1451 | #define SHORTSIZE $shortsize /**/ | |
36ce8bec | 1452 | |
dfe9444c AD |
1453 | /* VAL_O_NONBLOCK: |
1454 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
1455 | * non-blocking I/O for the file descriptor. Note that there is no way | |
1456 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
1457 | * alternatively switch between blocking and non-blocking, use the | |
1458 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
85e6fe83 | 1459 | */ |
dfe9444c AD |
1460 | /* VAL_EAGAIN: |
1461 | * This symbol holds the errno error code set by read() when no data was | |
1462 | * present on the non-blocking file descriptor. | |
1463 | */ | |
1464 | /* RD_NODATA: | |
1465 | * This symbol holds the return code from read() when no data is present | |
1466 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
1467 | * not defined, then you can't distinguish between no data and EOF by | |
1468 | * issuing a read(). You'll have to find another way to tell for sure! | |
1469 | */ | |
1470 | /* EOF_NONBLOCK: | |
1471 | * This symbol, if defined, indicates to the C program that a read() on | |
1472 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
1473 | * held in RD_NODATA (-1 usually, in that case!). | |
1474 | */ | |
1475 | #define VAL_O_NONBLOCK $o_nonblock | |
1476 | #define VAL_EAGAIN $eagain | |
1477 | #define RD_NODATA $rd_nodata | |
1478 | #$d_eofnblk EOF_NONBLOCK | |
85e6fe83 | 1479 | |
693762b4 AD |
1480 | /* PTRSIZE: |
1481 | * This symbol contains the size of a pointer, so that the C preprocessor | |
1482 | * can make decisions based on it. It will be sizeof(void *) if | |
1483 | * the compiler supports (void *); otherwise it will be | |
1484 | * sizeof(char *). | |
1485 | */ | |
1486 | #define PTRSIZE $ptrsize /**/ | |
1487 | ||
dfe9444c AD |
1488 | /* RANDBITS: |
1489 | * This symbol contains the number of bits of random number the rand() | |
1490 | * function produces. Usual values are 15, 16, and 31. | |
1491 | */ | |
1492 | #define RANDBITS $randbits /**/ | |
1493 | ||
1494 | /* SSize_t: | |
1495 | * This symbol holds the type used by functions that return | |
1496 | * a count of bytes or an error condition. It must be a signed type. | |
1497 | * It is usually ssize_t, but may be long or int, etc. | |
1498 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
1499 | * to get any typedef'ed information. | |
1500 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
1501 | */ | |
1502 | #define SSize_t $ssizetype /* signed count of bytes */ | |
1503 | ||
1504 | /* OSNAME: | |
1505 | * This symbol contains the name of the operating system, as determined | |
1506 | * by Configure. You shouldn't rely on it too much; the specific | |
1507 | * feature tests from Configure are generally more reliable. | |
1508 | */ | |
1509 | #define OSNAME "$osname" /**/ | |
1510 | ||
dfe9444c AD |
1511 | /* CAT2: |
1512 | * This macro catenates 2 tokens together. | |
1513 | */ | |
1514 | /* STRINGIFY: | |
1515 | * This macro surrounds its token with double quotes. | |
1516 | */ | |
1517 | #if $cpp_stuff == 1 | |
1518 | #define CAT2(a,b)a/**/b | |
1519 | #define STRINGIFY(a)"a" | |
1520 | /* If you can get stringification with catify, tell me how! */ | |
1521 | #endif | |
1522 | #if $cpp_stuff == 42 | |
1523 | #define CAT2(a,b)a ## b | |
1524 | #define StGiFy(a)# a | |
1525 | #define STRINGIFY(a)StGiFy(a) | |
1526 | #endif | |
1527 | #if $cpp_stuff != 1 && $cpp_stuff != 42 | |
1528 | #include "Bletch: How does this C preprocessor catenate tokens?" | |
1529 | #endif | |
1530 | ||
1531 | /* CSH: | |
e5c9fcd0 | 1532 | * This symbol, if defined, contains the full pathname of csh. |
dfe9444c | 1533 | */ |
e5c9fcd0 AD |
1534 | #$d_csh HAS_CSH /**/ |
1535 | #ifdef HAS_CSH | |
1536 | #define CSH "$full_csh" /**/ | |
1537 | #endif | |
1538 | ||
1539 | /* HAS_ENDHOSTENT: | |
1540 | * This symbol, if defined, indicates that the endhostent() routine is | |
1541 | * available to close whatever was being used for host queries. | |
1542 | */ | |
1543 | #$d_endhent HAS_ENDHOSTENT /**/ | |
1544 | ||
1545 | /* HAS_ENDNETENT: | |
1546 | * This symbol, if defined, indicates that the endnetent() routine is | |
1547 | * available to close whatever was being used for network queries. | |
1548 | */ | |
1549 | #$d_endnent HAS_ENDNETENT /**/ | |
1550 | ||
1551 | /* HAS_ENDPROTOENT: | |
1552 | * This symbol, if defined, indicates that the endprotoent() routine is | |
1553 | * available to close whatever was being used for protocol queries. | |
1554 | */ | |
1555 | #$d_endpent HAS_ENDPROTOENT /**/ | |
1556 | ||
1557 | /* HAS_ENDSERVENT: | |
1558 | * This symbol, if defined, indicates that the endservent() routine is | |
1559 | * available to close whatever was being used for service queries. | |
1560 | */ | |
1561 | #$d_endsent HAS_ENDSERVENT /**/ | |
dfe9444c | 1562 | |
693762b4 AD |
1563 | /* HAS_GETHOSTBYADDR: |
1564 | * This symbol, if defined, indicates that the gethostbyaddr() routine is | |
1565 | * available to look up hosts by their IP addresses. | |
1566 | */ | |
1567 | #$d_gethbyaddr HAS_GETHOSTBYADDR /**/ | |
1568 | ||
1569 | /* HAS_GETHOSTBYNAME: | |
1570 | * This symbol, if defined, indicates that the gethostbyname() routine is | |
1571 | * available to look up host names in some data base or other. | |
1572 | */ | |
1573 | #$d_gethbyname HAS_GETHOSTBYNAME /**/ | |
1574 | ||
1575 | /* HAS_GETHOSTENT: | |
1576 | * This symbol, if defined, indicates that the gethostent() routine is | |
1577 | * available to look up host names in some data base or another. | |
1578 | */ | |
1579 | #$d_gethent HAS_GETHOSTENT /**/ | |
1580 | ||
1581 | /* HAS_GETNETBYADDR: | |
1582 | * This symbol, if defined, indicates that the getnetbyaddr() routine is | |
1583 | * available to look up networks by their IP addresses. | |
1584 | */ | |
1585 | #$d_getnbyaddr HAS_GETNETBYADDR /**/ | |
1586 | ||
1587 | /* HAS_GETNETBYNAME: | |
1588 | * This symbol, if defined, indicates that the getnetbyname() routine is | |
1589 | * available to look up networks by their names. | |
1590 | */ | |
1591 | #$d_getnbyname HAS_GETNETBYNAME /**/ | |
1592 | ||
e5c9fcd0 AD |
1593 | /* HAS_GETNETENT: |
1594 | * This symbol, if defined, indicates that the getnetent() routine is | |
1595 | * available to look up network names in some data base or another. | |
1596 | */ | |
1597 | #$d_getnent HAS_GETNETENT /**/ | |
1598 | ||
1599 | /* HAS_GETPROTOENT: | |
1600 | * This symbol, if defined, indicates that the getprotoent() routine is | |
1601 | * available to look up protocols in some data base or another. | |
1602 | */ | |
1603 | #$d_getpent HAS_GETPROTOENT /**/ | |
1604 | ||
693762b4 AD |
1605 | /* HAS_GETPROTOBYNAME: |
1606 | * This symbol, if defined, indicates that the getprotobyname() | |
1607 | * routine is available to look up protocols by their name. | |
1608 | */ | |
1609 | /* HAS_GETPROTOBYNUMBER: | |
1610 | * This symbol, if defined, indicates that the getprotobynumber() | |
1611 | * routine is available to look up protocols by their number. | |
1612 | */ | |
1613 | #$d_getpbyname HAS_GETPROTOBYNAME /**/ | |
1614 | #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/ | |
1615 | ||
e5c9fcd0 AD |
1616 | /* HAS_GETSERVENT: |
1617 | * This symbol, if defined, indicates that the getservent() routine is | |
1618 | * available to look up network services in some data base or another. | |
1619 | */ | |
1620 | #$d_getsent HAS_GETSERVENT /**/ | |
1621 | ||
693762b4 AD |
1622 | /* HAS_GETSERVBYNAME: |
1623 | * This symbol, if defined, indicates that the getservbyname() | |
1624 | * routine is available to look up services by their name. | |
1625 | */ | |
1626 | /* HAS_GETSERVBYPORT: | |
1627 | * This symbol, if defined, indicates that the getservbyport() | |
1628 | * routine is available to look up services by their port. | |
1629 | */ | |
1630 | #$d_getsbyname HAS_GETSERVBYNAME /**/ | |
1631 | #$d_getsbyport HAS_GETSERVBYPORT /**/ | |
1632 | ||
e5c9fcd0 AD |
1633 | /* HAS_LONG_DOUBLE: |
1634 | * This symbol will be defined if the C compiler supports long | |
1635 | * doubles. | |
1636 | */ | |
1637 | /* LONG_DOUBLESIZE: | |
1638 | * This symbol contains the size of a long double, so that the | |
1639 | * C preprocessor can make decisions based on it. It is only | |
1640 | * defined if the system supports long doubles. | |
1641 | */ | |
1642 | #$d_longdbl HAS_LONG_DOUBLE /**/ | |
1643 | #ifdef HAS_LONG_DOUBLE | |
1644 | #define LONG_DOUBLESIZE $longdblsize /**/ | |
1645 | #endif | |
1646 | ||
dc45a647 MB |
1647 | /* HAS_LONG_LONG: |
1648 | * This symbol will be defined if the C compiler supports | |
1649 | * long long. | |
1650 | */ | |
1651 | /* LONGLONGSIZE: | |
1652 | * This symbol contains the size of a long long, so that the | |
1653 | * C preprocessor can make decisions based on it. It is only | |
1654 | * defined if the system supports long long. | |
1655 | */ | |
1656 | #$d_longlong HAS_LONG_LONG /**/ | |
1657 | #ifdef HAS_LONG_LONG | |
1658 | #define LONGLONGSIZE $longlongsize /**/ | |
1659 | #endif | |
1660 | ||
dfe9444c AD |
1661 | /* HAS_SETGROUPS: |
1662 | * This symbol, if defined, indicates that the setgroups() routine is | |
1663 | * available to set the list of process groups. If unavailable, multiple | |
1664 | * groups are probably not supported. | |
1665 | */ | |
1666 | #$d_setgrps HAS_SETGROUPS /**/ | |
1667 | ||
693762b4 AD |
1668 | /* HAS_SETHOSTENT: |
1669 | * This symbol, if defined, indicates that the sethostent() routine is | |
1670 | * available. | |
1671 | */ | |
1672 | #$d_sethent HAS_SETHOSTENT /**/ | |
1673 | ||
e5c9fcd0 AD |
1674 | /* HAS_SETNETENT: |
1675 | * This symbol, if defined, indicates that the setnetent() routine is | |
1676 | * available. | |
1677 | */ | |
1678 | #$d_setnent HAS_SETNETENT /**/ | |
1679 | ||
1680 | /* HAS_SETPROTOENT: | |
1681 | * This symbol, if defined, indicates that the setprotoent() routine is | |
1682 | * available. | |
1683 | */ | |
1684 | #$d_setpent HAS_SETPROTOENT /**/ | |
1685 | ||
1686 | /* HAS_SETSERVENT: | |
1687 | * This symbol, if defined, indicates that the setservent() routine is | |
1688 | * available. | |
1689 | */ | |
1690 | #$d_setsent HAS_SETSERVENT /**/ | |
1691 | ||
1692 | /* HAS_SETVBUF: | |
1693 | * This symbol, if defined, indicates that the setvbuf routine is | |
1694 | * available to change buffering on an open stdio stream. | |
1695 | * to a line-buffered mode. | |
1696 | */ | |
1697 | #$d_setvbuf HAS_SETVBUF /**/ | |
1698 | ||
dc45a647 MB |
1699 | /* HAS_SOCKET: |
1700 | * This symbol, if defined, indicates that the BSD socket interface is | |
1701 | * supported. | |
1702 | */ | |
1703 | /* HAS_SOCKETPAIR: | |
1704 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
1705 | * supported. | |
1706 | */ | |
1707 | #$d_socket HAS_SOCKET /**/ | |
1708 | #$d_sockpair HAS_SOCKETPAIR /**/ | |
1709 | ||
bd89102f AD |
1710 | /* HAS_UNION_SEMUN: |
1711 | * This symbol, if defined, indicates that the union semun is | |
1712 | * defined by including <sys/sem.h>. If not, the user code | |
1713 | * probably needs to define it as: | |
1714 | * union semun { | |
1715 | * int val; | |
1716 | * struct semid_ds *buf; | |
1717 | * unsigned short *array; | |
1718 | * } | |
1719 | */ | |
1720 | /* USE_SEMCTL_SEMUN: | |
1721 | * This symbol, if defined, indicates that union semun is | |
1722 | * used for semctl IPC_STAT. | |
1723 | */ | |
1724 | /* USE_SEMCTL_SEMID_DS: | |
1725 | * This symbol, if defined, indicates that struct semid_ds * is | |
1726 | * used for semctl IPC_STAT. | |
1727 | */ | |
1728 | #$d_union_semun HAS_UNION_SEMUN /**/ | |
1729 | #$d_semctl_semun USE_SEMCTL_SEMUN /**/ | |
1730 | #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/ | |
1731 | ||
dfe9444c AD |
1732 | /* Signal_t: |
1733 | * This symbol's value is either "void" or "int", corresponding to the | |
1734 | * appropriate return type of a signal handler. Thus, you can declare | |
1735 | * a signal handler using "Signal_t (*handler)()", and define the | |
1736 | * handler using "Signal_t handler(sig)". | |
e876cf0b | 1737 | */ |
dfe9444c AD |
1738 | #define Signal_t $signal_t /* Signal handler's return type */ |
1739 | ||
1740 | /* Groups_t: | |
1741 | * This symbol holds the type used for the second argument to | |
1742 | * getgroups() and setgropus(). Usually, this is the same as | |
1743 | * gidtype (gid_t) , but sometimes it isn't. | |
1744 | * It can be int, ushort, uid_t, etc... | |
1745 | * It may be necessary to include <sys/types.h> to get any | |
1746 | * typedef'ed information. This is only required if you have | |
1747 | * getgroups() or setgropus().. | |
4633a7c4 | 1748 | */ |
dfe9444c AD |
1749 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) |
1750 | #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */ | |
1751 | #endif | |
1752 | ||
1753 | /* I_NETDB: | |
1754 | * This symbol, if defined, indicates that <netdb.h> exists and | |
1755 | * should be included. | |
1756 | */ | |
1757 | #$i_netdb I_NETDB /**/ | |
4633a7c4 | 1758 | |
c4f23d77 AD |
1759 | /* I_PWD: |
1760 | * This symbol, if defined, indicates to the C program that it should | |
1761 | * include <pwd.h>. | |
1762 | */ | |
1763 | /* PWQUOTA: | |
1764 | * This symbol, if defined, indicates to the C program that struct passwd | |
1765 | * contains pw_quota. | |
1766 | */ | |
1767 | /* PWAGE: | |
1768 | * This symbol, if defined, indicates to the C program that struct passwd | |
1769 | * contains pw_age. | |
1770 | */ | |
1771 | /* PWCHANGE: | |
1772 | * This symbol, if defined, indicates to the C program that struct passwd | |
1773 | * contains pw_change. | |
1774 | */ | |
1775 | /* PWCLASS: | |
1776 | * This symbol, if defined, indicates to the C program that struct passwd | |
1777 | * contains pw_class. | |
1778 | */ | |
1779 | /* PWEXPIRE: | |
1780 | * This symbol, if defined, indicates to the C program that struct passwd | |
1781 | * contains pw_expire. | |
1782 | */ | |
1783 | /* PWCOMMENT: | |
1784 | * This symbol, if defined, indicates to the C program that struct passwd | |
1785 | * contains pw_comment. | |
1786 | */ | |
1787 | /* PWGECOS: | |
1788 | * This symbol, if defined, indicates to the C program that struct passwd | |
1789 | * contains pw_gecos. | |
1790 | */ | |
28e8609d JH |
1791 | /* PWPASSWD: |
1792 | * This symbol, if defined, indicates to the C program that struct passwd | |
1793 | * contains pw_passwd. | |
1794 | */ | |
1795 | /* HAS_SETPWENT: | |
1796 | * This symbol, if defined, indicates that the getpwrent routine is | |
1797 | * available for initializing sequential access of the passwd database. | |
1798 | */ | |
1799 | /* HAS_GETPWENT: | |
1800 | * This symbol, if defined, indicates that the getpwent routine is | |
1801 | * available for sequential access of the password database. | |
1802 | */ | |
1803 | /* HAS_ENDPWENT: | |
1804 | * This symbol, if defined, indicates that the getpwent routine is | |
1805 | * available for finalizing sequential access of the passwd database. | |
1806 | */ | |
c4f23d77 AD |
1807 | #$i_pwd I_PWD /**/ |
1808 | #$d_pwquota PWQUOTA /**/ | |
1809 | #$d_pwage PWAGE /**/ | |
1810 | #$d_pwchange PWCHANGE /**/ | |
1811 | #$d_pwclass PWCLASS /**/ | |
1812 | #$d_pwexpire PWEXPIRE /**/ | |
1813 | #$d_pwcomment PWCOMMENT /**/ | |
1814 | #$d_pwgecos PWGECOS /**/ | |
28e8609d JH |
1815 | #$d_pwpasswd PWPASSWD /**/ |
1816 | #$d_setpwent HAS_SETPWENT /**/ | |
1817 | #$d_getpwent HAS_GETPWENT /**/ | |
1818 | #$d_endpwent HAS_ENDPWENT /**/ | |
c4f23d77 | 1819 | |
bfb7748a AD |
1820 | /* Free_t: |
1821 | * This variable contains the return type of free(). It is usually | |
1822 | * void, but occasionally int. | |
e876cf0b | 1823 | */ |
bfb7748a AD |
1824 | /* Malloc_t: |
1825 | * This symbol is the type of pointer returned by malloc and realloc. | |
4633a7c4 | 1826 | */ |
bfb7748a AD |
1827 | #define Malloc_t $malloctype /**/ |
1828 | #define Free_t $freetype /**/ | |
1829 | ||
1830 | /* MYMALLOC: | |
1831 | * This symbol, if defined, indicates that we're using our own malloc. | |
1832 | */ | |
1833 | #$d_mymalloc MYMALLOC /**/ | |
4633a7c4 | 1834 | |
c4f23d77 AD |
1835 | /* SIG_NAME: |
1836 | * This symbol contains a list of signal names in order of | |
1837 | * signal number. This is intended | |
1838 | * to be used as a static array initialization, like this: | |
1839 | * char *sig_name[] = { SIG_NAME }; | |
1840 | * The signals in the list are separated with commas, and each signal | |
1841 | * is surrounded by double quotes. There is no leading SIG in the signal | |
1842 | * name, i.e. SIGQUIT is known as "QUIT". | |
1843 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
1844 | * etc., where nn is the actual signal number (e.g. NUM37). | |
1845 | * The signal number for sig_name[i] is stored in sig_num[i]. | |
1846 | * The last element is 0 to terminate the list with a NULL. This | |
1847 | * corresponds to the 0 at the end of the sig_num list. | |
1848 | */ | |
1849 | /* SIG_NUM: | |
1850 | * This symbol contains a list of signal numbers, in the same order as the | |
1851 | * SIG_NAME list. It is suitable for static array initialization, as in: | |
1852 | * int sig_num[] = { SIG_NUM }; | |
1853 | * The signals in the list are separated with commas, and the indices | |
1854 | * within that list and the SIG_NAME list match, so it's easy to compute | |
1855 | * the signal name from a number or vice versa at the price of a small | |
1856 | * dynamic linear lookup. | |
1857 | * Duplicates are allowed, but are moved to the end of the list. | |
1858 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
1859 | * if (i < NSIG) then sig_number[i] == i. | |
1860 | * The last element is 0, corresponding to the 0 at the end of | |
1861 | * the sig_name list. | |
1862 | */ | |
1863 | #define SIG_NAME $sig_name_init /**/ | |
0145542c | 1864 | #define SIG_NUM $sig_num_init /**/ |
c4f23d77 | 1865 | |
bfb7748a AD |
1866 | /* VOIDFLAGS: |
1867 | * This symbol indicates how much support of the void type is given by this | |
1868 | * compiler. What various bits mean: | |
1869 | * | |
1870 | * 1 = supports declaration of void | |
1871 | * 2 = supports arrays of pointers to functions returning void | |
1872 | * 4 = supports comparisons between pointers to void functions and | |
1873 | * addresses of void functions | |
1874 | * 8 = suports declaration of generic void pointers | |
1875 | * | |
1876 | * The package designer should define VOIDUSED to indicate the requirements | |
1877 | * of the package. This can be done either by #defining VOIDUSED before | |
1878 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
1879 | * latter approach is taken, only those flags will be tested. If the | |
1880 | * level of void support necessary is not present, defines void to int. | |
16d20bd9 | 1881 | */ |
bfb7748a AD |
1882 | #ifndef VOIDUSED |
1883 | #define VOIDUSED $defvoidused | |
1884 | #endif | |
1885 | #define VOIDFLAGS $voidflags | |
1886 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
1887 | #define void int /* is void to be avoided? */ | |
1888 | #define M_VOID /* Xenix strikes again */ | |
1889 | #endif | |
16d20bd9 | 1890 | |
bfb7748a AD |
1891 | /* ARCHLIB: |
1892 | * This variable, if defined, holds the name of the directory in | |
1893 | * which the user wants to put architecture-dependent public | |
1894 | * library files for $package. It is most often a local directory | |
1895 | * such as /usr/local/lib. Programs using this variable must be | |
1896 | * prepared to deal with filename expansion. If ARCHLIB is the | |
1897 | * same as PRIVLIB, it is not defined, since presumably the | |
1898 | * program already searches PRIVLIB. | |
e876cf0b | 1899 | */ |
bfb7748a AD |
1900 | /* ARCHLIB_EXP: |
1901 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
25f94b33 AD |
1902 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1903 | */ | |
bfb7748a AD |
1904 | #$d_archlib ARCHLIB "$archlib" /**/ |
1905 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ | |
25f94b33 | 1906 | |
dfe9444c AD |
1907 | /* DLSYM_NEEDS_UNDERSCORE: |
1908 | * This symbol, if defined, indicates that we need to prepend an | |
1909 | * underscore to the symbol name before calling dlsym(). This only | |
1910 | * makes sense if you *have* dlsym, which we will presume is the | |
1911 | * case if you're using dl_dlopen.xs. | |
1912 | */ | |
1913 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/ | |
1914 | ||
1915 | /* USE_SFIO: | |
1916 | * This symbol, if defined, indicates that sfio should | |
1917 | * be used. | |
1918 | */ | |
1919 | #$d_sfio USE_SFIO /**/ | |
1920 | ||
1921 | /* USE_DYNAMIC_LOADING: | |
1922 | * This symbol, if defined, indicates that dynamic loading of | |
1923 | * some sort is available. | |
1924 | */ | |
1925 | #$usedl USE_DYNAMIC_LOADING /**/ | |
1926 | ||
1927 | /* DB_Prefix_t: | |
1928 | * This symbol contains the type of the prefix structure element | |
1929 | * in the <db.h> header file. In older versions of DB, it was | |
1930 | * int, while in newer ones it is u_int32_t. | |
1931 | */ | |
1932 | /* DB_Hash_t: | |
1933 | * This symbol contains the type of the prefix structure element | |
1934 | * in the <db.h> header file. In older versions of DB, it was | |
1935 | * int, while in newer ones it is size_t. | |
1936 | */ | |
1937 | #define DB_Hash_t $db_hashtype /**/ | |
1938 | #define DB_Prefix_t $db_prefixtype /**/ | |
1939 | ||
bfb7748a AD |
1940 | /* PRIVLIB: |
1941 | * This symbol contains the name of the private library for this package. | |
1942 | * The library is private in the sense that it needn't be in anyone's | |
1943 | * execution path, but it should be accessible by the world. The program | |
1944 | * should be prepared to do ~ expansion. | |
1945 | */ | |
1946 | /* PRIVLIB_EXP: | |
1947 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
1948 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1949 | */ | |
1950 | #define PRIVLIB "$privlib" /**/ | |
1951 | #define PRIVLIB_EXP "$privlibexp" /**/ | |
1952 | ||
0145542c GB |
1953 | /* SELECT_MIN_BITS: |
1954 | * This symbol holds the minimum number of bits operated by select. | |
1955 | * That is, if you do select(n, ...), how many bits at least will be | |
1956 | * cleared in the masks if some activity is detected. Usually this | |
1957 | * is either n or 32*ceil(n/32), especially many little-endians do | |
1958 | * the latter. This is only useful if you have select(), naturally. | |
1959 | */ | |
1960 | #define SELECT_MIN_BITS $selectminbits /**/ | |
1961 | ||
bfb7748a AD |
1962 | /* SITEARCH: |
1963 | * This symbol contains the name of the private library for this package. | |
1964 | * The library is private in the sense that it needn't be in anyone's | |
1965 | * execution path, but it should be accessible by the world. The program | |
1966 | * should be prepared to do ~ expansion. | |
1967 | * The standard distribution will put nothing in this directory. | |
1968 | * Individual sites may place their own extensions and modules in | |
1969 | * this directory. | |
1970 | */ | |
1971 | /* SITEARCH_EXP: | |
1972 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
1973 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1974 | */ | |
1975 | #define SITEARCH "$sitearch" /**/ | |
1976 | #define SITEARCH_EXP "$sitearchexp" /**/ | |
1977 | ||
1978 | /* SITELIB: | |
1979 | * This symbol contains the name of the private library for this package. | |
1980 | * The library is private in the sense that it needn't be in anyone's | |
1981 | * execution path, but it should be accessible by the world. The program | |
1982 | * should be prepared to do ~ expansion. | |
1983 | * The standard distribution will put nothing in this directory. | |
1984 | * Individual sites may place their own extensions and modules in | |
1985 | * this directory. | |
1986 | */ | |
1987 | /* SITELIB_EXP: | |
1988 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
1989 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1990 | */ | |
1991 | #define SITELIB "$sitelib" /**/ | |
1992 | #define SITELIB_EXP "$sitelibexp" /**/ | |
1993 | ||
568ef1f6 | 1994 | /* STARTPERL: |
1995 | * This variable contains the string to put in front of a perl | |
1996 | * script to make sure (one hopes) that it runs with perl and not | |
1997 | * some shell. | |
1998 | */ | |
1999 | #define STARTPERL "$startperl" /**/ | |
2000 | ||
e876cf0b | 2001 | /* USE_PERLIO: |
2002 | * This symbol, if defined, indicates that the PerlIO abstraction should | |
2003 | * be used throughout. If not defined, stdio should be | |
2004 | * used in a fully backward compatible manner. | |
2005 | */ | |
2006 | #$useperlio USE_PERLIO /**/ | |
2007 | ||
dc45a647 MB |
2008 | /* HAS_GETHOST_PROTOS: |
2009 | * This symbol, if defined, indicates that <netdb.h> includes | |
2010 | * prototypes for gethostent(), gethostbyname(), and | |
2011 | * gethostbyaddr(). Otherwise, it is up to the program to guess | |
2012 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
2013 | */ | |
2014 | #$d_gethostprotos HAS_GETHOST_PROTOS /**/ | |
2015 | ||
2016 | /* HAS_GETNET_PROTOS: | |
2017 | * This symbol, if defined, indicates that <netdb.h> includes | |
2018 | * prototypes for getnetent(), getnetbyname(), and | |
2019 | * getnetbyaddr(). Otherwise, it is up to the program to guess | |
2020 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
2021 | */ | |
2022 | #$d_getnetprotos HAS_GETNET_PROTOS /**/ | |
2023 | ||
2024 | /* HAS_GETPROTO_PROTOS: | |
2025 | * This symbol, if defined, indicates that <netdb.h> includes | |
2026 | * prototypes for getprotoent(), getprotobyname(), and | |
2027 | * getprotobyaddr(). Otherwise, it is up to the program to guess | |
2028 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
2029 | */ | |
2030 | #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/ | |
2031 | ||
2032 | /* HAS_GETSERV_PROTOS: | |
2033 | * This symbol, if defined, indicates that <netdb.h> includes | |
2034 | * prototypes for getservent(), getservbyname(), and | |
2035 | * getservbyaddr(). Otherwise, it is up to the program to guess | |
2036 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
2037 | */ | |
2038 | #$d_getservprotos HAS_GETSERV_PROTOS /**/ | |
2039 | ||
dfe9444c AD |
2040 | /* Netdb_host_t: |
2041 | * This symbol holds the type used for the 1st argument | |
2042 | * to gethostbyaddr(). | |
8e07c86e | 2043 | */ |
dfe9444c AD |
2044 | /* Netdb_hlen_t: |
2045 | * This symbol holds the type used for the 2nd argument | |
2046 | * to gethostbyaddr(). | |
2047 | */ | |
2048 | /* Netdb_name_t: | |
2049 | * This symbol holds the type used for the argument to | |
2050 | * gethostbyname(). | |
2051 | */ | |
2052 | /* Netdb_net_t: | |
2053 | * This symbol holds the type used for the 1st argument to | |
2054 | * getnetbyaddr(). | |
2055 | */ | |
2056 | #define Netdb_host_t $netdb_host_type /**/ | |
2057 | #define Netdb_hlen_t $netdb_hlen_type /**/ | |
2058 | #define Netdb_name_t $netdb_name_type /**/ | |
2059 | #define Netdb_net_t $netdb_net_type /**/ | |
2060 | ||
2061 | /* Select_fd_set_t: | |
2062 | * This symbol holds the type used for the 2nd, 3rd, and 4th | |
2063 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET | |
2064 | * is defined, and 'int *' otherwise. This is only useful if you | |
2065 | * have select(), of course. | |
2066 | */ | |
2067 | #define Select_fd_set_t $selecttype /**/ | |
2068 | ||
2069 | /* ARCHNAME: | |
2070 | * This symbol holds a string representing the architecture name. | |
2071 | * It may be used to construct an architecture-dependant pathname | |
2072 | * where library files may be held under a private library, for | |
2073 | * instance. | |
2074 | */ | |
2075 | #define ARCHNAME "$archname" /**/ | |
2076 | ||
6a9db2ce BH |
2077 | /* I_MACH_CTHREADS: |
2078 | * This symbol, if defined, indicates to the C program that it should | |
2079 | * include <mach/cthreads.h>. | |
2080 | */ | |
2081 | #$i_machcthreads I_MACH_CTHREADS /**/ | |
2082 | ||
2083 | /* I_PTHREAD: | |
2084 | * This symbol, if defined, indicates to the C program that it should | |
2085 | * include <pthread.h>. | |
2086 | */ | |
2087 | #$i_pthread I_PTHREAD /**/ | |
2088 | ||
dfe9444c AD |
2089 | /* HAS_PTHREAD_YIELD: |
2090 | * This symbol, if defined, indicates that the pthread_yield | |
2091 | * routine is available to yield the execution of the current | |
2092 | * thread. | |
2093 | */ | |
c4f23d77 AD |
2094 | /* HAS_SCHED_YIELD: |
2095 | * This symbol, if defined, indicates that the sched_yield | |
2096 | * routine is available to yield the execution of the current | |
2097 | * thread. | |
2098 | */ | |
dfe9444c | 2099 | #$d_pthread_yield HAS_PTHREAD_YIELD /**/ |
c4f23d77 | 2100 | #$d_sched_yield HAS_SCHED_YIELD /**/ |
dfe9444c AD |
2101 | |
2102 | /* PTHREADS_CREATED_JOINABLE: | |
2103 | * This symbol, if defined, indicates that pthreads are created | |
2104 | * in the joinable (aka undetached) state. | |
2105 | */ | |
2106 | #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/ | |
2107 | ||
2108 | /* USE_THREADS: | |
2109 | * This symbol, if defined, indicates that Perl should | |
2110 | * be built to use threads. | |
2111 | */ | |
693762b4 AD |
2112 | /* OLD_PTHREADS_API: |
2113 | * This symbol, if defined, indicates that Perl should | |
2114 | * be built to use the old draft POSIX threads API. | |
2115 | */ | |
dfe9444c | 2116 | #$usethreads USE_THREADS /**/ |
693762b4 | 2117 | #$d_oldpthreads OLD_PTHREADS_API /**/ |
8e07c86e | 2118 | |
dc45a647 MB |
2119 | /* Time_t: |
2120 | * This symbol holds the type returned by time(). It can be long, | |
2121 | * or time_t on BSD sites (in which case <sys/types.h> should be | |
2122 | * included). | |
2123 | */ | |
2124 | #define Time_t $timetype /* Time type */ | |
2125 | ||
2126 | /* HAS_TIMES: | |
2127 | * This symbol, if defined, indicates that the times() routine exists. | |
2128 | * Note that this became obsolete on some systems (SUNOS), which now | |
2129 | * use getrusage(). It may be necessary to include <sys/times.h>. | |
2130 | */ | |
2131 | #$d_times HAS_TIMES /**/ | |
2132 | ||
2133 | /* Fpos_t: | |
2134 | * This symbol holds the type used to declare file positions in libc. | |
2135 | * It can be fpos_t, long, uint, etc... It may be necessary to include | |
2136 | * <sys/types.h> to get any typedef'ed information. | |
2137 | */ | |
2138 | #define Fpos_t $fpostype /* File position type */ | |
2139 | ||
2140 | /* Gid_t: | |
2141 | * This symbol holds the return type of getgid() and the type of | |
2142 | * argument to setrgid() and related functions. Typically, | |
2143 | * it is the type of group ids in the kernel. It can be int, ushort, | |
2144 | * uid_t, etc... It may be necessary to include <sys/types.h> to get | |
2145 | * any typedef'ed information. | |
2146 | */ | |
2147 | #define Gid_t $gidtype /* Type for getgid(), etc... */ | |
2148 | ||
2149 | /* Off_t: | |
2150 | * This symbol holds the type used to declare offsets in the kernel. | |
2151 | * It can be int, long, off_t, etc... It may be necessary to include | |
2152 | * <sys/types.h> to get any typedef'ed information. | |
2153 | */ | |
2154 | #define Off_t $lseektype /* <offset> type */ | |
2155 | ||
2156 | /* Mode_t: | |
2157 | * This symbol holds the type used to declare file modes | |
2158 | * for systems calls. It is usually mode_t, but may be | |
2159 | * int or unsigned short. It may be necessary to include <sys/types.h> | |
2160 | * to get any typedef'ed information. | |
2161 | */ | |
2162 | #define Mode_t $modetype /* file mode parameter for system calls */ | |
2163 | ||
2164 | /* Pid_t: | |
2165 | * This symbol holds the type used to declare process ids in the kernel. | |
2166 | * It can be int, uint, pid_t, etc... It may be necessary to include | |
2167 | * <sys/types.h> to get any typedef'ed information. | |
2168 | */ | |
2169 | #define Pid_t $pidtype /* PID type */ | |
2170 | ||
2171 | /* Size_t: | |
2172 | * This symbol holds the type used to declare length parameters | |
2173 | * for string functions. It is usually size_t, but may be | |
2174 | * unsigned long, int, etc. It may be necessary to include | |
2175 | * <sys/types.h> to get any typedef'ed information. | |
2176 | */ | |
2177 | #define Size_t $sizetype /* length paramater for string functions */ | |
2178 | ||
2179 | /* Uid_t: | |
2180 | * This symbol holds the type used to declare user ids in the kernel. | |
2181 | * It can be int, ushort, uid_t, etc... It may be necessary to include | |
2182 | * <sys/types.h> to get any typedef'ed information. | |
2183 | */ | |
2184 | #define Uid_t $uidtype /* UID type */ | |
2185 | ||
fe14fcc3 | 2186 | #endif |
8d063cd8 | 2187 | !GROK!THIS! |