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