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