[win32] integrate mainline
[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
09b7f37c 11 * Version: 5.005
a0d0e21e 12 */
2304df62 13
6ee623d5 14/* Configuration time: 4-Apr-1998 21:30
09b7f37c 15 * Configured by: Charles Bailey bailey@newman.upenn.edu
a0d0e21e 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
740ce14c 61/* ARCHLIB:
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
740ce14c 66 * prepared to deal with filename expansion. If ARCHLIB is the
67 * same as PRIVLIB, it is not defined, since presumably the
68 * program already searches PRIVLIB.
69 */
70/* ARCHLIB_EXP:
71 * This symbol contains the ~name expanded version of ARCHLIB, to be used
72 * in programs that are not prepared to deal with ~ expansion at run-time.
a0d0e21e 73 */
30fb25ec 74/* ==> NOTE <==
75 * This value is automatically updated by FndVers.Com
76 * when Perl is built. Please do not change it by hand; make
77 * any changes to FndVers.Com instead.
78 */
6ee623d5 79#define ARCHLIB_EXP "/perl_root/lib/VMS_VAX/5_00464" /**/
fc1ce8cc 80
61bb5906 81
740ce14c 82#define ARCHLIB ARCHLIB_EXP /*config-skip*/
a0d0e21e 83
774d564b 84/* ARCHNAME:
85 * This symbol holds a string representing the architecture name.
86 * It may be used to construct an architecture-dependant pathname
87 * where library files may be held under a private library, for
88 * instance.
89 */
90#define ARCHNAME "VMS_VAX" /**/
91
2304df62 92/* CPPSTDIN:
79072805 93 * This symbol contains the first part of the string which will invoke
94 * the C preprocessor on the standard input and produce to standard
2304df62 95 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
96 * call a wrapper. See CPPRUN.
79072805 97 */
2304df62 98/* CPPMINUS:
79072805 99 * This symbol contains the second part of the string which will invoke
100 * the C preprocessor on the standard input and produce to standard
101 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
102 * to specify standard input, otherwise the value is "".
103 */
a0d0e21e 104#define CPPSTDIN "cc/noobj/preprocess=sys$output sys$input"
79072805 105#define CPPMINUS ""
106
2304df62 107/* HAS_BCMP:
108 * This symbol is defined if the bcmp() routine is available to
109 * compare blocks of memory.
79072805 110 */
84902520 111#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
112#define HAS_BCMP /**/
113#else
114#undef HAS_BCMP /*config-skip*/
115#endif
79072805 116
ff0cee69 117#include <string.h> /* Check whether new DECC has #defined bcopy and bzero */
2304df62 118/* HAS_BCOPY:
119 * This symbol is defined if the bcopy() routine is available to
120 * copy blocks of memory.
79072805 121 */
a0d0e21e 122#undef HAS_BCOPY /**/
ff0cee69 123#ifdef bcopy
124# define HAS_BCOPY /*config-skip*/
125#endif
79072805 126
2304df62 127/* HAS_BZERO:
128 * This symbol is defined if the bzero() routine is available to
129 * set a memory block to 0.
79072805 130 */
a0d0e21e 131#undef HAS_BZERO /**/
ff0cee69 132#ifdef bzero
133# define HAS_BZERO /*config-skip*/
134#endif
79072805 135
2304df62 136/* CASTNEGFLOAT:
137 * This symbol is defined if the C compiler can cast negative
138 * numbers to unsigned longs, ints and shorts.
79072805 139 */
2304df62 140/* CASTFLAGS:
79072805 141 * This symbol contains flags that say what difficulties the compiler
142 * has casting odd floating values to unsigned long:
2304df62 143 * 0 = ok
79072805 144 * 1 = couldn't cast < 0
145 * 2 = couldn't cast >= 0x80000000
146 */
2304df62 147#define CASTNEGFLOAT /**/
148#define CASTFLAGS 0 /**/
79072805 149
2304df62 150/* HAS_CHSIZE:
79072805 151 * This symbol, if defined, indicates that the chsize routine is available
152 * to truncate files. You might need a -lx to get this routine.
153 */
a0d0e21e 154#undef HAS_CHSIZE /**/
79072805 155
2304df62 156/* HASCONST:
157 * This symbol, if defined, indicates that this C compiler knows about
158 * the const type. There is no need to actually test for that symbol
159 * within your programs. The mere use of the "const" keyword will
160 * trigger the necessary tests.
161 */
a0d0e21e 162#define HASCONST /**/
2304df62 163
164/* HAS_CRYPT:
79072805 165 * This symbol, if defined, indicates that the crypt routine is available
166 * to encrypt passwords and the like.
167 */
c07a80fd 168#define HAS_CRYPT /**/
79072805 169
e518068a 170/* BYTEORDER:
171 * This symbol hold the hexadecimal constant defined in byteorder,
172 * i.e. 0x1234 or 0x4321, etc...
173 */
174#define BYTEORDER 0x1234 /* large digits for MSB */
175
2304df62 176/* CSH:
79072805 177 * This symbol, if defined, indicates that the C-shell exists.
178 * If defined, contains the full pathname of csh.
179 */
17f28c40 180#undef HAS_CSH /**/
a0d0e21e 181#undef CSH /**/
79072805 182
2304df62 183/* HAS_DUP2:
184 * This symbol, if defined, indicates that the dup2 routine is
185 * available to duplicate file descriptors.
79072805 186 */
2304df62 187#define HAS_DUP2 /**/
79072805 188
2304df62 189/* HAS_FCHMOD:
79072805 190 * This symbol, if defined, indicates that the fchmod routine is available
191 * to change mode of opened files. If unavailable, use chmod().
192 */
a0d0e21e 193#undef HAS_FCHMOD /**/
79072805 194
2304df62 195/* HAS_FCHOWN:
79072805 196 * This symbol, if defined, indicates that the fchown routine is available
197 * to change ownership of opened files. If unavailable, use chown().
198 */
a0d0e21e 199#undef HAS_FCHOWN /**/
79072805 200
2304df62 201/* HAS_FCNTL:
79072805 202 * This symbol, if defined, indicates to the C program that
203 * the fcntl() function exists.
204 */
a0d0e21e 205#undef HAS_FCNTL /**/
206
207/* HAS_FGETPOS:
208 * This symbol, if defined, indicates that the fgetpos routine is
209 * available to get the file position indicator, similar to ftell().
210 */
211#define HAS_FGETPOS /**/
79072805 212
2304df62 213/* FLEXFILENAMES:
79072805 214 * This symbol, if defined, indicates that the system supports filenames
215 * longer than 14 characters.
216 */
217#define FLEXFILENAMES /**/
218
2304df62 219/* HAS_FLOCK:
220 * This symbol, if defined, indicates that the flock routine is
79072805 221 * available to do file locking.
222 */
a0d0e21e 223#undef HAS_FLOCK /**/
224
225/* HAS_FSETPOS:
226 * This symbol, if defined, indicates that the fsetpos routine is
227 * available to set the file position indicator, similar to fseek().
228 */
229#define HAS_FSETPOS /**/
79072805 230
71be2cbc 231/* HAS_GETTIMEOFDAY:
232 * This symbol, if defined, indicates that the gettimeofday() system
233 * call is available for a sub-second accuracy clock. Usually, the file
234 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
235 * The type "Timeval" should be used to refer to "struct timeval".
236 */
84902520 237#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 238#define HAS_GETTIMEOFDAY /*config-skip*/
84902520 239#else
240#undef HAS_GETTIMEOFDAY /*config-skip*/
241#endif
71be2cbc 242#ifdef HAS_GETTIMEOFDAY
243# define Timeval struct timeval /*config-skip*/
244#endif
245
17f28c40 246/* HAS_LONG_DOUBLE:
247 * This symbol will be defined if the C compiler supports long
248 * doubles.
249 */
250/* LONG_DOUBLESIZE:
251 * This symbol contains the size of a long double, so that the
252 * C preprocessor can make decisions based on it. It is only
253 * defined if the system supports long doubles.
254 */
255#undef HAS_LONG_DOUBLE /**/
256#ifdef HAS_LONG_DOUBLE
257# define LONG_DOUBLESIZE 8 /**/
258#endif
259
6ee623d5 260/* LONGLONGSIZE:
261 * This symbol contains the size of a long long, so that the
262 * C preprocessor can make decisions based on it. It is only
263 * defined if the system supports long long.
264 */
265#undef HAS_LONG_LONG /**/
266#ifdef HAS_LONG_LONG
267#define LONGLONGSIZE 8 /**/
268#endif
269
17f28c40 270/* HAS_MKSTEMP:
271 * This symbol, if defined, indicates that the mkstemp routine is
272 * available to create and open a unique temporary file.
273 */
274#undef HAS_MKSTEMP /**/
275
2304df62 276/* HAS_GETGROUPS:
79072805 277 * This symbol, if defined, indicates that the getgroups() routine is
278 * available to get the list of process groups. If unavailable, multiple
279 * groups are probably not supported.
280 */
5cd24f17 281/* HAS_SETGROUPS:
282 * This symbol, if defined, indicates that the setgroups() routine is
283 * available to set the list of process groups. If unavailable, multiple
284 * groups are probably not supported.
285 */
a0d0e21e 286#undef HAS_GETGROUPS /**/
5cd24f17 287#undef HAS_SETGROUPS /**/
2304df62 288
289/* HAS_UNAME:
290 * This symbol, if defined, indicates that the C program may use the
291 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
292 * and PHOSTNAME.
293 */
84902520 294#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 295#define HAS_UNAME /*config-skip*/
84902520 296#else
297#undef HAS_UNAME /*config-skip*/
298#endif
79072805 299
2304df62 300/* HAS_GETPRIORITY:
301 * This symbol, if defined, indicates that the getpriority routine is
79072805 302 * available to get a process's priority.
303 */
a0d0e21e 304#undef HAS_GETPRIORITY /**/
79072805 305
2304df62 306/* HAS_KILLPG:
79072805 307 * This symbol, if defined, indicates that the killpg routine is available
308 * to kill process groups. If unavailable, you probably should use kill
309 * with a negative process number.
310 */
a0d0e21e 311#undef HAS_KILLPG /**/
79072805 312
2304df62 313/* HAS_LINK:
314 * This symbol, if defined, indicates that the link routine is
315 * available to create hard links.
79072805 316 */
a0d0e21e 317#undef HAS_LINK /**/
79072805 318
2304df62 319/* HAS_LSTAT:
320 * This symbol, if defined, indicates that the lstat routine is
321 * available to do file stats on symbolic links.
79072805 322 */
a0d0e21e 323#undef HAS_LSTAT /**/
324
325/* HAS_LOCKF:
326 * This symbol, if defined, indicates that the lockf routine is
327 * available to do file locking.
328 */
329#undef HAS_LOCKF /**/
330
331/* HAS_MBSTOWCS:
332 * This symbol, if defined, indicates that the mbstowcs routine is
333 * available to covert a multibyte string into a wide character string.
334 */
36477c24 335#ifdef __DECC
336# define HAS_MBSTOWCS /*config-skip*/
337#else
338# undef HAS_MBSTOWCS /*config-skip*/
339#endif
a0d0e21e 340
341/* HAS_MBTOWC:
342 * This symbol, if defined, indicates that the mbtowc routine is available
343 * to covert a multibyte to a wide character.
344 */
36477c24 345#ifdef __DECC
346# define HAS_MBTOWC /*config-skip*/
347#else
348# undef HAS_MBTOWC /*config-skip*/
349#endif
79072805 350
2304df62 351/* HAS_MEMCMP:
352 * This symbol, if defined, indicates that the memcmp routine is available
353 * to compare blocks of memory.
79072805 354 */
2304df62 355#define HAS_MEMCMP /**/
356
357/* HAS_MEMCPY:
79072805 358 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 359 * to copy blocks of memory.
79072805 360 */
2304df62 361#define HAS_MEMCPY /**/
79072805 362
2304df62 363/* HAS_MEMMOVE:
79072805 364 * This symbol, if defined, indicates that the memmove routine is available
2304df62 365 * to copy potentially overlapping blocks of memory. This should be used
366 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
367 * own version.
79072805 368 */
a0d0e21e 369#define HAS_MEMMOVE /**/
79072805 370
2304df62 371/* HAS_MEMSET:
79072805 372 * This symbol, if defined, indicates that the memset routine is available
2304df62 373 * to set blocks of memory.
79072805 374 */
2304df62 375#define HAS_MEMSET /**/
79072805 376
2304df62 377/* HAS_MKDIR:
79072805 378 * This symbol, if defined, indicates that the mkdir routine is available
379 * to create directories. Otherwise you should fork off a new process to
380 * exec /bin/mkdir.
381 */
2304df62 382#define HAS_MKDIR /**/
79072805 383
2304df62 384/* HAS_MSG:
79072805 385 * This symbol, if defined, indicates that the entire msg*(2) library is
2304df62 386 * supported (IPC mechanism based on message queues).
79072805 387 */
a0d0e21e 388#undef HAS_MSG /**/
79072805 389
a0d0e21e 390/* HAS_OPEN3:
391 * This manifest constant lets the C program know that the three
392 * argument form of open(2) is available.
79072805 393 */
a0d0e21e 394#define HAS_OPEN3 /**/
79072805 395
e518068a 396/* HAS_POLL:
397 * This symbol, if defined, indicates that the poll routine is
398 * available to poll active file descriptors.
399 */
400#undef HAS_POLL /**/
401
fc1ce8cc 402/* HAS_PTHREAD_YIELD:
403 * This symbol, if defined, indicates that the pthread_yield routine is
404 * available to yield the execution of the current thread.
09b7f37c 405 * VMS: pthread_yield_np is there, so just set up the alias
fc1ce8cc 406 */
09b7f37c 407#define HAS_PTHREAD_YIELD /**/
408#define pthread_yield pthread_yield_np /*config-skip*/
fc1ce8cc 409
09b7f37c 410/* OLD_PTHREADS_API:
411 * This symbol, if defined, indicates that Perl should
412 * be built to use the old draft POSIX threads API.
fc1ce8cc 413 */
09b7f37c 414#undef OLD_PTHREADS_API /**/
fc1ce8cc 415
a0d0e21e 416/* HAS_READDIR:
417 * This symbol, if defined, indicates that the readdir routine is
418 * available to read directory entries. You may have to include
419 * <dirent.h>. See I_DIRENT.
79072805 420 */
a0d0e21e 421#define HAS_READDIR /**/
79072805 422
a0d0e21e 423/* HAS_SEEKDIR:
424 * This symbol, if defined, indicates that the seekdir routine is
425 * available. You may have to include <dirent.h>. See I_DIRENT.
79072805 426 */
a0d0e21e 427#define HAS_SEEKDIR /**/
79072805 428
a0d0e21e 429/* HAS_TELLDIR:
430 * This symbol, if defined, indicates that the telldir routine is
431 * available. You may have to include <dirent.h>. See I_DIRENT.
79072805 432 */
a0d0e21e 433#define HAS_TELLDIR /**/
79072805 434
a0d0e21e 435/* HAS_REWINDDIR:
436 * This symbol, if defined, indicates that the rewinddir routine is
437 * available. You may have to include <dirent.h>. See I_DIRENT.
79072805 438 */
a0d0e21e 439#define HAS_REWINDDIR /**/
79072805 440
2304df62 441/* HAS_RENAME:
79072805 442 * This symbol, if defined, indicates that the rename routine is available
443 * to rename files. Otherwise you should do the unlink(), link(), unlink()
444 * trick.
445 */
2304df62 446#define HAS_RENAME /**/
79072805 447
2304df62 448/* HAS_RMDIR:
449 * This symbol, if defined, indicates that the rmdir routine is
450 * available to remove directories. Otherwise you should fork off a
451 * new process to exec /bin/rmdir.
79072805 452 */
2304df62 453#define HAS_RMDIR /**/
79072805 454
2304df62 455/* HAS_SEM:
79072805 456 * This symbol, if defined, indicates that the entire sem*(2) library is
457 * supported.
458 */
a0d0e21e 459#undef HAS_SEM /**/
79072805 460
2304df62 461/* HAS_SETEGID:
79072805 462 * This symbol, if defined, indicates that the setegid routine is available
463 * to change the effective gid of the current program.
464 */
a0d0e21e 465#undef HAS_SETEGID /**/
79072805 466
2304df62 467/* HAS_SETEUID:
79072805 468 * This symbol, if defined, indicates that the seteuid routine is available
469 * to change the effective uid of the current program.
470 */
a0d0e21e 471#undef HAS_SETEUID /**/
472
79072805 473
2304df62 474/* HAS_SETPRIORITY:
475 * This symbol, if defined, indicates that the setpriority routine is
79072805 476 * available to set a process's priority.
477 */
a0d0e21e 478#undef HAS_SETPRIORITY /**/
79072805 479
2304df62 480/* HAS_SETREGID:
79072805 481 * This symbol, if defined, indicates that the setregid routine is
2304df62 482 * available to change the real and effective gid of the current
483 * process.
79072805 484 */
2304df62 485/* HAS_SETRESGID:
79072805 486 * This symbol, if defined, indicates that the setresgid routine is
487 * available to change the real, effective and saved gid of the current
2304df62 488 * process.
79072805 489 */
a0d0e21e 490#undef HAS_SETREGID /**/
491#undef HAS_SETRESGID /**/
79072805 492
2304df62 493/* HAS_SETREUID:
79072805 494 * This symbol, if defined, indicates that the setreuid routine is
2304df62 495 * available to change the real and effective uid of the current
496 * process.
79072805 497 */
2304df62 498/* HAS_SETRESUID:
79072805 499 * This symbol, if defined, indicates that the setresuid routine is
500 * available to change the real, effective and saved uid of the current
2304df62 501 * process.
79072805 502 */
a0d0e21e 503#undef HAS_SETREUID /**/
504#undef HAS_SETRESUID /**/
79072805 505
2304df62 506/* HAS_SETRGID:
79072805 507 * This symbol, if defined, indicates that the setrgid routine is available
508 * to change the real gid of the current program.
509 */
a0d0e21e 510#undef HAS_SETRGID /**/
79072805 511
2304df62 512/* HAS_SETRUID:
79072805 513 * This symbol, if defined, indicates that the setruid routine is available
514 * to change the real uid of the current program.
515 */
a0d0e21e 516#undef HAS_SETRUID /**/
79072805 517
2304df62 518/* HAS_SETSID:
519 * This symbol, if defined, indicates that the setsid routine is
520 * available to set the process group ID.
521 */
a0d0e21e 522#undef HAS_SETSID /**/
2304df62 523
524/* HAS_SHM:
79072805 525 * This symbol, if defined, indicates that the entire shm*(2) library is
526 * supported.
527 */
a0d0e21e 528#undef HAS_SHM /**/
79072805 529
a0d0e21e 530/* Shmat_t:
531 * This symbol holds the return type of the shmat() system call.
532 * Usually set to 'void *' or 'char *'.
79072805 533 */
a0d0e21e 534/* HAS_SHMAT_PROTOTYPE:
535 * This symbol, if defined, indicates that the sys/shm.h includes
536 * a prototype for shmat(). Otherwise, it is up to the program to
537 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
538 * but not always right so it should be emitted by the program only
539 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
79072805 540 */
16d20bd9 541#undef Shmat_t /**/ /* config-skip */
a0d0e21e 542#undef HAS_SHMAT_PROTOTYPE /**/
79072805 543
c07a80fd 544/* HAS_SIGACTION:
545 * This symbol, if defined, indicates that Vr4's sigaction() routine
546 * is available.
547 */
84902520 548#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
549#define HAS_SIGACTION /**/
550#else
551#undef HAS_SIGACTION /*config-skip*/
552#endif
c07a80fd 553
2304df62 554/* USE_STAT_BLOCKS:
79072805 555 * This symbol is defined if this system has a stat structure declaring
556 * st_blksize and st_blocks.
557 */
a0d0e21e 558#undef USE_STAT_BLOCKS /**/
79072805 559
16d20bd9 560/* USE_STDIO_PTR:
561 * This symbol is defined if the _ptr and _cnt fields (or similar)
562 * of the stdio FILE structure can be used to access the stdio buffer
563 * for a file handle. If this is defined, then the FILE_ptr(fp)
564 * and FILE_cnt(fp) macros will also be defined and should be used
565 * to access these fields.
566 */
567/* USE_STDIO_BASE:
568 * This symbol is defined if the _base field (or similar) of the
569 * stdio FILE structure can be used to access the stdio buffer for
570 * a file handle. If this is defined, then the FILE_base(fp) macro
571 * will also be defined and should be used to access this field.
572 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
573 * to determine the number of bytes in the buffer. USE_STDIO_BASE
574 * will never be defined unless USE_STDIO_PTR is.
575 */
edc7bc49 576/* STDIO_PTR_LVALUE:
577 * This symbol is defined if the FILE_ptr macro can be used as an
578 * lvalue.
579 */
580/* STDIO_CNT_LVALUE:
581 * This symbol is defined if the FILE_cnt macro can be used as an
582 * lvalue.
e518068a 583 */
edc7bc49 584#ifdef __DECC
585# define USE_STDIO_PTR /*config-skip*/
586# define USE_STDIO_BASE /*config-skip*/
587# define STDIO_PTR_LVALUE /*config-skip*/
588# define STDIO_CNT_LVALUE /*config-skip*/
589#else
590# undef USE_STDIO_PTR /*config-skip*/
591# undef USE_STDIO_BASE /*config-skip*/
592# undef STDIO_PTR_LVALUE /*config-skip*/
593# undef STDIO_CNT_LVALUE /*config-skip*/
594#endif
16d20bd9 595
596/* FILE_ptr:
597 * This macro is used to access the _ptr field (or equivalent) of the
598 * FILE structure pointed to by its argument. This macro will always be
599 * defined if USE_STDIO_PTR is defined.
600 */
601/* FILE_cnt:
602 * This macro is used to access the _cnt field (or equivalent) of the
603 * FILE structure pointed to by its argument. This macro will always be
604 * defined if USE_STDIO_PTR is defined.
605 */
edc7bc49 606#ifdef USE_STDIO_PTR
607# define FILE_ptr(fp) ((*fp)->_ptr)
608# define FILE_cnt(fp) ((*fp)->_cnt)
609#endif
740ce14c 610
16d20bd9 611/* FILE_base:
612 * This macro is used to access the _base field (or equivalent) of the
613 * FILE structure pointed to by its argument. This macro will always be
614 * defined if USE_STDIO_BASE is defined.
79072805 615 */
16d20bd9 616/* FILE_bufsiz:
617 * This macro is used to determine the number of bytes in the I/O
618 * buffer pointed to by _base field (or equivalent) of the FILE
619 * structure pointed to its argument. This macro will always be defined
620 * if USE_STDIO_BASE is defined.
621 */
edc7bc49 622#ifdef USE_STDIO_BASE
623# define FILE_base(fp) ((*fp)->_base)
624# define FILE_bufsiz(fp) ((*fp)->_cnt + (*fp)->_ptr - (*fp)->_base)
625#endif
79072805 626
2304df62 627/* USE_STRUCT_COPY:
79072805 628 * This symbol, if defined, indicates that this C compiler knows how
629 * to copy structures. If undefined, you'll need to use a block copy
630 * routine of some sort instead.
631 */
2304df62 632#define USE_STRUCT_COPY /**/
79072805 633
a0d0e21e 634/* HAS_STRERROR:
635 * This symbol, if defined, indicates that the strerror routine is
636 * available to translate error numbers to strings. See the writeup
637 * of Strerror() in this file before you try to define your own.
638 */
639/* HAS_SYS_ERRLIST:
640 * This symbol, if defined, indicates that the sys_errlist array is
641 * available to translate error numbers to strings. The extern int
642 * sys_nerr gives the size of that table.
643 */
644/* Strerror:
645 * This preprocessor symbol is defined as a macro if strerror() is
646 * not available to translate error numbers to strings but sys_errlist[]
647 * array is there.
648 */
649#define HAS_STRERROR /**/
650#undef HAS_SYS_ERRLIST /**/
8dd63a4d 651#define Strerror(e) strerror((e),vaxc$errno)
a0d0e21e 652
2304df62 653/* HAS_SYMLINK:
79072805 654 * This symbol, if defined, indicates that the symlink routine is available
655 * to create symbolic links.
656 */
a0d0e21e 657#undef HAS_SYMLINK /**/
2304df62 658
659/* HAS_SYSCALL:
660 * This symbol, if defined, indicates that the syscall routine is
661 * available to call arbitrary system calls. If undefined, that's tough.
662 */
a0d0e21e 663#undef HAS_SYSCALL /**/
79072805 664
2304df62 665/* HAS_SYSTEM:
666 * This symbol, if defined, indicates that the system routine is
667 * available to issue a shell command.
79072805 668 */
2304df62 669#define HAS_SYSTEM /**/
79072805 670
85e6fe83 671/* Time_t:
672 * This symbol holds the type returned by time(). It can be long,
673 * or time_t on BSD sites (in which case <sys/types.h> should be
674 * included).
675 */
a0d0e21e 676#define Time_t time_t /* Time type */
79072805 677
2304df62 678/* HAS_TRUNCATE:
79072805 679 * This symbol, if defined, indicates that the truncate routine is
680 * available to truncate files.
681 */
84902520 682#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 683#define HAS_TRUNCATE /*config-skip*/
84902520 684#else
685#undef HAS_TRUNCATE /*config-skip*/
686#endif
79072805 687
2304df62 688
a0d0e21e 689/* HAS_VFORK:
690 * This symbol, if defined, indicates that vfork() exists.
79072805 691 */
a0d0e21e 692#define HAS_VFORK /**/
79072805 693
748a9306 694/* Signal_t:
695 * This symbol's value is either "void" or "int", corresponding to the
696 * appropriate return type of a signal handler. Thus, you can declare
697 * a signal handler using "Signal_t (*handler)()", and define the
698 * handler using "Signal_t handler(sig)".
699 */
700#define Signal_t void /* Signal handler's return type */
701
2304df62 702/* HASVOLATILE:
79072805 703 * This symbol, if defined, indicates that this C compiler knows about
704 * the volatile declaration.
705 */
a0d0e21e 706#define HASVOLATILE /**/
2304df62 707#ifndef HASVOLATILE
a0d0e21e 708#define volatile /* config-skip */
2304df62 709#endif
79072805 710
2304df62 711/* HAS_VPRINTF:
79072805 712 * This symbol, if defined, indicates that the vprintf routine is available
713 * to printf with a pointer to an argument list. If unavailable, you
714 * may need to write your own, probably in terms of _doprnt().
715 */
2304df62 716/* USE_CHAR_VSPRINTF:
79072805 717 * This symbol is defined if this system has vsprintf() returning type
718 * (char*). The trend seems to be to declare it as "int vsprintf()". It
719 * is up to the package author to declare vsprintf correctly based on the
720 * symbol.
721 */
2304df62 722#define HAS_VPRINTF /**/
a0d0e21e 723#undef USE_CHAR_VSPRINTF /**/
79072805 724
2304df62 725/* HAS_WAIT4:
79072805 726 * This symbol, if defined, indicates that wait4() exists.
727 */
84902520 728#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 729#define HAS_WAIT4 /*config-skip*/
84902520 730#else
731#undef HAS_WAIT4 /*config-skip*/
732#endif
79072805 733
2304df62 734/* HAS_WAITPID:
735 * This symbol, if defined, indicates that the waitpid routine is
736 * available to wait for child process.
79072805 737 */
748a9306 738#define HAS_WAITPID /**/
79072805 739
a0d0e21e 740/* HAS_WCSTOMBS:
741 * This symbol, if defined, indicates that the wcstombs routine is
742 * available to convert wide character strings to multibyte strings.
79072805 743 */
36477c24 744#ifdef __DECC
745# define HAS_WCSTOMBS /*config-skip*/
746#else
747# undef HAS_WCSTOMBS /*config-skip*/
748#endif
79072805 749
2304df62 750/* I_DIRENT:
751 * This symbol, if defined, indicates to the C program that it should
752 * include <dirent.h>. Using this symbol also triggers the definition
753 * of the Direntry_t define which ends up being 'struct dirent' or
754 * 'struct direct' depending on the availability of <dirent.h>.
79072805 755 */
2304df62 756/* DIRNAMLEN:
757 * This symbol, if defined, indicates to the C program that the length
758 * of directory entry names is provided by a d_namlen field. Otherwise
759 * you need to do strlen() on the d_name field.
760 */
a0d0e21e 761#undef I_DIRENT /**/
762#define DIRNAMLEN /**/
2304df62 763#define Direntry_t struct dirent
79072805 764
2304df62 765/* I_FCNTL:
79072805 766 * This manifest constant tells the C program to include <fcntl.h>.
767 */
a0d0e21e 768#undef I_FCNTL /**/
79072805 769
2304df62 770/* I_GRP:
79072805 771 * This symbol, if defined, indicates to the C program that it should
2304df62 772 * include <grp.h>.
79072805 773 */
a0d0e21e 774#undef I_GRP /**/
79072805 775
a0d0e21e 776/* I_LIMITS:
777 * This symbol, if defined, indicates to the C program that it should
778 * include <limits.h> to get definition of symbols like WORD_BIT or
779 * LONG_MAX, i.e. machine dependant limitations.
2304df62 780 */
740ce14c 781#define I_LIMITS /**/
2304df62 782
a0d0e21e 783/* I_MEMORY:
79072805 784 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 785 * include <memory.h>.
79072805 786 */
a0d0e21e 787#undef I_MEMORY /**/
788
789/* I_NDBM:
790 * This symbol, if defined, indicates that ndbm.h exists and should
791 * be included.
79072805 792 */
a0d0e21e 793#undef I_NDBM /**/
79072805 794
2304df62 795/* I_STDARG:
796 * This symbol, if defined, indicates that <stdarg.h> exists and should
797 * be included.
79072805 798 */
a0d0e21e 799#define I_STDARG /**/
800
801/* I_PWD:
802 * This symbol, if defined, indicates to the C program that it should
803 * include <pwd.h>.
804 */
805/* PWQUOTA:
806 * This symbol, if defined, indicates to the C program that struct passwd
807 * contains pw_quota.
808 */
809/* PWAGE:
810 * This symbol, if defined, indicates to the C program that struct passwd
811 * contains pw_age.
812 */
813/* PWCHANGE:
814 * This symbol, if defined, indicates to the C program that struct passwd
815 * contains pw_change.
816 */
817/* PWCLASS:
818 * This symbol, if defined, indicates to the C program that struct passwd
819 * contains pw_class.
820 */
821/* PWEXPIRE:
822 * This symbol, if defined, indicates to the C program that struct passwd
823 * contains pw_expire.
824 */
825/* PWCOMMENT:
826 * This symbol, if defined, indicates to the C program that struct passwd
827 * contains pw_comment.
828 */
829#undef I_PWD /**/
830#undef PWQUOTA /**/
831#undef PWAGE /**/
832#undef PWCHANGE /**/
833#undef PWCLASS /**/
834#undef PWEXPIRE /**/
6ee623d5 835#define PWGECOS /**/
748a9306 836#define PWCOMMENT /**/
79072805 837
2304df62 838/* I_STDDEF:
839 * This symbol, if defined, indicates that <stddef.h> exists and should
79072805 840 * be included.
841 */
2304df62 842#define I_STDDEF /**/
843
a0d0e21e 844/* I_STDLIB:
845* This symbol, if defined, indicates that <stdlib.h> exists and should
846* be included.
847*/
848#define I_STDLIB /**/
849
85e6fe83 850/* I_STRING:
851 * This symbol, if defined, indicates to the C program that it should
852 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
853 */
854#define I_STRING /**/
855
2304df62 856/* I_SYS_DIR:
857 * This symbol, if defined, indicates to the C program that it should
858 * include <sys/dir.h>.
859 */
a0d0e21e 860#undef I_SYS_DIR /**/
2304df62 861
862/* I_SYS_FILE:
863 * This symbol, if defined, indicates to the C program that it should
864 * include <sys/file.h> to get definition of R_OK and friends.
865 */
a0d0e21e 866#undef I_SYS_FILE /**/
79072805 867
2304df62 868/* I_SYS_IOCTL:
869 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
870 * be included. Otherwise, include <sgtty.h> or <termio.h>.
79072805 871 */
a0d0e21e 872#undef I_SYS_IOCTL /**/
873
2304df62 874/* I_SYS_NDIR:
875 * This symbol, if defined, indicates to the C program that it should
876 * include <sys/ndir.h>.
79072805 877 */
a0d0e21e 878#undef I_SYS_NDIR /**/
2304df62 879
740ce14c 880/* I_SYS_RESOURCE:
881 * This symbol, if defined, indicates to the C program that it should
882 * include <sys/resource.h>.
883 */
884#undef I_SYS_RESOURCE /**/
885
2304df62 886/* I_SYS_SELECT:
887 * This symbol, if defined, indicates to the C program that it should
888 * include <sys/select.h> in order to get definition of struct timeval.
889 */
a0d0e21e 890#undef I_SYS_SELECT /**/
891
e518068a 892/* I_DBM:
893 * This symbol, if defined, indicates that <dbm.h> exists and should
894 * be included.
895 */
896/* I_RPCSVC_DBM:
897 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
898 * should be included.
899 */
900#undef I_DBM /**/
901#undef I_RPCSVC_DBM /**/
902
740ce14c 903/* I_SFIO:
904 * This symbol, if defined, indicates to the C program that it should
905 * include <sfio.h>.
906 */
907#undef I_SFIO /**/
908
40000a8c 909/* I_SYS_STAT:
910 * This symbol, if defined, indicates to the C program that it should
911 * include <sys/stat.h>.
912 */
913#define I_SYS_STAT /**/
a0d0e21e 914
915/* I_SYS_TIMES:
916 * This symbol, if defined, indicates to the C program that it should
917 * include <sys/times.h>.
918 */
919#undef I_SYS_TIMES /**/
920
40000a8c 921/* I_SYS_TYPES:
922 * This symbol, if defined, indicates to the C program that it should
923 * include <sys/types.h>.
924 */
925#define I_SYS_TYPES /**/
926
e518068a 927/* I_SYS_UN:
928 * This symbol, if defined, indicates to the C program that it should
929 * include <sys/un.h> to get UNIX domain socket definitions.
930 */
931#undef I_SYS_UN /**/
932
740ce14c 933/* I_SYS_WAIT:
934 * This symbol, if defined, indicates to the C program that it should
935 * include <sys/wait.h>.
936 */
937#undef I_SYS_WAIT /**/
938
a0d0e21e 939/* I_TERMIO:
940 * This symbol, if defined, indicates that the program should include
941 * <termio.h> rather than <sgtty.h>. There are also differences in
942 * the ioctl() calls that depend on the value of this symbol.
943 */
944/* I_TERMIOS:
945 * This symbol, if defined, indicates that the program should include
946 * the POSIX termios.h rather than sgtty.h or termio.h.
947 * There are also differences in the ioctl() calls that depend on the
948 * value of this symbol.
949 */
950/* I_SGTTY:
951 * This symbol, if defined, indicates that the program should include
952 * <sgtty.h> rather than <termio.h>. There are also differences in
953 * the ioctl() calls that depend on the value of this symbol.
954 */
955#undef I_TERMIO /**/
956#undef I_SGTTY /**/
957#undef I_TERMIOS /**/
2304df62 958
959/* I_TIME:
960 * This symbol, if defined, indicates to the C program that it should
961 * include <time.h>.
79072805 962 */
2304df62 963/* I_SYS_TIME:
964 * This symbol, if defined, indicates to the C program that it should
965 * include <sys/time.h>.
79072805 966 */
85e6fe83 967/* I_SYS_TIME_KERNEL:
968 * This symbol, if defined, indicates to the C program that it should
969 * include <sys/time.h> with KERNEL defined.
970 */
a0d0e21e 971#define I_TIME /**/
972#undef I_SYS_TIME /**/
973#undef I_SYS_TIME_KERNEL /**/
85e6fe83 974
975/* I_UNISTD:
976 * This symbol, if defined, indicates to the C program that it should
977 * include <unistd.h>.
978 */
a0d0e21e 979#undef I_UNISTD /**/
79072805 980
2304df62 981/* I_UTIME:
79072805 982 * This symbol, if defined, indicates to the C program that it should
2304df62 983 * include <utime.h>.
79072805 984 */
a0d0e21e 985#undef I_UTIME /**/
986
2304df62 987/* I_VARARGS:
79072805 988 * This symbol, if defined, indicates to the C program that it should
2304df62 989 * include <varargs.h>.
79072805 990 */
a0d0e21e 991#undef I_VARARGS /**/
992
993
994/* I_VFORK:
995 * This symbol, if defined, indicates to the C program that it should
996 * include vfork.h.
997 */
998#undef I_VFORK /**/
79072805 999
09b7f37c 1000/* Pid_t:
1001 * This symbol holds the type used to declare process ids in the kernel.
1002 * It can be int, uint, pid_t, etc... It may be necessary to include
1003 * <sys/types.h> to get any typedef'ed information.
1004 */
1005#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1006# define Pid_t pid_t /* config-skip */
1007#else
1008# define Pid_t int /* config-skip */
1009#endif
1010
a0d0e21e 1011/* CAN_PROTOTYPE:
1012 * If defined, this macro indicates that the C compiler can handle
1013 * function prototypes.
79072805 1014 */
a0d0e21e 1015/* _:
1016 * This macro is used to declare function parameters for folks who want
1017 * to make declarations with prototypes using a different style than
1018 * the above macros. Use double parentheses. For example:
1019 *
1020 * int main _((int argc, char *argv[]));
85e6fe83 1021 */
a0d0e21e 1022#define CAN_PROTOTYPE /**/
1023#ifdef CAN_PROTOTYPE
1024#define _(args) args /* config-skip */
1025#else
1026#define _(args) () /* config-skip */
1027#endif
85e6fe83 1028
2304df62 1029/* RANDBITS:
1030 * This symbol contains the number of bits of random number the rand()
1031 * function produces. Usual values are 15, 16, and 31.
79072805 1032 */
2304df62 1033#define RANDBITS 31 /**/
1034
a0d0e21e 1035
1036/* Select_fd_set_t:
1037 * This symbol holds the type used for the 2nd, 3rd, and 4th
1038 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1039 * is defined, and 'int *' otherwise. This is only useful if you
1040 * have select(), of course.
79072805 1041 */
84902520 1042#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 50200000) && defined(DECCRTL_SOCKETS)
491527d0 1043#define Select_fd_set_t fd_set * /* config-skip */
d27fe803 1044#else
84902520 1045#define Select_fd_set_t int * /* config-skip */
d27fe803 1046#endif
2304df62 1047
2304df62 1048/* STDCHAR:
1049 * This symbol is defined to be the type of char used in stdio.h.
1050 * It has the values "unsigned char" or "char".
79072805 1051 */
a0d0e21e 1052#define STDCHAR char /**/
79072805 1053
16d20bd9 1054/* UNLINK_ALL_VERSIONS:
1055 * This symbol, if defined, indicates that the program should arrange
1056 * to remove all versions of a file if unlink() is called.
85e6fe83 1057 */
16d20bd9 1058#undef UNLINK_ALL_VERSIONS /**/
1059
a0d0e21e 1060/* LOC_SED:
1061 * This symbol holds the complete pathname to the sed program.
85e6fe83 1062 */
a0d0e21e 1063#define LOC_SED "_NLA0:" /**/
1064
1065/* BIN:
1066 * This symbol holds the path of the bin directory where the package will
1067 * be installed. Program must be prepared to deal with ~name substitution.
1068 */
2ae324a7 1069/* BIN_EXP:
1070 * This symbol is the filename expanded version of the BIN symbol, for
1071 * programs that do not want to deal with that at run-time.
1072 */
a0d0e21e 1073#define BIN "/perl_root/000000" /**/
2ae324a7 1074#define BIN_EXP "/perl_root/000000" /**/
a0d0e21e 1075
1076/* HAS_ALARM:
1077 * This symbol, if defined, indicates that the alarm routine is
1078 * available.
1079 */
1080#define HAS_ALARM /**/
85e6fe83 1081
e518068a 1082/* HASATTRIBUTE:
1083 * This symbol indicates the C compiler can check for function attributes,
1084 * such as printf formats. This is normally only supported by GNU cc.
1085 */
1086#ifdef __GNUC__
1087# define HASATTRIBUTE /*config-skip*/
1088#else
1089# undef HASATTRIBUTE /*config-skip*/
1090#endif
1091#ifndef HASATTRIBUTE
1092#define __attribute__(_arg_)
1093#endif
1094
2304df62 1095/* CASTI32:
1096 * This symbol is defined if the C compiler can cast negative
1097 * or large floating point numbers to 32-bit ints.
79072805 1098 */
2304df62 1099#define CASTI32 /**/
1100
a0d0e21e 1101/* HAS_CHOWN:
1102 * This symbol, if defined, indicates that the chown routine is
1103 * available.
1104 */
1105#define HAS_CHOWN /**/
1106
1107/* HAS_CHROOT:
1108 * This symbol, if defined, indicates that the chroot routine is
1109 * available.
1110 */
1111#undef HAS_CHROOT /**/
1112
1113/* HAS_CUSERID:
1114 * This symbol, if defined, indicates that the cuserid routine is
1115 * available to get character login names.
1116 */
1117#define HAS_CUSERID /**/
1118
1119/* HAS_DBL_DIG:
1120 * This symbol, if defined, indicates that this system's <float.h>
1121 * or <limits.h> defines the symbol DBL_DIG, which is the number
1122 * of significant digits in a double precision number. If this
1123 * symbol is not defined, a guess of 15 is usually pretty good.
1124 */
1125#define HAS_DBL_DIG /* */
1126
1127/* HAS_DIFFTIME:
1128 * This symbol, if defined, indicates that the difftime routine is
1129 * available.
1130 */
1131#define HAS_DIFFTIME /**/
1132
1133/* HAS_FORK:
1134 * This symbol, if defined, indicates that the fork routine is
1135 * available.
1136 */
1137/* VMS: In vmsish.h, fork is #defined to vfork. This kludge gets around
1138 * some obsolete code in pp.c, which should be fixed in its own right
1139 * sometime. - C. Bailey 26-Aug-1994
1140 */
1141#define HAS_FORK /**/
1142
1143/* HAS_GETLOGIN:
1144 * This symbol, if defined, indicates that the getlogin routine is
1145 * available.
1146 */
c07a80fd 1147#define HAS_GETLOGIN /**/
a0d0e21e 1148
1149/* HAS_GETPPID:
1150 * This symbol, if defined, indicates that the getppid routine is
1151 * available.
1152 */
1153#undef HAS_GETPPID /**/
1154
85e6fe83 1155/* HAS_HTONL:
1156 * This symbol, if defined, indicates that the htonl() routine (and
1157 * friends htons() ntohl() ntohs()) are available to do network
1158 * order byte swapping.
1159 */
1160/* HAS_HTONS:
1161 * This symbol, if defined, indicates that the htons() routine (and
1162 * friends htonl() ntohl() ntohs()) are available to do network
1163 * order byte swapping.
1164 */
1165/* HAS_NTOHL:
1166 * This symbol, if defined, indicates that the ntohl() routine (and
1167 * friends htonl() htons() ntohs()) are available to do network
1168 * order byte swapping.
1169 */
1170/* HAS_NTOHS:
1171 * This symbol, if defined, indicates that the ntohs() routine (and
1172 * friends htonl() htons() ntohl()) are available to do network
1173 * order byte swapping.
1174 */
a0d0e21e 1175#define HAS_HTONL /**/
1176#define HAS_HTONS /**/
1177#define HAS_NTOHL /**/
1178#define HAS_NTOHS /**/
1179
1180/* HAS_MBLEN:
1181 * This symbol, if defined, indicates that the mblen routine is available
1182 * to find the number of bytes in a multibye character.
1183 */
36477c24 1184#ifdef __DECC
1185# define HAS_MBLEN /*config-skip*/
1186#else
1187# undef HAS_MBLEN /*config-skip*/
1188#endif
85e6fe83 1189
a0d0e21e 1190/* HAS_MKTIME:
1191 * This symbol, if defined, indicates that the mktime routine is
1192 * available.
79072805 1193 */
36477c24 1194#ifdef __DECC
1195# define HAS_MKTIME /*config-skip*/
1196#else
1197# undef HAS_MKTIME /*config-skip*/
1198#endif
79072805 1199
a0d0e21e 1200/* HAS_NICE:
1201 * This symbol, if defined, indicates that the nice routine is
1202 * available.
85e6fe83 1203 */
a0d0e21e 1204#define HAS_NICE /**/
85e6fe83 1205
a0d0e21e 1206/* HAS_PAUSE:
1207 * This symbol, if defined, indicates that the pause routine is
1208 * available.
85e6fe83 1209 */
a0d0e21e 1210#define HAS_PAUSE /**/
85e6fe83 1211
a0d0e21e 1212/* HAS_PIPE:
1213 * This symbol, if defined, indicates that the pipe routine is
1214 * available.
85e6fe83 1215 */
a0d0e21e 1216#define HAS_PIPE /**/
85e6fe83 1217
a0d0e21e 1218/* HAS_READLINK:
1219 * This symbol, if defined, indicates that the readlink routine is
1220 * available.
85e6fe83 1221 */
a0d0e21e 1222#undef HAS_READLINK /**/
85e6fe83 1223
a0d0e21e 1224/* HAS_SETLINEBUF:
1225 * This symbol, if defined, indicates that the setlinebuf routine is
1226 * available to change stderr or stdout from block-buffered or unbuffered
1227 * to a line-buffered mode.
85e6fe83 1228 */
a0d0e21e 1229#undef HAS_SETLINEBUF /**/
85e6fe83 1230
a0d0e21e 1231/* HAS_STRCHR:
1232 * This symbol is defined to indicate that the strchr()/strrchr()
1233 * functions are available for string searching. If not, try the
1234 * index()/rindex() pair.
2304df62 1235 */
a0d0e21e 1236/* HAS_INDEX:
1237 * This symbol is defined to indicate that the index()/rindex()
1238 * functions are available for string searching.
1239 */
1240#define HAS_STRCHR /**/
84902520 1241#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1242#define HAS_INDEX /*config-skip*/
84902520 1243#else
1244#undef HAS_INDEX /*config-skip*/
1245#endif
79072805 1246
a0d0e21e 1247/* HAS_STRCOLL:
1248 * This symbol, if defined, indicates that the strcoll routine is
1249 * available to compare strings using collating information.
85e6fe83 1250 */
36477c24 1251#ifdef __DECC
1252# define HAS_STRCOLL /*config-skip*/
1253#else
1254# undef HAS_STRCOLL /*config-skip*/
1255#endif
85e6fe83 1256
bbce6d69 1257/* HAS_STRTOD:
1258 * This symbol, if defined, indicates that the strtod routine is
71be2cbc 1259 * available to provide better numeric string conversion than atof().
bbce6d69 1260 */
1261#define HAS_STRTOD /**/
1262
1263/* HAS_STRTOL:
71be2cbc 1264 * This symbol, if defined, indicates that the strtol routine is available
1265 * to provide better numeric string conversion than atoi() and friends.
bbce6d69 1266 */
1267#define HAS_STRTOL /**/
1268
1269/* HAS_STRTOUL:
1270 * This symbol, if defined, indicates that the strtoul routine is
71be2cbc 1271 * available to provide conversion of strings to unsigned long.
bbce6d69 1272 */
1273#define HAS_STRTOUL /**/
1274
a0d0e21e 1275/* HAS_STRXFRM:
1276 * This symbol, if defined, indicates that the strxfrm() routine is
1277 * available to compare strings using collating information.
85e6fe83 1278 */
36477c24 1279#ifdef __DECC
1280# define HAS_STRXFRM /*config-skip*/
1281#else
1282# undef HAS_STRXFRM /*config-skip*/
1283#endif
85e6fe83 1284
a0d0e21e 1285/* HAS_TCGETPGRP:
1286 * This symbol, if defined, indicates that the tcgetpgrp routine is
1287 * available to get foreground process group ID.
2304df62 1288 */
a0d0e21e 1289#undef HAS_TCGETPGRP /**/
1290
1291/* HAS_TCSETPGRP:
1292 * This symbol, if defined, indicates that the tcsetpgrp routine is
1293 * available to set foreground process group ID.
2304df62 1294 */
a0d0e21e 1295#undef HAS_TCSETPGRP /**/
1296
1297/* HAS_TIMES:
1298 * This symbol, if defined, indicates that the times() routine exists.
1299 * Note that this became obsolete on some systems (SUNOS), which now
1300 * use getrusage(). It may be necessary to include <sys/times.h>.
2304df62 1301 */
a0d0e21e 1302#define HAS_TIMES /**/
79072805 1303
a0d0e21e 1304/* HAS_TZNAME:
1305 * This symbol, if defined, indicates that the tzname[] array is
1306 * available to access timezone names.
85e6fe83 1307 */
a0d0e21e 1308#undef HAS_TZNAME /**/
85e6fe83 1309
a0d0e21e 1310/* HAS_UMASK:
1311 * This symbol, if defined, indicates that the umask routine is
1312 * available to get the file creation mask.
79072805 1313 */
a0d0e21e 1314#define HAS_UMASK /**/
1315
a0d0e21e 1316/* HAS_WCTOMB:
1317 * This symbol, if defined, indicates that the wctomb routine is available
1318 * to covert a wide character to a multibyte.
1319 */
36477c24 1320#ifdef __DECC
1321# define HAS_WCTOMB /*config-skip*/
1322#else
1323# undef HAS_WCTOMB /*config-skip*/
1324#endif
a0d0e21e 1325
1326/* Fpos_t:
1327 * This symbol holds the type used to declare file positions in libc.
1328 * It can be fpos_t, long, uint, etc... It may be necessary to include
1329 * <sys/types.h> to get any typedef'ed information.
1330 */
1331#define Fpos_t fpos_t /* File position type */
79072805 1332
2304df62 1333/* Gid_t:
1334 * This symbol holds the return type of getgid() and the type of
1335 * argument to setrgid() and related functions. Typically,
1336 * it is the type of group ids in the kernel.
1337 * It can be int, ushort, uid_t, etc... It may be necessary to include
1338 * <sys/types.h> to get any typedef'ed information.
79072805 1339 */
e518068a 1340#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1341# define Gid_t gid_t /* config-skip */
1342#else
1343# define Gid_t unsigned int /* config-skip */
1344#endif
79072805 1345
85e6fe83 1346/* I_DLFCN:
1347 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1348 * be included.
1349 */
a0d0e21e 1350#undef I_DLFCN /**/
85e6fe83 1351
a0d0e21e 1352/* I_FLOAT:
85e6fe83 1353 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 1354 * include <float.h> to get definition of symbols like DBL_MAX or
1355 * DBL_MIN, i.e. machine dependent floating point values.
85e6fe83 1356 */
a0d0e21e 1357#define I_FLOAT /**/
85e6fe83 1358
a0d0e21e 1359/* I_MATH:
1360 * This symbol, if defined, indicates to the C program that it should
1361 * include <math.h>.
85e6fe83 1362 */
a0d0e21e 1363#define I_MATH /**/
85e6fe83 1364
09b7f37c 1365/* DOUBLESIZE:
1366 * This symbol contains the size of a double, so that the C preprocessor
1367 * can make decisions based on it.
1368 */
e518068a 1369/* INTSIZE:
1370 * This symbol contains the size of an int, so that the C preprocessor
1371 * can make decisions based on it.
1372 */
4fdae800 1373/* LONGSIZE:
1374 * This symbol contains the value of sizeof(long) so that the C
1375 * preprocessor can make decisions based on it.
1376 */
1377/* SHORTSIZE:
1378 * This symbol contains the value of sizeof(short) so that the C
1379 * preprocessor can make decisions based on it.
1380 */
09b7f37c 1381/* PTRSIZE:
1382 * This symbol contains the size of a pointer, so that the C preprocessor
1383 * can make decisions based on it. It will be sizeof(void *) if
1384 * the compiler supports (void *); otherwise it will be
1385 * sizeof(char *).
1386 * VMS: Use 32-bit pointers everywhere for now 7-Mar-1998
1387 */
1388#define DOUBLESIZE 8 /**/
e518068a 1389#define INTSIZE 4 /**/
4fdae800 1390#define LONGSIZE 4 /**/
1391#define SHORTSIZE 2 /**/
09b7f37c 1392#define PTRSIZE 4 /**/
748a9306 1393
a0d0e21e 1394/* Off_t:
1395 * This symbol holds the type used to declare offsets in the kernel.
1396 * It can be int, long, off_t, etc... It may be necessary to include
1397 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1398 */
a0d0e21e 1399#define Off_t int /* <offset> type */
e518068a 1400
740ce14c 1401/* I_VALUES:
1402 * This symbol, if defined, indicates to the C program that it should
1403 * include <values.h> to get definition of symbols like MINFLOAT or
1404 * MAXLONG, i.e. machine dependant limitations. Probably, you
1405 * should use <limits.h> instead, if it is available.
1406 */
1407#undef I_VALUES /**/
1408
e518068a 1409/* Free_t:
1410 * This variable contains the return type of free(). It is usually
1411 * void, but occasionally int.
1412 */
a0d0e21e 1413/* Malloc_t:
1414 * This symbol is the type of pointer returned by malloc and realloc.
85e6fe83 1415 */
a0d0e21e 1416#define Malloc_t void * /**/
e518068a 1417#define Free_t void /**/
a0d0e21e 1418
1419/* MYMALLOC:
1420 * This symbol, if defined, indicates that we're using our own malloc.
85e6fe83 1421 */
a0d0e21e 1422#undef MYMALLOC /**/
1423
740ce14c 1424/* SH_PATH:
1425 * This symbol contains the full pathname to the shell used on this
1426 * on this system to execute Bourne shell scripts. Usually, this will be
1427 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1428 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as D:/bin/sh.
1429 */
1430#define SH_PATH "MCR" /**/
1431
e518068a 1432/* SIG_NAME:
1433 * This symbol contains a list of signal names in order. This is intended
1434 * to be used as a static array initialization, like this:
1435 * char *sig_name[] = { SIG_NAME };
1436 * The signals in the list are separated with commas, and each signal
1437 * is surrounded by double quotes. There is no leading SIG in the signal
1438 * name, i.e. SIGQUIT is known as "QUIT". Duplicates are allowed.
1439 * The signal number for sig_name[i] is stored in sig_num[i].
1440 * The last element is 0 to terminate the list with a NULL. This
1441 * corresponds to the 0 at the end of the sig_num list.
1442 * See SIG_NUM and SIG_MAX.
1443 */
84902520 1444#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
1445#define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE",\
1446 "KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM",\
1447 "ABRT","USR1","USR2","SPARE18","SPARE19","CHLD","CONT",\
1448 "STOP","TSTP","TTIN","TTOU","DEBUG","SPARE27","SPARE28",\
1449 "SPARE29","SPARE30","SPARE31","SPARE32","RTMIN","RTMAX",0 /**/
1450#else
e518068a 1451#define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE",\
1452 "KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM",\
84902520 1453 "ABRT","USR1","USR2",0 /*config-skip*/
1454#endif
e518068a 1455
1456/* SIG_NUM:
1457 * This symbol contains a list of signal number, in the same order as the
1458 * SIG_NAME list. It is suitable for static array initialization, as in:
1459 * int sig_num[] = { SIG_NUM };
1460 * The signals in the list are separated with commas, and the indices
1461 * within that list and the SIG_NAME list match, so it's easy to compute
1462 * the signal name from a number or vice versa at the price of a small
1463 * dynamic linear lookup. Duplicates are allowed, so you can't assume
1464 * sig_num[i] == i. Instead, the signal number corresponding to
1465 * sig_name[i] is sig_number[i].
1466 * The last element is 0, corresponding to the 0 at the end of
1467 * the sig_name list.
1468 */
84902520 1469#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
1470#define SIG_NUM 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,64,0 /**/
1471#else
1472#define SIG_NUM 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0 /*config-skip*/
1473#endif
e518068a 1474
a0d0e21e 1475/* Mode_t:
1476 * This symbol holds the type used to declare file modes
1477 * for systems calls. It is usually mode_t, but may be
1478 * int or unsigned short. It may be necessary to include <sys/types.h>
1479 * to get any typedef'ed information.
85e6fe83 1480 */
a0d0e21e 1481#define Mode_t unsigned int /* file mode parameter for system calls*/
1482
1483/* SSize_t:
1484 * This symbol holds the type used by functions that return
1485 * a count of bytes or an error condition. It must be a signed type.
1486 * It is usually ssize_t, but may be long or int, etc.
1487 * It may be necessary to include <sys/types.h> or <unistd.h>
1488 * to get any typedef'ed information.
1489 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
85e6fe83 1490 */
a0d0e21e 1491#define SSize_t int /* signed count of bytes */
1492
e518068a 1493/* VAL_O_NONBLOCK:
1494 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1495 * non-blocking I/O for the file descriptor. Note that there is no way
1496 * back, i.e. you cannot turn it blocking again this way. If you wish to
1497 * alternatively switch between blocking and non-blocking, use the
1498 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1499 */
1500/* VAL_EAGAIN:
1501 * This symbol holds the errno error code set by read() when no data was
1502 * present on the non-blocking file descriptor.
1503 */
1504/* RD_NODATA:
1505 * This symbol holds the return code from read() when no data is present
1506 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1507 * not defined, then you can't distinguish between no data and EOF by
1508 * issuing a read(). You'll have to find another way to tell for sure!
1509 */
1510/* EOF_NONBLOCK:
1511 * This symbol, if defined, indicates to the C program that a read() on
1512 * a non-blocking file descriptor will return 0 on EOF, and not the value
1513 * held in RD_NODATA (-1 usually, in that case!).
1514 */
8dd63a4d 1515#undef VAL_O_NONBLOCK
1516#undef VAL_EAGAIN
1517#undef RD_NODATA
e518068a 1518#undef EOF_NONBLOCK
1519
740ce14c 1520/* PRIVLIB:
a0d0e21e 1521 * This symbol contains the name of the private library for this package.
1522 * The library is private in the sense that it needn't be in anyone's
1523 * execution path, but it should be accessible by the world. The program
1524 * should be prepared to do ~ expansion.
85e6fe83 1525 */
740ce14c 1526/* PRIVLIB_EXP:
1527 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1528 * in programs that are not prepared to deal with ~ expansion at run-time.
1529 */
fed7345c 1530#define PRIVLIB_EXP "/perl_root/lib" /**/
740ce14c 1531#define PRIVLIB PRIVLIB_EXP /*config-skip*/
a0d0e21e 1532
740ce14c 1533/* SITELIB:
1534 * This symbol contains the name of the private library for this package.
1535 * The library is private in the sense that it needn't be in anyone's
1536 * execution path, but it should be accessible by the world. The program
1537 * should be prepared to do ~ expansion.
1538 * The standard distribution will put nothing in this directory.
1539 * Individual sites may place their own extensions and modules in
1540 * this directory.
1541 */
e518068a 1542/* SITELIB_EXP:
1543 * This symbol contains the ~name expanded version of SITELIB, to be used
1544 * in programs that are not prepared to deal with ~ expansion at run-time.
1545 */
482b294c 1546#define SITELIB_EXP "/perl_root/lib/site_perl" /**/
740ce14c 1547#define SITELIB SITELIB_EXP /*config-skip*/
e518068a 1548
740ce14c 1549/* SITEARCH:
1550 * This symbol contains the name of the private library for this package.
1551 * The library is private in the sense that it needn't be in anyone's
1552 * execution path, but it should be accessible by the world. The program
1553 * should be prepared to do ~ expansion.
1554 * The standard distribution will put nothing in this directory.
1555 * Individual sites may place their own extensions and modules in
1556 * this directory.
1557 */
e518068a 1558/* SITEARCH_EXP:
1559 * This symbol contains the ~name expanded version of SITEARCH, to be used
1560 * in programs that are not prepared to deal with ~ expansion at run-time.
1561 */
30fb25ec 1562/* ==> NOTE <==
1563 * This value is automatically updated by FndVers.Com
1564 * when Perl is built. Please do not change it by hand; make
1565 * any changes to FndVers.Com instead.
1566 */
1567#define SITEARCH_EXP "/perl_root/lib/site_perl/VMS_VAX" /**/
740ce14c 1568#define SITEARCH SITEARCH_EXP /*config-skip*/
e518068a 1569
a0d0e21e 1570/* Size_t:
1571 * This symbol holds the type used to declare length parameters
1572 * for string functions. It is usually size_t, but may be
1573 * unsigned long, int, etc. It may be necessary to include
1574 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1575 */
a0d0e21e 1576#define Size_t size_t /* length paramater for string functions */
1577
1578/* Uid_t:
1579 * This symbol holds the type used to declare user ids in the kernel.
1580 * It can be int, ushort, uid_t, etc... It may be necessary to include
1581 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1582 */
b94f085b 1583#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1584# define Uid_t uid_t /* config-skip */
1585#else
1586# define Uid_t unsigned int /* config-skip */
1587#endif
85e6fe83 1588
a0d0e21e 1589/* I_SYS_PARAM:
85e6fe83 1590 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 1591 * include <sys/param.h>.
85e6fe83 1592 */
a0d0e21e 1593#undef I_SYS_PARAM
85e6fe83 1594
a0d0e21e 1595/* VOID_CLOSEDIR:
1596 * This symbol, if defined, indicates that the closedir() routine
1597 * does not return a value.
79072805 1598 */
a0d0e21e 1599#define VOID_CLOSEDIR /**/
79072805 1600
a0d0e21e 1601/* HAS_DLERROR:
1602 * This symbol, if defined, indicates that the dlerror routine is
1603 * available.
1604*/
1605#undef HAS_DLERROR /**/
1606
1607/* DLSYM_NEEDS_UNDERSCORE:
1608 * This symbol, if defined, indicates that we need to prepend an
1609 * underscore to the symbol name before calling dlsym(). This only
1610 * makes sense if you *have* dlsym, which we will presume is the
1611 * case if you're using dl_dlopen.xs.
85e6fe83 1612 */
a0d0e21e 1613#undef DLSYM_NEEDS_UNDERSCORE /* */
85e6fe83 1614
a0d0e21e 1615/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1616 * This symbol, if defined, indicates that setuid scripts are secure.
79072805 1617 */
a0d0e21e 1618/* DOSUID:
1619 * This symbol, if defined, indicates that the C program should
1620 * check the script that it is executing for setuid/setgid bits, and
1621 * attempt to emulate setuid/setgid on systems that have disabled
1622 * setuid #! scripts because the kernel can't do it securely.
1623 * It is up to the package designer to make sure that this emulation
1624 * is done securely. Among other things, it should do an fstat on
1625 * the script it just opened to make sure it really is a setuid/setgid
1626 * script, it should make sure the arguments passed correspond exactly
1627 * to the argument on the #! line, and it should not trust any
1628 * subprocesses to which it must pass the filename rather than the
1629 * file descriptor of the script to be executed.
1630 */
1631#undef SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1632#undef DOSUID /**/
79072805 1633
71be2cbc 1634/* HAS_INET_ATON:
1635 * This symbol, if defined, indicates to the C program that the
1636 * inet_aton() function is available to parse IP address "dotted-quad"
1637 * strings.
1638 * VMS: SocketShr doesn't support this, so we let the Socket extension
1639 * roll its own.
1640 */
1641#undef HAS_INET_ATON /**/
1642
09b7f37c 1643/* HAS_GNULIBC:
1644 * This symbol, if defined, indicates to the C program that
1645 * the GNU C library is being used.
1646 */
1647#undef HAS_GNULIBC /**/
1648
a0d0e21e 1649/* HAS_ISASCII:
1650 * This manifest constant lets the C program know that the
1651 * isascii is available.
1652 */
1653#define HAS_ISASCII /**/
85e6fe83 1654
36477c24 1655/* HAS_SETLOCALE:
1656 * This symbol, if defined, indicates that the setlocale routine is
1657 * available to handle locale-specific ctype implementations.
1658 */
1659/* I_LOCALE:
1660 * This symbol, if defined, indicates to the C program that it should
1661 * include <locale.h>.
1662 */
a0d0e21e 1663/* HAS_LOCALECONV:
1664 * This symbol, if defined, indicates that the localeconv routine is
1665 * available for numeric and monetary formatting conventions.
1666 */
36477c24 1667#ifdef __DECC
1668# define I_LOCALE /*config-skip*/
1669# define HAS_SETLOCALE /*config-skip*/
1670# define HAS_LOCALECONV /*config-skip*/
1671#else
1672# undef I_LOCALE /*config-skip*/
1673# undef HAS_SETLOCALE /*config-skip*/
1674# undef HAS_LOCALECONV /*config-skip*/
1675#endif
2304df62 1676
a0d0e21e 1677/* HAS_MKFIFO:
1678 * This symbol, if defined, indicates that the mkfifo routine is
1679 * available.
1680 */
1681#undef HAS_MKFIFO /**/
2304df62 1682
a0d0e21e 1683/* HAS_PATHCONF:
1684 * This symbol, if defined, indicates that pathconf() is available
1685 * to determine file-system related limits and options associated
1686 * with a given filename.
1687 */
1688/* HAS_FPATHCONF:
1689 * This symbol, if defined, indicates that pathconf() is available
1690 * to determine file-system related limits and options associated
1691 * with a given open file descriptor.
1692 */
84902520 1693#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1694#define HAS_PATHCONF /*config-skip*/
1695#define HAS_FPATHCONF /*config-skip*/
84902520 1696#else
1697#undef HAS_PATHCONF /*config-skip*/
1698#undef HAS_FPATHCONF /*config-skip*/
1699#endif
85e6fe83 1700
a0d0e21e 1701/* HAS_SAFE_BCOPY:
1702 * This symbol, if defined, indicates that the bcopy routine is available
1703 * to copy potentially overlapping memory blocks. Otherwise you should
1704 * probably use memmove() or memcpy(). If neither is defined, roll your
1705 * own version.
1706 */
1707#undef HAS_SAFE_BCOPY /**/
85e6fe83 1708
a0d0e21e 1709/* HAS_SAFE_MEMCPY:
1710 * This symbol, if defined, indicates that the memcpy routine is available
1711 * to copy potentially overlapping memory blocks. Otherwise you should
1712 * probably use memmove() or memcpy(). If neither is defined, roll your
1713 * own version.
1714 */
1715#define HAS_SAFE_MEMCPY /**/
85e6fe83 1716
36477c24 1717/* HAS_SANE_MEMCMP:
71be2cbc 1718 * This symbol, if defined, indicates that the memcmp routine is available
1719 * and can be used to compare relative magnitudes of chars with their high
1720 * bits set. If it is not defined, roll your own version.
36477c24 1721 */
1722#define HAS_SANE_MEMCMP /**/
1723
a0d0e21e 1724/* HAS_SETPGRP:
1725 * This symbol, if defined, indicates that the setpgrp routine is
1726 * available to set the current process group.
1727 */
edc7bc49 1728/* USE_BSD_SETPGRP:
1729 * This symbol, if defined, indicates that setpgrp needs two
1730 * arguments whereas USG one needs none. See also HAS_SETPGID
1731 * for a POSIX interface.
1732 */
a0d0e21e 1733#undef HAS_SETPGRP /**/
edc7bc49 1734#undef USE_BSD_SETPGRP /**/
85e6fe83 1735
edc7bc49 1736/* HAS_SETPGID:
1737 * This symbol, if defined, indicates that the setpgid routine is
1738 * available to set process group ID.
1739 */
1740#undef HAS_SETPGID /**/
1741
1742/* HAS_SETPGRP2:
1743 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
1744 * routine is available to set the current process group.
1745 */
1746#undef HAS_SETPGRP2 /**/
1747
a0d0e21e 1748/* HAS_SYSCONF:
1749 * This symbol, if defined, indicates that sysconf() is available
1750 * to determine system related limits and options.
1751 */
84902520 1752#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1753#define HAS_SYSCONF /*config-skip*/
84902520 1754#else
1755#undef HAS_SYSCONF /*config-skip*/
1756#endif
85e6fe83 1757
e518068a 1758/* Gconvert:
1759 * This preprocessor macro is defined to convert a floating point
1760 * number to a string without a trailing decimal point. This
1761 * emulates the behavior of sprintf("%g"), but is sometimes much more
1762 * efficient. If gconvert() is not available, but gcvt() drops the
1763 * trailing decimal point, then gcvt() is used. If all else fails,
1764 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1765 * macro are: value, number of digits, whether trailing zeros should
1766 * be retained, and the output buffer.
1767 * Possible values are:
1768 * d_Gconvert='gconvert((x),(n),(t),(b))'
1769 * d_Gconvert='gcvt((x),(n),(b))'
1770 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1771 * The last two assume trailing zeros should not be kept.
1772 */
1773#define Gconvert(x,n,t,b) my_gconvert(x,n,t,b)
1774
edc7bc49 1775/* HAS_GETPGID:
1776 * This symbol, if defined, indicates to the C program that
1777 * the getpgid(pid) function is available to get the
1778 * process group id.
1779 */
1780#undef HAS_GETPGID /**/
1781
1782/* HAS_GETPGRP:
1783 * This symbol, if defined, indicates that the getpgrp routine is
1784 * available to get the current process group.
1785 */
1786/* USE_BSD_GETPGRP:
1787 * This symbol, if defined, indicates that getpgrp needs one
1788 * arguments whereas USG one needs none.
1789 */
1790#undef HAS_GETPGRP /**/
1791#undef USE_BSD_GETPGRP /**/
1792
1793/* HAS_GETPGRP2:
1794 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
1795 * routine is available to get the current process group.
1796 */
1797#undef HAS_GETPGRP2 /**/
1798
740ce14c 1799/* USE_SFIO:
1800 * This symbol, if defined, indicates that sfio should
1801 * be used.
1802 */
1803#undef USE_SFIO /**/
1804
fc1ce8cc 1805/* PTHREADS_CREATED_JOINABLE:
1806 * This symbol, if defined, indicates that pthreads are created
1807 * in the joinable (aka undetached) state.
1808 */
1809#define PTHREADS_CREATED_JOINABLE /**/
1810
b94f085b 1811/* Sigjmp_buf:
1812 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1813 */
1814/* Sigsetjmp:
1815 * This macro is used in the same way as sigsetjmp(), but will invoke
1816 * traditional setjmp() if sigsetjmp isn't available.
1817 */
1818/* Siglongjmp:
1819 * This macro is used in the same way as siglongjmp(), but will invoke
1820 * traditional longjmp() if siglongjmp isn't available.
1821 */
84902520 1822#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1823#define HAS_SIGSETJMP /*config-skip*/
84902520 1824#else
1825#undef HAS_SIGSETJMP /*config-skip*/
1826#endif
b94f085b 1827#ifdef HAS_SIGSETJMP
1828#define Sigjmp_buf sigjmp_buf /* config-skip */
1829#define Sigsetjmp(buf,save_mask) sigsetjmp(buf,save_mask) /* config-skip */
1830#define Siglongjmp(buf,retval) siglongjmp(buf,retval) /* config-skip */
1831#else
1832#define Sigjmp_buf jmp_buf /* config-skip */
1833#define Sigsetjmp(buf,save_mask) setjmp(buf) /* config-skip */
1834#define Siglongjmp(buf,retval) longjmp(buf,retval) /* config-skip */
1835#endif
1836
a0d0e21e 1837/* USE_DYNAMIC_LOADING:
1838 * This symbol, if defined, indicates that dynamic loading of
1839 * some sort is available.
1840 */
1841#define USE_DYNAMIC_LOADING /**/
2304df62 1842
c07a80fd 1843/* STARTPERL:
1844 * This variable contains the string to put in front of a perl
1845 * script to make sure (one hopes) that it runs with perl and not
1846 * some shell.
1847 */
1848#define STARTPERL "" /**/
1849
8dd63a4d 1850/* Groups_t:
1851 * This symbol holds the type used for the second argument to
5cd24f17 1852 * [gs]etgroups(). Usually, this is the same of gidtype, but
8dd63a4d 1853 * sometimes it isn't. It can be int, ushort, uid_t, etc...
1854 * It may be necessary to include <sys/types.h> to get any
1855 * typedef'ed information. This is only required if you have
5cd24f17 1856 * getgroups() or setgroups.
8dd63a4d 1857 */
5cd24f17 1858#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1859#define Groups_t unsigned int /* config-skip */
8dd63a4d 1860#endif
1861
1862/* DB_Prefix_t:
1863 * This symbol contains the type of the prefix structure element
1864 * in the <db.h> header file. In older versions of DB, it was
1865 * int, while in newer ones it is u_int32_t.
1866 */
1867/* DB_Hash_t:
1868 * This symbol contains the type of the prefix structure element
1869 * in the <db.h> header file. In older versions of DB, it was
1870 * int, while in newer ones it is size_t.
1871 */
1872#undef DB_Hash_t /**/
1873#undef DB_Prefix_t /**/
1874
740ce14c 1875/* USE_PERLIO:
1876 * This symbol, if defined, indicates that the PerlIO abstraction should
1877 * be used throughout. If not defined, stdio should be
1878 * used in a fully backward compatible manner.
8dd63a4d 1879 */
740ce14c 1880#undef USE_PERLIO /**/
8dd63a4d 1881
17f28c40 1882/* HAS_SETVBUF:
1883 * This symbol, if defined, indicates that the setvbuf routine is
1884 * available to change buffering on an open stdio stream.
1885 * to a line-buffered mode.
1886 */
1887#define HAS_SETVBUF /**/
1888
e518068a 1889/* VOIDFLAGS:
1890 * This symbol indicates how much support of the void type is given by this
1891 * compiler. What various bits mean:
1892 *
1893 * 1 = supports declaration of void
1894 * 2 = supports arrays of pointers to functions returning void
1895 * 4 = supports comparisons between pointers to void functions and
1896 * addresses of void functions
1897 * 8 = suports declaration of generic void pointers
1898 *
1899 * The package designer should define VOIDUSED to indicate the requirements
1900 * of the package. This can be done either by #defining VOIDUSED before
1901 * including config.h, or by defining defvoidused in Myinit.U. If the
1902 * latter approach is taken, only those flags will be tested. If the
1903 * level of void support necessary is not present, defines void to int.
1904 */
1905#ifndef VOIDUSED
1906#define VOIDUSED 15
1907#endif
1908#define VOIDFLAGS 15
1909#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1910#define void int /* is void to be avoided? */ /* config-skip */
1911#define M_VOID /* Xenix strikes again */ /* config-skip */
1912#endif
1913
a0d0e21e 1914#ifdef VMS_DO_SOCKETS
1915/* HAS_SOCKET:
1916 * This symbol, if defined, indicates that the BSD socket interface is
1917 * supported.
1918 */
1919/* HAS_SOCKETPAIR:
1920 * This symbol, if defined, indicates that the BSD socketpair() call is
1921 * supported.
1922 */
1923#define HAS_SOCKET /**/ /* config-skip */
1924#undef HAS_SOCKETPAIR /**/ /* config-skip */
85e6fe83 1925
a0d0e21e 1926/* HAS_GETHOSTENT:
1927 * This symbol, if defined, indicates that the gethostent routine is
1928 * available to lookup host names in some data base or other.
1929 */
1930#define HAS_GETHOSTENT /**/ /* config-skip */
2304df62 1931
51e0df5c 1932/* HAS_GETHOSTBYADDR:
1933 * This symbol, if defined, indicates that the gethostbyaddr routine is
09b7f37c 1934 * available to lookup host names by their IP addresses.
51e0df5c 1935 */
09b7f37c 1936#define HAS_GETHOSTBYADDR /**/ /* config-skip */
51e0df5c 1937
1938/* Netdb_host_t:
1939 * This symbol holds the type used for the 1st argument
1940 * to gethostbyaddr().
1941 */
09b7f37c 1942#define Netdb_host_t char * /**/ /* config-skip */
51e0df5c 1943
1944/* Netdb_hlen_t:
1945 * This symbol holds the type used for the 2nd argument
1946 * to gethostbyaddr().
1947 */
09b7f37c 1948#define Netdb_hlen_t int /**/ /* config-skip */
51e0df5c 1949
59f0d4a5 1950/* HAS_GETPROTOBYNAME:
1951 * This symbol, if defined, indicates that the getprotobyname()
1952 * routine is available to look up protocols by their name.
1953 */
1954/* HAS_GETPROTOBYNUMBER:
1955 * This symbol, if defined, indicates that the getprotobynumber()
1956 * routine is available to look up protocols by their number.
1957 */
17f28c40 1958#define HAS_GETPROTOBYNAME /*config-skip*/
1959#define HAS_GETPROTOBYNUMBER /*config-skip*/
59f0d4a5 1960
51e0df5c 1961/* HAS_GETHOSTBYNAME:
1962 * This symbol, if defined, indicates that the gethostbyname routine is
1963 * available to lookup hosts by their DNS names.
1964 */
09b7f37c 1965#define HAS_GETHOSTBYNAME /*config-skip*/
51e0df5c 1966
1967/* Netdb_name_t:
1968 * This symbol holds the type used for the 1st argument
1969 * to gethostbyname(), the 1st argument to getnetbyname(),
1970 * the 1st argument to getprotobyname(), the 1st argument to
1971 * getservbyname(), the 2nd argument to getservbyname(),
1972 * and the 2nd argument to getservbyport().
1973 */
09b7f37c 1974#define Netdb_name_t char *
51e0df5c 1975
09b7f37c 1976#ifdef DECCRTL_SOCKETS
1977/* HAS_GETNETBYADDR:
51e0df5c 1978 * This symbol, if defined, indicates that the getnetbyaddr routine is
1979 * available to lookup networks by their IP addresses.
1980 */
09b7f37c 1981#define HAS_GETNETBYADDR /**/ /* config-skip */
51e0df5c 1982
1983/* Netdb_net_t:
1984 * This symbol holds the type used for the 1st argument
1985 * to getnetbyaddr().
1986 */
09b7f37c 1987#define Netdb_net_t long /**/ /* config-skip */
51e0df5c 1988
09b7f37c 1989/* HAS_GETNETBYNAME:
1990 * This symbol, if defined, indicates that the getnetbyname routine is
1991 * available to lookup networks by their names.
fc1ce8cc 1992 */
09b7f37c 1993#define HAS_GETNETBYNAME /*config-skip*/
17f28c40 1994
1995/* HAS_GETNETENT:
1996 * This symbol, if defined, indicates that the getnetent() routine is
1997 * available to look up network names in some data base or another.
1998 */
1999#define HAS_GETNETENT /*config-skip*/
2000
2001/* HAS_SETNETENT:
2002 * This symbol, if defined, indicates that the setnetent() routine is
2003 * available.
2004 */
2005#define HAS_SETNETENT /*config-skip*/
2006
2007/* HAS_ENDNETENT:
2008 * This symbol, if defined, indicates that the endnetent() routine is
2009 * available to close whatever was being used for network queries.
2010 */
2011#define HAS_ENDNETENT /*config-skip*/
09b7f37c 2012#else
17f28c40 2013#undef HAS_GETNETBYADDR /*config-skip*/
09b7f37c 2014#undef HAS_GETNETBYNAME /*config-skip*/
17f28c40 2015#undef HAS_GETNETENT /*config-skip*/
2016#undef HAS_SETNETENT /*config-skip*/
2017#undef HAS_ENDNETENT /*config-skip*/
09b7f37c 2018#endif
fc1ce8cc 2019
09b7f37c 2020/* HAS_GETPROTOBYNAME:
2021 * This symbol, if defined, indicates that the getprotobyname routine is
2022 * available to lookup protocols by their names.
fc1ce8cc 2023 */
09b7f37c 2024/* HAS_GETPROTOBYNUMBER:
2025 * This symbol, if defined, indicates that the getprotobynumber()
2026 * routine is available to look up protocols by their number.
fc1ce8cc 2027 */
09b7f37c 2028#define HAS_GETPROTOBYNAME /*config-skip*/
2029#define HAS_GETPROTOBYNUMBER /*config-skip*/
fc1ce8cc 2030
09b7f37c 2031/* HAS_GETSERVBYNAME:
2032 * This symbol, if defined, indicates that the getservbyname()
2033 * routine is available to look up services by their name.
fc1ce8cc 2034 */
09b7f37c 2035/* HAS_GETSERVBYPORT:
2036 * This symbol, if defined, indicates that the getservbyport()
2037 * routine is available to look up services by their port.
2038 */
2039#define HAS_GETSERVBYNAME /*config-skip*/
2040#define HAS_GETSERVBYPORT /*config-skip*/
fc1ce8cc 2041
09b7f37c 2042/* HAS_SETHOSTENT:
2043 * This symbol, if defined, indicates that the sethostent() routine is
2044 * available.
fc1ce8cc 2045 */
09b7f37c 2046#define HAS_SETHOSTENT /*config-skip*/
fc1ce8cc 2047
a0d0e21e 2048/* VMS: In general, TCP/IP header files should be included from
2049 * sockadapt.h, instead of here, in order to keep the TCP/IP code
2050 * together as much as possible.
2051 */
2052/* I_NETINET_IN:
2053 * This symbol, if defined, indicates to the C program that it should
2054 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
2055 */
2056#undef I_NETINET_IN /**/ /* config-skip */
2304df62 2057
fc1ce8cc 2058/* I_NETDB:
2059 * This symbol, if defined, indicates that <netdb.h> exists and
2060 * should be included.
2061 */
2062#undef I_NETDB /**/ /* config-skip */
2063
a0d0e21e 2064/* I_NET_ERRNO:
2065 * This symbol, if defined, indicates that <net/errno.h> exists and
2066 * should be included.
2067*/
2068#undef I_NET_ERRNO /**/ /* config-skip */
85e6fe83 2069
e518068a 2070/* HAS_SELECT:
2071 * This symbol, if defined, indicates that the select routine is
2072 * available to select active file descriptors. If the timeout field
2073 * is used, <sys/time.h> may need to be included.
2074 */
2075#define HAS_SELECT /**/ /* config-skip */
2076
17f28c40 2077/* HAS_ENDHOSTENT:
2078 * This symbol, if defined, indicates that the endhostent() routine is
2079 * available to close whatever was being used for host queries.
2080 */
2081#define HAS_ENDHOSTENT /*config-skip*/
2082
2083/* HAS_GETPROTOENT:
2084 * This symbol, if defined, indicates that the getprotoent() routine is
2085 * available to look up protocols in some data base or another.
2086 */
2087#define HAS_GETPROTOENT /*config-skip*/
2088
2089/* HAS_ENDPROTOENT:
2090 * This symbol, if defined, indicates that the endprotoent() routine is
2091 * available to close whatever was being used for protocol queries.
2092 */
2093#define HAS_ENDPROTOENT /*config-skip*/
2094
2095/* HAS_SETPROTOENT:
2096 * This symbol, if defined, indicates that the setprotoent() routine is
2097 * available.
2098 */
2099#define HAS_SETPROTOENT /*config-skip*/
2100
2101/* HAS_GETSERVENT:
2102 * This symbol, if defined, indicates that the getservent() routine is
2103 * available to look up network services in some data base or another.
2104 */
2105#define HAS_GETSERVENT /*config-skip*/
2106
2107/* HAS_SETSERVENT:
2108 * This symbol, if defined, indicates that the setservent() routine is
2109 * available.
2110 */
2111#define HAS_SETSERVENT /*config-skip*/
2112
2113/* HAS_ENDSERVENT:
2114 * This symbol, if defined, indicates that the endservent() routine is
2115 * available to close whatever was being used for service queries.
2116 */
2117#define HAS_ENDSERVENT /*config-skip*/
2118
6ee623d5 2119/* HAS_GETHOST_PROTOS:
2120 * This symbol, if defined, indicates that <netdb.h> includes
2121 * prototypes for gethostent(), gethostbyname(), and
2122 * gethostbyaddr(). Otherwise, it is up to the program to guess
2123 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2124 */
2125#define HAS_GETHOST_PROTOS /*config-skip*/
2126
2127/* HAS_GETNET_PROTOS:
2128 * This symbol, if defined, indicates that <netdb.h> includes
2129 * prototypes for getnetent(), getnetbyname(), and
2130 * getnetbyaddr(). Otherwise, it is up to the program to guess
2131 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2132 */
2133#define HAS_GETNET_PROTOS /*config-skip*/
2134
2135/* HAS_GETPROTO_PROTOS:
2136 * This symbol, if defined, indicates that <netdb.h> includes
2137 * prototypes for getprotoent(), getprotobyname(), and
2138 * getprotobyaddr(). Otherwise, it is up to the program to guess
2139 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2140 */
2141#define HAS_GETPROTO_PROTOS /*config-skip*/
2142
2143/* HAS_GETSERV_PROTOS:
2144 * This symbol, if defined, indicates that <netdb.h> includes
2145 * prototypes for getservent(), getservbyname(), and
2146 * getservbyaddr(). Otherwise, it is up to the program to guess
2147 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2148 */
2149#define HAS_GETSERV_PROTOS /*config-skip*/
2150
a0d0e21e 2151#else /* VMS_DO_SOCKETS */
2152
09b7f37c 2153#undef HAS_SOCKET /*config-skip*/
2154#undef HAS_SOCKETPAIR /*config-skip*/
2155#undef HAS_GETHOSTENT /*config-skip*/
2156#undef HAS_SETHOSTENT /*config-skip*/
2157#undef I_NETINET_IN /*config-skip*/
2158#undef I_NETDB /*config-skip*/
2159#undef I_NET_ERRNO /*config-skip*/
2160#undef HAS_SELECT /*config-skip*/
2161#undef HAS_GETHOSTBYADDR /*config-skip*/
2162#undef HAS_GETNETBYADDR /*config-skip*/
17f28c40 2163#undef HAS_GETNETENT /*config-skip*/
2164#undef HAS_SETNETENT /*config-skip*/
2165#undef HAS_ENDNETENT /*config-skip*/
09b7f37c 2166#undef HAS_GETHOSTBYNAME /*config-skip*/
2167#undef HAS_GETNETBYNAME /*config-skip*/
2168#undef HAS_GETPROTOBYNAME /*config-skip*/
2169#undef HAS_GETPROTOBYNUMBER /*config-skip*/
2170#undef HAS_GETSERVBYNAME /*config-skip*/
2171#undef HAS_GETSERVBYPORT /*config-skip*/
17f28c40 2172#undef HAS_ENDHOSTENT /*config-skip*/
2173#undef HAS_GETPROTOENT /*config-skip*/
2174#undef HAS_SETPROTOENT /*config-skip*/
2175#undef HAS_ENDPROTOENT /*config-skip*/
2176#undef HAS_GETSERVENT /*config-skip*/
2177#undef HAS_SETSERVENT /*config-skip*/
2178#undef HAS_ENDSERVENT /*config-skip*/
6ee623d5 2179#undef HAS_GETHOST_PROTOS /*config-skip*/
2180#undef HAS_GETNET_PROTOS /*config-skip*/
2181#undef HAS_GETPROTO_PROTOS /*config-skip*/
2182#undef HAS_GETSERV_PROTOS /*config-skip*/
a0d0e21e 2183
2184#endif /* !VMS_DO_SOCKETS */
79072805 2185
2186#endif