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