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 | * |
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 | */ | |
ecfc5424 AD |
54 | #if $cpp_stuff == 1 |
55 | #define CAT2(a,b)a/**/b | |
56 | #define CAT3(a,b,c)a/**/b/**/c | |
57 | #define CAT4(a,b,c,d)a/**/b/**/c/**/d | |
58 | #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e | |
59 | #define STRINGIFY(a)"a" | |
60 | /* If you can get stringification with catify, tell me how! */ | |
61 | #endif | |
62 | #if $cpp_stuff == 42 | |
63 | #define CAT2(a,b)a ## b | |
64 | #define CAT3(a,b,c)a ## b ## c | |
65 | #define CAT4(a,b,c,d)a ## b ## c ## d | |
66 | #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e | |
67 | #define StGiFy(a)# a | |
68 | #define STRINGIFY(a)StGiFy(a) | |
69 | #define SCAT2(a,b)StGiFy(a) StGiFy(b) | |
70 | #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c) | |
71 | #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) | |
72 | #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e) | |
73 | #endif | |
74 | #ifndef CAT2 | |
75 | #include "Bletch: How does this C preprocessor catenate tokens?" | |
76 | #endif | |
77 | ||
2304df62 | 78 | /* CPPSTDIN: |
36ce8bec DFDL |
79 | * This symbol contains the first part of the string which will invoke |
80 | * the C preprocessor on the standard input and produce to standard | |
2304df62 AD |
81 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
82 | * call a wrapper. See CPPRUN. | |
36ce8bec | 83 | */ |
2304df62 | 84 | /* CPPMINUS: |
36ce8bec DFDL |
85 | * This symbol contains the second part of the string which will invoke |
86 | * the C preprocessor on the standard input and produce to standard | |
378cc40b | 87 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus |
36ce8bec DFDL |
88 | * to specify standard input, otherwise the value is "". |
89 | */ | |
378cc40b | 90 | #define CPPSTDIN "$cppstdin" |
36ce8bec DFDL |
91 | #define CPPMINUS "$cppminus" |
92 | ||
a0d0e21e LW |
93 | /* HAS_ALARM: |
94 | * This symbol, if defined, indicates that the alarm routine is | |
95 | * available. | |
96 | */ | |
97 | #$d_alarm HAS_ALARM /**/ | |
98 | ||
ecfc5424 AD |
99 | /* HASATTRIBUTE: |
100 | * This symbol indicates the C compiler can check for function attributes, | |
101 | * such as printf formats. This is normally only supported by GNU cc. | |
102 | */ | |
103 | #$d_attribut HASATTRIBUTE /**/ | |
104 | #ifndef HASATTRIBUTE | |
105 | #define __attribute__(_arg_) | |
106 | #endif | |
107 | ||
2304df62 AD |
108 | /* HAS_BCMP: |
109 | * This symbol is defined if the bcmp() routine is available to | |
110 | * compare blocks of memory. | |
a687059c | 111 | */ |
2304df62 | 112 | #$d_bcmp HAS_BCMP /**/ |
a687059c | 113 | |
2304df62 AD |
114 | /* HAS_BCOPY: |
115 | * This symbol is defined if the bcopy() routine is available to | |
116 | * copy blocks of memory. | |
c51b80d1 | 117 | */ |
2304df62 | 118 | #$d_bcopy HAS_BCOPY /**/ |
c51b80d1 | 119 | |
2304df62 AD |
120 | /* HAS_BZERO: |
121 | * This symbol is defined if the bzero() routine is available to | |
122 | * set a memory block to 0. | |
0d3e774c | 123 | */ |
2304df62 | 124 | #$d_bzero HAS_BZERO /**/ |
0d3e774c | 125 | |
a0d0e21e LW |
126 | /* CASTI32: |
127 | * This symbol is defined if the C compiler can cast negative | |
128 | * or large floating point numbers to 32-bit ints. | |
129 | */ | |
130 | #$d_casti32 CASTI32 /**/ | |
131 | ||
2304df62 AD |
132 | /* CASTNEGFLOAT: |
133 | * This symbol is defined if the C compiler can cast negative | |
134 | * numbers to unsigned longs, ints and shorts. | |
b1248f16 | 135 | */ |
2304df62 | 136 | /* CASTFLAGS: |
7e1cf235 LW |
137 | * This symbol contains flags that say what difficulties the compiler |
138 | * has casting odd floating values to unsigned long: | |
2304df62 | 139 | * 0 = ok |
7e1cf235 LW |
140 | * 1 = couldn't cast < 0 |
141 | * 2 = couldn't cast >= 0x80000000 | |
232e078e | 142 | * 4 = couldn't cast in argument expression list |
7e1cf235 | 143 | */ |
2304df62 AD |
144 | #$d_castneg CASTNEGFLOAT /**/ |
145 | #define CASTFLAGS $castflags /**/ | |
ed6116ce | 146 | |
a0d0e21e LW |
147 | /* HAS_CHOWN: |
148 | * This symbol, if defined, indicates that the chown routine is | |
149 | * available. | |
150 | */ | |
151 | #$d_chown HAS_CHOWN /**/ | |
152 | ||
153 | /* HAS_CHROOT: | |
154 | * This symbol, if defined, indicates that the chroot routine is | |
155 | * available. | |
156 | */ | |
157 | #$d_chroot HAS_CHROOT /**/ | |
158 | ||
2304df62 | 159 | /* HAS_CHSIZE: |
87250799 LW |
160 | * This symbol, if defined, indicates that the chsize routine is available |
161 | * to truncate files. You might need a -lx to get this routine. | |
162 | */ | |
fe14fcc3 | 163 | #$d_chsize HAS_CHSIZE /**/ |
87250799 | 164 | |
ecfc5424 AD |
165 | /* VOID_CLOSEDIR: |
166 | * This symbol, if defined, indicates that the closedir() routine | |
167 | * does not return a value. | |
168 | */ | |
169 | #$d_void_closedir VOID_CLOSEDIR /**/ | |
170 | ||
2304df62 AD |
171 | /* HASCONST: |
172 | * This symbol, if defined, indicates that this C compiler knows about | |
173 | * the const type. There is no need to actually test for that symbol | |
174 | * within your programs. The mere use of the "const" keyword will | |
175 | * trigger the necessary tests. | |
176 | */ | |
177 | #$d_const HASCONST /**/ | |
178 | #ifndef HASCONST | |
179 | #define const | |
180 | #endif | |
181 | ||
182 | /* HAS_CRYPT: | |
2e1b3b7e KK |
183 | * This symbol, if defined, indicates that the crypt routine is available |
184 | * to encrypt passwords and the like. | |
185 | */ | |
2304df62 | 186 | #$d_crypt HAS_CRYPT /**/ |
2e1b3b7e | 187 | |
a0d0e21e LW |
188 | /* HAS_CUSERID: |
189 | * This symbol, if defined, indicates that the cuserid routine is | |
190 | * available to get character login names. | |
13281fa4 | 191 | */ |
a0d0e21e LW |
192 | #$d_cuserid HAS_CUSERID /**/ |
193 | ||
194 | /* HAS_DBL_DIG: | |
195 | * This symbol, if defined, indicates that this system's <float.h> | |
196 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
197 | * of significant digits in a double precision number. If this | |
198 | * symbol is not defined, a guess of 15 is usually pretty good. | |
199 | */ | |
200 | #$d_dbl_dig HAS_DBL_DIG /* */ | |
201 | ||
202 | /* HAS_DIFFTIME: | |
203 | * This symbol, if defined, indicates that the difftime routine is | |
204 | * available. | |
205 | */ | |
206 | #$d_difftime HAS_DIFFTIME /**/ | |
13281fa4 | 207 | |
ecfc5424 AD |
208 | /* HAS_DLERROR: |
209 | * This symbol, if defined, indicates that the dlerror routine is | |
210 | * available to return a string describing the last error that | |
211 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
212 | */ | |
213 | #$d_dlerror HAS_DLERROR /**/ | |
214 | ||
2304df62 AD |
215 | /* HAS_DUP2: |
216 | * This symbol, if defined, indicates that the dup2 routine is | |
217 | * available to duplicate file descriptors. | |
a687059c | 218 | */ |
2304df62 | 219 | #$d_dup2 HAS_DUP2 /**/ |
a687059c | 220 | |
2304df62 | 221 | /* HAS_FCHMOD: |
378cc40b LW |
222 | * This symbol, if defined, indicates that the fchmod routine is available |
223 | * to change mode of opened files. If unavailable, use chmod(). | |
224 | */ | |
2304df62 | 225 | #$d_fchmod HAS_FCHMOD /**/ |
378cc40b | 226 | |
2304df62 | 227 | /* HAS_FCHOWN: |
378cc40b LW |
228 | * This symbol, if defined, indicates that the fchown routine is available |
229 | * to change ownership of opened files. If unavailable, use chown(). | |
230 | */ | |
2304df62 | 231 | #$d_fchown HAS_FCHOWN /**/ |
378cc40b | 232 | |
2304df62 | 233 | /* HAS_FCNTL: |
fe14fcc3 LW |
234 | * This symbol, if defined, indicates to the C program that |
235 | * the fcntl() function exists. | |
a687059c | 236 | */ |
2304df62 | 237 | #$d_fcntl HAS_FCNTL /**/ |
a687059c | 238 | |
a0d0e21e LW |
239 | /* HAS_FGETPOS: |
240 | * This symbol, if defined, indicates that the fgetpos routine is | |
241 | * available to get the file position indicator, similar to ftell(). | |
242 | */ | |
243 | #$d_fgetpos HAS_FGETPOS /**/ | |
244 | ||
2304df62 | 245 | /* FLEXFILENAMES: |
7e1cf235 LW |
246 | * This symbol, if defined, indicates that the system supports filenames |
247 | * longer than 14 characters. | |
248 | */ | |
249 | #$d_flexfnam FLEXFILENAMES /**/ | |
250 | ||
2304df62 AD |
251 | /* HAS_FLOCK: |
252 | * This symbol, if defined, indicates that the flock routine is | |
a687059c LW |
253 | * available to do file locking. |
254 | */ | |
2304df62 | 255 | #$d_flock HAS_FLOCK /**/ |
a687059c | 256 | |
a0d0e21e LW |
257 | /* HAS_FORK: |
258 | * This symbol, if defined, indicates that the fork routine is | |
259 | * available. | |
260 | */ | |
261 | #$d_fork HAS_FORK /**/ | |
262 | ||
263 | /* HAS_FSETPOS: | |
264 | * This symbol, if defined, indicates that the fsetpos routine is | |
265 | * available to set the file position indicator, similar to fseek(). | |
266 | */ | |
267 | #$d_fsetpos HAS_FSETPOS /**/ | |
268 | ||
2304df62 | 269 | /* HAS_GETGROUPS: |
378cc40b LW |
270 | * This symbol, if defined, indicates that the getgroups() routine is |
271 | * available to get the list of process groups. If unavailable, multiple | |
272 | * groups are probably not supported. | |
273 | */ | |
2304df62 | 274 | #$d_getgrps HAS_GETGROUPS /**/ |
378cc40b | 275 | |
2304df62 AD |
276 | /* HAS_GETHOSTENT: |
277 | * This symbol, if defined, indicates that the gethostent routine is | |
a687059c LW |
278 | * available to lookup host names in some data base or other. |
279 | */ | |
2304df62 AD |
280 | #$d_gethent HAS_GETHOSTENT /**/ |
281 | ||
282 | /* HAS_UNAME: | |
283 | * This symbol, if defined, indicates that the C program may use the | |
284 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
285 | * and PHOSTNAME. | |
286 | */ | |
287 | #$d_uname HAS_UNAME /**/ | |
a687059c | 288 | |
a0d0e21e LW |
289 | /* HAS_GETLOGIN: |
290 | * This symbol, if defined, indicates that the getlogin routine is | |
291 | * available to get the login name. | |
292 | */ | |
293 | #$d_getlogin HAS_GETLOGIN /**/ | |
294 | ||
2304df62 AD |
295 | /* HAS_GETPGRP: |
296 | * This symbol, if defined, indicates that the getpgrp routine is | |
a687059c LW |
297 | * available to get the current process group. |
298 | */ | |
2304df62 | 299 | #$d_getpgrp HAS_GETPGRP /**/ |
a687059c | 300 | |
2304df62 | 301 | /* HAS_GETPGRP2: |
d8f2e4cc LW |
302 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
303 | * routine is available to get the current process group. | |
304 | */ | |
2304df62 | 305 | #$d_getpgrp2 HAS_GETPGRP2 /**/ |
d8f2e4cc | 306 | |
a0d0e21e LW |
307 | /* HAS_GETPPID: |
308 | * This symbol, if defined, indicates that the getppid routine is | |
309 | * available to get the parent process ID. | |
310 | */ | |
311 | #$d_getppid HAS_GETPPID /**/ | |
312 | ||
2304df62 AD |
313 | /* HAS_GETPRIORITY: |
314 | * This symbol, if defined, indicates that the getpriority routine is | |
a687059c LW |
315 | * available to get a process's priority. |
316 | */ | |
2304df62 | 317 | #$d_getprior HAS_GETPRIORITY /**/ |
a687059c | 318 | |
a0d0e21e LW |
319 | /* HAS_HTONL: |
320 | * This symbol, if defined, indicates that the htonl() routine (and | |
321 | * friends htons() ntohl() ntohs()) are available to do network | |
322 | * order byte swapping. | |
323 | */ | |
324 | /* HAS_HTONS: | |
325 | * This symbol, if defined, indicates that the htons() routine (and | |
326 | * friends htonl() ntohl() ntohs()) are available to do network | |
327 | * order byte swapping. | |
328 | */ | |
329 | /* HAS_NTOHL: | |
330 | * This symbol, if defined, indicates that the ntohl() routine (and | |
331 | * friends htonl() htons() ntohs()) are available to do network | |
332 | * order byte swapping. | |
333 | */ | |
334 | /* HAS_NTOHS: | |
335 | * This symbol, if defined, indicates that the ntohs() routine (and | |
336 | * friends htonl() htons() ntohl()) are available to do network | |
337 | * order byte swapping. | |
338 | */ | |
339 | #$d_htonl HAS_HTONL /**/ | |
340 | #$d_htonl HAS_HTONS /**/ | |
341 | #$d_htonl HAS_NTOHL /**/ | |
342 | #$d_htonl HAS_NTOHS /**/ | |
343 | ||
ecfc5424 AD |
344 | /* HAS_ISASCII: |
345 | * This manifest constant lets the C program know that isascii | |
346 | * is available. | |
347 | */ | |
348 | #$d_isascii HAS_ISASCII /**/ | |
349 | ||
2304df62 | 350 | /* HAS_KILLPG: |
378cc40b LW |
351 | * This symbol, if defined, indicates that the killpg routine is available |
352 | * to kill process groups. If unavailable, you probably should use kill | |
353 | * with a negative process number. | |
354 | */ | |
2304df62 | 355 | #$d_killpg HAS_KILLPG /**/ |
378cc40b | 356 | |
2304df62 AD |
357 | /* HAS_LINK: |
358 | * This symbol, if defined, indicates that the link routine is | |
359 | * available to create hard links. | |
0d3e774c | 360 | */ |
2304df62 | 361 | #$d_link HAS_LINK /**/ |
0d3e774c | 362 | |
ecfc5424 AD |
363 | /* HAS_LOCALECONV: |
364 | * This symbol, if defined, indicates that the localeconv routine is | |
365 | * available for numeric and monetary formatting conventions. | |
366 | */ | |
367 | #$d_locconv HAS_LOCALECONV /**/ | |
368 | ||
a0d0e21e LW |
369 | /* HAS_LOCKF: |
370 | * This symbol, if defined, indicates that the lockf routine is | |
371 | * available to do file locking. | |
372 | */ | |
373 | #$d_lockf HAS_LOCKF /**/ | |
374 | ||
2304df62 AD |
375 | /* HAS_LSTAT: |
376 | * This symbol, if defined, indicates that the lstat routine is | |
377 | * available to do file stats on symbolic links. | |
a687059c | 378 | */ |
2304df62 | 379 | #$d_lstat HAS_LSTAT /**/ |
a687059c | 380 | |
a0d0e21e LW |
381 | /* HAS_MBLEN: |
382 | * This symbol, if defined, indicates that the mblen routine is available | |
383 | * to find the number of bytes in a multibye character. | |
384 | */ | |
385 | #$d_mblen HAS_MBLEN /**/ | |
386 | ||
387 | /* HAS_MBSTOWCS: | |
388 | * This symbol, if defined, indicates that the mbstowcs routine is | |
389 | * available to covert a multibyte string into a wide character string. | |
390 | */ | |
391 | #$d_mbstowcs HAS_MBSTOWCS /**/ | |
392 | ||
393 | /* HAS_MBTOWC: | |
394 | * This symbol, if defined, indicates that the mbtowc routine is available | |
395 | * to covert a multibyte to a wide character. | |
396 | */ | |
397 | #$d_mbtowc HAS_MBTOWC /**/ | |
398 | ||
2304df62 AD |
399 | /* HAS_MEMCMP: |
400 | * This symbol, if defined, indicates that the memcmp routine is available | |
401 | * to compare blocks of memory. | |
378cc40b | 402 | */ |
2304df62 AD |
403 | #$d_memcmp HAS_MEMCMP /**/ |
404 | ||
405 | /* HAS_MEMCPY: | |
9f971974 | 406 | * This symbol, if defined, indicates that the memcpy routine is available |
2304df62 | 407 | * to copy blocks of memory. |
9f971974 | 408 | */ |
2304df62 | 409 | #$d_memcpy HAS_MEMCPY /**/ |
9f971974 | 410 | |
2304df62 | 411 | /* HAS_MEMMOVE: |
9f971974 | 412 | * This symbol, if defined, indicates that the memmove routine is available |
2304df62 AD |
413 | * to copy potentially overlapping blocks of memory. This should be used |
414 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
415 | * own version. | |
9f971974 | 416 | */ |
2304df62 | 417 | #$d_memmove HAS_MEMMOVE /**/ |
9f971974 | 418 | |
2304df62 | 419 | /* HAS_MEMSET: |
9f971974 | 420 | * This symbol, if defined, indicates that the memset routine is available |
2304df62 | 421 | * to set blocks of memory. |
9f971974 | 422 | */ |
2304df62 | 423 | #$d_memset HAS_MEMSET /**/ |
378cc40b | 424 | |
2304df62 | 425 | /* HAS_MKDIR: |
a687059c LW |
426 | * This symbol, if defined, indicates that the mkdir routine is available |
427 | * to create directories. Otherwise you should fork off a new process to | |
428 | * exec /bin/mkdir. | |
429 | */ | |
2304df62 | 430 | #$d_mkdir HAS_MKDIR /**/ |
fe14fcc3 | 431 | |
ecfc5424 AD |
432 | /* HAS_MKFIFO: |
433 | * This symbol, if defined, indicates that the mkfifo routine is | |
434 | * available to create FIFOs. Otherwise, mknod should be able to | |
435 | * do it for you. However, if mkfifo is there, mknod might require | |
436 | * super-user privileges which mkfifo will not. | |
437 | */ | |
438 | #$d_mkfifo HAS_MKFIFO /**/ | |
439 | ||
a0d0e21e LW |
440 | /* HAS_MKTIME: |
441 | * This symbol, if defined, indicates that the mktime routine is | |
442 | * available. | |
443 | */ | |
444 | #$d_mktime HAS_MKTIME /**/ | |
445 | ||
2304df62 | 446 | /* HAS_MSG: |
fe14fcc3 | 447 | * This symbol, if defined, indicates that the entire msg*(2) library is |
2304df62 | 448 | * supported (IPC mechanism based on message queues). |
fe14fcc3 | 449 | */ |
2304df62 | 450 | #$d_msg HAS_MSG /**/ |
fe14fcc3 | 451 | |
a0d0e21e LW |
452 | /* HAS_NICE: |
453 | * This symbol, if defined, indicates that the nice routine is | |
454 | * available. | |
fe14fcc3 | 455 | */ |
a0d0e21e | 456 | #$d_nice HAS_NICE /**/ |
a687059c | 457 | |
a0d0e21e LW |
458 | /* HAS_OPEN3: |
459 | * This manifest constant lets the C program know that the three | |
460 | * argument form of open(2) is available. | |
fe14fcc3 | 461 | */ |
a0d0e21e | 462 | #$d_open3 HAS_OPEN3 /**/ |
fe14fcc3 | 463 | |
ecfc5424 AD |
464 | /* HAS_PATHCONF: |
465 | * This symbol, if defined, indicates that pathconf() is available | |
466 | * to determine file-system related limits and options associated | |
467 | * with a given filename. | |
468 | */ | |
469 | /* HAS_FPATHCONF: | |
470 | * This symbol, if defined, indicates that pathconf() is available | |
471 | * to determine file-system related limits and options associated | |
472 | * with a given open file descriptor. | |
473 | */ | |
474 | #$d_pathconf HAS_PATHCONF /**/ | |
475 | #$d_fpathconf HAS_FPATHCONF /**/ | |
476 | ||
a0d0e21e LW |
477 | /* HAS_PAUSE: |
478 | * This symbol, if defined, indicates that the pause routine is | |
479 | * available to suspend a process until a signal is received. | |
a687059c | 480 | */ |
a0d0e21e | 481 | #$d_pause HAS_PAUSE /**/ |
a687059c | 482 | |
a0d0e21e LW |
483 | /* HAS_PIPE: |
484 | * This symbol, if defined, indicates that the pipe routine is | |
485 | * available to create an inter-process channel. | |
fe14fcc3 | 486 | */ |
a0d0e21e LW |
487 | #$d_pipe HAS_PIPE /**/ |
488 | ||
8e07c86e AD |
489 | /* HAS_POLL: |
490 | * This symbol, if defined, indicates that the poll routine is | |
491 | * available to poll active file descriptors. | |
492 | */ | |
493 | #$d_poll HAS_POLL /**/ | |
494 | ||
a0d0e21e LW |
495 | /* HAS_READDIR: |
496 | * This symbol, if defined, indicates that the readdir routine is | |
497 | * available to read directory entries. You may have to include | |
498 | * <dirent.h>. See I_DIRENT. | |
499 | */ | |
500 | #$d_readdir HAS_READDIR /**/ | |
501 | ||
502 | /* HAS_SEEKDIR: | |
503 | * This symbol, if defined, indicates that the seekdir routine is | |
504 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
505 | */ | |
506 | #$d_seekdir HAS_SEEKDIR /**/ | |
507 | ||
508 | /* HAS_TELLDIR: | |
509 | * This symbol, if defined, indicates that the telldir routine is | |
510 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
511 | */ | |
512 | #$d_telldir HAS_TELLDIR /**/ | |
513 | ||
514 | /* HAS_REWINDDIR: | |
515 | * This symbol, if defined, indicates that the rewinddir routine is | |
516 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
517 | */ | |
518 | #$d_rewinddir HAS_REWINDDIR /**/ | |
519 | ||
520 | /* HAS_READLINK: | |
521 | * This symbol, if defined, indicates that the readlink routine is | |
522 | * available to read the value of a symbolic link. | |
523 | */ | |
524 | #$d_readlink HAS_READLINK /**/ | |
fe14fcc3 | 525 | |
2304df62 | 526 | /* HAS_RENAME: |
378cc40b LW |
527 | * This symbol, if defined, indicates that the rename routine is available |
528 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
529 | * trick. | |
530 | */ | |
2304df62 | 531 | #$d_rename HAS_RENAME /**/ |
378cc40b | 532 | |
2304df62 AD |
533 | /* HAS_RMDIR: |
534 | * This symbol, if defined, indicates that the rmdir routine is | |
535 | * available to remove directories. Otherwise you should fork off a | |
536 | * new process to exec /bin/rmdir. | |
9f971974 | 537 | */ |
2304df62 | 538 | #$d_rmdir HAS_RMDIR /**/ |
9f971974 | 539 | |
ecfc5424 AD |
540 | /* HAS_SAFE_BCOPY: |
541 | * This symbol, if defined, indicates that the bcopy routine is available | |
542 | * to copy potentially overlapping memory blocks. Otherwise you should | |
543 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
544 | * own version. | |
545 | */ | |
546 | #$d_safebcpy HAS_SAFE_BCOPY /**/ | |
547 | ||
548 | /* HAS_SAFE_MEMCPY: | |
549 | * This symbol, if defined, indicates that the memcpy routine is available | |
550 | * to copy potentially overlapping memory blocks. Otherwise you should | |
551 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
552 | * own version. | |
553 | */ | |
554 | #$d_safemcpy HAS_SAFE_MEMCPY /**/ | |
555 | ||
2304df62 AD |
556 | /* HAS_SELECT: |
557 | * This symbol, if defined, indicates that the select routine is | |
558 | * available to select active file descriptors. If the timeout field | |
559 | * is used, <sys/time.h> may need to be included. | |
fe14fcc3 | 560 | */ |
2304df62 | 561 | #$d_select HAS_SELECT /**/ |
a687059c | 562 | |
2304df62 | 563 | /* HAS_SEM: |
fe14fcc3 LW |
564 | * This symbol, if defined, indicates that the entire sem*(2) library is |
565 | * supported. | |
566 | */ | |
2304df62 | 567 | #$d_sem HAS_SEM /**/ |
fe14fcc3 | 568 | |
2304df62 | 569 | /* HAS_SETEGID: |
378cc40b LW |
570 | * This symbol, if defined, indicates that the setegid routine is available |
571 | * to change the effective gid of the current program. | |
572 | */ | |
2304df62 | 573 | #$d_setegid HAS_SETEGID /**/ |
378cc40b | 574 | |
2304df62 | 575 | /* HAS_SETEUID: |
378cc40b LW |
576 | * This symbol, if defined, indicates that the seteuid routine is available |
577 | * to change the effective uid of the current program. | |
578 | */ | |
2304df62 AD |
579 | #$d_seteuid HAS_SETEUID /**/ |
580 | ||
a0d0e21e LW |
581 | /* HAS_SETLINEBUF: |
582 | * This symbol, if defined, indicates that the setlinebuf routine is | |
583 | * available to change stderr or stdout from block-buffered or unbuffered | |
584 | * to a line-buffered mode. | |
585 | */ | |
586 | #$d_setlinebuf HAS_SETLINEBUF /**/ | |
587 | ||
588 | /* HAS_SETLOCALE: | |
589 | * This symbol, if defined, indicates that the setlocale routine is | |
590 | * available to handle locale-specific ctype implementations. | |
591 | */ | |
592 | #$d_setlocale HAS_SETLOCALE /**/ | |
593 | ||
2304df62 AD |
594 | /* HAS_SETPGID: |
595 | * This symbol, if defined, indicates that the setpgid routine is | |
596 | * available to set process group ID. | |
597 | */ | |
598 | #$d_setpgid HAS_SETPGID /**/ | |
378cc40b | 599 | |
ecfc5424 AD |
600 | /* HAS_SETPGRP: |
601 | * This symbol, if defined, indicates that the setpgrp routine is | |
602 | * available to set the current process group. | |
603 | */ | |
604 | /* USE_BSDPGRP: | |
605 | * This symbol, if defined, indicates that the BSD notion of process | |
606 | * group is to be used. For instance, you have to say setpgrp(pid, pgrp) | |
607 | * instead of the USG setpgrp(). | |
608 | */ | |
609 | #$d_setpgrp HAS_SETPGRP /**/ | |
610 | #$d_bsdpgrp USE_BSDPGRP /**/ | |
611 | ||
2304df62 | 612 | /* HAS_SETPGRP2: |
d8f2e4cc LW |
613 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
614 | * routine is available to set the current process group. | |
615 | */ | |
2304df62 | 616 | #$d_setpgrp2 HAS_SETPGRP2 /**/ |
d8f2e4cc | 617 | |
2304df62 AD |
618 | /* HAS_SETPRIORITY: |
619 | * This symbol, if defined, indicates that the setpriority routine is | |
a687059c LW |
620 | * available to set a process's priority. |
621 | */ | |
2304df62 | 622 | #$d_setprior HAS_SETPRIORITY /**/ |
a687059c | 623 | |
2304df62 | 624 | /* HAS_SETREGID: |
a687059c | 625 | * This symbol, if defined, indicates that the setregid routine is |
2304df62 AD |
626 | * available to change the real and effective gid of the current |
627 | * process. | |
a687059c | 628 | */ |
2304df62 | 629 | /* HAS_SETRESGID: |
a687059c LW |
630 | * This symbol, if defined, indicates that the setresgid routine is |
631 | * available to change the real, effective and saved gid of the current | |
2304df62 | 632 | * process. |
a687059c | 633 | */ |
2304df62 AD |
634 | #$d_setregid HAS_SETREGID /**/ |
635 | #$d_setresgid HAS_SETRESGID /**/ | |
a687059c | 636 | |
2304df62 | 637 | /* HAS_SETREUID: |
a687059c | 638 | * This symbol, if defined, indicates that the setreuid routine is |
2304df62 AD |
639 | * available to change the real and effective uid of the current |
640 | * process. | |
a687059c | 641 | */ |
2304df62 | 642 | /* HAS_SETRESUID: |
a687059c LW |
643 | * This symbol, if defined, indicates that the setresuid routine is |
644 | * available to change the real, effective and saved uid of the current | |
2304df62 | 645 | * process. |
a687059c | 646 | */ |
2304df62 AD |
647 | #$d_setreuid HAS_SETREUID /**/ |
648 | #$d_setresuid HAS_SETRESUID /**/ | |
a687059c | 649 | |
2304df62 | 650 | /* HAS_SETRGID: |
378cc40b LW |
651 | * This symbol, if defined, indicates that the setrgid routine is available |
652 | * to change the real gid of the current program. | |
653 | */ | |
2304df62 | 654 | #$d_setrgid HAS_SETRGID /**/ |
378cc40b | 655 | |
2304df62 | 656 | /* HAS_SETRUID: |
378cc40b LW |
657 | * This symbol, if defined, indicates that the setruid routine is available |
658 | * to change the real uid of the current program. | |
659 | */ | |
2304df62 AD |
660 | #$d_setruid HAS_SETRUID /**/ |
661 | ||
662 | /* HAS_SETSID: | |
663 | * This symbol, if defined, indicates that the setsid routine is | |
664 | * available to set the process group ID. | |
665 | */ | |
666 | #$d_setsid HAS_SETSID /**/ | |
fe14fcc3 | 667 | |
2304df62 | 668 | /* HAS_SHM: |
fe14fcc3 LW |
669 | * This symbol, if defined, indicates that the entire shm*(2) library is |
670 | * supported. | |
671 | */ | |
2304df62 | 672 | #$d_shm HAS_SHM /**/ |
fe14fcc3 | 673 | |
a0d0e21e LW |
674 | /* Shmat_t: |
675 | * This symbol holds the return type of the shmat() system call. | |
676 | * Usually set to 'void *' or 'char *'. | |
fe14fcc3 | 677 | */ |
a0d0e21e LW |
678 | /* HAS_SHMAT_PROTOTYPE: |
679 | * This symbol, if defined, indicates that the sys/shm.h includes | |
680 | * a prototype for shmat(). Otherwise, it is up to the program to | |
681 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, | |
682 | * but not always right so it should be emitted by the program only | |
683 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
fe14fcc3 | 684 | */ |
a0d0e21e LW |
685 | #define Shmat_t $shmattype /**/ |
686 | #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/ | |
fe14fcc3 | 687 | |
568ef1f6 PP |
688 | /* HAS_SIGACTION: |
689 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
690 | * is available. | |
691 | */ | |
692 | #$d_sigaction HAS_SIGACTION /**/ | |
693 | ||
2304df62 | 694 | /* HAS_SOCKET: |
a687059c LW |
695 | * This symbol, if defined, indicates that the BSD socket interface is |
696 | * supported. | |
697 | */ | |
2304df62 AD |
698 | /* HAS_SOCKETPAIR: |
699 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
a687059c LW |
700 | * supported. |
701 | */ | |
2304df62 AD |
702 | #$d_socket HAS_SOCKET /**/ |
703 | #$d_sockpair HAS_SOCKETPAIR /**/ | |
a687059c | 704 | |
2304df62 | 705 | /* USE_STAT_BLOCKS: |
c51b80d1 LW |
706 | * This symbol is defined if this system has a stat structure declaring |
707 | * st_blksize and st_blocks. | |
708 | */ | |
2304df62 | 709 | #$d_statblks USE_STAT_BLOCKS /**/ |
c51b80d1 | 710 | |
16d20bd9 AD |
711 | /* USE_STDIO_PTR: |
712 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
713 | * of the stdio FILE structure can be used to access the stdio buffer | |
714 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
715 | * and FILE_cnt(fp) macros will also be defined and should be used | |
716 | * to access these fields. | |
717 | */ | |
718 | /* USE_STDIO_BASE: | |
719 | * This symbol is defined if the _base field (or similar) of the | |
720 | * stdio FILE structure can be used to access the stdio buffer for | |
721 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
722 | * will also be defined and should be used to access this field. | |
723 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
724 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
725 | * will never be defined unless USE_STDIO_PTR is. | |
726 | */ | |
727 | #$d_stdstdio USE_STDIO_PTR /**/ | |
728 | #$d_stdiobase USE_STDIO_BASE /**/ | |
729 | ||
730 | /* FILE_ptr: | |
731 | * This macro is used to access the _ptr field (or equivalent) of the | |
732 | * FILE structure pointed to by its argument. This macro will always be | |
733 | * defined if USE_STDIO_PTR is defined. | |
734 | */ | |
c2960299 AD |
735 | /* STDIO_PTR_LVALUE: |
736 | * This symbol is defined if the FILE_ptr macro can be used as an | |
737 | * lvalue. | |
738 | */ | |
16d20bd9 AD |
739 | /* FILE_cnt: |
740 | * This macro is used to access the _cnt field (or equivalent) of the | |
741 | * FILE structure pointed to by its argument. This macro will always be | |
742 | * defined if USE_STDIO_PTR is defined. | |
743 | */ | |
c2960299 AD |
744 | /* STDIO_CNT_LVALUE: |
745 | * This symbol is defined if the FILE_cnt macro can be used as an | |
746 | * lvalue. | |
747 | */ | |
16d20bd9 AD |
748 | #ifdef USE_STDIO_PTR |
749 | #define FILE_ptr(fp) $stdio_ptr | |
4aa0a1f7 | 750 | #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/ |
16d20bd9 | 751 | #define FILE_cnt(fp) $stdio_cnt |
4aa0a1f7 | 752 | #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/ |
16d20bd9 AD |
753 | #endif |
754 | ||
755 | /* FILE_base: | |
756 | * This macro is used to access the _base field (or equivalent) of the | |
757 | * FILE structure pointed to by its argument. This macro will always be | |
758 | * defined if USE_STDIO_BASE is defined. | |
759 | */ | |
760 | /* FILE_bufsiz: | |
761 | * This macro is used to determine the number of bytes in the I/O | |
762 | * buffer pointed to by _base field (or equivalent) of the FILE | |
763 | * structure pointed to its argument. This macro will always be defined | |
764 | * if USE_STDIO_BASE is defined. | |
36ce8bec | 765 | */ |
16d20bd9 AD |
766 | #ifdef USE_STDIO_BASE |
767 | #define FILE_base(fp) $stdio_base | |
768 | #define FILE_bufsiz(fp) $stdio_bufsiz | |
769 | #endif | |
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 | ||
232e078e AD |
976 | /* DB_Prefix_t: |
977 | * This symbol contains the type of the prefix structure element | |
978 | * in the <db.h> header file. In older versions of DB, it was | |
979 | * int, while in newer ones it is u_int32_t. | |
980 | */ | |
981 | /* DB_Hash_t: | |
982 | * This symbol contains the type of the prefix structure element | |
983 | * in the <db.h> header file. In older versions of DB, it was | |
984 | * int, while in newer ones it is size_t. | |
985 | */ | |
986 | #define DB_Hash_t $db_hashtype /**/ | |
987 | #define DB_Prefix_t $db_prefixtype /**/ | |
988 | ||
2304df62 AD |
989 | /* I_DIRENT: |
990 | * This symbol, if defined, indicates to the C program that it should | |
991 | * include <dirent.h>. Using this symbol also triggers the definition | |
992 | * of the Direntry_t define which ends up being 'struct dirent' or | |
993 | * 'struct direct' depending on the availability of <dirent.h>. | |
1c3d792e | 994 | */ |
2304df62 AD |
995 | /* DIRNAMLEN: |
996 | * This symbol, if defined, indicates to the C program that the length | |
997 | * of directory entry names is provided by a d_namlen field. Otherwise | |
998 | * you need to do strlen() on the d_name field. | |
999 | */ | |
a0d0e21e LW |
1000 | /* Direntry_t: |
1001 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
1002 | * whether dirent is available or not. You should use this pseudo type to | |
1003 | * portably declare your directory entries. | |
1004 | */ | |
2304df62 AD |
1005 | #$i_dirent I_DIRENT /**/ |
1006 | #$d_dirnamlen DIRNAMLEN /**/ | |
a0d0e21e LW |
1007 | #define Direntry_t $direntrytype |
1008 | ||
1009 | /* I_DLFCN: | |
1010 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
1011 | * be included. | |
1012 | */ | |
1013 | #$i_dlfcn I_DLFCN /**/ | |
1c3d792e | 1014 | |
2304df62 | 1015 | /* I_FCNTL: |
fe14fcc3 | 1016 | * This manifest constant tells the C program to include <fcntl.h>. |
a687059c | 1017 | */ |
2304df62 | 1018 | #$i_fcntl I_FCNTL /**/ |
a687059c | 1019 | |
a0d0e21e LW |
1020 | /* I_FLOAT: |
1021 | * This symbol, if defined, indicates to the C program that it should | |
1022 | * include <float.h> to get definition of symbols like DBL_MAX or | |
1023 | * DBL_MIN, i.e. machine dependent floating point values. | |
a687059c | 1024 | */ |
a0d0e21e | 1025 | #$i_float I_FLOAT /**/ |
a687059c | 1026 | |
2304df62 | 1027 | /* I_GRP: |
a687059c | 1028 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1029 | * include <grp.h>. |
a687059c | 1030 | */ |
2304df62 | 1031 | #$i_grp I_GRP /**/ |
a687059c | 1032 | |
a0d0e21e LW |
1033 | /* I_LIMITS: |
1034 | * This symbol, if defined, indicates to the C program that it should | |
1035 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
1036 | * LONG_MAX, i.e. machine dependant limitations. | |
1037 | */ | |
1038 | #$i_limits I_LIMITS /**/ | |
1039 | ||
1040 | /* I_MATH: | |
1041 | * This symbol, if defined, indicates to the C program that it should | |
1042 | * include <math.h>. | |
1043 | */ | |
1044 | #$i_math I_MATH /**/ | |
1045 | ||
1046 | /* I_MEMORY: | |
1047 | * This symbol, if defined, indicates to the C program that it should | |
1048 | * include <memory.h>. | |
1049 | */ | |
1050 | #$i_memory I_MEMORY /**/ | |
1051 | ||
232e078e | 1052 | /* I_NDBM: |
16d20bd9 | 1053 | * This symbol, if defined, indicates that <ndbm.h> exists and should |
232e078e AD |
1054 | * be included. |
1055 | */ | |
1056 | #$i_ndbm I_NDBM /**/ | |
1057 | ||
ecfc5424 AD |
1058 | /* I_NET_ERRNO: |
1059 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
1060 | * should be included. | |
2304df62 | 1061 | */ |
ecfc5424 | 1062 | #$i_neterrno I_NET_ERRNO /**/ |
2304df62 AD |
1063 | |
1064 | /* I_NETINET_IN: | |
03a14243 | 1065 | * This symbol, if defined, indicates to the C program that it should |
2304df62 | 1066 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
03a14243 | 1067 | */ |
2304df62 | 1068 | #$i_niin I_NETINET_IN /**/ |
03a14243 | 1069 | |
a0d0e21e LW |
1070 | /* I_PWD: |
1071 | * This symbol, if defined, indicates to the C program that it should | |
1072 | * include <pwd.h>. | |
a687059c | 1073 | */ |
a0d0e21e LW |
1074 | /* PWQUOTA: |
1075 | * This symbol, if defined, indicates to the C program that struct passwd | |
1076 | * contains pw_quota. | |
1077 | */ | |
1078 | /* PWAGE: | |
1079 | * This symbol, if defined, indicates to the C program that struct passwd | |
1080 | * contains pw_age. | |
1081 | */ | |
1082 | /* PWCHANGE: | |
1083 | * This symbol, if defined, indicates to the C program that struct passwd | |
1084 | * contains pw_change. | |
1085 | */ | |
1086 | /* PWCLASS: | |
1087 | * This symbol, if defined, indicates to the C program that struct passwd | |
1088 | * contains pw_class. | |
1089 | */ | |
1090 | /* PWEXPIRE: | |
1091 | * This symbol, if defined, indicates to the C program that struct passwd | |
1092 | * contains pw_expire. | |
1093 | */ | |
1094 | /* PWCOMMENT: | |
1095 | * This symbol, if defined, indicates to the C program that struct passwd | |
1096 | * contains pw_comment. | |
1097 | */ | |
1098 | #$i_pwd I_PWD /**/ | |
1099 | #$d_pwquota PWQUOTA /**/ | |
1100 | #$d_pwage PWAGE /**/ | |
1101 | #$d_pwchange PWCHANGE /**/ | |
1102 | #$d_pwclass PWCLASS /**/ | |
1103 | #$d_pwexpire PWEXPIRE /**/ | |
1104 | #$d_pwcomment PWCOMMENT /**/ | |
a687059c | 1105 | |
2304df62 AD |
1106 | /* I_STDDEF: |
1107 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
a687059c LW |
1108 | * be included. |
1109 | */ | |
2304df62 | 1110 | #$i_stddef I_STDDEF /**/ |
a687059c | 1111 | |
a0d0e21e LW |
1112 | /* I_STDLIB: |
1113 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
1114 | * be included. | |
1115 | */ | |
1116 | #$i_stdlib I_STDLIB /**/ | |
1117 | ||
1118 | /* I_STRING: | |
85e6fe83 LW |
1119 | * This symbol, if defined, indicates to the C program that it should |
1120 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
1121 | */ | |
1122 | #$i_string I_STRING /**/ | |
1123 | ||
2304df62 AD |
1124 | /* I_SYS_DIR: |
1125 | * This symbol, if defined, indicates to the C program that it should | |
1126 | * include <sys/dir.h>. | |
d8f2e4cc | 1127 | */ |
2304df62 AD |
1128 | #$i_sysdir I_SYS_DIR /**/ |
1129 | ||
1130 | /* I_SYS_FILE: | |
1131 | * This symbol, if defined, indicates to the C program that it should | |
1132 | * include <sys/file.h> to get definition of R_OK and friends. | |
d8f2e4cc | 1133 | */ |
2304df62 AD |
1134 | #$i_sysfile I_SYS_FILE /**/ |
1135 | ||
1136 | /* I_SYS_IOCTL: | |
1137 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
1138 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
d8f2e4cc | 1139 | */ |
2304df62 AD |
1140 | #$i_sysioctl I_SYS_IOCTL /**/ |
1141 | ||
1142 | /* I_SYS_NDIR: | |
1143 | * This symbol, if defined, indicates to the C program that it should | |
1144 | * include <sys/ndir.h>. | |
1145 | */ | |
1146 | #$i_sysndir I_SYS_NDIR /**/ | |
1147 | ||
a0d0e21e LW |
1148 | /* I_SYS_PARAM: |
1149 | * This symbol, if defined, indicates to the C program that it should | |
1150 | * include <sys/param.h>. | |
1151 | */ | |
1152 | #$i_sysparam I_SYS_PARAM /**/ | |
1153 | ||
2304df62 AD |
1154 | /* I_SYS_SELECT: |
1155 | * This symbol, if defined, indicates to the C program that it should | |
1156 | * include <sys/select.h> in order to get definition of struct timeval. | |
1157 | */ | |
1158 | #$i_sysselct I_SYS_SELECT /**/ | |
1159 | ||
a0d0e21e LW |
1160 | /* I_SYS_TIMES: |
1161 | * This symbol, if defined, indicates to the C program that it should | |
1162 | * include <sys/times.h>. | |
1163 | */ | |
1164 | #$i_systimes I_SYS_TIMES /**/ | |
1165 | ||
fed7345c AD |
1166 | /* I_SYS_TYPES: |
1167 | * This symbol, if defined, indicates to the C program that it should | |
1168 | * include <sys/types.h>. | |
1169 | */ | |
1170 | #$i_systypes I_SYS_TYPES /**/ | |
1171 | ||
25f94b33 AD |
1172 | /* I_SYS_UN: |
1173 | * This symbol, if defined, indicates to the C program that it should | |
1174 | * include <sys/un.h> to get UNIX domain socket definitions. | |
1175 | */ | |
1176 | #$i_sysun I_SYS_UN /**/ | |
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 | |
a0d0e21e LW |
1226 | /* I_VFORK: |
1227 | * This symbol, if defined, indicates to the C program that it should | |
1228 | * include vfork.h. | |
1229 | */ | |
1230 | #$i_vfork I_VFORK /**/ | |
a687059c | 1231 | |
85e6fe83 LW |
1232 | /* Off_t: |
1233 | * This symbol holds the type used to declare offsets in the kernel. | |
1234 | * It can be int, long, off_t, etc... It may be necessary to include | |
1235 | * <sys/types.h> to get any typedef'ed information. | |
1236 | */ | |
1237 | #define Off_t $lseektype /* <offset> type */ | |
1238 | ||
ecfc5424 AD |
1239 | /* Mode_t: |
1240 | * This symbol holds the type used to declare file modes | |
1241 | * for systems calls. It is usually mode_t, but may be | |
1242 | * int or unsigned short. It may be necessary to include <sys/types.h> | |
1243 | * to get any typedef'ed information. | |
1244 | */ | |
1245 | #define Mode_t $modetype /* file mode parameter for system calls */ | |
1246 | ||
a0d0e21e LW |
1247 | /* CAN_PROTOTYPE: |
1248 | * If defined, this macro indicates that the C compiler can handle | |
1249 | * function prototypes. | |
85e6fe83 | 1250 | */ |
a0d0e21e LW |
1251 | /* _: |
1252 | * This macro is used to declare function parameters for folks who want | |
1253 | * to make declarations with prototypes using a different style than | |
1254 | * the above macros. Use double parentheses. For example: | |
1255 | * | |
1256 | * int main _((int argc, char *argv[])); | |
1257 | */ | |
1258 | #$prototype CAN_PROTOTYPE /**/ | |
1259 | #ifdef CAN_PROTOTYPE | |
1260 | #define _(args) args | |
1261 | #else | |
1262 | #define _(args) () | |
1263 | #endif | |
85e6fe83 | 1264 | |
2304df62 AD |
1265 | /* RANDBITS: |
1266 | * This symbol contains the number of bits of random number the rand() | |
1267 | * function produces. Usual values are 15, 16, and 31. | |
fe14fcc3 | 1268 | */ |
2304df62 AD |
1269 | #define RANDBITS $randbits /**/ |
1270 | ||
1271 | /* SCRIPTDIR: | |
1272 | * This symbol holds the name of the directory in which the user wants | |
1273 | * to put publicly executable scripts for the package in question. It | |
1274 | * is often a directory that is mounted across diverse architectures. | |
1275 | * Programs must be prepared to deal with ~name expansion. | |
fe14fcc3 | 1276 | */ |
2304df62 AD |
1277 | #define SCRIPTDIR "$scriptdir" /**/ |
1278 | ||
a0d0e21e LW |
1279 | /* Select_fd_set_t: |
1280 | * This symbol holds the type used for the 2nd, 3rd, and 4th | |
1281 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET | |
1282 | * is defined, and 'int *' otherwise. This is only useful if you | |
1283 | * have select(), of course. | |
1284 | */ | |
1285 | #define Select_fd_set_t $selecttype /**/ | |
1286 | ||
a0d0e21e LW |
1287 | /* Size_t: |
1288 | * This symbol holds the type used to declare length parameters | |
1289 | * for string functions. It is usually size_t, but may be | |
1290 | * unsigned long, int, etc. It may be necessary to include | |
1291 | * <sys/types.h> to get any typedef'ed information. | |
1292 | */ | |
1293 | #define Size_t $sizetype /* length paramater for string functions */ | |
1294 | ||
2304df62 AD |
1295 | /* STDCHAR: |
1296 | * This symbol is defined to be the type of char used in stdio.h. | |
1297 | * It has the values "unsigned char" or "char". | |
fe14fcc3 | 1298 | */ |
2304df62 AD |
1299 | #define STDCHAR $stdchar /**/ |
1300 | ||
1301 | /* Uid_t: | |
1302 | * This symbol holds the type used to declare user ids in the kernel. | |
1303 | * It can be int, ushort, uid_t, etc... It may be necessary to include | |
1304 | * <sys/types.h> to get any typedef'ed information. | |
fe14fcc3 | 1305 | */ |
2304df62 | 1306 | #define Uid_t $uidtype /* UID type */ |
fe14fcc3 | 1307 | |
85e6fe83 LW |
1308 | /* VMS: |
1309 | * This symbol, if defined, indicates that the program is running under | |
bccf77a5 | 1310 | * VMS. It is currently only set in conjunction with the EUNICE symbol. |
85e6fe83 | 1311 | */ |
bccf77a5 | 1312 | #$d_eunice VMS /**/ |
85e6fe83 | 1313 | |
a0d0e21e LW |
1314 | /* LOC_SED: |
1315 | * This symbol holds the complete pathname to the sed program. | |
85e6fe83 | 1316 | */ |
1aef975c AD |
1317 | #define LOC_SED "$full_sed" /**/ |
1318 | ||
760ac839 LW |
1319 | /* OSNAME: |
1320 | * This symbol contains the name of the operating system, as determined | |
1321 | * by Configure. You shouldn't rely on it too much; the specific | |
1322 | * feature tests from Configure are generally more reliable. | |
1323 | */ | |
1324 | #define OSNAME "$osname" /**/ | |
1325 | ||
4633a7c4 LW |
1326 | /* ARCHLIB_EXP: |
1327 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
1328 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1329 | */ | |
1330 | #$d_archlib ARCHLIB_EXP "$archlibexp" /**/ | |
1331 | ||
760ac839 LW |
1332 | /* BIN_SH: |
1333 | * Pathname to /bin/sh equivalent | |
57bf803e | 1334 | */ |
760ac839 | 1335 | #define BIN_SH "$bin_sh" /**/ |
8e07c86e AD |
1336 | /* BYTEORDER: |
1337 | * This symbol hold the hexadecimal constant defined in byteorder, | |
1338 | * i.e. 0x1234 or 0x4321, etc... | |
1339 | */ | |
40750cc0 | 1340 | #ifndef NeXT |
8e07c86e | 1341 | #define BYTEORDER 0x$byteorder /* large digits for MSB */ |
760ac839 LW |
1342 | #else /* NeXT */ |
1343 | #ifdef __LITTLE_ENDIAN__ | |
40750cc0 | 1344 | #define BYTEORDER 0x1234 |
760ac839 LW |
1345 | #else /* __BIG_ENDIAN__ */ |
1346 | #define BYTEORDER 0x4321 | |
40750cc0 | 1347 | #endif /* ENDIAN CHECK */ |
760ac839 | 1348 | #endif /* NeXT */ |
8e07c86e | 1349 | |
1aef975c AD |
1350 | /* CSH: |
1351 | * This symbol, if defined, indicates that the C-shell exists. | |
1352 | * If defined, contains the full pathname of csh. | |
1353 | */ | |
1354 | #$d_csh CSH "$full_csh" /**/ | |
85e6fe83 | 1355 | |
a0d0e21e LW |
1356 | /* DLSYM_NEEDS_UNDERSCORE: |
1357 | * This symbol, if defined, indicates that we need to prepend an | |
1358 | * underscore to the symbol name before calling dlsym(). This only | |
1359 | * makes sense if you *have* dlsym, which we will presume is the | |
1360 | * case if you're using dl_dlopen.xs. | |
85e6fe83 | 1361 | */ |
a0d0e21e LW |
1362 | #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */ |
1363 | ||
bccf77a5 PP |
1364 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
1365 | * This symbol, if defined, indicates that the bug that prevents | |
1366 | * setuid scripts from being secure is not present in this kernel. | |
1367 | */ | |
1368 | /* DOSUID: | |
1369 | * This symbol, if defined, indicates that the C program should | |
1370 | * check the script that it is executing for setuid/setgid bits, and | |
1371 | * attempt to emulate setuid/setgid on systems that have disabled | |
1372 | * setuid #! scripts because the kernel can't do it securely. | |
1373 | * It is up to the package designer to make sure that this emulation | |
1374 | * is done securely. Among other things, it should do an fstat on | |
1375 | * the script it just opened to make sure it really is a setuid/setgid | |
1376 | * script, it should make sure the arguments passed correspond exactly | |
1377 | * to the argument on the #! line, and it should not trust any | |
1378 | * subprocesses to which it must pass the filename rather than the | |
1379 | * file descriptor of the script to be executed. | |
1380 | */ | |
1381 | #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/ | |
1382 | #$d_dosuid DOSUID /**/ | |
1383 | ||
8e07c86e AD |
1384 | /* Gconvert: |
1385 | * This preprocessor macro is defined to convert a floating point | |
1386 | * number to a string without a trailing decimal point. This | |
1387 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1388 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1389 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1390 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1391 | * macro are: value, number of digits, whether trailing zeros should | |
1392 | * be retained, and the output buffer. | |
1393 | * Possible values are: | |
1394 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1395 | * d_Gconvert='gcvt((x),(n),(b))' | |
1396 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1397 | * The last two assume trailing zeros should not be kept. | |
1398 | */ | |
1399 | #define Gconvert(x,n,t,b) $d_Gconvert | |
1400 | ||
760ac839 LW |
1401 | /* PERLIO_IS_STDIO: |
1402 | * This symbol, if defined, indicates that stdio should | |
1403 | * be used in a fully backward compatible manner. | |
1404 | */ | |
1405 | #$d_perlstdio PERLIO_IS_STDIO /**/ | |
1406 | ||
1407 | /* USE_SFIO: | |
1408 | * This symbol, if defined, indicates that sfio should | |
1409 | * be used. | |
1410 | */ | |
1411 | #$d_sfio USE_SFIO /**/ | |
1412 | ||
a5f75d66 | 1413 | /* Sigjmp_buf: |
760ac839 | 1414 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. |
a5f75d66 AD |
1415 | */ |
1416 | /* Sigsetjmp: | |
760ac839 LW |
1417 | * This macro is used in the same way as sigsetjmp(), but will invoke |
1418 | * traditional setjmp() if sigsetjmp isn't available. | |
1419 | * See HAS_SIGSETJMP. | |
a5f75d66 AD |
1420 | */ |
1421 | /* Siglongjmp: | |
760ac839 LW |
1422 | * This macro is used in the same way as siglongjmp(), but will invoke |
1423 | * traditional longjmp() if siglongjmp isn't available. | |
1424 | * See HAS_SIGSETJMP. | |
a5f75d66 AD |
1425 | */ |
1426 | #$d_sigsetjmp HAS_SIGSETJMP /**/ | |
1427 | #ifdef HAS_SIGSETJMP | |
1428 | #define Sigjmp_buf sigjmp_buf | |
760ac839 LW |
1429 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) |
1430 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) | |
a5f75d66 AD |
1431 | #else |
1432 | #define Sigjmp_buf jmp_buf | |
760ac839 LW |
1433 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) |
1434 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) | |
a5f75d66 AD |
1435 | #endif |
1436 | ||
2304df62 AD |
1437 | /* USE_DYNAMIC_LOADING: |
1438 | * This symbol, if defined, indicates that dynamic loading of | |
1439 | * some sort is available. | |
a687059c | 1440 | */ |
2304df62 | 1441 | #$usedl USE_DYNAMIC_LOADING /**/ |
a687059c | 1442 | |
8e07c86e AD |
1443 | /* I_DBM: |
1444 | * This symbol, if defined, indicates that <dbm.h> exists and should | |
1445 | * be included. | |
1446 | */ | |
1447 | /* I_RPCSVC_DBM: | |
1448 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and | |
1449 | * should be included. | |
1450 | */ | |
1451 | #$i_dbm I_DBM /**/ | |
1452 | #$i_rpcsvcdbm I_RPCSVC_DBM /**/ | |
1453 | ||
4633a7c4 LW |
1454 | /* I_LOCALE: |
1455 | * This symbol, if defined, indicates to the C program that it should | |
1456 | * include <locale.h>. | |
1457 | */ | |
1458 | #$i_locale I_LOCALE /**/ | |
1459 | ||
760ac839 LW |
1460 | /* I_SFIO: |
1461 | * This symbol, if defined, indicates to the C program that it should | |
1462 | * include <sfio.h>. | |
1463 | */ | |
1464 | #$i_sfio I_SFIO /**/ | |
1465 | ||
1aef975c AD |
1466 | /* I_SYS_STAT: |
1467 | * This symbol, if defined, indicates to the C program that it should | |
1468 | * include <sys/stat.h>. | |
1469 | */ | |
1470 | #$i_sysstat I_SYS_STAT /**/ | |
1471 | ||
760ac839 LW |
1472 | #$i_values I_LIMITS /**/ |
1473 | ||
bccf77a5 PP |
1474 | /* I_STDARG: |
1475 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
1476 | * be included. | |
1477 | */ | |
1478 | /* I_VARARGS: | |
1479 | * This symbol, if defined, indicates to the C program that it should | |
1480 | * include <varargs.h>. | |
1481 | */ | |
1482 | #$i_stdarg I_STDARG /**/ | |
1483 | #$i_varargs I_VARARGS /**/ | |
1484 | ||
8e07c86e AD |
1485 | /* INTSIZE: |
1486 | * This symbol contains the size of an int, so that the C preprocessor | |
1487 | * can make decisions based on it. | |
1488 | */ | |
1489 | #define INTSIZE $intsize /**/ | |
1490 | ||
94b6baf5 AD |
1491 | /* Free_t: |
1492 | * This variable contains the return type of free(). It is usually | |
1493 | * void, but occasionally int. | |
1494 | */ | |
2304df62 AD |
1495 | /* Malloc_t: |
1496 | * This symbol is the type of pointer returned by malloc and realloc. | |
36ce8bec | 1497 | */ |
2304df62 | 1498 | #define Malloc_t $malloctype /**/ |
94b6baf5 | 1499 | #define Free_t $freetype /**/ |
36ce8bec | 1500 | |
85e6fe83 LW |
1501 | /* MYMALLOC: |
1502 | * This symbol, if defined, indicates that we're using our own malloc. | |
1503 | */ | |
1504 | #$d_mymalloc MYMALLOC /**/ | |
1505 | ||
bccf77a5 PP |
1506 | /* VAL_O_NONBLOCK: |
1507 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
1508 | * non-blocking I/O for the file descriptor. Note that there is no way | |
1509 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
1510 | * alternatively switch between blocking and non-blocking, use the | |
1511 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
1512 | */ | |
1513 | /* VAL_EAGAIN: | |
1514 | * This symbol holds the errno error code set by read() when no data was | |
1515 | * present on the non-blocking file descriptor. | |
1516 | */ | |
1517 | /* RD_NODATA: | |
1518 | * This symbol holds the return code from read() when no data is present | |
1519 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
1520 | * not defined, then you can't distinguish between no data and EOF by | |
1521 | * issuing a read(). You'll have to find another way to tell for sure! | |
1522 | */ | |
1523 | /* EOF_NONBLOCK: | |
1524 | * This symbol, if defined, indicates to the C program that a read() on | |
1525 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
1526 | * held in RD_NODATA (-1 usually, in that case!). | |
1527 | */ | |
1528 | #define VAL_O_NONBLOCK $o_nonblock | |
1529 | #define VAL_EAGAIN $eagain | |
1530 | #define RD_NODATA $rd_nodata | |
1531 | #$d_eofnblk EOF_NONBLOCK | |
1532 | ||
4633a7c4 LW |
1533 | /* OLDARCHLIB_EXP: |
1534 | * This symbol contains the ~name expanded version of OLDARCHLIB, to be | |
1535 | * used in programs that are not prepared to deal with ~ expansion at | |
1536 | * run-time. | |
1537 | */ | |
1538 | #$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp" /**/ | |
1539 | ||
1540 | /* PRIVLIB_EXP: | |
1541 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
1542 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1543 | */ | |
1544 | #define PRIVLIB_EXP "$privlibexp" /**/ | |
1545 | ||
8e07c86e | 1546 | /* SIG_NAME: |
4633a7c4 LW |
1547 | * This symbol contains a list of signal names in order of |
1548 | * signal number. This is intended | |
8e07c86e AD |
1549 | * to be used as a static array initialization, like this: |
1550 | * char *sig_name[] = { SIG_NAME }; | |
1551 | * The signals in the list are separated with commas, and each signal | |
1552 | * is surrounded by double quotes. There is no leading SIG in the signal | |
4633a7c4 LW |
1553 | * name, i.e. SIGQUIT is known as "QUIT". |
1554 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
1555 | * etc., where nn is the actual signal number (e.g. NUM37). | |
8e07c86e AD |
1556 | * The signal number for sig_name[i] is stored in sig_num[i]. |
1557 | * The last element is 0 to terminate the list with a NULL. This | |
1558 | * corresponds to the 0 at the end of the sig_num list. | |
8e07c86e | 1559 | */ |
8e07c86e | 1560 | /* SIG_NUM: |
4633a7c4 | 1561 | * This symbol contains a list of signal numbers, in the same order as the |
8e07c86e AD |
1562 | * SIG_NAME list. It is suitable for static array initialization, as in: |
1563 | * int sig_num[] = { SIG_NUM }; | |
1564 | * The signals in the list are separated with commas, and the indices | |
1565 | * within that list and the SIG_NAME list match, so it's easy to compute | |
1566 | * the signal name from a number or vice versa at the price of a small | |
4633a7c4 LW |
1567 | * dynamic linear lookup. |
1568 | * Duplicates are allowed, but are moved to the end of the list. | |
1569 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
1570 | * if (i < NSIG) then sig_number[i] == i. | |
1571 | * The last element is 0, corresponding to the 0 at the end of | |
1572 | * the sig_name list. | |
8e07c86e | 1573 | */ |
4633a7c4 | 1574 | #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0 /**/ |
8e07c86e AD |
1575 | #define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'` /**/ |
1576 | ||
4633a7c4 LW |
1577 | /* SITEARCH_EXP: |
1578 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
16d20bd9 AD |
1579 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1580 | */ | |
4633a7c4 | 1581 | #define SITEARCH_EXP "$sitearchexp" /**/ |
16d20bd9 | 1582 | |
25f94b33 AD |
1583 | /* SITELIB_EXP: |
1584 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
1585 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1586 | */ | |
1587 | #define SITELIB_EXP "$sitelibexp" /**/ | |
1588 | ||
760ac839 LW |
1589 | /* SSize_t: |
1590 | * This symbol holds the type used by functions that return | |
1591 | * a count of bytes or an error condition. It must be a signed type. | |
1592 | * It is usually ssize_t, but may be long or int, etc. | |
1593 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
1594 | * to get any typedef'ed information. | |
1595 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
1596 | */ | |
1597 | #define SSize_t $ssizetype /* signed count of bytes */ | |
1598 | ||
568ef1f6 PP |
1599 | /* STARTPERL: |
1600 | * This variable contains the string to put in front of a perl | |
1601 | * script to make sure (one hopes) that it runs with perl and not | |
1602 | * some shell. | |
1603 | */ | |
1604 | #define STARTPERL "$startperl" /**/ | |
1605 | ||
8e07c86e AD |
1606 | /* VOIDFLAGS: |
1607 | * This symbol indicates how much support of the void type is given by this | |
1608 | * compiler. What various bits mean: | |
1609 | * | |
1610 | * 1 = supports declaration of void | |
1611 | * 2 = supports arrays of pointers to functions returning void | |
1612 | * 4 = supports comparisons between pointers to void functions and | |
1613 | * addresses of void functions | |
1614 | * 8 = suports declaration of generic void pointers | |
1615 | * | |
1616 | * The package designer should define VOIDUSED to indicate the requirements | |
1617 | * of the package. This can be done either by #defining VOIDUSED before | |
1618 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
1619 | * latter approach is taken, only those flags will be tested. If the | |
1620 | * level of void support necessary is not present, defines void to int. | |
1621 | */ | |
1622 | #ifndef VOIDUSED | |
1623 | #define VOIDUSED $defvoidused | |
1624 | #endif | |
1625 | #define VOIDFLAGS $voidflags | |
1626 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
1627 | #define void int /* is void to be avoided? */ | |
1628 | #define M_VOID /* Xenix strikes again */ | |
1629 | #endif | |
1630 | ||
fe14fcc3 | 1631 | #endif |
8d063cd8 | 1632 | !GROK!THIS! |