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