Benchmark: using code refs
[p5sagit/p5-mst-13.2.git] / plan9 / config.plan9
CommitLineData
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 */
52#define BIN "/_P9P_OBJTYPE/bin" /* */
53
774d564b 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
396e9e6f 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 */
eeb010ab 126#undef CASTNEGFLOAT /**/
396e9e6f 127#if _P9P_OBJTYPE == 386
eeb010ab 128# define CASTFLAGS 3 /**/ /* config-skip */
396e9e6f 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 */
eeb010ab 282/* USE_BSD_GETPGRP:
283 * This symbol, if defined, indicates that getpgrp needs one
284 * arguments whereas USG one needs none.
285 */
396e9e6f 286#define HAS_GETPGRP /**/
eeb010ab 287#undef USE_BSD_GETPGRP /**/
396e9e6f 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
774d564b 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
396e9e6f 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
774d564b 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
396e9e6f 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
774d564b 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
396e9e6f 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 */
eeb010ab 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 */
396e9e6f 628#undef HAS_SETPGRP /**/
629#undef USE_BSDPGRP /**/
eeb010ab 630#undef USE_BSD_SETPGRP /**/
396e9e6f 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
774d564b 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
396e9e6f 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
bb14ff96 1366#define BIN_SH "/bin/rc" /* config-skip */
396e9e6f 1367
1368/* MYMALLOC:
1369 * This symbol, if defined, indicates that we're using our own malloc.
1370 */
1371#undef MYMALLOC /**/
1372
1373
bb14ff96 1374#undef VMS /* config-skip */
396e9e6f 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"
bb14ff96 1386#define ARCHLIB "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION"
396e9e6f 1387
774d564b 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
396e9e6f 1396/* BYTEORDER:
1397 * This symbol hold the hexadecimal constant defined in byteorder,
1398 * i.e. 0x1234 or 0x4321, etc...
1399 */
eeb010ab 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
396e9e6f 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:
82488b82 1514 * This symbol contains the value of sizeof(int) so that the C
1515 * preprocessor can make decisions based on it.
1516 */
1517/* LONGSIZE:
1518 * This symbol contains the value of sizeof(long) so that the C
1519 * preprocessor can make decisions based on it.
1520 */
1521/* SHORTSIZE:
1522 * This symbol contains the value of sizeof(short) so that the C
1523 * preprocessor can make decisions based on it.
396e9e6f 1524 */
1525#define INTSIZE 4 /**/
82488b82 1526#define LONGSIZE 4 /**/
1527#define SHORTSIZE 2 /**/
396e9e6f 1528
1529/* Free_t:
1530 * This variable contains the return type of free(). It is usually
1531 * void, but occasionally int.
1532 */
1533/* Malloc_t:
1534 * This symbol is the type of pointer returned by malloc and realloc.
1535 */
1536#define Malloc_t void * /**/
1537#define Free_t void /**/
1538
1539/* VAL_O_NONBLOCK:
1540 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1541 * non-blocking I/O for the file descriptor. Note that there is no way
1542 * back, i.e. you cannot turn it blocking again this way. If you wish to
1543 * alternatively switch between blocking and non-blocking, use the
1544 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1545 */
1546/* VAL_EAGAIN:
1547 * This symbol holds the errno error code set by read() when no data was
1548 * present on the non-blocking file descriptor.
1549 */
1550/* RD_NODATA:
1551 * This symbol holds the return code from read() when no data is present
1552 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1553 * not defined, then you can't distinguish between no data and EOF by
1554 * issuing a read(). You'll have to find another way to tell for sure!
1555 */
1556/* EOF_NONBLOCK:
1557 * This symbol, if defined, indicates to the C program that a read() on
1558 * a non-blocking file descriptor will return 0 on EOF, and not the value
1559 * held in RD_NODATA (-1 usually, in that case!).
1560 */
1561#define VAL_O_NONBLOCK O_NONBLOCK
1562#define VAL_EAGAIN EAGAIN
1563#define RD_NODATA -1
1564#define EOF_NONBLOCK
1565
1566/* OLDARCHLIB_EXP:
1567 * This symbol contains the ~name expanded version of OLDARCHLIB, to be
1568 * used in programs that are not prepared to deal with ~ expansion at
1569 * run-time.
1570 */
1571#undef OLDARCHLIB_EXP /**/
bb14ff96 1572#undef OLDARCHLIB /**/
396e9e6f 1573
1574/* PRIVLIB_EXP:
1575 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1576 * in programs that are not prepared to deal with ~ expansion at run-time.
1577 */
1578#define PRIVLIB_EXP "/sys/lib/perl" /* */
bb14ff96 1579#define PRIVLIB "/sys/lib/perl" /* */
396e9e6f 1580
1581/* SIG_NAME:
1582 * This symbol contains a list of signal names in order of
1583 * signal number. This is intended
1584 * to be used as a static array initialization, like this:
1585 * char *sig_name[] = { SIG_NAME };
1586 * The signals in the list are separated with commas, and each signal
1587 * is surrounded by double quotes. There is no leading SIG in the signal
1588 * name, i.e. SIGQUIT is known as "QUIT".
1589 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1590 * etc., where nn is the actual signal number (e.g. NUM37).
1591 * The signal number for sig_name[i] is stored in sig_num[i].
1592 * The last element is 0 to terminate the list with a NULL. This
1593 * corresponds to the 0 at the end of the sig_num list.
1594 */
1595/* SIG_NUM:
1596 * This symbol contains a list of signal numbers, in the same order as the
1597 * SIG_NAME list. It is suitable for static array initialization, as in:
1598 * int sig_num[] = { SIG_NUM };
1599 * The signals in the list are separated with commas, and the indices
1600 * within that list and the SIG_NAME list match, so it's easy to compute
1601 * the signal name from a number or vice versa at the price of a small
1602 * dynamic linear lookup.
1603 * Duplicates are allowed, but are moved to the end of the list.
1604 * The signal number corresponding to sig_name[i] is sig_number[i].
1605 * if (i < NSIG) then sig_number[i] == i.
1606 * The last element is 0, corresponding to the 0 at the end of
1607 * the sig_name list.
1608 */
1609#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 */
1610#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 */
1611
1612/* SITELIB_EXP:
1613 * This symbol contains the ~name expanded version of SITELIB, to be used
1614 * in programs that are not prepared to deal with ~ expansion at run-time.
1615 */
1616#define SITELIB_EXP "/sys/lib/perl/site_perl" /* */
bb14ff96 1617#define SITELIB "/sys/lib/perl/site_perl" /* */
396e9e6f 1618
1619/* SITEARCH_EXP:
1620 * This symbol contains the ~name expanded version of SITEARCH, to be used
1621 * in programs that are not prepared to deal with ~ expansion at run-time.
1622 */
1623#define SITEARCH_EXP "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION/site_perl" /* */
bb14ff96 1624#define SITEARCH "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION/site_perl" /* */
396e9e6f 1625
1626/* STARTPERL:
1627 * This variable contains the string to put in front of a perl
1628 * script to make sure (one hopes) that it runs with perl and not
1629 * some shell.
1630 */
1631#define STARTPERL "#!/bin/perl" /**/
1632
bb14ff96 1633/* SH_PATH:
1634 * Just here to shut up compiler warnings.
1635*/
1636#define SH_PATH "/bin/rc" /**/
1637
1638#define PERLIO_IS_STDIO /* config-skip */
1639#undef I_SFIO
1640
1641/* USE_PERLIO:
1642 * This symbol, if defined, indicates that the PerlIO abstraction should
1643 * be used throughout. If not defined, stdio should be
1644 * used in a fully backward compatible manner.
1645 */
1646#undef USE_PERLIO /**/
1647
1648/* USE_SFIO:
1649 * This symbol, if defined, indicates that sfio should
1650 * be used.
1651 */
1652#undef USE_SFIO /**/
1653
eeb010ab 1654/* HAS_GETPGID:
1655 * This symbol, if defined, indicates to the C program that
1656 * the getpgid(pid) function is available to get the
1657 * process group id.
1658 */
1659#undef HAS_GETPGID /**/
bb14ff96 1660
1661/* I_SYS_RESOURCE:
1662 * This symbol, if defined, indicates to the C program that it should
1663 * include <sys/resource.h>.
1664 */
1665#define I_SYS_RESOURCE /**/
1666
1667/* I_SYS_WAIT:
1668 * This symbol, if defined, indicates to the C program that it should
1669 * include <sys/wait.h>.
1670 */
1671#define I_SYS_WAIT /**/
1672
1673/* I_VALUES:
1674 * This symbol, if defined, indicates to the C program that it should
1675 * include <values.h> to get definition of symbols like MINFLOAT or
1676 * MAXLONG, i.e. machine dependant limitations. Probably, you
1677 * should use <limits.h> instead, if it is available.
1678 */
1679#undef I_VALUES /**/
1680
396e9e6f 1681/* VOIDFLAGS:
1682 * This symbol indicates how much support of the void type is given by this
1683 * compiler. What various bits mean:
1684 *
1685 * 1 = supports declaration of void
1686 * 2 = supports arrays of pointers to functions returning void
1687 * 4 = supports comparisons between pointers to void functions and
1688 * addresses of void functions
1689 * 8 = suports declaration of generic void pointers
1690 *
1691 * The package designer should define VOIDUSED to indicate the requirements
1692 * of the package. This can be done either by #defining VOIDUSED before
1693 * including config.h, or by defining defvoidused in Myinit.U. If the
1694 * latter approach is taken, only those flags will be tested. If the
1695 * level of void support necessary is not present, defines void to int.
1696 */
1697#ifndef VOIDUSED
1698#define VOIDUSED 15
1699#endif
1700#define VOIDFLAGS 15
1701#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1702#define void int /* is void to be avoided? */ /* config-skip */
1703#define M_VOID /* Xenix strikes again */ /* config-skip */
1704#endif
1705
1706#endif