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