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.
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
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.
14 * $Id: Config_h.U,v 3.0.1.4 1995/09/25 09:10:49 ram Exp $
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
26 * This macro catenates 2 tokens together.
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
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)
43 * This symbol contains the number of bytes required to align a
44 * double. Usual values are 2, 4 and 8.
46 #define MEM_ALIGNBYTES 8 /* config-skip */
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.
52 #define BIN "/_P9P_OBJTYPE/bin" /* */
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.
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 "".
66 #define CPPSTDIN "cpp"
70 * This symbol, if defined, indicates that the alarm routine is
73 #define HAS_ALARM /**/
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.
79 #undef HASATTRIBUTE /* config-skip*/
81 #define __attribute__(_arg_)
85 * This symbol is defined if the bcmp() routine is available to
86 * compare blocks of memory.
91 * This symbol is defined if the bcopy() routine is available to
92 * copy blocks of memory.
94 #define HAS_BCOPY /**/
97 * This symbol is defined if the bzero() routine is available to
98 * set a memory block to 0.
100 #define HAS_BZERO /**/
103 * This symbol is defined if the C compiler can cast negative
104 * or large floating point numbers to 32-bit ints.
109 * This symbol is defined if the C compiler can cast negative
110 * numbers to unsigned longs, ints and shorts.
113 * This symbol contains flags that say what difficulties the compiler
114 * has casting odd floating values to unsigned long:
116 * 1 = couldn't cast < 0
117 * 2 = couldn't cast >= 0x80000000
118 * 4 = couldn't cast in argument expression list
120 #define CASTNEGFLOAT /**/
121 #if _P9P_OBJTYPE == 386
122 # define CASTFLAGS 2 /**/ /* config-skip */
124 # define CASTFLAGS 0 /**/ /* config-skip */
128 * This symbol, if defined, indicates that the chown routine is
131 #undef HAS_CHOWN /**/
134 * This symbol, if defined, indicates that the chroot routine is
137 #undef HAS_CHROOT /**/
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.
143 #undef HAS_CHSIZE /**/
146 * This symbol, if defined, indicates that the closedir() routine
147 * does not return a value.
149 #define VOID_CLOSEDIR /**/
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.
157 #define HASCONST /**/
160 * This symbol, if defined, indicates that the crypt routine is available
161 * to encrypt passwords and the like.
163 /* #define HAS_CRYPT /**/
166 * This symbol, if defined, indicates that the cuserid routine is
167 * available to get character login names.
169 #define HAS_CUSERID /**/
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.
177 #undef HAS_DBL_DIG /* */
180 * This symbol, if defined, indicates that the difftime routine is
183 #define HAS_DIFFTIME /**/
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().
190 #undef HAS_DLERROR /**/
193 * This symbol, if defined, indicates that the dup2 routine is
194 * available to duplicate file descriptors.
196 #define HAS_DUP2 /**/
199 * This symbol, if defined, indicates that the fchmod routine is available
200 * to change mode of opened files. If unavailable, use chmod().
202 #undef HAS_FCHMOD /**/
205 * This symbol, if defined, indicates that the fchown routine is available
206 * to change ownership of opened files. If unavailable, use chown().
208 #undef HAS_FCHOWN /**/
211 * This symbol, if defined, indicates to the C program that
212 * the fcntl() function exists.
214 #define HAS_FCNTL /**/
217 * This symbol, if defined, indicates that the fgetpos routine is
218 * available to get the file position indicator, similar to ftell().
220 #define HAS_FGETPOS /**/
223 * This symbol, if defined, indicates that the system supports filenames
224 * longer than 14 characters.
226 #define FLEXFILENAMES /**/
229 * This symbol, if defined, indicates that the flock routine is
230 * available to do file locking.
232 #undef HAS_FLOCK /**/
235 * This symbol, if defined, indicates that the fork routine is
238 #define HAS_FORK /**/
241 * This symbol, if defined, indicates that the fsetpos routine is
242 * available to set the file position indicator, similar to fseek().
244 #define HAS_FSETPOS /**/
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.
251 #undef HAS_GETGROUPS /* config-skip */
254 * This symbol, if defined, indicates that the gethostent routine is
255 * available to lookup host names in some data base or other.
257 #undef HAS_GETHOSTENT /* config-skip */
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
264 #undef HAS_UNAME /**/
267 * This symbol, if defined, indicates that the getlogin routine is
268 * available to get the login name.
270 #define HAS_GETLOGIN /**/
273 * This symbol, if defined, indicates that the getpgrp routine is
274 * available to get the current process group.
276 #define HAS_GETPGRP /**/
279 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
280 * routine is available to get the current process group.
282 #undef HAS_GETPGRP2 /**/
285 * This symbol, if defined, indicates that the getppid routine is
286 * available to get the parent process ID.
288 #define HAS_GETPPID /**/
291 * This symbol, if defined, indicates that the getpriority routine is
292 * available to get a process's priority.
294 #undef HAS_GETPRIORITY /**/
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.
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.
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.
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.
316 #define HAS_HTONL /**/
318 #define HAS_HTONS /**/
320 #define HAS_NTOHL /**/
322 #define HAS_NTOHS /**/
325 * This manifest constant lets the C program know that isascii
328 #undef HAS_ISASCII /**/
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.
335 #undef HAS_KILLPG /**/
338 * This symbol, if defined, indicates that the link routine is
339 * available to create hard links.
341 #define HAS_LINK /**/
344 * This symbol, if defined, indicates that the localeconv routine is
345 * available for numeric and monetary formatting conventions.
347 #define HAS_LOCALECONV /**/
350 * This symbol, if defined, indicates that the lockf routine is
351 * available to do file locking.
353 #undef HAS_LOCKF /**/
356 * This symbol, if defined, indicates that the lstat routine is
357 * available to do file stats on symbolic links.
359 #define HAS_LSTAT /**/
362 * This symbol, if defined, indicates that the mblen routine is available
363 * to find the number of bytes in a multibye character.
365 #define HAS_MBLEN /**/
368 * This symbol, if defined, indicates that the mbstowcs routine is
369 * available to covert a multibyte string into a wide character string.
371 #define HAS_MBSTOWCS /**/
374 * This symbol, if defined, indicates that the mbtowc routine is available
375 * to covert a multibyte to a wide character.
377 #define HAS_MBTOWC /**/
380 * This symbol, if defined, indicates that the memcmp routine is available
381 * to compare blocks of memory.
383 #define HAS_MEMCMP /**/
386 * This symbol, if defined, indicates that the memcpy routine is available
387 * to copy blocks of memory.
389 #define HAS_MEMCPY /**/
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
397 #define HAS_MEMMOVE /**/
400 * This symbol, if defined, indicates that the memset routine is available
401 * to set blocks of memory.
403 #define HAS_MEMSET /**/
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
410 #define HAS_MKDIR /**/
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.
418 #define HAS_MKFIFO /**/
421 * This symbol, if defined, indicates that the mktime routine is
424 #define HAS_MKTIME /**/
427 * This symbol, if defined, indicates that the entire msg*(2) library is
428 * supported (IPC mechanism based on message queues).
433 * This symbol, if defined, indicates that the nice routine is
439 * This manifest constant lets the C program know that the three
440 * argument form of open(2) is available.
442 #define HAS_OPEN3 /**/
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.
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.
454 #define HAS_PATHCONF /**/
455 #define HAS_FPATHCONF /**/
458 * This symbol, if defined, indicates that the pause routine is
459 * available to suspend a process until a signal is received.
461 #define HAS_PAUSE /**/
464 * This symbol, if defined, indicates that the pipe routine is
465 * available to create an inter-process channel.
467 #define HAS_PIPE /**/
470 * This symbol, if defined, indicates that the poll routine is
471 * available to poll active file descriptors.
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.
480 #define HAS_READDIR /**/
483 * This symbol, if defined, indicates that the seekdir routine is
484 * available. You may have to include <dirent.h>. See I_DIRENT.
486 #undef HAS_SEEKDIR /**/
489 * This symbol, if defined, indicates that the telldir routine is
490 * available. You may have to include <dirent.h>. See I_DIRENT.
492 #undef HAS_TELLDIR /**/
495 * This symbol, if defined, indicates that the rewinddir routine is
496 * available. You may have to include <dirent.h>. See I_DIRENT.
498 #define HAS_REWINDDIR /**/
501 * This symbol, if defined, indicates that the readlink routine is
502 * available to read the value of a symbolic link.
504 #define HAS_READLINK /**/
507 * This symbol, if defined, indicates that the rename routine is available
508 * to rename files. Otherwise you should do the unlink(), link(), unlink()
511 #define HAS_RENAME /**/
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.
518 #define HAS_RMDIR /**/
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
526 #undef HAS_SAFE_BCOPY /**/
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
534 #undef HAS_SAFE_MEMCPY /**/
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.
541 #define HAS_SELECT /* config-skip */
544 * This symbol, if defined, indicates that the entire sem*(2) library is
550 * This symbol, if defined, indicates that the setegid routine is available
551 * to change the effective gid of the current program.
553 #undef HAS_SETEGID /**/
556 * This symbol, if defined, indicates that the seteuid routine is available
557 * to change the effective uid of the current program.
559 #undef HAS_SETEUID /**/
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.
566 #undef HAS_SETLINEBUF /**/
569 * This symbol, if defined, indicates that the setlocale routine is
570 * available to handle locale-specific ctype implementations.
572 #define HAS_SETLOCALE /**/
575 * This symbol, if defined, indicates that the setpgid routine is
576 * available to set process group ID.
578 #define HAS_SETPGID /**/
581 * This symbol, if defined, indicates that the setpgrp routine is
582 * available to set the current process group.
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().
589 #undef HAS_SETPGRP /**/
590 #undef USE_BSDPGRP /**/
593 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
594 * routine is available to set the current process group.
596 #undef HAS_SETPGRP2 /**/
599 * This symbol, if defined, indicates that the setpriority routine is
600 * available to set a process's priority.
602 #undef HAS_SETPRIORITY /**/
605 * This symbol, if defined, indicates that the setregid routine is
606 * available to change the real and effective gid of the current
610 * This symbol, if defined, indicates that the setresgid routine is
611 * available to change the real, effective and saved gid of the current
614 #undef HAS_SETREGID /**/
615 #undef HAS_SETRESGID /**/
618 * This symbol, if defined, indicates that the setreuid routine is
619 * available to change the real and effective uid of the current
623 * This symbol, if defined, indicates that the setresuid routine is
624 * available to change the real, effective and saved uid of the current
627 #undef HAS_SETREUID /**/
628 #undef HAS_SETRESUID /**/
631 * This symbol, if defined, indicates that the setrgid routine is available
632 * to change the real gid of the current program.
634 #undef HAS_SETRGID /**/
637 * This symbol, if defined, indicates that the setruid routine is available
638 * to change the real uid of the current program.
640 #undef HAS_SETRUID /**/
643 * This symbol, if defined, indicates that the setsid routine is
644 * available to set the process group ID.
646 #define HAS_SETSID /**/
649 * This symbol, if defined, indicates that the entire shm*(2) library is
655 * This symbol holds the return type of the shmat() system call.
656 * Usually set to 'void *' or 'char *'.
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.
665 #undef Shmat_t /* config-skip */
666 #undef HAS_SHMAT_PROTOTYPE /**/
669 * This symbol, if defined, indicates that Vr4's sigaction() routine
672 #define HAS_SIGACTION /**/
675 * This symbol, if defined, indicates that the BSD socket interface is
679 * This symbol, if defined, indicates that the BSD socketpair() call is
682 #define HAS_SOCKET /**/
683 #define HAS_SOCKETPAIR /**/
686 * This symbol is defined if this system has a stat structure declaring
687 * st_blksize and st_blocks.
689 #undef USE_STAT_BLOCKS /**/
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.
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.
707 #undef USE_STDIO_PTR /**/
708 #undef USE_STDIO_BASE /**/
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.
716 * This symbol is defined if the FILE_ptr macro can be used as an
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.
725 * This symbol is defined if the FILE_cnt macro can be used as an
729 #define FILE_ptr(fp) ((fp)->_ptr)
730 #define STDIO_PTR_LVALUE /**/
731 #define FILE_cnt(fp) ((fp)->_cnt)
732 #define STDIO_CNT_LVALUE /**/
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.
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.
746 #ifdef USE_STDIO_BASE
747 #define FILE_base(fp) ((fp)->_base)
748 #define FILE_bufsiz(fp) ((fp)->_cnt + (fp)->_ptr - (fp)->_base)
752 * This symbol is defined to indicate that the strchr()/strrchr()
753 * functions are available for string searching. If not, try the
754 * index()/rindex() pair.
757 * This symbol is defined to indicate that the index()/rindex()
758 * functions are available for string searching.
760 #define HAS_STRCHR /**/
761 #undef HAS_INDEX /**/
764 * This symbol, if defined, indicates that the strcoll routine is
765 * available to compare strings using collating information.
767 #define HAS_STRCOLL /**/
770 * This symbol, if defined, indicates that this C compiler knows how
771 * to copy structures. If undefined, you'll need to use a block copy
772 * routine of some sort instead.
774 #define USE_STRUCT_COPY /**/
777 * This symbol, if defined, indicates that the strerror routine is
778 * available to translate error numbers to strings. See the writeup
779 * of Strerror() in this file before you try to define your own.
782 * This symbol, if defined, indicates that the sys_errlist array is
783 * available to translate error numbers to strings. The extern int
784 * sys_nerr gives the size of that table.
787 * This preprocessor symbol is defined as a macro if strerror() is
788 * not available to translate error numbers to strings but sys_errlist[]
791 #define HAS_STRERROR /**/
792 #define HAS_SYS_ERRLIST /**/
793 #define Strerror(e) strerror(e)
796 * This symbol, if defined, indicates that the strxfrm() routine is
797 * available to transform strings.
799 #define HAS_STRXFRM /**/
802 * This symbol, if defined, indicates that the symlink routine is available
803 * to create symbolic links.
805 #define HAS_SYMLINK /**/
808 * This symbol, if defined, indicates that the syscall routine is
809 * available to call arbitrary system calls. If undefined, that's tough.
811 #undef HAS_SYSCALL /**/
814 * This symbol, if defined, indicates that sysconf() is available
815 * to determine system related limits and options.
817 #define HAS_SYSCONF /**/
820 * This symbol, if defined, indicates that the system routine is
821 * available to issue a shell command.
823 #define HAS_SYSTEM /**/
826 * This symbol, if defined, indicates that the tcgetpgrp routine is
827 * available to get foreground process group ID.
829 #define HAS_TCGETPGRP /**/
832 * This symbol, if defined, indicates that the tcsetpgrp routine is
833 * available to set foreground process group ID.
835 #define HAS_TCSETPGRP /**/
838 * This symbol holds the type returned by time(). It can be long,
839 * or time_t on BSD sites (in which case <sys/types.h> should be
842 #define Time_t time_t /* Time type */
845 * This symbol, if defined, indicates that the times() routine exists.
846 * Note that this became obsolete on some systems (SUNOS), which now
847 * use getrusage(). It may be necessary to include <sys/times.h>.
849 #define HAS_TIMES /**/
852 * This symbol, if defined, indicates that the truncate routine is
853 * available to truncate files.
855 #undef HAS_TRUNCATE /**/
858 * This symbol, if defined, indicates that the tzname[] array is
859 * available to access timezone names.
861 #define HAS_TZNAME /**/
864 * This symbol, if defined, indicates that the umask routine is
865 * available to set and get the value of the file creation mask.
867 #define HAS_UMASK /**/
870 * This symbol, if defined, indicates that vfork() exists.
872 #undef HAS_VFORK /**/
875 * This symbol's value is either "void" or "int", corresponding to the
876 * appropriate return type of a signal handler. Thus, you can declare
877 * a signal handler using "Signal_t (*handler)()", and define the
878 * handler using "Signal_t handler(sig)".
880 #define Signal_t void /* Signal handler's return type */
883 * This symbol, if defined, indicates that this C compiler knows about
884 * the volatile declaration.
886 #define HASVOLATILE /**/
888 #define volatile /* config-skip */
892 * This symbol, if defined, indicates that the vprintf routine is available
893 * to printf with a pointer to an argument list. If unavailable, you
894 * may need to write your own, probably in terms of _doprnt().
896 /* USE_CHAR_VSPRINTF:
897 * This symbol is defined if this system has vsprintf() returning type
898 * (char*). The trend seems to be to declare it as "int vsprintf()". It
899 * is up to the package author to declare vsprintf correctly based on the
902 #define HAS_VPRINTF /**/
903 #define USE_CHAR_VSPRINTF /**/
906 * This symbol, if defined, indicates that wait4() exists.
908 #undef HAS_WAIT4 /**/
911 * This symbol, if defined, indicates that the waitpid routine is
912 * available to wait for child process.
914 #undef HAS_WAITPID /**/
917 * This symbol, if defined, indicates that the wcstombs routine is
918 * available to convert wide character strings to multibyte strings.
920 #define HAS_WCSTOMBS /**/
923 * This symbol, if defined, indicates that the wctomb routine is available
924 * to covert a wide character to a multibyte.
926 #define HAS_WCTOMB /**/
929 * This symbol holds the type used to declare file positions in libc.
930 * It can be fpos_t, long, uint, etc... It may be necessary to include
931 * <sys/types.h> to get any typedef'ed information.
933 #define Fpos_t fpos_t /* File position type */
936 * This symbol holds the return type of getgid() and the type of
937 * argument to setrgid() and related functions. Typically,
938 * it is the type of group ids in the kernel. It can be int, ushort,
939 * uid_t, etc... It may be necessary to include <sys/types.h> to get
940 * any typedef'ed information.
942 #define Gid_t gid_t /* config-skip */
945 * This symbol holds the type used for the second argument to
946 * getgroups(). Usually, this is the same of gidtype, but
947 * sometimes it isn't. It can be int, ushort, uid_t, etc...
948 * It may be necessary to include <sys/types.h> to get any
949 * typedef'ed information. This is only required if you have
953 #define Groups_t gid_t /* Type for 2nd arg to getgroups() */
957 * This symbol contains the type of the prefix structure element
958 * in the <db.h> header file. In older versions of DB, it was
959 * int, while in newer ones it is u_int32_t.
962 * This symbol contains the type of the prefix structure element
963 * in the <db.h> header file. In older versions of DB, it was
964 * int, while in newer ones it is size_t.
966 #define DB_Hash_t int /**/
967 #define DB_Prefix_t int /**/
970 * This symbol, if defined, indicates to the C program that it should
971 * include <dirent.h>. Using this symbol also triggers the definition
972 * of the Direntry_t define which ends up being 'struct dirent' or
973 * 'struct direct' depending on the availability of <dirent.h>.
976 * This symbol, if defined, indicates to the C program that the length
977 * of directory entry names is provided by a d_namlen field. Otherwise
978 * you need to do strlen() on the d_name field.
981 * This symbol is set to 'struct direct' or 'struct dirent' depending on
982 * whether dirent is available or not. You should use this pseudo type to
983 * portably declare your directory entries.
985 #define I_DIRENT /**/
986 #undef DIRNAMLEN /**/
987 #define Direntry_t struct dirent
990 * This symbol, if defined, indicates that <dlfcn.h> exists and should
996 * This manifest constant tells the C program to include <fcntl.h>.
1001 * This symbol, if defined, indicates to the C program that it should
1002 * include <float.h> to get definition of symbols like DBL_MAX or
1003 * DBL_MIN, i.e. machine dependent floating point values.
1005 #define I_FLOAT /**/
1008 * This symbol, if defined, indicates to the C program that it should
1014 * This symbol, if defined, indicates to the C program that it should
1015 * include <limits.h> to get definition of symbols like WORD_BIT or
1016 * LONG_MAX, i.e. machine dependant limitations.
1018 #define I_LIMITS /**/
1021 * This symbol, if defined, indicates to the C program that it should
1027 * This symbol, if defined, indicates to the C program that it should
1028 * include <memory.h>.
1030 #undef I_MEMORY /**/
1033 * This symbol, if defined, indicates that <ndbm.h> exists and should
1039 * This symbol, if defined, indicates that <net/errno.h> exists and
1040 * should be included.
1042 #undef I_NET_ERRNO /* config-skip */
1045 * This symbol, if defined, indicates to the C program that it should
1046 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1048 #define I_NETINET_IN /* config-skip */
1051 * This symbol, if defined, indicates to the C program that it should
1055 * This symbol, if defined, indicates to the C program that struct passwd
1056 * contains pw_quota.
1059 * This symbol, if defined, indicates to the C program that struct passwd
1063 * This symbol, if defined, indicates to the C program that struct passwd
1064 * contains pw_change.
1067 * This symbol, if defined, indicates to the C program that struct passwd
1068 * contains pw_class.
1071 * This symbol, if defined, indicates to the C program that struct passwd
1072 * contains pw_expire.
1075 * This symbol, if defined, indicates to the C program that struct passwd
1076 * contains pw_comment.
1081 #undef PWCHANGE /**/
1083 #undef PWEXPIRE /**/
1084 #undef PWCOMMENT /**/
1087 * This symbol, if defined, indicates that <stddef.h> exists and should
1090 #define I_STDDEF /**/
1093 * This symbol, if defined, indicates that <stdlib.h> exists and should
1096 #define I_STDLIB /**/
1099 * This symbol, if defined, indicates to the C program that it should
1100 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1102 #define I_STRING /**/
1105 * This symbol, if defined, indicates to the C program that it should
1106 * include <sys/dir.h>.
1108 #undef I_SYS_DIR /**/
1111 * This symbol, if defined, indicates to the C program that it should
1112 * include <sys/file.h> to get definition of R_OK and friends.
1114 #undef I_SYS_FILE /**/
1117 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1118 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1120 #define I_SYS_IOCTL /**/
1123 * This symbol, if defined, indicates to the C program that it should
1124 * include <sys/ndir.h>.
1126 #undef I_SYS_NDIR /**/
1129 * This symbol, if defined, indicates to the C program that it should
1130 * include <sys/param.h>.
1132 #define I_SYS_PARAM /**/
1134 /* Plan 9: file position in Plan 9 is <select.h> */
1136 * This symbol, if defined, indicates to the C program that it should
1137 * include <sys/select.h> in order to get definition of struct timeval.
1139 #undef I_SYS_SELECT /**/
1142 * This symbol, if defined, indicates to the C program that it should
1143 * include <sys/times.h>.
1145 #define I_SYS_TIMES /**/
1148 * This symbol, if defined, indicates to the C program that it should
1149 * include <sys/types.h>.
1151 #define I_SYS_TYPES /**/
1154 * This symbol, if defined, indicates to the C program that it should
1155 * include <sys/un.h> to get UNIX domain socket definitions.
1157 #define I_SYS_UN /**/
1160 * This symbol, if defined, indicates that the program should include
1161 * <termio.h> rather than <sgtty.h>. There are also differences in
1162 * the ioctl() calls that depend on the value of this symbol.
1165 * This symbol, if defined, indicates that the program should include
1166 * the POSIX termios.h rather than sgtty.h or termio.h.
1167 * There are also differences in the ioctl() calls that depend on the
1168 * value of this symbol.
1171 * This symbol, if defined, indicates that the program should include
1172 * <sgtty.h> rather than <termio.h>. There are also differences in
1173 * the ioctl() calls that depend on the value of this symbol.
1175 #undef I_TERMIO /**/
1176 #define I_TERMIOS /**/
1179 /* Plan 9: P9 has both <time.h> and <sys/time.h> */
1181 * This symbol, if defined, indicates to the C program that it should
1185 * This symbol, if defined, indicates to the C program that it should
1186 * include <sys/time.h>.
1188 /* I_SYS_TIME_KERNEL:
1189 * This symbol, if defined, indicates to the C program that it should
1190 * include <sys/time.h> with KERNEL defined.
1193 #define I_SYS_TIME /**/
1194 #undef I_SYS_TIME_KERNEL /**/
1197 * This symbol, if defined, indicates to the C program that it should
1198 * include <unistd.h>.
1200 #define I_UNISTD /**/
1203 * This symbol, if defined, indicates to the C program that it should
1204 * include <utime.h>.
1206 #define I_UTIME /**/
1209 * This symbol, if defined, indicates to the C program that it should
1215 * This symbol holds the type used to declare offsets in the kernel.
1216 * It can be int, long, off_t, etc... It may be necessary to include
1217 * <sys/types.h> to get any typedef'ed information.
1219 #define Off_t off_t /* <offset> type */
1222 * This symbol holds the type used to declare file modes
1223 * for systems calls. It is usually mode_t, but may be
1224 * int or unsigned short. It may be necessary to include <sys/types.h>
1225 * to get any typedef'ed information.
1227 #define Mode_t mode_t /* file mode parameter for system calls */
1230 * If defined, this macro indicates that the C compiler can handle
1231 * function prototypes.
1234 * This macro is used to declare function parameters for folks who want
1235 * to make declarations with prototypes using a different style than
1236 * the above macros. Use double parentheses. For example:
1238 * int main _((int argc, char *argv[]));
1240 #define CAN_PROTOTYPE /**/
1241 #ifdef CAN_PROTOTYPE
1242 #define _(args) args /* config-skip */
1244 #define _(args) () /* config-skip */
1248 * This symbol contains the number of bits of random number the rand()
1249 * function produces. Usual values are 15, 16, and 31.
1251 #define RANDBITS 15 /**/
1254 * This symbol holds the name of the directory in which the user wants
1255 * to put publicly executable scripts for the package in question. It
1256 * is often a directory that is mounted across diverse architectures.
1257 * Programs must be prepared to deal with ~name expansion.
1259 #define SCRIPTDIR "/bin"
1262 * This symbol holds the type used for the 2nd, 3rd, and 4th
1263 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1264 * is defined, and 'int *' otherwise. This is only useful if you
1265 * have select(), of course.
1267 #define Select_fd_set_t fd_set * /**/
1270 * This symbol holds the type used to declare length parameters
1271 * for string functions. It is usually size_t, but may be
1272 * unsigned long, int, etc. It may be necessary to include
1273 * <sys/types.h> to get any typedef'ed information.
1275 #define Size_t size_t /* length paramater for string functions */
1278 * This symbol holds the type used by functions that return
1279 * a count of bytes or an error condition. It must be a signed type.
1280 * It is usually ssize_t, but may be long or int, etc.
1281 * It may be necessary to include <sys/types.h> or <unistd.h>
1282 * to get any typedef'ed information.
1283 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1285 #define SSize_t ssize_t /* signed count of bytes */
1288 * This symbol is defined to be the type of char used in stdio.h.
1289 * It has the values "unsigned char" or "char".
1291 #define STDCHAR char /**/
1294 * This symbol holds the type used to declare user ids in the kernel.
1295 * It can be int, ushort, uid_t, etc... It may be necessary to include
1296 * <sys/types.h> to get any typedef'ed information.
1298 #define Uid_t uid_t /* UID type */
1301 This symbol, if defined, indicates that the program is running under the
1302 * Plan 9 operating system.
1306 #define OSNAME "plan9"
1308 #define BIN_SH "/bin/rc"
1311 * This symbol, if defined, indicates that we're using our own malloc.
1313 #undef MYMALLOC /**/
1319 * This symbol holds the complete pathname to the sed program.
1321 #define LOC_SED "/bin/sed" /**/
1324 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1325 * in programs that are not prepared to deal with ~ expansion at run-time.
1327 #define ARCHLIB_EXP "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION"
1330 * This symbol hold the hexadecimal constant defined in byteorder,
1331 * i.e. 0x1234 or 0x4321, etc...
1333 #define BYTEORDER 0x1234 /* large digits for MSB */
1336 * This symbol, if defined, indicates that the C-shell exists.
1337 * If defined, contains the full pathname of csh.
1341 /* DLSYM_NEEDS_UNDERSCORE:
1342 * This symbol, if defined, indicates that we need to prepend an
1343 * underscore to the symbol name before calling dlsym(). This only
1344 * makes sense if you *have* dlsym, which we will presume is the
1345 * case if you're using dl_dlopen.xs.
1347 #undef DLSYM_NEEDS_UNDERSCORE /* */
1349 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
1350 * This symbol, if defined, indicates that the bug that prevents
1351 * setuid scripts from being secure is not present in this kernel.
1354 * This symbol, if defined, indicates that the C program should
1355 * check the script that it is executing for setuid/setgid bits, and
1356 * attempt to emulate setuid/setgid on systems that have disabled
1357 * setuid #! scripts because the kernel can't do it securely.
1358 * It is up to the package designer to make sure that this emulation
1359 * is done securely. Among other things, it should do an fstat on
1360 * the script it just opened to make sure it really is a setuid/setgid
1361 * script, it should make sure the arguments passed correspond exactly
1362 * to the argument on the #! line, and it should not trust any
1363 * subprocesses to which it must pass the filename rather than the
1364 * file descriptor of the script to be executed.
1366 #define SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1370 * This preprocessor macro is defined to convert a floating point
1371 * number to a string without a trailing decimal point. This
1372 * emulates the behavior of sprintf("%g"), but is sometimes much more
1373 * efficient. If gconvert() is not available, but gcvt() drops the
1374 * trailing decimal point, then gcvt() is used. If all else fails,
1375 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1376 * macro are: value, number of digits, whether trailing zeros should
1377 * be retained, and the output buffer.
1378 * Possible values are:
1379 * d_Gconvert='gconvert((x),(n),(t),(b))'
1380 * d_Gconvert='gcvt((x),(n),(b))'
1381 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1382 * The last two assume trailing zeros should not be kept.
1384 #define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x))
1387 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1390 * This macro is used in the same way as sigsetjmp(), but will invoke
1391 * traditional setjmp() if sigsetjmp isn't available.
1394 * This macro is used in the same way as siglongjmp(), but will invoke
1395 * traditional longjmp() if siglongjmp isn't available.
1397 #define HAS_SIGSETJMP /**/ /* config-skip */
1398 #define Sigjmp_buf sigjmp_buf /* config-skip */
1399 #define Sigsetjmp(buf,save_mask) sigsetjmp(buf,save_mask) /* config-skip */
1400 #define Siglongjmp(buf,retval) siglongjmp(buf,retval) /* config-skip */
1402 /* USE_DYNAMIC_LOADING:
1403 * This symbol, if defined, indicates that dynamic loading of
1404 * some sort is available.
1406 #undef USE_DYNAMIC_LOADING /**/
1409 * This symbol, if defined, indicates that <dbm.h> exists and should
1413 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
1414 * should be included.
1417 #undef I_RPCSVC_DBM /**/
1420 * This symbol, if defined, indicates to the C program that it should
1421 * include <locale.h>.
1423 #define I_LOCALE /**/
1426 * This symbol, if defined, indicates to the C program that it should
1427 * include <sys/stat.h>.
1429 #define I_SYS_STAT /**/
1432 * This symbol, if defined, indicates that <stdarg.h> exists and should
1436 * This symbol, if defined, indicates to the C program that it should
1437 * include <varargs.h>.
1439 #define I_STDARG /**/
1440 #undef I_VARARGS /**/
1443 * This symbol contains the size of an int, so that the C preprocessor
1444 * can make decisions based on it.
1446 #define INTSIZE 4 /**/
1449 * This variable contains the return type of free(). It is usually
1450 * void, but occasionally int.
1453 * This symbol is the type of pointer returned by malloc and realloc.
1455 #define Malloc_t void * /**/
1456 #define Free_t void /**/
1459 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1460 * non-blocking I/O for the file descriptor. Note that there is no way
1461 * back, i.e. you cannot turn it blocking again this way. If you wish to
1462 * alternatively switch between blocking and non-blocking, use the
1463 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1466 * This symbol holds the errno error code set by read() when no data was
1467 * present on the non-blocking file descriptor.
1470 * This symbol holds the return code from read() when no data is present
1471 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1472 * not defined, then you can't distinguish between no data and EOF by
1473 * issuing a read(). You'll have to find another way to tell for sure!
1476 * This symbol, if defined, indicates to the C program that a read() on
1477 * a non-blocking file descriptor will return 0 on EOF, and not the value
1478 * held in RD_NODATA (-1 usually, in that case!).
1480 #define VAL_O_NONBLOCK O_NONBLOCK
1481 #define VAL_EAGAIN EAGAIN
1482 #define RD_NODATA -1
1483 #define EOF_NONBLOCK
1486 * This symbol contains the ~name expanded version of OLDARCHLIB, to be
1487 * used in programs that are not prepared to deal with ~ expansion at
1490 #undef OLDARCHLIB_EXP /**/
1493 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1494 * in programs that are not prepared to deal with ~ expansion at run-time.
1496 #define PRIVLIB_EXP "/sys/lib/perl" /* */
1499 * This symbol contains a list of signal names in order of
1500 * signal number. This is intended
1501 * to be used as a static array initialization, like this:
1502 * char *sig_name[] = { SIG_NAME };
1503 * The signals in the list are separated with commas, and each signal
1504 * is surrounded by double quotes. There is no leading SIG in the signal
1505 * name, i.e. SIGQUIT is known as "QUIT".
1506 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1507 * etc., where nn is the actual signal number (e.g. NUM37).
1508 * The signal number for sig_name[i] is stored in sig_num[i].
1509 * The last element is 0 to terminate the list with a NULL. This
1510 * corresponds to the 0 at the end of the sig_num list.
1513 * This symbol contains a list of signal numbers, in the same order as the
1514 * SIG_NAME list. It is suitable for static array initialization, as in:
1515 * int sig_num[] = { SIG_NUM };
1516 * The signals in the list are separated with commas, and the indices
1517 * within that list and the SIG_NAME list match, so it's easy to compute
1518 * the signal name from a number or vice versa at the price of a small
1519 * dynamic linear lookup.
1520 * Duplicates are allowed, but are moved to the end of the list.
1521 * The signal number corresponding to sig_name[i] is sig_number[i].
1522 * if (i < NSIG) then sig_number[i] == i.
1523 * The last element is 0, corresponding to the 0 at the end of
1524 * the sig_name list.
1526 #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 */
1527 #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 */
1530 * This symbol contains the ~name expanded version of SITELIB, to be used
1531 * in programs that are not prepared to deal with ~ expansion at run-time.
1533 #define SITELIB_EXP "/sys/lib/perl/site_perl" /* */
1536 * This symbol contains the ~name expanded version of SITEARCH, to be used
1537 * in programs that are not prepared to deal with ~ expansion at run-time.
1539 #define SITEARCH_EXP "/_P9P_OBJTYPE/lib/perl/_P9P_VERSION/site_perl" /* */
1542 * This variable contains the string to put in front of a perl
1543 * script to make sure (one hopes) that it runs with perl and not
1546 #define STARTPERL "#!/bin/perl" /**/
1549 * This symbol indicates how much support of the void type is given by this
1550 * compiler. What various bits mean:
1552 * 1 = supports declaration of void
1553 * 2 = supports arrays of pointers to functions returning void
1554 * 4 = supports comparisons between pointers to void functions and
1555 * addresses of void functions
1556 * 8 = suports declaration of generic void pointers
1558 * The package designer should define VOIDUSED to indicate the requirements
1559 * of the package. This can be done either by #defining VOIDUSED before
1560 * including config.h, or by defining defvoidused in Myinit.U. If the
1561 * latter approach is taken, only those flags will be tested. If the
1562 * level of void support necessary is not present, defines void to int.
1567 #define VOIDFLAGS 15
1568 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1569 #define void int /* is void to be avoided? */ /* config-skip */
1570 #define M_VOID /* Xenix strikes again */ /* config-skip */