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)" | |
2304df62 AD |
18 | sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!' |
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 | * |
1aef975c | 28 | * \$Id: Config_h.U,v 3.0.1.3 1995/01/30 14:25:39 ram Exp $ |
8d063cd8 LW |
29 | */ |
30 | ||
2304df62 AD |
31 | /* Configuration time: $cf_time |
32 | * Configured by: $cf_by | |
33 | * Target system: $myuname | |
34 | */ | |
8d063cd8 | 35 | |
2304df62 AD |
36 | #ifndef _config_h_ |
37 | #define _config_h_ | |
38 | ||
a0d0e21e LW |
39 | /* MEM_ALIGNBYTES: |
40 | * This symbol contains the number of bytes required to align a | |
41 | * double. Usual values are 2, 4 and 8. | |
42 | */ | |
43 | #define MEM_ALIGNBYTES $alignbytes /**/ | |
44 | ||
40000a8c AD |
45 | /* ARCHLIB_EXP: |
46 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
47 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
48 | */ | |
49 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ | |
50 | ||
2304df62 AD |
51 | /* BIN: |
52 | * This symbol holds the path of the bin directory where the package will | |
53 | * be installed. Program must be prepared to deal with ~name substitution. | |
a687059c | 54 | */ |
2304df62 | 55 | #define BIN "$bin" /**/ |
a687059c | 56 | |
2304df62 AD |
57 | /* BYTEORDER: |
58 | * This symbol hold the hexadecimal constant defined in byteorder, | |
59 | * i.e. 0x1234 or 0x4321, etc... | |
a687059c | 60 | */ |
2304df62 | 61 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ |
a687059c | 62 | |
ecfc5424 AD |
63 | /* CAT2: |
64 | * This macro catenates 2 tokens together. | |
65 | */ | |
66 | /* STRINGIFY: | |
67 | * This macro surrounds its token with double quotes. | |
68 | */ | |
69 | #if $cpp_stuff == 1 | |
70 | #define CAT2(a,b)a/**/b | |
71 | #define CAT3(a,b,c)a/**/b/**/c | |
72 | #define CAT4(a,b,c,d)a/**/b/**/c/**/d | |
73 | #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e | |
74 | #define STRINGIFY(a)"a" | |
75 | /* If you can get stringification with catify, tell me how! */ | |
76 | #endif | |
77 | #if $cpp_stuff == 42 | |
78 | #define CAT2(a,b)a ## b | |
79 | #define CAT3(a,b,c)a ## b ## c | |
80 | #define CAT4(a,b,c,d)a ## b ## c ## d | |
81 | #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e | |
82 | #define StGiFy(a)# a | |
83 | #define STRINGIFY(a)StGiFy(a) | |
84 | #define SCAT2(a,b)StGiFy(a) StGiFy(b) | |
85 | #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c) | |
86 | #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) | |
87 | #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e) | |
88 | #endif | |
89 | #ifndef CAT2 | |
90 | #include "Bletch: How does this C preprocessor catenate tokens?" | |
91 | #endif | |
92 | ||
2304df62 | 93 | /* CPPSTDIN: |
36ce8bec DF |
94 | * This symbol contains the first part of the string which will invoke |
95 | * the C preprocessor on the standard input and produce to standard | |
2304df62 AD |
96 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
97 | * call a wrapper. See CPPRUN. | |
36ce8bec | 98 | */ |
2304df62 | 99 | /* CPPMINUS: |
36ce8bec DF |
100 | * This symbol contains the second part of the string which will invoke |
101 | * the C preprocessor on the standard input and produce to standard | |
378cc40b | 102 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus |
36ce8bec DF |
103 | * to specify standard input, otherwise the value is "". |
104 | */ | |
378cc40b | 105 | #define CPPSTDIN "$cppstdin" |
36ce8bec DF |
106 | #define CPPMINUS "$cppminus" |
107 | ||
a0d0e21e LW |
108 | /* HAS_ALARM: |
109 | * This symbol, if defined, indicates that the alarm routine is | |
110 | * available. | |
111 | */ | |
112 | #$d_alarm HAS_ALARM /**/ | |
113 | ||
ecfc5424 AD |
114 | /* HASATTRIBUTE: |
115 | * This symbol indicates the C compiler can check for function attributes, | |
116 | * such as printf formats. This is normally only supported by GNU cc. | |
117 | */ | |
118 | #$d_attribut HASATTRIBUTE /**/ | |
119 | #ifndef HASATTRIBUTE | |
120 | #define __attribute__(_arg_) | |
121 | #endif | |
122 | ||
2304df62 AD |
123 | /* HAS_BCMP: |
124 | * This symbol is defined if the bcmp() routine is available to | |
125 | * compare blocks of memory. | |
a687059c | 126 | */ |
2304df62 | 127 | #$d_bcmp HAS_BCMP /**/ |
a687059c | 128 | |
2304df62 AD |
129 | /* HAS_BCOPY: |
130 | * This symbol is defined if the bcopy() routine is available to | |
131 | * copy blocks of memory. | |
c51b80d1 | 132 | */ |
2304df62 | 133 | #$d_bcopy HAS_BCOPY /**/ |
c51b80d1 | 134 | |
2304df62 AD |
135 | /* HAS_BZERO: |
136 | * This symbol is defined if the bzero() routine is available to | |
137 | * set a memory block to 0. | |
0d3e774c | 138 | */ |
2304df62 | 139 | #$d_bzero HAS_BZERO /**/ |
0d3e774c | 140 | |
a0d0e21e LW |
141 | /* CASTI32: |
142 | * This symbol is defined if the C compiler can cast negative | |
143 | * or large floating point numbers to 32-bit ints. | |
144 | */ | |
145 | #$d_casti32 CASTI32 /**/ | |
146 | ||
2304df62 AD |
147 | /* CASTNEGFLOAT: |
148 | * This symbol is defined if the C compiler can cast negative | |
149 | * numbers to unsigned longs, ints and shorts. | |
b1248f16 | 150 | */ |
2304df62 | 151 | /* CASTFLAGS: |
7e1cf235 LW |
152 | * This symbol contains flags that say what difficulties the compiler |
153 | * has casting odd floating values to unsigned long: | |
2304df62 | 154 | * 0 = ok |
7e1cf235 LW |
155 | * 1 = couldn't cast < 0 |
156 | * 2 = couldn't cast >= 0x80000000 | |
157 | */ | |
2304df62 AD |
158 | #$d_castneg CASTNEGFLOAT /**/ |
159 | #define CASTFLAGS $castflags /**/ | |
ed6116ce | 160 | |
a0d0e21e LW |
161 | /* HAS_CHOWN: |
162 | * This symbol, if defined, indicates that the chown routine is | |
163 | * available. | |
164 | */ | |
165 | #$d_chown HAS_CHOWN /**/ | |
166 | ||
167 | /* HAS_CHROOT: | |
168 | * This symbol, if defined, indicates that the chroot routine is | |
169 | * available. | |
170 | */ | |
171 | #$d_chroot HAS_CHROOT /**/ | |
172 | ||
2304df62 | 173 | /* HAS_CHSIZE: |
87250799 LW |
174 | * This symbol, if defined, indicates that the chsize routine is available |
175 | * to truncate files. You might need a -lx to get this routine. | |
176 | */ | |
fe14fcc3 | 177 | #$d_chsize HAS_CHSIZE /**/ |
87250799 | 178 | |
ecfc5424 AD |
179 | /* VOID_CLOSEDIR: |
180 | * This symbol, if defined, indicates that the closedir() routine | |
181 | * does not return a value. | |
182 | */ | |
183 | #$d_void_closedir VOID_CLOSEDIR /**/ | |
184 | ||
2304df62 AD |
185 | /* HASCONST: |
186 | * This symbol, if defined, indicates that this C compiler knows about | |
187 | * the const type. There is no need to actually test for that symbol | |
188 | * within your programs. The mere use of the "const" keyword will | |
189 | * trigger the necessary tests. | |
190 | */ | |
191 | #$d_const HASCONST /**/ | |
192 | #ifndef HASCONST | |
193 | #define const | |
194 | #endif | |
195 | ||
196 | /* HAS_CRYPT: | |
2e1b3b7e KK |
197 | * This symbol, if defined, indicates that the crypt routine is available |
198 | * to encrypt passwords and the like. | |
199 | */ | |
2304df62 | 200 | #$d_crypt HAS_CRYPT /**/ |
2e1b3b7e | 201 | |
a0d0e21e LW |
202 | /* HAS_CUSERID: |
203 | * This symbol, if defined, indicates that the cuserid routine is | |
204 | * available to get character login names. | |
13281fa4 | 205 | */ |
a0d0e21e LW |
206 | #$d_cuserid HAS_CUSERID /**/ |
207 | ||
208 | /* HAS_DBL_DIG: | |
209 | * This symbol, if defined, indicates that this system's <float.h> | |
210 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
211 | * of significant digits in a double precision number. If this | |
212 | * symbol is not defined, a guess of 15 is usually pretty good. | |
213 | */ | |
214 | #$d_dbl_dig HAS_DBL_DIG /* */ | |
215 | ||
216 | /* HAS_DIFFTIME: | |
217 | * This symbol, if defined, indicates that the difftime routine is | |
218 | * available. | |
219 | */ | |
220 | #$d_difftime HAS_DIFFTIME /**/ | |
13281fa4 | 221 | |
ecfc5424 AD |
222 | /* HAS_DLERROR: |
223 | * This symbol, if defined, indicates that the dlerror routine is | |
224 | * available to return a string describing the last error that | |
225 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
226 | */ | |
227 | #$d_dlerror HAS_DLERROR /**/ | |
228 | ||
229 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: | |
230 | * This symbol, if defined, indicates that the bug that prevents | |
231 | * setuid scripts from being secure is not present in this kernel. | |
232 | */ | |
233 | /* DOSUID: | |
234 | * This symbol, if defined, indicates that the C program should | |
235 | * check the script that it is executing for setuid/setgid bits, and | |
236 | * attempt to emulate setuid/setgid on systems that have disabled | |
237 | * setuid #! scripts because the kernel can't do it securely. | |
238 | * It is up to the package designer to make sure that this emulation | |
239 | * is done securely. Among other things, it should do an fstat on | |
240 | * the script it just opened to make sure it really is a setuid/setgid | |
241 | * script, it should make sure the arguments passed correspond exactly | |
242 | * to the argument on the #! line, and it should not trust any | |
243 | * subprocesses to which it must pass the filename rather than the | |
244 | * file descriptor of the script to be executed. | |
245 | */ | |
246 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ | |
247 | #$d_dosuid DOSUID /**/ | |
248 | ||
249 | /* HAS_DREM: | |
250 | * This symbol, if defined, indicates that the drem routine is | |
251 | * available. This routine is roughly the same as fmod, i.e. it | |
252 | * computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod | |
253 | * uses n=trunc(x/y). | |
254 | */ | |
255 | #$d_drem HAS_DREM /**/ | |
256 | ||
2304df62 AD |
257 | /* HAS_DUP2: |
258 | * This symbol, if defined, indicates that the dup2 routine is | |
259 | * available to duplicate file descriptors. | |
a687059c | 260 | */ |
2304df62 | 261 | #$d_dup2 HAS_DUP2 /**/ |
a687059c | 262 | |
2304df62 | 263 | /* HAS_FCHMOD: |
378cc40b LW |
264 | * This symbol, if defined, indicates that the fchmod routine is available |
265 | * to change mode of opened files. If unavailable, use chmod(). | |
266 | */ | |
2304df62 | 267 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b | 268 | |
2304df62 | 269 | /* HAS_FCHOWN: |
378cc40b LW |
270 | * This symbol, if defined, indicates that the fchown routine is available |
271 | * to change ownership of opened files. If unavailable, use chown(). | |
272 | */ | |
2304df62 | 273 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b | 274 | |
2304df62 | 275 | /* HAS_FCNTL: |
fe14fcc3 LW |
276 | * This symbol, if defined, indicates to the C program that |
277 | * the fcntl() function exists. | |
a687059c | 278 | */ |
2304df62 | 279 | #$d_fcntl HAS_FCNTL /**/ |
a687059c | 280 | |
a0d0e21e LW |
281 | /* HAS_FGETPOS: |
282 | * This symbol, if defined, indicates that the fgetpos routine is | |
283 | * available to get the file position indicator, similar to ftell(). | |
284 | */ | |
285 | #$d_fgetpos HAS_FGETPOS /**/ | |
286 | ||
2304df62 | 287 | /* FLEXFILENAMES: |
7e1cf235 LW |
288 | * This symbol, if defined, indicates that the system supports filenames |
289 | * longer than 14 characters. | |
290 | */ | |
291 | #$d_flexfnam FLEXFILENAMES /**/ | |
292 | ||
2304df62 AD |
293 | /* HAS_FLOCK: |
294 | * This symbol, if defined, indicates that the flock routine is | |
a687059c LW |
295 | * available to do file locking. |
296 | */ | |
2304df62 | 297 | #$d_flock HAS_FLOCK /**/ |
a687059c | 298 | |
ecfc5424 AD |
299 | /* HAS_FMOD: |
300 | * This symbol, if defined, indicates that the fmod routine is | |
301 | * available to compute the remainder r=x-n*y where n=trunc(x/y). | |
302 | */ | |
303 | #$d_fmod HAS_FMOD /**/ | |
304 | ||
a0d0e21e LW |
305 | /* HAS_FORK: |
306 | * This symbol, if defined, indicates that the fork routine is | |
307 | * available. | |
308 | */ | |
309 | #$d_fork HAS_FORK /**/ | |
310 | ||
311 | /* HAS_FSETPOS: | |
312 | * This symbol, if defined, indicates that the fsetpos routine is | |
313 | * available to set the file position indicator, similar to fseek(). | |
314 | */ | |
315 | #$d_fsetpos HAS_FSETPOS /**/ | |
316 | ||
ecfc5424 AD |
317 | /* Gconvert: |
318 | * This preprocessor macro is defined to convert a floating point | |
319 | * number to a string without a trailing decimal point. This | |
320 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
321 | * efficient. If gconvert() is not available, but gcvt() drops the | |
322 | * trailing decimal point, then gcvt() is used. If all else fails, | |
323 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
324 | * macro are: value, number of digits, whether trailing zeros should | |
325 | * be retained, and the output buffer. | |
326 | */ | |
327 | #define Gconvert(x,n,t,b) $d_Gconvert | |
328 | ||
2304df62 | 329 | /* HAS_GETGROUPS: |
378cc40b LW |
330 | * This symbol, if defined, indicates that the getgroups() routine is |
331 | * available to get the list of process groups. If unavailable, multiple | |
332 | * groups are probably not supported. | |
333 | */ | |
2304df62 | 334 | #$d_getgrps HAS_GETGROUPS /**/ |
378cc40b | 335 | |
2304df62 AD |
336 | /* HAS_GETHOSTENT: |
337 | * This symbol, if defined, indicates that the gethostent routine is | |
a687059c LW |
338 | * available to lookup host names in some data base or other. |
339 | */ | |
2304df62 AD |
340 | #$d_gethent HAS_GETHOSTENT /**/ |
341 | ||
342 | /* HAS_UNAME: | |
343 | * This symbol, if defined, indicates that the C program may use the | |
344 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
345 | * and PHOSTNAME. | |
346 | */ | |
347 | #$d_uname HAS_UNAME /**/ | |
a687059c | 348 | |
a0d0e21e LW |
349 | /* HAS_GETLOGIN: |
350 | * This symbol, if defined, indicates that the getlogin routine is | |
351 | * available to get the login name. | |
352 | */ | |
353 | #$d_getlogin HAS_GETLOGIN /**/ | |
354 | ||
2304df62 AD |
355 | /* HAS_GETPGRP: |
356 | * This symbol, if defined, indicates that the getpgrp routine is | |
a687059c LW |
357 | * available to get the current process group. |
358 | */ | |
2304df62 | 359 | #$d_getpgrp HAS_GETPGRP /**/ |
a687059c | 360 | |
2304df62 | 361 | /* HAS_GETPGRP2: |
d8f2e4cc LW |
362 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
363 | * routine is available to get the current process group. | |
364 | */ | |
2304df62 | 365 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
d8f2e4cc | 366 | |
a0d0e21e LW |
367 | /* HAS_GETPPID: |
368 | * This symbol, if defined, indicates that the getppid routine is | |
369 | * available to get the parent process ID. | |
370 | */ | |
371 | #$d_getppid HAS_GETPPID /**/ | |
372 | ||
2304df62 AD |
373 | /* HAS_GETPRIORITY: |
374 | * This symbol, if defined, indicates that the getpriority routine is | |
a687059c LW |
375 | * available to get a process's priority. |
376 | */ | |
2304df62 | 377 | #$d_getprior HAS_GETPRIORITY /**/ |
a687059c | 378 | |
a0d0e21e LW |
379 | /* HAS_HTONL: |
380 | * This symbol, if defined, indicates that the htonl() routine (and | |
381 | * friends htons() ntohl() ntohs()) are available to do network | |
382 | * order byte swapping. | |
383 | */ | |
384 | /* HAS_HTONS: | |
385 | * This symbol, if defined, indicates that the htons() routine (and | |
386 | * friends htonl() ntohl() ntohs()) are available to do network | |
387 | * order byte swapping. | |
388 | */ | |
389 | /* HAS_NTOHL: | |
390 | * This symbol, if defined, indicates that the ntohl() routine (and | |
391 | * friends htonl() htons() ntohs()) are available to do network | |
392 | * order byte swapping. | |
393 | */ | |
394 | /* HAS_NTOHS: | |
395 | * This symbol, if defined, indicates that the ntohs() routine (and | |
396 | * friends htonl() htons() ntohl()) are available to do network | |
397 | * order byte swapping. | |
398 | */ | |
399 | #$d_htonl HAS_HTONL /**/ | |
400 | #$d_htonl HAS_HTONS /**/ | |
401 | #$d_htonl HAS_NTOHL /**/ | |
402 | #$d_htonl HAS_NTOHS /**/ | |
403 | ||
ecfc5424 AD |
404 | /* HAS_ISASCII: |
405 | * This manifest constant lets the C program know that isascii | |
406 | * is available. | |
407 | */ | |
408 | #$d_isascii HAS_ISASCII /**/ | |
409 | ||
2304df62 | 410 | /* HAS_KILLPG: |
378cc40b LW |
411 | * This symbol, if defined, indicates that the killpg routine is available |
412 | * to kill process groups. If unavailable, you probably should use kill | |
413 | * with a negative process number. | |
414 | */ | |
2304df62 | 415 | #$d_killpg HAS_KILLPG /**/ |
378cc40b | 416 | |
2304df62 AD |
417 | /* HAS_LINK: |
418 | * This symbol, if defined, indicates that the link routine is | |
419 | * available to create hard links. | |
0d3e774c | 420 | */ |
2304df62 | 421 | #$d_link HAS_LINK /**/ |
0d3e774c | 422 | |
ecfc5424 AD |
423 | /* USE_LINUX_STDIO: |
424 | * This symbol is defined if this system has a FILE structure declaring | |
425 | * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h. | |
426 | */ | |
427 | #$d_linuxstd USE_LINUX_STDIO /**/ | |
428 | ||
429 | /* HAS_LOCALECONV: | |
430 | * This symbol, if defined, indicates that the localeconv routine is | |
431 | * available for numeric and monetary formatting conventions. | |
432 | */ | |
433 | #$d_locconv HAS_LOCALECONV /**/ | |
434 | ||
a0d0e21e LW |
435 | /* HAS_LOCKF: |
436 | * This symbol, if defined, indicates that the lockf routine is | |
437 | * available to do file locking. | |
438 | */ | |
439 | #$d_lockf HAS_LOCKF /**/ | |
440 | ||
2304df62 AD |
441 | /* HAS_LSTAT: |
442 | * This symbol, if defined, indicates that the lstat routine is | |
443 | * available to do file stats on symbolic links. | |
a687059c | 444 | */ |
2304df62 | 445 | #$d_lstat HAS_LSTAT /**/ |
a687059c | 446 | |
a0d0e21e LW |
447 | /* HAS_MBLEN: |
448 | * This symbol, if defined, indicates that the mblen routine is available | |
449 | * to find the number of bytes in a multibye character. | |
450 | */ | |
451 | #$d_mblen HAS_MBLEN /**/ | |
452 | ||
453 | /* HAS_MBSTOWCS: | |
454 | * This symbol, if defined, indicates that the mbstowcs routine is | |
455 | * available to covert a multibyte string into a wide character string. | |
456 | */ | |
457 | #$d_mbstowcs HAS_MBSTOWCS /**/ | |
458 | ||
459 | /* HAS_MBTOWC: | |
460 | * This symbol, if defined, indicates that the mbtowc routine is available | |
461 | * to covert a multibyte to a wide character. | |
462 | */ | |
463 | #$d_mbtowc HAS_MBTOWC /**/ | |
464 | ||
2304df62 AD |
465 | /* HAS_MEMCMP: |
466 | * This symbol, if defined, indicates that the memcmp routine is available | |
467 | * to compare blocks of memory. | |
378cc40b | 468 | */ |
2304df62 AD |
469 | #$d_memcmp HAS_MEMCMP /**/ |
470 | ||
471 | /* HAS_MEMCPY: | |
9f971974 | 472 | * This symbol, if defined, indicates that the memcpy routine is available |
2304df62 | 473 | * to copy blocks of memory. |
9f971974 | 474 | */ |
2304df62 | 475 | #$d_memcpy HAS_MEMCPY /**/ |
9f971974 | 476 | |
2304df62 | 477 | /* HAS_MEMMOVE: |
9f971974 | 478 | * This symbol, if defined, indicates that the memmove routine is available |
2304df62 AD |
479 | * to copy potentially overlapping blocks of memory. This should be used |
480 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
481 | * own version. | |
9f971974 | 482 | */ |
2304df62 | 483 | #$d_memmove HAS_MEMMOVE /**/ |
9f971974 | 484 | |
2304df62 | 485 | /* HAS_MEMSET: |
9f971974 | 486 | * This symbol, if defined, indicates that the memset routine is available |
2304df62 | 487 | * to set blocks of memory. |
9f971974 | 488 | */ |
2304df62 | 489 | #$d_memset HAS_MEMSET /**/ |
378cc40b | 490 | |
2304df62 | 491 | /* HAS_MKDIR: |
a687059c LW |
492 | * This symbol, if defined, indicates that the mkdir routine is available |
493 | * to create directories. Otherwise you should fork off a new process to | |
494 | * exec /bin/mkdir. | |
495 | */ | |
2304df62 | 496 | #$d_mkdir HAS_MKDIR /**/ |
fe14fcc3 | 497 | |
ecfc5424 AD |
498 | /* HAS_MKFIFO: |
499 | * This symbol, if defined, indicates that the mkfifo routine is | |
500 | * available to create FIFOs. Otherwise, mknod should be able to | |
501 | * do it for you. However, if mkfifo is there, mknod might require | |
502 | * super-user privileges which mkfifo will not. | |
503 | */ | |
504 | #$d_mkfifo HAS_MKFIFO /**/ | |
505 | ||
a0d0e21e LW |
506 | /* HAS_MKTIME: |
507 | * This symbol, if defined, indicates that the mktime routine is | |
508 | * available. | |
509 | */ | |
510 | #$d_mktime HAS_MKTIME /**/ | |
511 | ||
2304df62 | 512 | /* HAS_MSG: |
fe14fcc3 | 513 | * This symbol, if defined, indicates that the entire msg*(2) library is |
2304df62 | 514 | * supported (IPC mechanism based on message queues). |
fe14fcc3 | 515 | */ |
2304df62 | 516 | #$d_msg HAS_MSG /**/ |
fe14fcc3 | 517 | |
a0d0e21e LW |
518 | /* HAS_NICE: |
519 | * This symbol, if defined, indicates that the nice routine is | |
520 | * available. | |
fe14fcc3 | 521 | */ |
a0d0e21e | 522 | #$d_nice HAS_NICE /**/ |
a687059c | 523 | |
a0d0e21e LW |
524 | /* HAS_OPEN3: |
525 | * This manifest constant lets the C program know that the three | |
526 | * argument form of open(2) is available. | |
fe14fcc3 | 527 | */ |
a0d0e21e | 528 | #$d_open3 HAS_OPEN3 /**/ |
fe14fcc3 | 529 | |
ecfc5424 AD |
530 | /* HAS_PATHCONF: |
531 | * This symbol, if defined, indicates that pathconf() is available | |
532 | * to determine file-system related limits and options associated | |
533 | * with a given filename. | |
534 | */ | |
535 | /* HAS_FPATHCONF: | |
536 | * This symbol, if defined, indicates that pathconf() is available | |
537 | * to determine file-system related limits and options associated | |
538 | * with a given open file descriptor. | |
539 | */ | |
540 | #$d_pathconf HAS_PATHCONF /**/ | |
541 | #$d_fpathconf HAS_FPATHCONF /**/ | |
542 | ||
a0d0e21e LW |
543 | /* HAS_PAUSE: |
544 | * This symbol, if defined, indicates that the pause routine is | |
545 | * available to suspend a process until a signal is received. | |
a687059c | 546 | */ |
a0d0e21e | 547 | #$d_pause HAS_PAUSE /**/ |
a687059c | 548 | |
a0d0e21e LW |
549 | /* HAS_PIPE: |
550 | * This symbol, if defined, indicates that the pipe routine is | |
551 | * available to create an inter-process channel. | |
fe14fcc3 | 552 | */ |
a0d0e21e LW |
553 | #$d_pipe HAS_PIPE /**/ |
554 | ||
555 | /* HAS_READDIR: | |
556 | * This symbol, if defined, indicates that the readdir routine is | |
557 | * available to read directory entries. You may have to include | |
558 | * <dirent.h>. See I_DIRENT. | |
559 | */ | |
560 | #$d_readdir HAS_READDIR /**/ | |
561 | ||
562 | /* HAS_SEEKDIR: | |
563 | * This symbol, if defined, indicates that the seekdir routine is | |
564 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
565 | */ | |
566 | #$d_seekdir HAS_SEEKDIR /**/ | |
567 | ||
568 | /* HAS_TELLDIR: | |
569 | * This symbol, if defined, indicates that the telldir routine is | |
570 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
571 | */ | |
572 | #$d_telldir HAS_TELLDIR /**/ | |
573 | ||
574 | /* HAS_REWINDDIR: | |
575 | * This symbol, if defined, indicates that the rewinddir routine is | |
576 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
577 | */ | |
578 | #$d_rewinddir HAS_REWINDDIR /**/ | |
579 | ||
580 | /* HAS_READLINK: | |
581 | * This symbol, if defined, indicates that the readlink routine is | |
582 | * available to read the value of a symbolic link. | |
583 | */ | |
584 | #$d_readlink HAS_READLINK /**/ | |
fe14fcc3 | 585 | |
2304df62 | 586 | /* HAS_RENAME: |
378cc40b LW |
587 | * This symbol, if defined, indicates that the rename routine is available |
588 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
589 | * trick. | |
590 | */ | |
2304df62 | 591 | #$d_rename HAS_RENAME /**/ |
378cc40b | 592 | |
2304df62 AD |
593 | /* HAS_RMDIR: |
594 | * This symbol, if defined, indicates that the rmdir routine is | |
595 | * available to remove directories. Otherwise you should fork off a | |
596 | * new process to exec /bin/rmdir. | |
9f971974 | 597 | */ |
2304df62 | 598 | #$d_rmdir HAS_RMDIR /**/ |
9f971974 | 599 | |
ecfc5424 AD |
600 | /* HAS_SAFE_BCOPY: |
601 | * This symbol, if defined, indicates that the bcopy routine is available | |
602 | * to copy potentially overlapping memory blocks. Otherwise you should | |
603 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
604 | * own version. | |
605 | */ | |
606 | #$d_safebcpy HAS_SAFE_BCOPY /**/ | |
607 | ||
608 | /* HAS_SAFE_MEMCPY: | |
609 | * This symbol, if defined, indicates that the memcpy routine is available | |
610 | * to copy potentially overlapping memory blocks. Otherwise you should | |
611 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
612 | * own version. | |
613 | */ | |
614 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ | |
615 | ||
2304df62 AD |
616 | /* HAS_SELECT: |
617 | * This symbol, if defined, indicates that the select routine is | |
618 | * available to select active file descriptors. If the timeout field | |
619 | * is used, <sys/time.h> may need to be included. | |
fe14fcc3 | 620 | */ |
2304df62 | 621 | #$d_select HAS_SELECT /**/ |
a687059c | 622 | |
2304df62 | 623 | /* HAS_SEM: |
fe14fcc3 LW |
624 | * This symbol, if defined, indicates that the entire sem*(2) library is |
625 | * supported. | |
626 | */ | |
2304df62 | 627 | #$d_sem HAS_SEM /**/ |
fe14fcc3 | 628 | |
2304df62 | 629 | /* HAS_SETEGID: |
378cc40b LW |
630 | * This symbol, if defined, indicates that the setegid routine is available |
631 | * to change the effective gid of the current program. | |
632 | */ | |
2304df62 | 633 | #$d_setegid HAS_SETEGID /**/ |
378cc40b | 634 | |
2304df62 | 635 | /* HAS_SETEUID: |
378cc40b LW |
636 | * This symbol, if defined, indicates that the seteuid routine is available |
637 | * to change the effective uid of the current program. | |
638 | */ | |
2304df62 AD |
639 | #$d_seteuid HAS_SETEUID /**/ |
640 | ||
a0d0e21e LW |
641 | /* HAS_SETLINEBUF: |
642 | * This symbol, if defined, indicates that the setlinebuf routine is | |
643 | * available to change stderr or stdout from block-buffered or unbuffered | |
644 | * to a line-buffered mode. | |
645 | */ | |
646 | #$d_setlinebuf HAS_SETLINEBUF /**/ | |
647 | ||
648 | /* HAS_SETLOCALE: | |
649 | * This symbol, if defined, indicates that the setlocale routine is | |
650 | * available to handle locale-specific ctype implementations. | |
651 | */ | |
652 | #$d_setlocale HAS_SETLOCALE /**/ | |
653 | ||
2304df62 AD |
654 | /* HAS_SETPGID: |
655 | * This symbol, if defined, indicates that the setpgid routine is | |
656 | * available to set process group ID. | |
657 | */ | |
658 | #$d_setpgid HAS_SETPGID /**/ | |
378cc40b | 659 | |
ecfc5424 AD |
660 | /* HAS_SETPGRP: |
661 | * This symbol, if defined, indicates that the setpgrp routine is | |
662 | * available to set the current process group. | |
663 | */ | |
664 | /* USE_BSDPGRP: | |
665 | * This symbol, if defined, indicates that the BSD notion of process | |
666 | * group is to be used. For instance, you have to say setpgrp(pid, pgrp) | |
667 | * instead of the USG setpgrp(). | |
668 | */ | |
669 | #$d_setpgrp HAS_SETPGRP /**/ | |
670 | #$d_bsdpgrp USE_BSDPGRP /**/ | |
671 | ||
2304df62 | 672 | /* HAS_SETPGRP2: |
d8f2e4cc LW |
673 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
674 | * routine is available to set the current process group. | |
675 | */ | |
2304df62 | 676 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
d8f2e4cc | 677 | |
2304df62 AD |
678 | /* HAS_SETPRIORITY: |
679 | * This symbol, if defined, indicates that the setpriority routine is | |
a687059c LW |
680 | * available to set a process's priority. |
681 | */ | |
2304df62 | 682 | #$d_setprior HAS_SETPRIORITY /**/ |
a687059c | 683 | |
2304df62 | 684 | /* HAS_SETREGID: |
a687059c | 685 | * This symbol, if defined, indicates that the setregid routine is |
2304df62 AD |
686 | * available to change the real and effective gid of the current |
687 | * process. | |
a687059c | 688 | */ |
2304df62 | 689 | /* HAS_SETRESGID: |
a687059c LW |
690 | * This symbol, if defined, indicates that the setresgid routine is |
691 | * available to change the real, effective and saved gid of the current | |
2304df62 | 692 | * process. |
a687059c | 693 | */ |
2304df62 AD |
694 | #$d_setregid HAS_SETREGID /**/ |
695 | #$d_setresgid HAS_SETRESGID /**/ | |
a687059c | 696 | |
2304df62 | 697 | /* HAS_SETREUID: |
a687059c | 698 | * This symbol, if defined, indicates that the setreuid routine is |
2304df62 AD |
699 | * available to change the real and effective uid of the current |
700 | * process. | |
a687059c | 701 | */ |
2304df62 | 702 | /* HAS_SETRESUID: |
a687059c LW |
703 | * This symbol, if defined, indicates that the setresuid routine is |
704 | * available to change the real, effective and saved uid of the current | |
2304df62 | 705 | * process. |
a687059c | 706 | */ |
2304df62 AD |
707 | #$d_setreuid HAS_SETREUID /**/ |
708 | #$d_setresuid HAS_SETRESUID /**/ | |
a687059c | 709 | |
2304df62 | 710 | /* HAS_SETRGID: |
378cc40b LW |
711 | * This symbol, if defined, indicates that the setrgid routine is available |
712 | * to change the real gid of the current program. | |
713 | */ | |
2304df62 | 714 | #$d_setrgid HAS_SETRGID /**/ |
378cc40b | 715 | |
2304df62 | 716 | /* HAS_SETRUID: |
378cc40b LW |
717 | * This symbol, if defined, indicates that the setruid routine is available |
718 | * to change the real uid of the current program. | |
719 | */ | |
2304df62 AD |
720 | #$d_setruid HAS_SETRUID /**/ |
721 | ||
722 | /* HAS_SETSID: | |
723 | * This symbol, if defined, indicates that the setsid routine is | |
724 | * available to set the process group ID. | |
725 | */ | |
726 | #$d_setsid HAS_SETSID /**/ | |
fe14fcc3 | 727 | |
2304df62 | 728 | /* HAS_SHM: |
fe14fcc3 LW |
729 | * This symbol, if defined, indicates that the entire shm*(2) library is |
730 | * supported. | |
731 | */ | |
2304df62 | 732 | #$d_shm HAS_SHM /**/ |
fe14fcc3 | 733 | |
a0d0e21e LW |
734 | /* Shmat_t: |
735 | * This symbol holds the return type of the shmat() system call. | |
736 | * Usually set to 'void *' or 'char *'. | |
fe14fcc3 | 737 | */ |
a0d0e21e LW |
738 | /* HAS_SHMAT_PROTOTYPE: |
739 | * This symbol, if defined, indicates that the sys/shm.h includes | |
740 | * a prototype for shmat(). Otherwise, it is up to the program to | |
741 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, | |
742 | * but not always right so it should be emitted by the program only | |
743 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
fe14fcc3 | 744 | */ |
a0d0e21e LW |
745 | #define Shmat_t $shmattype /**/ |
746 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ | |
fe14fcc3 | 747 | |
2304df62 | 748 | /* HAS_SOCKET: |
a687059c LW |
749 | * This symbol, if defined, indicates that the BSD socket interface is |
750 | * supported. | |
751 | */ | |
2304df62 AD |
752 | /* HAS_SOCKETPAIR: |
753 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
a687059c LW |
754 | * supported. |
755 | */ | |
2304df62 AD |
756 | #$d_socket HAS_SOCKET /**/ |
757 | #$d_sockpair HAS_SOCKETPAIR /**/ | |
a687059c | 758 | |
2304df62 | 759 | /* USE_STAT_BLOCKS: |
c51b80d1 LW |
760 | * This symbol is defined if this system has a stat structure declaring |
761 | * st_blksize and st_blocks. | |
762 | */ | |
2304df62 | 763 | #$d_statblks USE_STAT_BLOCKS /**/ |
c51b80d1 | 764 | |
2304df62 | 765 | /* USE_STD_STDIO: |
36ce8bec DF |
766 | * This symbol is defined if this system has a FILE structure declaring |
767 | * _ptr and _cnt in stdio.h. | |
768 | */ | |
2304df62 | 769 | #$d_stdstdio USE_STD_STDIO /**/ |
36ce8bec | 770 | |
a0d0e21e LW |
771 | /* HAS_STRCHR: |
772 | * This symbol is defined to indicate that the strchr()/strrchr() | |
773 | * functions are available for string searching. If not, try the | |
774 | * index()/rindex() pair. | |
775 | */ | |
776 | /* HAS_INDEX: | |
777 | * This symbol is defined to indicate that the index()/rindex() | |
778 | * functions are available for string searching. | |
779 | */ | |
780 | #$d_strchr HAS_STRCHR /**/ | |
781 | #$d_index HAS_INDEX /**/ | |
782 | ||
783 | /* HAS_STRCOLL: | |
784 | * This symbol, if defined, indicates that the strcoll routine is | |
785 | * available to compare strings using collating information. | |
786 | */ | |
787 | #$d_strcoll HAS_STRCOLL /**/ | |
788 | ||
2304df62 | 789 | /* USE_STRUCT_COPY: |
8d063cd8 LW |
790 | * This symbol, if defined, indicates that this C compiler knows how |
791 | * to copy structures. If undefined, you'll need to use a block copy | |
792 | * routine of some sort instead. | |
793 | */ | |
2304df62 | 794 | #$d_strctcpy USE_STRUCT_COPY /**/ |
8d063cd8 | 795 | |
a0d0e21e LW |
796 | /* HAS_STRERROR: |
797 | * This symbol, if defined, indicates that the strerror routine is | |
798 | * available to translate error numbers to strings. See the writeup | |
799 | * of Strerror() in this file before you try to define your own. | |
800 | */ | |
801 | /* HAS_SYS_ERRLIST: | |
802 | * This symbol, if defined, indicates that the sys_errlist array is | |
803 | * available to translate error numbers to strings. The extern int | |
804 | * sys_nerr gives the size of that table. | |
805 | */ | |
806 | /* Strerror: | |
807 | * This preprocessor symbol is defined as a macro if strerror() is | |
808 | * not available to translate error numbers to strings but sys_errlist[] | |
809 | * array is there. | |
810 | */ | |
811 | #$d_strerror HAS_STRERROR /**/ | |
812 | #$d_syserrlst HAS_SYS_ERRLIST /**/ | |
813 | #define Strerror(e) $d_strerrm | |
814 | ||
815 | /* HAS_STRXFRM: | |
816 | * This symbol, if defined, indicates that the strxfrm() routine is | |
817 | * available to transform strings. | |
818 | */ | |
819 | #$d_strxfrm HAS_STRXFRM /**/ | |
820 | ||
2304df62 | 821 | /* HAS_SYMLINK: |
2e1b3b7e KK |
822 | * This symbol, if defined, indicates that the symlink routine is available |
823 | * to create symbolic links. | |
824 | */ | |
2304df62 | 825 | #$d_symlink HAS_SYMLINK /**/ |
2e1b3b7e | 826 | |
2304df62 AD |
827 | /* HAS_SYSCALL: |
828 | * This symbol, if defined, indicates that the syscall routine is | |
829 | * available to call arbitrary system calls. If undefined, that's tough. | |
a687059c | 830 | */ |
2304df62 | 831 | #$d_syscall HAS_SYSCALL /**/ |
e5d73d77 | 832 | |
ecfc5424 AD |
833 | /* HAS_SYSCONF: |
834 | * This symbol, if defined, indicates that sysconf() is available | |
835 | * to determine system related limits and options. | |
836 | */ | |
837 | #$d_sysconf HAS_SYSCONF /**/ | |
838 | ||
2304df62 AD |
839 | /* HAS_SYSTEM: |
840 | * This symbol, if defined, indicates that the system routine is | |
841 | * available to issue a shell command. | |
9f971974 | 842 | */ |
2304df62 | 843 | #$d_system HAS_SYSTEM /**/ |
9f971974 | 844 | |
a0d0e21e LW |
845 | /* HAS_TCGETPGRP: |
846 | * This symbol, if defined, indicates that the tcgetpgrp routine is | |
847 | * available to get foreground process group ID. | |
85e6fe83 | 848 | */ |
a0d0e21e LW |
849 | #$d_tcgetpgrp HAS_TCGETPGRP /**/ |
850 | ||
851 | /* HAS_TCSETPGRP: | |
852 | * This symbol, if defined, indicates that the tcsetpgrp routine is | |
853 | * available to set foreground process group ID. | |
854 | */ | |
855 | #$d_tcsetpgrp HAS_TCSETPGRP /**/ | |
85e6fe83 | 856 | |
ecfc5424 AD |
857 | /* Time_t: |
858 | * This symbol holds the type returned by time(). It can be long, | |
859 | * or time_t on BSD sites (in which case <sys/types.h> should be | |
860 | * included). | |
861 | */ | |
862 | #define Time_t $timetype /* Time type */ | |
863 | ||
2304df62 AD |
864 | /* HAS_TIMES: |
865 | * This symbol, if defined, indicates that the times() routine exists. | |
866 | * Note that this became obsolete on some systems (SUNOS), which now | |
867 | * use getrusage(). It may be necessary to include <sys/times.h>. | |
868 | */ | |
869 | #$d_times HAS_TIMES /**/ | |
870 | ||
871 | /* HAS_TRUNCATE: | |
87250799 LW |
872 | * This symbol, if defined, indicates that the truncate routine is |
873 | * available to truncate files. | |
874 | */ | |
2304df62 | 875 | #$d_truncate HAS_TRUNCATE /**/ |
87250799 | 876 | |
a0d0e21e LW |
877 | /* HAS_TZNAME: |
878 | * This symbol, if defined, indicates that the tzname[] array is | |
879 | * available to access timezone names. | |
880 | */ | |
881 | #$d_tzname HAS_TZNAME /**/ | |
882 | ||
883 | /* HAS_UMASK: | |
884 | * This symbol, if defined, indicates that the umask routine is | |
885 | * available to set and get the value of the file creation mask. | |
886 | */ | |
887 | #$d_umask HAS_UMASK /**/ | |
888 | ||
889 | /* HAS_VFORK: | |
890 | * This symbol, if defined, indicates that vfork() exists. | |
2304df62 | 891 | */ |
a0d0e21e | 892 | #$d_vfork HAS_VFORK /**/ |
2304df62 | 893 | |
ecfc5424 AD |
894 | /* Signal_t: |
895 | * This symbol's value is either "void" or "int", corresponding to the | |
896 | * appropriate return type of a signal handler. Thus, you can declare | |
897 | * a signal handler using "Signal_t (*handler)()", and define the | |
898 | * handler using "Signal_t handler(sig)". | |
899 | */ | |
ecfc5424 | 900 | #define Signal_t $signal_t /* Signal handler's return type */ |
36ce8bec | 901 | |
2304df62 | 902 | /* HASVOLATILE: |
afd9f252 LW |
903 | * This symbol, if defined, indicates that this C compiler knows about |
904 | * the volatile declaration. | |
905 | */ | |
906 | #$d_volatile HASVOLATILE /**/ | |
2304df62 AD |
907 | #ifndef HASVOLATILE |
908 | #define volatile | |
909 | #endif | |
afd9f252 | 910 | |
2304df62 | 911 | /* HAS_VPRINTF: |
a687059c LW |
912 | * This symbol, if defined, indicates that the vprintf routine is available |
913 | * to printf with a pointer to an argument list. If unavailable, you | |
914 | * may need to write your own, probably in terms of _doprnt(). | |
915 | */ | |
2304df62 | 916 | /* USE_CHAR_VSPRINTF: |
a687059c LW |
917 | * This symbol is defined if this system has vsprintf() returning type |
918 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
919 | * is up to the package author to declare vsprintf correctly based on the | |
920 | * symbol. | |
921 | */ | |
2304df62 AD |
922 | #$d_vprintf HAS_VPRINTF /**/ |
923 | #$d_charvspr USE_CHAR_VSPRINTF /**/ | |
a687059c | 924 | |
2304df62 | 925 | /* HAS_WAIT4: |
bf38876a LW |
926 | * This symbol, if defined, indicates that wait4() exists. |
927 | */ | |
2304df62 | 928 | #$d_wait4 HAS_WAIT4 /**/ |
bf38876a | 929 | |
2304df62 AD |
930 | /* HAS_WAITPID: |
931 | * This symbol, if defined, indicates that the waitpid routine is | |
932 | * available to wait for child process. | |
39c3038c | 933 | */ |
2304df62 | 934 | #$d_waitpid HAS_WAITPID /**/ |
39c3038c | 935 | |
a0d0e21e LW |
936 | /* HAS_WCSTOMBS: |
937 | * This symbol, if defined, indicates that the wcstombs routine is | |
938 | * available to convert wide character strings to multibyte strings. | |
939 | */ | |
940 | #$d_wcstombs HAS_WCSTOMBS /**/ | |
941 | ||
942 | /* HAS_WCTOMB: | |
943 | * This symbol, if defined, indicates that the wctomb routine is available | |
944 | * to covert a wide character to a multibyte. | |
945 | */ | |
946 | #$d_wctomb HAS_WCTOMB /**/ | |
947 | ||
948 | /* Fpos_t: | |
949 | * This symbol holds the type used to declare file positions in libc. | |
950 | * It can be fpos_t, long, uint, etc... It may be necessary to include | |
951 | * <sys/types.h> to get any typedef'ed information. | |
952 | */ | |
953 | #define Fpos_t $fpostype /* File position type */ | |
954 | ||
955 | /* Gid_t: | |
956 | * This symbol holds the return type of getgid() and the type of | |
957 | * argument to setrgid() and related functions. Typically, | |
958 | * it is the type of group ids in the kernel. It can be int, ushort, | |
959 | * uid_t, etc... It may be necessary to include <sys/types.h> to get | |
960 | * any typedef'ed information. | |
378cc40b | 961 | */ |
a0d0e21e | 962 | #define Gid_t $gidtype /* Type for getgid(), etc... */ |
378cc40b | 963 | |
ecfc5424 AD |
964 | /* Groups_t: |
965 | * This symbol holds the type used for the second argument to | |
966 | * getgroups(). Usually, this is the same of gidtype, but | |
967 | * sometimes it isn't. It can be int, ushort, uid_t, etc... | |
968 | * It may be necessary to include <sys/types.h> to get any | |
969 | * typedef'ed information. This is only required if you have | |
970 | * getgroups(). | |
971 | */ | |
972 | #ifdef HAS_GETGROUPS | |
973 | #define Groups_t $groupstype /* Type for 2nd arg to getgroups() */ | |
974 | #endif | |
975 | ||
2304df62 AD |
976 | /* I_DIRENT: |
977 | * This symbol, if defined, indicates to the C program that it should | |
978 | * include <dirent.h>. Using this symbol also triggers the definition | |
979 | * of the Direntry_t define which ends up being 'struct dirent' or | |
980 | * 'struct direct' depending on the availability of <dirent.h>. | |
1c3d792e | 981 | */ |
2304df62 AD |
982 | /* DIRNAMLEN: |
983 | * This symbol, if defined, indicates to the C program that the length | |
984 | * of directory entry names is provided by a d_namlen field. Otherwise | |
985 | * you need to do strlen() on the d_name field. | |
986 | */ | |
a0d0e21e LW |
987 | /* Direntry_t: |
988 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
989 | * whether dirent is available or not. You should use this pseudo type to | |
990 | * portably declare your directory entries. | |
991 | */ | |
2304df62 AD |
992 | #$i_dirent I_DIRENT /**/ |
993 | #$d_dirnamlen DIRNAMLEN /**/ | |
a0d0e21e LW |
994 | #define Direntry_t $direntrytype |
995 | ||
996 | /* I_DLFCN: | |
997 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
998 | * be included. | |
999 | */ | |
1000 | #$i_dlfcn I_DLFCN /**/ | |
1c3d792e | 1001 | |
2304df62 | 1002 | /* I_FCNTL: |
fe14fcc3 | 1003 | * This manifest constant tells the C program to include <fcntl.h>. |
a687059c | 1004 | */ |
2304df62 | 1005 | #$i_fcntl I_FCNTL /**/ |
a687059c | 1006 | |
a0d0e21e LW |
1007 | /* I_FLOAT: |
1008 | * This symbol, if defined, indicates to the C program that it should | |
1009 | * include <float.h> to get definition of symbols like DBL_MAX or | |
1010 | * DBL_MIN, i.e. machine dependent floating point values. | |
a687059c | 1011 | */ |
a0d0e21e | 1012 | #$i_float I_FLOAT /**/ |
a687059c | 1013 | |
2304df62 | 1014 | /* I_GRP: |
a687059c | 1015 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1016 | * include <grp.h>. |
a687059c | 1017 | */ |
2304df62 | 1018 | #$i_grp I_GRP /**/ |
a687059c | 1019 | |
a0d0e21e LW |
1020 | /* I_LIMITS: |
1021 | * This symbol, if defined, indicates to the C program that it should | |
1022 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
1023 | * LONG_MAX, i.e. machine dependant limitations. | |
1024 | */ | |
1025 | #$i_limits I_LIMITS /**/ | |
1026 | ||
1027 | /* I_MATH: | |
1028 | * This symbol, if defined, indicates to the C program that it should | |
1029 | * include <math.h>. | |
1030 | */ | |
1031 | #$i_math I_MATH /**/ | |
1032 | ||
1033 | /* I_MEMORY: | |
1034 | * This symbol, if defined, indicates to the C program that it should | |
1035 | * include <memory.h>. | |
1036 | */ | |
1037 | #$i_memory I_MEMORY /**/ | |
1038 | ||
ecfc5424 AD |
1039 | /* I_NET_ERRNO: |
1040 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
1041 | * should be included. | |
2304df62 | 1042 | */ |
ecfc5424 | 1043 | #$i_neterrno I_NET_ERRNO /**/ |
2304df62 AD |
1044 | |
1045 | /* I_NETINET_IN: | |
03a14243 | 1046 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1047 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
03a14243 | 1048 | */ |
2304df62 | 1049 | #$i_niin I_NETINET_IN /**/ |
03a14243 | 1050 | |
a0d0e21e LW |
1051 | /* I_PWD: |
1052 | * This symbol, if defined, indicates to the C program that it should | |
1053 | * include <pwd.h>. | |
a687059c | 1054 | */ |
a0d0e21e LW |
1055 | /* PWQUOTA: |
1056 | * This symbol, if defined, indicates to the C program that struct passwd | |
1057 | * contains pw_quota. | |
1058 | */ | |
1059 | /* PWAGE: | |
1060 | * This symbol, if defined, indicates to the C program that struct passwd | |
1061 | * contains pw_age. | |
1062 | */ | |
1063 | /* PWCHANGE: | |
1064 | * This symbol, if defined, indicates to the C program that struct passwd | |
1065 | * contains pw_change. | |
1066 | */ | |
1067 | /* PWCLASS: | |
1068 | * This symbol, if defined, indicates to the C program that struct passwd | |
1069 | * contains pw_class. | |
1070 | */ | |
1071 | /* PWEXPIRE: | |
1072 | * This symbol, if defined, indicates to the C program that struct passwd | |
1073 | * contains pw_expire. | |
1074 | */ | |
1075 | /* PWCOMMENT: | |
1076 | * This symbol, if defined, indicates to the C program that struct passwd | |
1077 | * contains pw_comment. | |
1078 | */ | |
1079 | #$i_pwd I_PWD /**/ | |
1080 | #$d_pwquota PWQUOTA /**/ | |
1081 | #$d_pwage PWAGE /**/ | |
1082 | #$d_pwchange PWCHANGE /**/ | |
1083 | #$d_pwclass PWCLASS /**/ | |
1084 | #$d_pwexpire PWEXPIRE /**/ | |
1085 | #$d_pwcomment PWCOMMENT /**/ | |
a687059c | 1086 | |
2304df62 AD |
1087 | /* I_STDDEF: |
1088 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
a687059c LW |
1089 | * be included. |
1090 | */ | |
2304df62 | 1091 | #$i_stddef I_STDDEF /**/ |
a687059c | 1092 | |
a0d0e21e LW |
1093 | /* I_STDLIB: |
1094 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
1095 | * be included. | |
1096 | */ | |
1097 | #$i_stdlib I_STDLIB /**/ | |
1098 | ||
1099 | /* I_STRING: | |
85e6fe83 LW |
1100 | * This symbol, if defined, indicates to the C program that it should |
1101 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
1102 | */ | |
1103 | #$i_string I_STRING /**/ | |
1104 | ||
2304df62 AD |
1105 | /* I_SYS_DIR: |
1106 | * This symbol, if defined, indicates to the C program that it should | |
1107 | * include <sys/dir.h>. | |
d8f2e4cc | 1108 | */ |
2304df62 AD |
1109 | #$i_sysdir I_SYS_DIR /**/ |
1110 | ||
1111 | /* I_SYS_FILE: | |
1112 | * This symbol, if defined, indicates to the C program that it should | |
1113 | * include <sys/file.h> to get definition of R_OK and friends. | |
d8f2e4cc | 1114 | */ |
2304df62 AD |
1115 | #$i_sysfile I_SYS_FILE /**/ |
1116 | ||
1117 | /* I_SYS_IOCTL: | |
1118 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
1119 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
d8f2e4cc | 1120 | */ |
2304df62 AD |
1121 | #$i_sysioctl I_SYS_IOCTL /**/ |
1122 | ||
1123 | /* I_SYS_NDIR: | |
1124 | * This symbol, if defined, indicates to the C program that it should | |
1125 | * include <sys/ndir.h>. | |
1126 | */ | |
1127 | #$i_sysndir I_SYS_NDIR /**/ | |
1128 | ||
a0d0e21e LW |
1129 | /* I_SYS_PARAM: |
1130 | * This symbol, if defined, indicates to the C program that it should | |
1131 | * include <sys/param.h>. | |
1132 | */ | |
1133 | #$i_sysparam I_SYS_PARAM /**/ | |
1134 | ||
2304df62 AD |
1135 | /* I_SYS_SELECT: |
1136 | * This symbol, if defined, indicates to the C program that it should | |
1137 | * include <sys/select.h> in order to get definition of struct timeval. | |
1138 | */ | |
1139 | #$i_sysselct I_SYS_SELECT /**/ | |
1140 | ||
a0d0e21e LW |
1141 | /* I_SYS_TIMES: |
1142 | * This symbol, if defined, indicates to the C program that it should | |
1143 | * include <sys/times.h>. | |
1144 | */ | |
1145 | #$i_systimes I_SYS_TIMES /**/ | |
1146 | ||
fed7345c AD |
1147 | /* I_SYS_TYPES: |
1148 | * This symbol, if defined, indicates to the C program that it should | |
1149 | * include <sys/types.h>. | |
1150 | */ | |
1151 | #$i_systypes I_SYS_TYPES /**/ | |
1152 | ||
a0d0e21e LW |
1153 | /* I_TERMIO: |
1154 | * This symbol, if defined, indicates that the program should include | |
1155 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
1156 | * the ioctl() calls that depend on the value of this symbol. | |
1157 | */ | |
1158 | /* I_TERMIOS: | |
1159 | * This symbol, if defined, indicates that the program should include | |
1160 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
1161 | * There are also differences in the ioctl() calls that depend on the | |
1162 | * value of this symbol. | |
1163 | */ | |
1164 | /* I_SGTTY: | |
1165 | * This symbol, if defined, indicates that the program should include | |
1166 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
1167 | * the ioctl() calls that depend on the value of this symbol. | |
1168 | */ | |
1169 | #$i_termio I_TERMIO /**/ | |
1170 | #$i_termios I_TERMIOS /**/ | |
1171 | #$i_sgtty I_SGTTY /**/ | |
1172 | ||
2304df62 AD |
1173 | /* I_TIME: |
1174 | * This symbol, if defined, indicates to the C program that it should | |
1175 | * include <time.h>. | |
1176 | */ | |
1177 | /* I_SYS_TIME: | |
1178 | * This symbol, if defined, indicates to the C program that it should | |
1179 | * include <sys/time.h>. | |
fe14fcc3 | 1180 | */ |
85e6fe83 LW |
1181 | /* I_SYS_TIME_KERNEL: |
1182 | * This symbol, if defined, indicates to the C program that it should | |
1183 | * include <sys/time.h> with KERNEL defined. | |
1184 | */ | |
2304df62 AD |
1185 | #$i_time I_TIME /**/ |
1186 | #$i_systime I_SYS_TIME /**/ | |
85e6fe83 LW |
1187 | #$i_systimek I_SYS_TIME_KERNEL /**/ |
1188 | ||
1189 | /* I_UNISTD: | |
1190 | * This symbol, if defined, indicates to the C program that it should | |
1191 | * include <unistd.h>. | |
1192 | */ | |
1193 | #$i_unistd I_UNISTD /**/ | |
d8f2e4cc | 1194 | |
2304df62 | 1195 | /* I_UTIME: |
d8f2e4cc | 1196 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1197 | * include <utime.h>. |
d8f2e4cc | 1198 | */ |
2304df62 | 1199 | #$i_utime I_UTIME /**/ |
d8f2e4cc | 1200 | |
a0d0e21e LW |
1201 | /* I_STDARG: |
1202 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
1203 | * be included. | |
1204 | */ | |
2304df62 | 1205 | /* I_VARARGS: |
a687059c | 1206 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1207 | * include <varargs.h>. |
a687059c | 1208 | */ |
a0d0e21e LW |
1209 | #$i_stdarg I_STDARG /**/ |
1210 | #$i_varargs I_VARARGS /**/ | |
1211 | ||
1212 | /* I_VFORK: | |
1213 | * This symbol, if defined, indicates to the C program that it should | |
1214 | * include vfork.h. | |
1215 | */ | |
1216 | #$i_vfork I_VFORK /**/ | |
a687059c | 1217 | |
2304df62 | 1218 | /* INTSIZE: |
a687059c LW |
1219 | * This symbol contains the size of an int, so that the C preprocessor |
1220 | * can make decisions based on it. | |
1221 | */ | |
1222 | #define INTSIZE $intsize /**/ | |
1223 | ||
85e6fe83 LW |
1224 | /* Off_t: |
1225 | * This symbol holds the type used to declare offsets in the kernel. | |
1226 | * It can be int, long, off_t, etc... It may be necessary to include | |
1227 | * <sys/types.h> to get any typedef'ed information. | |
1228 | */ | |
1229 | #define Off_t $lseektype /* <offset> type */ | |
1230 | ||
ecfc5424 AD |
1231 | /* Mode_t: |
1232 | * This symbol holds the type used to declare file modes | |
1233 | * for systems calls. It is usually mode_t, but may be | |
1234 | * int or unsigned short. It may be necessary to include <sys/types.h> | |
1235 | * to get any typedef'ed information. | |
1236 | */ | |
1237 | #define Mode_t $modetype /* file mode parameter for system calls */ | |
1238 | ||
fed7345c AD |
1239 | /* PRIVLIB_EXP: |
1240 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
1241 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
fe14fcc3 | 1242 | */ |
fed7345c | 1243 | #define PRIVLIB_EXP "$privlibexp" /**/ |
2304df62 | 1244 | |
a0d0e21e LW |
1245 | /* CAN_PROTOTYPE: |
1246 | * If defined, this macro indicates that the C compiler can handle | |
1247 | * function prototypes. | |
85e6fe83 | 1248 | */ |
a0d0e21e LW |
1249 | /* _: |
1250 | * This macro is used to declare function parameters for folks who want | |
1251 | * to make declarations with prototypes using a different style than | |
1252 | * the above macros. Use double parentheses. For example: | |
1253 | * | |
1254 | * int main _((int argc, char *argv[])); | |
1255 | */ | |
1256 | #$prototype CAN_PROTOTYPE /**/ | |
1257 | #ifdef CAN_PROTOTYPE | |
1258 | #define _(args) args | |
1259 | #else | |
1260 | #define _(args) () | |
1261 | #endif | |
85e6fe83 | 1262 | |
2304df62 AD |
1263 | /* RANDBITS: |
1264 | * This symbol contains the number of bits of random number the rand() | |
1265 | * function produces. Usual values are 15, 16, and 31. | |
fe14fcc3 | 1266 | */ |
2304df62 AD |
1267 | #define RANDBITS $randbits /**/ |
1268 | ||
1269 | /* SCRIPTDIR: | |
1270 | * This symbol holds the name of the directory in which the user wants | |
1271 | * to put publicly executable scripts for the package in question. It | |
1272 | * is often a directory that is mounted across diverse architectures. | |
1273 | * Programs must be prepared to deal with ~name expansion. | |
fe14fcc3 | 1274 | */ |
2304df62 AD |
1275 | #define SCRIPTDIR "$scriptdir" /**/ |
1276 | ||
a0d0e21e LW |
1277 | /* Select_fd_set_t: |
1278 | * This symbol holds the type used for the 2nd, 3rd, and 4th | |
1279 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET | |
1280 | * is defined, and 'int *' otherwise. This is only useful if you | |
1281 | * have select(), of course. | |
1282 | */ | |
1283 | #define Select_fd_set_t $selecttype /**/ | |
1284 | ||
1285 | /* SIG_NAME: | |
1286 | * This symbol contains a list of signal names in order. This is intended | |
1287 | * to be used as a static array initialization, like this: | |
1288 | * char *sig_name[] = { SIG_NAME }; | |
1289 | * The signals in the list are separated with commas, and each signal | |
1290 | * is surrounded by double quotes. There is no leading SIG in the signal | |
1291 | * name, i.e. SIGQUIT is known as "QUIT". | |
1292 | */ | |
1293 | #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/ | |
1294 | ||
1295 | /* Size_t: | |
1296 | * This symbol holds the type used to declare length parameters | |
1297 | * for string functions. It is usually size_t, but may be | |
1298 | * unsigned long, int, etc. It may be necessary to include | |
1299 | * <sys/types.h> to get any typedef'ed information. | |
1300 | */ | |
1301 | #define Size_t $sizetype /* length paramater for string functions */ | |
1302 | ||
ecfc5424 AD |
1303 | /* SSize_t: |
1304 | * This symbol holds the type used by functions that return | |
1305 | * a count of bytes or an error condition. It must be a signed type. | |
1306 | * It is usually ssize_t, but may be long or int, etc. | |
1307 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
1308 | * to get any typedef'ed information. | |
1309 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
1310 | */ | |
1311 | #define SSize_t $ssizetype /* signed count of bytes */ | |
1312 | ||
2304df62 AD |
1313 | /* STDCHAR: |
1314 | * This symbol is defined to be the type of char used in stdio.h. | |
1315 | * It has the values "unsigned char" or "char". | |
fe14fcc3 | 1316 | */ |
2304df62 AD |
1317 | #define STDCHAR $stdchar /**/ |
1318 | ||
1319 | /* Uid_t: | |
1320 | * This symbol holds the type used to declare user ids in the kernel. | |
1321 | * It can be int, ushort, uid_t, etc... It may be necessary to include | |
1322 | * <sys/types.h> to get any typedef'ed information. | |
fe14fcc3 | 1323 | */ |
2304df62 | 1324 | #define Uid_t $uidtype /* UID type */ |
fe14fcc3 | 1325 | |
a0d0e21e LW |
1326 | /* VOIDFLAGS: |
1327 | * This symbol indicates how much support of the void type is given by this | |
1328 | * compiler. What various bits mean: | |
1329 | * | |
1330 | * 1 = supports declaration of void | |
1331 | * 2 = supports arrays of pointers to functions returning void | |
1332 | * 4 = supports comparisons between pointers to void functions and | |
1333 | * addresses of void functions | |
1334 | * 8 = suports declaration of generic void pointers | |
1335 | * | |
1336 | * The package designer should define VOIDUSED to indicate the requirements | |
1337 | * of the package. This can be done either by #defining VOIDUSED before | |
1338 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
1339 | * latter approach is taken, only those flags will be tested. If the | |
1340 | * level of void support necessary is not present, defines void to int. | |
1341 | */ | |
1342 | #ifndef VOIDUSED | |
1343 | #define VOIDUSED $defvoidused | |
1344 | #endif | |
1345 | #define VOIDFLAGS $voidflags | |
1346 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
1347 | #define void int /* is void to be avoided? */ | |
1348 | #define M_VOID /* Xenix strikes again */ | |
1349 | #endif | |
1350 | ||
85e6fe83 LW |
1351 | /* EUNICE: |
1352 | * This symbol, if defined, indicates that the program is being compiled | |
1353 | * under the EUNICE package under VMS. The program will need to handle | |
1354 | * things like files that don't go away the first time you unlink them, | |
1355 | * due to version numbering. It will also need to compensate for lack | |
1356 | * of a respectable link() command. | |
1357 | */ | |
1358 | /* VMS: | |
1359 | * This symbol, if defined, indicates that the program is running under | |
1360 | * VMS. It is currently only set in conjunction with the EUNICE symbol. | |
1361 | */ | |
1362 | #$d_eunice EUNICE /**/ | |
1363 | #$d_eunice VMS /**/ | |
1364 | ||
a0d0e21e LW |
1365 | /* LOC_SED: |
1366 | * This symbol holds the complete pathname to the sed program. | |
85e6fe83 | 1367 | */ |
1aef975c AD |
1368 | #define LOC_SED "$full_sed" /**/ |
1369 | ||
1370 | /* CSH: | |
1371 | * This symbol, if defined, indicates that the C-shell exists. | |
1372 | * If defined, contains the full pathname of csh. | |
1373 | */ | |
1374 | #$d_csh CSH "$full_csh" /**/ | |
85e6fe83 | 1375 | |
a0d0e21e LW |
1376 | /* DLSYM_NEEDS_UNDERSCORE: |
1377 | * This symbol, if defined, indicates that we need to prepend an | |
1378 | * underscore to the symbol name before calling dlsym(). This only | |
1379 | * makes sense if you *have* dlsym, which we will presume is the | |
1380 | * case if you're using dl_dlopen.xs. | |
85e6fe83 | 1381 | */ |
a0d0e21e LW |
1382 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */ |
1383 | ||
2304df62 AD |
1384 | /* USE_DYNAMIC_LOADING: |
1385 | * This symbol, if defined, indicates that dynamic loading of | |
1386 | * some sort is available. | |
a687059c | 1387 | */ |
2304df62 | 1388 | #$usedl USE_DYNAMIC_LOADING /**/ |
a687059c | 1389 | |
ecfc5424 AD |
1390 | /* DB_Prefix_t: |
1391 | * This symbol contains the type of the prefix structure element | |
1392 | * in the <db.h> header file. In older versions of DB, it was | |
1393 | * int, while in newer ones it is u_int32_t. | |
a687059c | 1394 | */ |
ecfc5424 AD |
1395 | /* DB_Hash_t: |
1396 | * This symbol contains the type of the prefix structure element | |
1397 | * in the <db.h> header file. In older versions of DB, it was | |
1398 | * int, while in newer ones it is size_t. | |
1399 | */ | |
75f92628 AD |
1400 | #define DB_Hash_t $db_hashtype /**/ |
1401 | #define DB_Prefix_t $db_prefixtype /**/ | |
a687059c | 1402 | |
ecfc5424 AD |
1403 | /* I_NDBM: |
1404 | * This symbol, if defined, indicates that ndbm.h exists and should | |
1405 | * be included. | |
85e6fe83 | 1406 | */ |
ecfc5424 | 1407 | #$i_ndbm I_NDBM /**/ |
85e6fe83 | 1408 | |
1aef975c AD |
1409 | /* I_SYS_STAT: |
1410 | * This symbol, if defined, indicates to the C program that it should | |
1411 | * include <sys/stat.h>. | |
1412 | */ | |
1413 | #$i_sysstat I_SYS_STAT /**/ | |
1414 | ||
94b6baf5 AD |
1415 | /* Free_t: |
1416 | * This variable contains the return type of free(). It is usually | |
1417 | * void, but occasionally int. | |
1418 | */ | |
2304df62 AD |
1419 | /* Malloc_t: |
1420 | * This symbol is the type of pointer returned by malloc and realloc. | |
36ce8bec | 1421 | */ |
2304df62 | 1422 | #define Malloc_t $malloctype /**/ |
94b6baf5 | 1423 | #define Free_t $freetype /**/ |
36ce8bec | 1424 | |
85e6fe83 LW |
1425 | /* MYMALLOC: |
1426 | * This symbol, if defined, indicates that we're using our own malloc. | |
1427 | */ | |
1428 | #$d_mymalloc MYMALLOC /**/ | |
1429 | ||
fe14fcc3 | 1430 | #endif |
8d063cd8 | 1431 | !GROK!THIS! |