Commit | Line | Data |
---|---|---|
43b6eb61 C |
1 | #ifndef config_h |
2 | #define config_h | |
3 | /* config.h | |
4 | * This file was produced by running the config.h.SH script, which | |
5 | * gets its values from config.sh, which is generally produced by | |
6 | * running Configure. | |
7 | * | |
8 | * Feel free to modify any of this as the need arises. Note, however, | |
9 | * that running config.h.SH again will wipe out any changes you've made. | |
10 | * For a more permanent change edit config.sh and rerun config.h.SH. | |
11 | */ | |
12 | /*SUPPRESS 460*/ | |
13 | ||
14 | ||
15 | /* EUNICE | |
16 | * This symbol, if defined, indicates that the program is being compiled | |
17 | * under the EUNICE package under VMS. The program will need to handle | |
18 | * things like files that don't go away the first time you unlink them, | |
19 | * due to version numbering. It will also need to compensate for lack | |
20 | * of a respectable link() command. | |
21 | */ | |
22 | /* VMS | |
23 | * This symbol, if defined, indicates that the program is running under | |
24 | * VMS. It is currently only set in conjunction with the EUNICE symbol. | |
25 | */ | |
26 | /*#undef EUNICE /**/ | |
27 | /*#undef VMS /**/ | |
28 | ||
29 | /* LOC_SED | |
30 | * This symbol holds the complete pathname to the sed program. | |
31 | */ | |
32 | #define LOC_SED "/usr/bin/sed" /**/ | |
33 | ||
34 | /* BIN | |
35 | * This symbol holds the name of the directory in which the user wants | |
36 | * to keep publicly executable images for the package in question. It | |
37 | * is most often a local directory such as /usr/local/bin. | |
38 | */ | |
39 | #define BIN "/usr/contrib/bin" /**/ | |
40 | ||
41 | /* BYTEORDER | |
42 | * This symbol contains an encoding of the order of bytes in a long. | |
43 | * Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412... | |
44 | */ | |
45 | #define BYTEORDER 0x4321 /**/ | |
46 | ||
47 | /* CPPSTDIN | |
48 | * This symbol contains the first part of the string which will invoke | |
49 | * the C preprocessor on the standard input and produce to standard | |
50 | * output. Typical value of "cc -E" or "/lib/cpp". | |
51 | */ | |
52 | /* CPPMINUS | |
53 | * This symbol contains the second part of the string which will invoke | |
54 | * the C preprocessor on the standard input and produce to standard | |
55 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus | |
56 | * to specify standard input, otherwise the value is "". | |
57 | */ | |
58 | #define CPPSTDIN "/usr/bin/cpp" | |
59 | #define CPPMINUS "" | |
60 | ||
61 | /* HAS_BCMP | |
62 | * This symbol, if defined, indicates that the bcmp routine is available | |
63 | * to compare blocks of memory. If undefined, use memcmp. If that's | |
64 | * not available, roll your own. | |
65 | */ | |
66 | #define HAS_BCMP /**/ | |
67 | ||
68 | /* HAS_BCOPY | |
69 | * This symbol, if defined, indicates that the bcopy routine is available | |
70 | * to copy blocks of memory. Otherwise you should probably use memcpy(). | |
71 | * If neither is defined, roll your own. | |
72 | */ | |
73 | /* SAFE_BCOPY | |
74 | * This symbol, if defined, indicates that the bcopy routine is available | |
75 | * to copy potentially overlapping copy blocks of bcopy. Otherwise you | |
76 | * should probably use memmove() or memcpy(). If neither is defined, | |
77 | * roll your own. | |
78 | */ | |
79 | #define HAS_BCOPY /**/ | |
80 | #define SAFE_BCOPY /**/ | |
81 | ||
82 | /* HAS_BZERO | |
83 | * This symbol, if defined, indicates that the bzero routine is available | |
84 | * to zero blocks of memory. Otherwise you should probably use memset() | |
85 | * or roll your own. | |
86 | */ | |
87 | #define HAS_BZERO /**/ | |
88 | ||
89 | /* CASTNEGFLOAT | |
90 | * This symbol, if defined, indicates that this C compiler knows how to | |
91 | * cast negative or large floating point numbers to unsigned longs, ints | |
92 | * and shorts. | |
93 | */ | |
94 | /* CASTFLAGS | |
95 | * This symbol contains flags that say what difficulties the compiler | |
96 | * has casting odd floating values to unsigned long: | |
97 | * 1 = couldn't cast < 0 | |
98 | * 2 = couldn't cast >= 0x80000000 | |
99 | */ | |
100 | #define CASTNEGFLOAT /**/ | |
101 | #define CASTFLAGS 0 /**/ | |
102 | ||
103 | /* CHARSPRINTF | |
104 | * This symbol is defined if this system declares "char *sprintf()" in | |
105 | * stdio.h. The trend seems to be to declare it as "int sprintf()". It | |
106 | * is up to the package author to declare sprintf correctly based on the | |
107 | * symbol. | |
108 | */ | |
109 | /*#undef CHARSPRINTF /**/ | |
110 | ||
111 | /* HAS_CHSIZE | |
112 | * This symbol, if defined, indicates that the chsize routine is available | |
113 | * to truncate files. You might need a -lx to get this routine. | |
114 | */ | |
115 | /*#undef HAS_CHSIZE /**/ | |
116 | ||
117 | /* HAS_CRYPT | |
118 | * This symbol, if defined, indicates that the crypt routine is available | |
119 | * to encrypt passwords and the like. | |
120 | */ | |
121 | #define HAS_CRYPT /**/ | |
122 | ||
123 | /* CSH | |
124 | * This symbol, if defined, indicates that the C-shell exists. | |
125 | * If defined, contains the full pathname of csh. | |
126 | */ | |
127 | #define CSH "/bin/csh" /**/ | |
128 | ||
129 | /* DOSUID | |
130 | * This symbol, if defined, indicates that the C program should | |
131 | * check the script that it is executing for setuid/setgid bits, and | |
132 | * attempt to emulate setuid/setgid on systems that have disabled | |
133 | * setuid #! scripts because the kernel can't do it securely. | |
134 | * It is up to the package designer to make sure that this emulation | |
135 | * is done securely. Among other things, it should do an fstat on | |
136 | * the script it just opened to make sure it really is a setuid/setgid | |
137 | * script, it should make sure the arguments passed correspond exactly | |
138 | * to the argument on the #! line, and it should not trust any | |
139 | * subprocesses to which it must pass the filename rather than the | |
140 | * file descriptor of the script to be executed. | |
141 | */ | |
142 | /*#undef DOSUID /**/ | |
143 | ||
144 | /* HAS_DUP2 | |
145 | * This symbol, if defined, indicates that the dup2 routine is available | |
146 | * to dup file descriptors. Otherwise you should use dup(). | |
147 | */ | |
148 | #define HAS_DUP2 /**/ | |
149 | ||
150 | /* HAS_FCHMOD | |
151 | * This symbol, if defined, indicates that the fchmod routine is available | |
152 | * to change mode of opened files. If unavailable, use chmod(). | |
153 | */ | |
154 | #define HAS_FCHMOD /**/ | |
155 | ||
156 | /* HAS_FCHOWN | |
157 | * This symbol, if defined, indicates that the fchown routine is available | |
158 | * to change ownership of opened files. If unavailable, use chown(). | |
159 | */ | |
160 | #define HAS_FCHOWN /**/ | |
161 | ||
162 | /* HAS_FCNTL | |
163 | * This symbol, if defined, indicates to the C program that | |
164 | * the fcntl() function exists. | |
165 | */ | |
166 | #define HAS_FCNTL /**/ | |
167 | ||
168 | /* FLEXFILENAMES | |
169 | * This symbol, if defined, indicates that the system supports filenames | |
170 | * longer than 14 characters. | |
171 | */ | |
172 | #define FLEXFILENAMES /**/ | |
173 | ||
174 | /* HAS_FLOCK | |
175 | * This symbol, if defined, indicates that the flock() routine is | |
176 | * available to do file locking. | |
177 | */ | |
178 | #define HAS_FLOCK /**/ | |
179 | ||
180 | /* HAS_GETGROUPS | |
181 | * This symbol, if defined, indicates that the getgroups() routine is | |
182 | * available to get the list of process groups. If unavailable, multiple | |
183 | * groups are probably not supported. | |
184 | */ | |
185 | #define HAS_GETGROUPS /**/ | |
186 | ||
187 | /* HAS_GETHOSTENT | |
188 | * This symbol, if defined, indicates that the gethostent() routine is | |
189 | * available to lookup host names in some data base or other. | |
190 | */ | |
191 | /*#undef HAS_GETHOSTENT /**/ | |
192 | ||
193 | /* HAS_GETPGRP | |
194 | * This symbol, if defined, indicates that the getpgrp() routine is | |
195 | * available to get the current process group. | |
196 | */ | |
197 | #define HAS_GETPGRP /**/ | |
198 | ||
199 | /* HAS_GETPGRP2 | |
200 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) | |
201 | * routine is available to get the current process group. | |
202 | */ | |
203 | /*#undef HAS_GETPGRP2 /**/ | |
204 | ||
205 | /* HAS_GETPRIORITY | |
206 | * This symbol, if defined, indicates that the getpriority() routine is | |
207 | * available to get a process's priority. | |
208 | */ | |
209 | #define HAS_GETPRIORITY /**/ | |
210 | ||
211 | /* HAS_HTONS | |
212 | * This symbol, if defined, indicates that the htons routine (and friends) | |
213 | * are available to do network order byte swapping. | |
214 | */ | |
215 | /* HAS_HTONL | |
216 | * This symbol, if defined, indicates that the htonl routine (and friends) | |
217 | * are available to do network order byte swapping. | |
218 | */ | |
219 | /* HAS_NTOHS | |
220 | * This symbol, if defined, indicates that the ntohs routine (and friends) | |
221 | * are available to do network order byte swapping. | |
222 | */ | |
223 | /* HAS_NTOHL | |
224 | * This symbol, if defined, indicates that the ntohl routine (and friends) | |
225 | * are available to do network order byte swapping. | |
226 | */ | |
227 | #define HAS_HTONS /**/ | |
228 | #define HAS_HTONL /**/ | |
229 | #define HAS_NTOHS /**/ | |
230 | #define HAS_NTOHL /**/ | |
231 | ||
232 | /* index | |
233 | * This preprocessor symbol is defined, along with rindex, if the system | |
234 | * uses the strchr and strrchr routines instead. | |
235 | */ | |
236 | /* rindex | |
237 | * This preprocessor symbol is defined, along with index, if the system | |
238 | * uses the strchr and strrchr routines instead. | |
239 | */ | |
240 | /*#undef index strchr /* cultural */ | |
241 | /*#undef rindex strrchr /* differences? */ | |
242 | ||
243 | /* HAS_ISASCII | |
244 | * This symbol, if defined, indicates that the isascii routine is available | |
245 | * to test characters for asciiness. | |
246 | */ | |
247 | #define HAS_ISASCII /**/ | |
248 | ||
249 | /* HAS_KILLPG | |
250 | * This symbol, if defined, indicates that the killpg routine is available | |
251 | * to kill process groups. If unavailable, you probably should use kill | |
252 | * with a negative process number. | |
253 | */ | |
254 | #define HAS_KILLPG /**/ | |
255 | ||
256 | /* HAS_LSTAT | |
257 | * This symbol, if defined, indicates that the lstat() routine is | |
258 | * available to stat symbolic links. | |
259 | */ | |
260 | #define HAS_LSTAT /**/ | |
261 | ||
262 | /* HAS_MEMCMP | |
263 | * This symbol, if defined, indicates that the memcmp routine is available | |
264 | * to compare blocks of memory. If undefined, roll your own. | |
265 | */ | |
266 | #define HAS_MEMCMP /**/ | |
267 | ||
268 | /* HAS_MEMCPY | |
269 | * This symbol, if defined, indicates that the memcpy routine is available | |
270 | * to copy blocks of memory. Otherwise you should probably use bcopy(). | |
271 | * If neither is defined, roll your own. | |
272 | */ | |
273 | /* SAFE_MEMCPY | |
274 | * This symbol, if defined, indicates that the memcpy routine is available | |
275 | * to copy potentially overlapping copy blocks of memory. Otherwise you | |
276 | * should probably use memmove() or bcopy(). If neither is defined, | |
277 | * roll your own. | |
278 | */ | |
279 | #define HAS_MEMCPY /**/ | |
280 | #define SAFE_MEMCPY /**/ | |
281 | ||
282 | /* HAS_MEMMOVE | |
283 | * This symbol, if defined, indicates that the memmove routine is available | |
284 | * to move potentially overlapping blocks of memory. Otherwise you | |
285 | * should use bcopy() or roll your own. | |
286 | */ | |
287 | #define HAS_MEMMOVE /**/ | |
288 | ||
289 | /* HAS_MEMSET | |
290 | * This symbol, if defined, indicates that the memset routine is available | |
291 | * to set a block of memory to a character. If undefined, roll your own. | |
292 | */ | |
293 | #define HAS_MEMSET /**/ | |
294 | ||
295 | /* HAS_MKDIR | |
296 | * This symbol, if defined, indicates that the mkdir routine is available | |
297 | * to create directories. Otherwise you should fork off a new process to | |
298 | * exec /bin/mkdir. | |
299 | */ | |
300 | #define HAS_MKDIR /**/ | |
301 | ||
302 | /* HAS_MSG | |
303 | * This symbol, if defined, indicates that the entire msg*(2) library is | |
304 | * supported. | |
305 | */ | |
306 | /*#undef HAS_MSG /**/ | |
307 | ||
308 | /* HAS_MSGCTL | |
309 | * This symbol, if defined, indicates that the msgctl() routine is | |
310 | * available to control message passing. | |
311 | */ | |
312 | /*#undef HAS_MSGCTL /**/ | |
313 | ||
314 | /* HAS_MSGGET | |
315 | * This symbol, if defined, indicates that the msgget() routine is | |
316 | * available to get messages. | |
317 | */ | |
318 | /*#undef HAS_MSGGET /**/ | |
319 | ||
320 | /* HAS_MSGRCV | |
321 | * This symbol, if defined, indicates that the msgrcv() routine is | |
322 | * available to receive messages. | |
323 | */ | |
324 | /*#undef HAS_MSGRCV /**/ | |
325 | ||
326 | /* HAS_MSGSND | |
327 | * This symbol, if defined, indicates that the msgsnd() routine is | |
328 | * available to send messages. | |
329 | */ | |
330 | /*#undef HAS_MSGSND /**/ | |
331 | ||
332 | /* HAS_NDBM | |
333 | * This symbol, if defined, indicates that ndbm.h exists and should | |
334 | * be included. | |
335 | */ | |
336 | #define HAS_NDBM /**/ | |
337 | ||
338 | /* HAS_ODBM | |
339 | * This symbol, if defined, indicates that dbm.h exists and should | |
340 | * be included. | |
341 | */ | |
342 | #define HAS_ODBM /**/ | |
343 | ||
344 | /* HAS_OPEN3 | |
345 | * This manifest constant lets the C program know that the three | |
346 | * argument form of open(2) is available. | |
347 | */ | |
348 | #define HAS_OPEN3 /**/ | |
349 | ||
350 | /* HAS_READDIR | |
351 | * This symbol, if defined, indicates that the readdir routine is available | |
352 | * from the C library to read directories. | |
353 | */ | |
354 | #define HAS_READDIR /**/ | |
355 | ||
356 | /* HAS_RENAME | |
357 | * This symbol, if defined, indicates that the rename routine is available | |
358 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
359 | * trick. | |
360 | */ | |
361 | #define HAS_RENAME /**/ | |
362 | ||
363 | /* HAS_REWINDDIR | |
364 | * This symbol, if defined, indicates that the rewindir routine is | |
365 | * available to rewind directories. | |
366 | */ | |
367 | #define HAS_REWINDDIR /**/ | |
368 | ||
369 | /* HAS_RMDIR | |
370 | * This symbol, if defined, indicates that the rmdir routine is available | |
371 | * to remove directories. Otherwise you should fork off a new process to | |
372 | * exec /bin/rmdir. | |
373 | */ | |
374 | #define HAS_RMDIR /**/ | |
375 | ||
376 | /* HAS_SEEKDIR | |
377 | * This symbol, if defined, indicates that the seekdir routine is | |
378 | * available to seek into directories. | |
379 | */ | |
380 | #define HAS_SEEKDIR /**/ | |
381 | ||
382 | /* HAS_SELECT | |
383 | * This symbol, if defined, indicates that the select() subroutine | |
384 | * exists. | |
385 | */ | |
386 | #define HAS_SELECT /**/ | |
387 | ||
388 | /* HAS_SEM | |
389 | * This symbol, if defined, indicates that the entire sem*(2) library is | |
390 | * supported. | |
391 | */ | |
392 | /*#undef HAS_SEM /**/ | |
393 | ||
394 | /* HAS_SEMCTL | |
395 | * This symbol, if defined, indicates that the semctl() routine is | |
396 | * available to control semaphores. | |
397 | */ | |
398 | /*#undef HAS_SEMCTL /**/ | |
399 | ||
400 | /* HAS_SEMGET | |
401 | * This symbol, if defined, indicates that the semget() routine is | |
402 | * available to get semaphores ids. | |
403 | */ | |
404 | /*#undef HAS_SEMGET /**/ | |
405 | ||
406 | /* HAS_SEMOP | |
407 | * This symbol, if defined, indicates that the semop() routine is | |
408 | * available to perform semaphore operations. | |
409 | */ | |
410 | /*#undef HAS_SEMOP /**/ | |
411 | ||
412 | /* HAS_SETEGID | |
413 | * This symbol, if defined, indicates that the setegid routine is available | |
414 | * to change the effective gid of the current program. | |
415 | */ | |
416 | #define HAS_SETEGID /**/ | |
417 | ||
418 | /* HAS_SETEUID | |
419 | * This symbol, if defined, indicates that the seteuid routine is available | |
420 | * to change the effective uid of the current program. | |
421 | */ | |
422 | #define HAS_SETEUID /**/ | |
423 | ||
424 | /* HAS_SETPGRP | |
425 | * This symbol, if defined, indicates that the setpgrp() routine is | |
426 | * available to set the current process group. | |
427 | */ | |
428 | #define HAS_SETPGRP /**/ | |
429 | ||
430 | /* HAS_SETPGRP2 | |
431 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) | |
432 | * routine is available to set the current process group. | |
433 | */ | |
434 | /*#undef HAS_SETPGRP2 /**/ | |
435 | ||
436 | /* HAS_SETPRIORITY | |
437 | * This symbol, if defined, indicates that the setpriority() routine is | |
438 | * available to set a process's priority. | |
439 | */ | |
440 | #define HAS_SETPRIORITY /**/ | |
441 | ||
442 | /* HAS_SETREGID | |
443 | * This symbol, if defined, indicates that the setregid routine is | |
444 | * available to change the real and effective gid of the current program. | |
445 | */ | |
446 | /* HAS_SETRESGID | |
447 | * This symbol, if defined, indicates that the setresgid routine is | |
448 | * available to change the real, effective and saved gid of the current | |
449 | * program. | |
450 | */ | |
451 | #define HAS_SETREGID /**/ | |
452 | /*#undef HAS_SETRESGID /**/ | |
453 | ||
454 | /* HAS_SETREUID | |
455 | * This symbol, if defined, indicates that the setreuid routine is | |
456 | * available to change the real and effective uid of the current program. | |
457 | */ | |
458 | /* HAS_SETRESUID | |
459 | * This symbol, if defined, indicates that the setresuid routine is | |
460 | * available to change the real, effective and saved uid of the current | |
461 | * program. | |
462 | */ | |
463 | #define HAS_SETREUID /**/ | |
464 | /*#undef HAS_SETRESUID /**/ | |
465 | ||
466 | /* HAS_SETRGID | |
467 | * This symbol, if defined, indicates that the setrgid routine is available | |
468 | * to change the real gid of the current program. | |
469 | */ | |
470 | #define HAS_SETRGID /**/ | |
471 | ||
472 | /* HAS_SETRUID | |
473 | * This symbol, if defined, indicates that the setruid routine is available | |
474 | * to change the real uid of the current program. | |
475 | */ | |
476 | #define HAS_SETRUID /**/ | |
477 | ||
478 | /* HAS_SHM | |
479 | * This symbol, if defined, indicates that the entire shm*(2) library is | |
480 | * supported. | |
481 | */ | |
482 | /*#undef HAS_SHM /**/ | |
483 | ||
484 | /* HAS_SHMAT | |
485 | * This symbol, if defined, indicates that the shmat() routine is | |
486 | * available to attach a shared memory segment. | |
487 | */ | |
488 | /* VOID_SHMAT | |
489 | * This symbol, if defined, indicates that the shmat() routine | |
490 | * returns a pointer of type void*. | |
491 | */ | |
492 | /*#undef HAS_SHMAT /**/ | |
493 | ||
494 | /*#undef VOIDSHMAT /**/ | |
495 | ||
496 | /* HAS_SHMCTL | |
497 | * This symbol, if defined, indicates that the shmctl() routine is | |
498 | * available to control a shared memory segment. | |
499 | */ | |
500 | /*#undef HAS_SHMCTL /**/ | |
501 | ||
502 | /* HAS_SHMDT | |
503 | * This symbol, if defined, indicates that the shmdt() routine is | |
504 | * available to detach a shared memory segment. | |
505 | */ | |
506 | /*#undef HAS_SHMDT /**/ | |
507 | ||
508 | /* HAS_SHMGET | |
509 | * This symbol, if defined, indicates that the shmget() routine is | |
510 | * available to get a shared memory segment id. | |
511 | */ | |
512 | /*#undef HAS_SHMGET /**/ | |
513 | ||
514 | /* HAS_SOCKET | |
515 | * This symbol, if defined, indicates that the BSD socket interface is | |
516 | * supported. | |
517 | */ | |
518 | /* HAS_SOCKETPAIR | |
519 | * This symbol, if defined, indicates that the BSD socketpair call is | |
520 | * supported. | |
521 | */ | |
522 | /* OLDSOCKET | |
523 | * This symbol, if defined, indicates that the 4.1c BSD socket interface | |
524 | * is supported instead of the 4.2/4.3 BSD socket interface. | |
525 | */ | |
526 | #define HAS_SOCKET /**/ | |
527 | ||
528 | #define HAS_SOCKETPAIR /**/ | |
529 | ||
530 | /*#undef OLDSOCKET /**/ | |
531 | ||
532 | /* STATBLOCKS | |
533 | * This symbol is defined if this system has a stat structure declaring | |
534 | * st_blksize and st_blocks. | |
535 | */ | |
536 | #define STATBLOCKS /**/ | |
537 | ||
538 | /* STDSTDIO | |
539 | * This symbol is defined if this system has a FILE structure declaring | |
540 | * _ptr and _cnt in stdio.h. | |
541 | */ | |
542 | /*#undef STDSTDIO /**/ | |
543 | ||
544 | /* STRUCTCOPY | |
545 | * This symbol, if defined, indicates that this C compiler knows how | |
546 | * to copy structures. If undefined, you'll need to use a block copy | |
547 | * routine of some sort instead. | |
548 | */ | |
549 | #define STRUCTCOPY /**/ | |
550 | ||
551 | /* HAS_STRERROR | |
552 | * This symbol, if defined, indicates that the strerror() routine is | |
553 | * available to translate error numbers to strings. | |
554 | */ | |
555 | #define HAS_STRERROR /**/ | |
556 | ||
557 | /* HAS_SYMLINK | |
558 | * This symbol, if defined, indicates that the symlink routine is available | |
559 | * to create symbolic links. | |
560 | */ | |
561 | #define HAS_SYMLINK /**/ | |
562 | ||
563 | /* HAS_SYSCALL | |
564 | * This symbol, if defined, indicates that the syscall routine is available | |
565 | * to call arbitrary system calls. If undefined, that's tough. | |
566 | */ | |
567 | #define HAS_SYSCALL /**/ | |
568 | ||
569 | /* HAS_TELLDIR | |
570 | * This symbol, if defined, indicates that the telldir routine is | |
571 | * available to tell your location in directories. | |
572 | */ | |
573 | #define HAS_TELLDIR /**/ | |
574 | ||
575 | /* HAS_TRUNCATE | |
576 | * This symbol, if defined, indicates that the truncate routine is | |
577 | * available to truncate files. | |
578 | */ | |
579 | #define HAS_TRUNCATE /**/ | |
580 | ||
581 | /* HAS_VFORK | |
582 | * This symbol, if defined, indicates that vfork() exists. | |
583 | */ | |
584 | #define HAS_VFORK /**/ | |
585 | ||
586 | /* VOIDSIG | |
587 | * This symbol is defined if this system declares "void (*signal())()" in | |
588 | * signal.h. The old way was to declare it as "int (*signal())()". It | |
589 | * is up to the package author to declare things correctly based on the | |
590 | * symbol. | |
591 | */ | |
592 | /* TO_SIGNAL | |
593 | * This symbol's value is either "void" or "int", corresponding to the | |
594 | * appropriate return "type" of a signal handler. Thus, one can declare | |
595 | * a signal handler using "TO_SIGNAL (*handler())()", and define the | |
596 | * handler using "TO_SIGNAL handler(sig)". | |
597 | */ | |
598 | #define VOIDSIG /**/ | |
599 | #define TO_SIGNAL int /**/ | |
600 | ||
601 | /* HASVOLATILE | |
602 | * This symbol, if defined, indicates that this C compiler knows about | |
603 | * the volatile declaration. | |
604 | */ | |
605 | #define HASVOLATILE /**/ | |
606 | ||
607 | /* HAS_VPRINTF | |
608 | * This symbol, if defined, indicates that the vprintf routine is available | |
609 | * to printf with a pointer to an argument list. If unavailable, you | |
610 | * may need to write your own, probably in terms of _doprnt(). | |
611 | */ | |
612 | /* CHARVSPRINTF | |
613 | * This symbol is defined if this system has vsprintf() returning type | |
614 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
615 | * is up to the package author to declare vsprintf correctly based on the | |
616 | * symbol. | |
617 | */ | |
618 | #define HAS_VPRINTF /**/ | |
619 | /*#undef CHARVSPRINTF /**/ | |
620 | ||
621 | /* HAS_WAIT4 | |
622 | * This symbol, if defined, indicates that wait4() exists. | |
623 | */ | |
624 | #define HAS_WAIT4 /**/ | |
625 | ||
626 | /* HAS_WAITPID | |
627 | * This symbol, if defined, indicates that waitpid() exists. | |
628 | */ | |
629 | #define HAS_WAITPID /**/ | |
630 | ||
631 | /* GIDTYPE | |
632 | * This symbol has a value like gid_t, int, ushort, or whatever type is | |
633 | * used to declare group ids in the kernel. | |
634 | */ | |
635 | #define GIDTYPE gid_t /**/ | |
636 | ||
637 | /* GROUPSTYPE | |
638 | * This symbol has a value like gid_t, int, ushort, or whatever type is | |
639 | * used in the return value of getgroups(). | |
640 | */ | |
641 | #define GROUPSTYPE gid_t /**/ | |
642 | ||
643 | /* I_FCNTL | |
644 | * This manifest constant tells the C program to include <fcntl.h>. | |
645 | */ | |
646 | /*#undef I_FCNTL /**/ | |
647 | ||
648 | /* I_GDBM | |
649 | * This symbol, if defined, indicates that gdbm.h exists and should | |
650 | * be included. | |
651 | */ | |
652 | /*#undef I_GDBM /**/ | |
653 | ||
654 | /* I_GRP | |
655 | * This symbol, if defined, indicates to the C program that it should | |
656 | * include grp.h. | |
657 | */ | |
658 | #define I_GRP /**/ | |
659 | ||
660 | /* I_NETINET_IN | |
661 | * This symbol, if defined, indicates to the C program that it should | |
662 | * include netinet/in.h. | |
663 | */ | |
664 | /* I_SYS_IN | |
665 | * This symbol, if defined, indicates to the C program that it should | |
666 | * include sys/in.h. | |
667 | */ | |
668 | #define I_NETINET_IN /**/ | |
669 | /*#undef I_SYS_IN /**/ | |
670 | ||
671 | /* I_PWD | |
672 | * This symbol, if defined, indicates to the C program that it should | |
673 | * include pwd.h. | |
674 | */ | |
675 | /* PWQUOTA | |
676 | * This symbol, if defined, indicates to the C program that struct passwd | |
677 | * contains pw_quota. | |
678 | */ | |
679 | /* PWAGE | |
680 | * This symbol, if defined, indicates to the C program that struct passwd | |
681 | * contains pw_age. | |
682 | */ | |
683 | /* PWCHANGE | |
684 | * This symbol, if defined, indicates to the C program that struct passwd | |
685 | * contains pw_change. | |
686 | */ | |
687 | /* PWCLASS | |
688 | * This symbol, if defined, indicates to the C program that struct passwd | |
689 | * contains pw_class. | |
690 | */ | |
691 | /* PWEXPIRE | |
692 | * This symbol, if defined, indicates to the C program that struct passwd | |
693 | * contains pw_expire. | |
694 | */ | |
695 | /* PWCOMMENT | |
696 | * This symbol, if defined, indicates to the C program that struct passwd | |
697 | * contains pw_comment. | |
698 | */ | |
699 | #define I_PWD /**/ | |
700 | /*#undef PWQUOTA /**/ | |
701 | /*#undef PWAGE /**/ | |
702 | #define PWCHANGE /**/ | |
703 | #define PWCLASS /**/ | |
704 | #define PWEXPIRE /**/ | |
705 | /*#undef PWCOMMENT /**/ | |
706 | ||
707 | /* I_SYS_FILE | |
708 | * This manifest constant tells the C program to include <sys/file.h>. | |
709 | */ | |
710 | #define I_SYS_FILE /**/ | |
711 | ||
712 | /* I_SYSIOCTL | |
713 | * This symbol, if defined, indicates that sys/ioctl.h exists and should | |
714 | * be included. | |
715 | */ | |
716 | #define I_SYSIOCTL /**/ | |
717 | ||
718 | /* I_TIME | |
719 | * This symbol is defined if the program should include <time.h>. | |
720 | */ | |
721 | /* I_SYS_TIME | |
722 | * This symbol is defined if the program should include <sys/time.h>. | |
723 | */ | |
724 | /* SYSTIMEKERNEL | |
725 | * This symbol is defined if the program should include <sys/time.h> | |
726 | * with KERNEL defined. | |
727 | */ | |
728 | /* I_SYS_SELECT | |
729 | * This symbol is defined if the program should include <sys/select.h>. | |
730 | */ | |
731 | /*#undef I_TIME /**/ | |
732 | #define I_SYS_TIME /**/ | |
733 | /*#undef SYSTIMEKERNEL /**/ | |
734 | /*#undef I_SYS_SELECT /**/ | |
735 | ||
736 | /* I_UTIME | |
737 | * This symbol, if defined, indicates to the C program that it should | |
738 | * include utime.h. | |
739 | */ | |
740 | #define I_UTIME /**/ | |
741 | ||
742 | /* I_VARARGS | |
743 | * This symbol, if defined, indicates to the C program that it should | |
744 | * include varargs.h. | |
745 | */ | |
746 | #define I_VARARGS /**/ | |
747 | ||
748 | /* I_VFORK | |
749 | * This symbol, if defined, indicates to the C program that it should | |
750 | * include vfork.h. | |
751 | */ | |
752 | /*#undef I_VFORK /**/ | |
753 | ||
754 | /* INTSIZE | |
755 | * This symbol contains the size of an int, so that the C preprocessor | |
756 | * can make decisions based on it. | |
757 | */ | |
758 | #define INTSIZE 4 /**/ | |
759 | ||
760 | /* I_DIRENT | |
761 | * This symbol, if defined, indicates that the program should use the | |
762 | * P1003-style directory routines, and include <dirent.h>. | |
763 | */ | |
764 | /* I_SYS_DIR | |
765 | * This symbol, if defined, indicates that the program should use the | |
766 | * directory functions by including <sys/dir.h>. | |
767 | */ | |
768 | /* I_NDIR | |
769 | * This symbol, if defined, indicates that the program should include the | |
770 | * system's version of ndir.h, rather than the one with this package. | |
771 | */ | |
772 | /* I_SYS_NDIR | |
773 | * This symbol, if defined, indicates that the program should include the | |
774 | * system's version of sys/ndir.h, rather than the one with this package. | |
775 | */ | |
776 | /* I_MY_DIR | |
777 | * This symbol, if defined, indicates that the program should compile | |
778 | * the ndir.c code provided with the package. | |
779 | */ | |
780 | /* DIRNAMLEN | |
781 | * This symbol, if defined, indicates to the C program that the length | |
782 | * of directory entry names is provided by a d_namlen field. Otherwise | |
783 | * you need to do strlen() on the d_name field. | |
784 | */ | |
785 | #define I_DIRENT /**/ | |
786 | /*#undef I_SYS_DIR /**/ | |
787 | /*#undef I_NDIR /**/ | |
788 | /*#undef I_SYS_NDIR /**/ | |
789 | /*#undef I_MY_DIR /**/ | |
790 | /*#undef DIRNAMLEN /**/ | |
791 | ||
792 | /* MYMALLOC | |
793 | * This symbol, if defined, indicates that we're using our own malloc. | |
794 | */ | |
795 | /* MALLOCPTRTYPE | |
796 | * This symbol defines the kind of ptr returned by malloc and realloc. | |
797 | */ | |
798 | /*#undef MYMALLOC /**/ | |
799 | ||
800 | #define MALLOCPTRTYPE void /**/ | |
801 | ||
802 | ||
803 | /* RANDBITS | |
804 | * This symbol contains the number of bits of random number the rand() | |
805 | * function produces. Usual values are 15, 16, and 31. | |
806 | */ | |
807 | #define RANDBITS 31 /**/ | |
808 | ||
809 | /* SCRIPTDIR | |
810 | * This symbol holds the name of the directory in which the user wants | |
811 | * to keep publicly executable scripts for the package in question. It | |
812 | * is often a directory that is mounted across diverse architectures. | |
813 | */ | |
814 | #define SCRIPTDIR "/usr/contrib/bin" /**/ | |
815 | ||
816 | /* SIG_NAME | |
817 | * This symbol contains an list of signal names in order. | |
818 | */ | |
819 | #define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","ABRT","EMT","FPE","KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM","URG","STOP","TSTP","CONT","CHLD","TTIN","TTOU","IO","XCPU","XFSZ","VTALRM","PROF","WINCH","INFO","USR1","USR2" /**/ | |
820 | ||
821 | /* STDCHAR | |
822 | * This symbol is defined to be the type of char used in stdio.h. | |
823 | * It has the values "unsigned char" or "char". | |
824 | */ | |
825 | #define STDCHAR char /**/ | |
826 | ||
827 | /* UIDTYPE | |
828 | * This symbol has a value like uid_t, int, ushort, or whatever type is | |
829 | * used to declare user ids in the kernel. | |
830 | */ | |
831 | #define UIDTYPE uid_t /**/ | |
832 | ||
833 | /* VOIDHAVE | |
834 | * This symbol indicates how much support of the void type is given by this | |
835 | * compiler. What various bits mean: | |
836 | * | |
837 | * 1 = supports declaration of void | |
838 | * 2 = supports arrays of pointers to functions returning void | |
839 | * 4 = supports comparisons between pointers to void functions and | |
840 | * addresses of void functions | |
841 | * | |
842 | * The package designer should define VOIDWANT to indicate the requirements | |
843 | * of the package. This can be done either by #defining VOIDWANT before | |
844 | * including config.h, or by defining voidwant in Myinit.U. If the level | |
845 | * of void support necessary is not present, config.h defines void to "int", | |
846 | * VOID to the empty string, and VOIDP to "char *". | |
847 | */ | |
848 | /* void | |
849 | * This symbol is used for void casts. On implementations which support | |
850 | * void appropriately, its value is "void". Otherwise, its value maps | |
851 | * to "int". | |
852 | */ | |
853 | /* VOID | |
854 | * This symbol's value is "void" if the implementation supports void | |
855 | * appropriately. Otherwise, its value is the empty string. The primary | |
856 | * use of this symbol is in specifying void parameter lists for function | |
857 | * prototypes. | |
858 | */ | |
859 | /* VOIDP | |
860 | * This symbol is used for casting generic pointers. On implementations | |
861 | * which support void appropriately, its value is "void *". Otherwise, | |
862 | * its value is "char *". | |
863 | */ | |
864 | #ifndef VOIDWANT | |
865 | #define VOIDWANT 7 | |
866 | #endif | |
867 | #define VOIDHAVE 7 | |
868 | #if (VOIDHAVE & VOIDWANT) != VOIDWANT | |
869 | #define void int /* is void to be avoided? */ | |
870 | #define VOID | |
871 | #define VOIDP (char *) | |
872 | #define M_VOID /* Xenix strikes again */ | |
873 | #else | |
874 | #define VOID void | |
875 | #define VOIDP (void *) | |
876 | #endif | |
877 | ||
878 | /* PRIVLIB | |
879 | * This symbol contains the name of the private library for this package. | |
880 | * The library is private in the sense that it needn't be in anyone's | |
881 | * execution path, but it should be accessible by the world. The program | |
882 | * should be prepared to do ~ expansion. | |
883 | */ | |
884 | #define PRIVLIB "/usr/contrib/lib/perl" /**/ | |
885 | ||
886 | #endif |