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