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