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