This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH 5.004_65] Config_65-02-03.diff: SunOS and Solaris hints
[perl5.git] / vms / config.vms
CommitLineData
2304df62 1/*
a0d0e21e
LW
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
b7b1864f 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
AD
19#ifndef _config_h_
20#define _config_h_
79072805 21
e518068a
PP
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
LW
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
PP
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
LW
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
PP
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
PP
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 */
b7b1864f 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
PP
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
LW
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
AD
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
LW
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
LW
105#define CPPMINUS ""
106
2304df62
AD
107/* HAS_BCMP:
108 * This symbol is defined if the bcmp() routine is available to
109 * compare blocks of memory.
79072805 110 */
84902520
TB
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
AD
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
PP
123#ifdef bcopy
124# define HAS_BCOPY /*config-skip*/
125#endif
79072805 126
2304df62
AD
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
PP
132#ifdef bzero
133# define HAS_BZERO /*config-skip*/
134#endif
79072805 135
2304df62
AD
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
LW
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
LW
144 * 1 = couldn't cast < 0
145 * 2 = couldn't cast >= 0x80000000
146 */
2304df62
AD
147#define CASTNEGFLOAT /**/
148#define CASTFLAGS 0 /**/
79072805 149
2304df62 150/* HAS_CHSIZE:
79072805
LW
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
AD
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
AD
163
164/* HAS_CRYPT:
79072805
LW
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
PP
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
LW
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
AD
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
LW
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
LW
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
LW
202 * This symbol, if defined, indicates to the C program that
203 * the fcntl() function exists.
204 */
a0d0e21e
LW
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
LW
214 * This symbol, if defined, indicates that the system supports filenames
215 * longer than 14 characters.
216 */
217#define FLEXFILENAMES /**/
218
2304df62
AD
219/* HAS_FLOCK:
220 * This symbol, if defined, indicates that the flock routine is
79072805
LW
221 * available to do file locking.
222 */
a0d0e21e
LW
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
PP
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
TB
239#else
240#undef HAS_GETTIMEOFDAY /*config-skip*/
241#endif
71be2cbc
PP
242#ifdef HAS_GETTIMEOFDAY
243# define Timeval struct timeval /*config-skip*/
244#endif
245
17f28c40
CB
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
b7b1864f
CB
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
CB
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
LW
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
PP
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
AD
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
TB
296#else
297#undef HAS_UNAME /*config-skip*/
298#endif
79072805 299
2304df62
AD
300/* HAS_GETPRIORITY:
301 * This symbol, if defined, indicates that the getpriority routine is
79072805
LW
302 * available to get a process's priority.
303 */
a0d0e21e 304#undef HAS_GETPRIORITY /**/
79072805 305
2304df62 306/* HAS_KILLPG:
79072805
LW
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
AD
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
AD
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
LW
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
PP
335#ifdef __DECC
336# define HAS_MBSTOWCS /*config-skip*/
337#else
338# undef HAS_MBSTOWCS /*config-skip*/
339#endif
a0d0e21e
LW
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
PP
345#ifdef __DECC
346# define HAS_MBTOWC /*config-skip*/
347#else
348# undef HAS_MBTOWC /*config-skip*/
349#endif
79072805 350
2304df62
AD
351/* HAS_MEMCMP:
352 * This symbol, if defined, indicates that the memcmp routine is available
353 * to compare blocks of memory.
79072805 354 */
2304df62
AD
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
AD
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
LW
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
LW
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
PP
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
CB
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
CB
407#define HAS_PTHREAD_YIELD /**/
408#define pthread_yield pthread_yield_np /*config-skip*/
fc1ce8cc 409
09b7f37c
CB
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
LW
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
LW
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
LW
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
LW
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
LW
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
AD
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
LW
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
LW
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
LW
468 * This symbol, if defined, indicates that the seteuid routine is available
469 * to change the effective uid of the current program.
470 */
a0d0e21e
LW
471#undef HAS_SETEUID /**/
472
79072805 473
2304df62
AD
474/* HAS_SETPRIORITY:
475 * This symbol, if defined, indicates that the setpriority routine is
79072805
LW
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
AD
482 * available to change the real and effective gid of the current
483 * process.
79072805 484 */
2304df62 485/* HAS_SETRESGID:
79072805
LW
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
LW
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
AD
495 * available to change the real and effective uid of the current
496 * process.
79072805 497 */
2304df62 498/* HAS_SETRESUID:
79072805
LW
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
LW
503#undef HAS_SETREUID /**/
504#undef HAS_SETRESUID /**/
79072805 505
2304df62 506/* HAS_SETRGID:
79072805
LW
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
LW
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
AD
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
AD
523
524/* HAS_SHM:
79072805
LW
525 * This symbol, if defined, indicates that the entire shm*(2) library is
526 * supported.
527 */
a0d0e21e 528#undef HAS_SHM /**/
79072805 529
a0d0e21e
LW
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
LW
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
PP
544/* HAS_SIGACTION:
545 * This symbol, if defined, indicates that Vr4's sigaction() routine
546 * is available.
547 */
84902520
TB
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
LW
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
AD
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
CB
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
CB
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
AD
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
CB
606#ifdef USE_STDIO_PTR
607# define FILE_ptr(fp) ((*fp)->_ptr)
608# define FILE_cnt(fp) ((*fp)->_cnt)
609#endif
740ce14c 610
16d20bd9
AD
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
AD
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
CB
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
LW
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
LW
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
LW
654 * This symbol, if defined, indicates that the symlink routine is available
655 * to create symbolic links.
656 */
a0d0e21e 657#undef HAS_SYMLINK /**/
2304df62
AD
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
AD
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
LW
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
LW
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
TB
684#else
685#undef HAS_TRUNCATE /*config-skip*/
686#endif
79072805 687
2304df62 688
a0d0e21e
LW
689/* HAS_VFORK:
690 * This symbol, if defined, indicates that vfork() exists.
79072805 691 */
a0d0e21e 692#define HAS_VFORK /**/
79072805 693
bd89102f
AD
694/* HAS_UNION_SEMUN:
695 * This symbol, if defined, indicates that the union semun is
696 * defined by including <sys/sem.h>. If not, the user code
697 * probably needs to define it as:
698 * union semun {
699 * int val;
700 * struct semid_ds *buf;
701 * unsigned short *array;
702 * }
703 */
704/* USE_SEMCTL_SEMUN:
705 * This symbol, if defined, indicates that union semun is
706 * used for semctl IPC_STAT.
707 */
708/* USE_SEMCTL_SEMID_DS:
709 * This symbol, if defined, indicates that struct semid_ds * is
710 * used for semctl IPC_STAT.
711 */
712#undef HAS_UNION_SEMUN /**/
713#undef USE_SEMCTL_SEMUN /**/
714#undef USE_SEMCTL_SEMID_DS /**/
715
748a9306
LW
716/* Signal_t:
717 * This symbol's value is either "void" or "int", corresponding to the
718 * appropriate return type of a signal handler. Thus, you can declare
719 * a signal handler using "Signal_t (*handler)()", and define the
720 * handler using "Signal_t handler(sig)".
721 */
722#define Signal_t void /* Signal handler's return type */
723
2304df62 724/* HASVOLATILE:
79072805
LW
725 * This symbol, if defined, indicates that this C compiler knows about
726 * the volatile declaration.
727 */
a0d0e21e 728#define HASVOLATILE /**/
2304df62 729#ifndef HASVOLATILE
a0d0e21e 730#define volatile /* config-skip */
2304df62 731#endif
79072805 732
2304df62 733/* HAS_VPRINTF:
79072805
LW
734 * This symbol, if defined, indicates that the vprintf routine is available
735 * to printf with a pointer to an argument list. If unavailable, you
736 * may need to write your own, probably in terms of _doprnt().
737 */
2304df62 738/* USE_CHAR_VSPRINTF:
79072805
LW
739 * This symbol is defined if this system has vsprintf() returning type
740 * (char*). The trend seems to be to declare it as "int vsprintf()". It
741 * is up to the package author to declare vsprintf correctly based on the
742 * symbol.
743 */
2304df62 744#define HAS_VPRINTF /**/
a0d0e21e 745#undef USE_CHAR_VSPRINTF /**/
79072805 746
2304df62 747/* HAS_WAIT4:
79072805
LW
748 * This symbol, if defined, indicates that wait4() exists.
749 */
84902520 750#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 751#define HAS_WAIT4 /*config-skip*/
84902520
TB
752#else
753#undef HAS_WAIT4 /*config-skip*/
754#endif
79072805 755
2304df62
AD
756/* HAS_WAITPID:
757 * This symbol, if defined, indicates that the waitpid routine is
758 * available to wait for child process.
79072805 759 */
748a9306 760#define HAS_WAITPID /**/
79072805 761
a0d0e21e
LW
762/* HAS_WCSTOMBS:
763 * This symbol, if defined, indicates that the wcstombs routine is
764 * available to convert wide character strings to multibyte strings.
79072805 765 */
36477c24
PP
766#ifdef __DECC
767# define HAS_WCSTOMBS /*config-skip*/
768#else
769# undef HAS_WCSTOMBS /*config-skip*/
770#endif
79072805 771
2304df62
AD
772/* I_DIRENT:
773 * This symbol, if defined, indicates to the C program that it should
774 * include <dirent.h>. Using this symbol also triggers the definition
775 * of the Direntry_t define which ends up being 'struct dirent' or
776 * 'struct direct' depending on the availability of <dirent.h>.
79072805 777 */
2304df62
AD
778/* DIRNAMLEN:
779 * This symbol, if defined, indicates to the C program that the length
780 * of directory entry names is provided by a d_namlen field. Otherwise
781 * you need to do strlen() on the d_name field.
782 */
a0d0e21e
LW
783#undef I_DIRENT /**/
784#define DIRNAMLEN /**/
2304df62 785#define Direntry_t struct dirent
79072805 786
2304df62 787/* I_FCNTL:
79072805
LW
788 * This manifest constant tells the C program to include <fcntl.h>.
789 */
a0d0e21e 790#undef I_FCNTL /**/
79072805 791
2304df62 792/* I_GRP:
79072805 793 * This symbol, if defined, indicates to the C program that it should
2304df62 794 * include <grp.h>.
79072805 795 */
a0d0e21e 796#undef I_GRP /**/
79072805 797
a0d0e21e
LW
798/* I_LIMITS:
799 * This symbol, if defined, indicates to the C program that it should
800 * include <limits.h> to get definition of symbols like WORD_BIT or
801 * LONG_MAX, i.e. machine dependant limitations.
2304df62 802 */
740ce14c 803#define I_LIMITS /**/
2304df62 804
a0d0e21e 805/* I_MEMORY:
79072805 806 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 807 * include <memory.h>.
79072805 808 */
a0d0e21e
LW
809#undef I_MEMORY /**/
810
811/* I_NDBM:
812 * This symbol, if defined, indicates that ndbm.h exists and should
813 * be included.
79072805 814 */
a0d0e21e 815#undef I_NDBM /**/
79072805 816
2304df62
AD
817/* I_STDARG:
818 * This symbol, if defined, indicates that <stdarg.h> exists and should
819 * be included.
79072805 820 */
a0d0e21e
LW
821#define I_STDARG /**/
822
823/* I_PWD:
824 * This symbol, if defined, indicates to the C program that it should
825 * include <pwd.h>.
826 */
827/* PWQUOTA:
828 * This symbol, if defined, indicates to the C program that struct passwd
829 * contains pw_quota.
830 */
831/* PWAGE:
832 * This symbol, if defined, indicates to the C program that struct passwd
833 * contains pw_age.
834 */
835/* PWCHANGE:
836 * This symbol, if defined, indicates to the C program that struct passwd
837 * contains pw_change.
838 */
839/* PWCLASS:
840 * This symbol, if defined, indicates to the C program that struct passwd
841 * contains pw_class.
842 */
843/* PWEXPIRE:
844 * This symbol, if defined, indicates to the C program that struct passwd
845 * contains pw_expire.
846 */
847/* PWCOMMENT:
848 * This symbol, if defined, indicates to the C program that struct passwd
849 * contains pw_comment.
850 */
851#undef I_PWD /**/
852#undef PWQUOTA /**/
853#undef PWAGE /**/
854#undef PWCHANGE /**/
855#undef PWCLASS /**/
856#undef PWEXPIRE /**/
c4f23d77 857#define PWGECOS /**/
748a9306 858#define PWCOMMENT /**/
79072805 859
2304df62
AD
860/* I_STDDEF:
861 * This symbol, if defined, indicates that <stddef.h> exists and should
79072805
LW
862 * be included.
863 */
2304df62
AD
864#define I_STDDEF /**/
865
a0d0e21e
LW
866/* I_STDLIB:
867* This symbol, if defined, indicates that <stdlib.h> exists and should
868* be included.
869*/
870#define I_STDLIB /**/
871
85e6fe83
LW
872/* I_STRING:
873 * This symbol, if defined, indicates to the C program that it should
874 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
875 */
876#define I_STRING /**/
877
2304df62
AD
878/* I_SYS_DIR:
879 * This symbol, if defined, indicates to the C program that it should
880 * include <sys/dir.h>.
881 */
a0d0e21e 882#undef I_SYS_DIR /**/
2304df62
AD
883
884/* I_SYS_FILE:
885 * This symbol, if defined, indicates to the C program that it should
886 * include <sys/file.h> to get definition of R_OK and friends.
887 */
a0d0e21e 888#undef I_SYS_FILE /**/
79072805 889
2304df62
AD
890/* I_SYS_IOCTL:
891 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
892 * be included. Otherwise, include <sgtty.h> or <termio.h>.
79072805 893 */
a0d0e21e
LW
894#undef I_SYS_IOCTL /**/
895
2304df62
AD
896/* I_SYS_NDIR:
897 * This symbol, if defined, indicates to the C program that it should
898 * include <sys/ndir.h>.
79072805 899 */
a0d0e21e 900#undef I_SYS_NDIR /**/
2304df62 901
740ce14c
PP
902/* I_SYS_RESOURCE:
903 * This symbol, if defined, indicates to the C program that it should
904 * include <sys/resource.h>.
905 */
906#undef I_SYS_RESOURCE /**/
907
2304df62
AD
908/* I_SYS_SELECT:
909 * This symbol, if defined, indicates to the C program that it should
910 * include <sys/select.h> in order to get definition of struct timeval.
911 */
a0d0e21e
LW
912#undef I_SYS_SELECT /**/
913
e518068a
PP
914/* I_DBM:
915 * This symbol, if defined, indicates that <dbm.h> exists and should
916 * be included.
917 */
918/* I_RPCSVC_DBM:
919 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
920 * should be included.
921 */
922#undef I_DBM /**/
923#undef I_RPCSVC_DBM /**/
924
740ce14c
PP
925/* I_SFIO:
926 * This symbol, if defined, indicates to the C program that it should
927 * include <sfio.h>.
928 */
929#undef I_SFIO /**/
930
40000a8c
AD
931/* I_SYS_STAT:
932 * This symbol, if defined, indicates to the C program that it should
933 * include <sys/stat.h>.
934 */
935#define I_SYS_STAT /**/
a0d0e21e
LW
936
937/* I_SYS_TIMES:
938 * This symbol, if defined, indicates to the C program that it should
939 * include <sys/times.h>.
940 */
941#undef I_SYS_TIMES /**/
942
40000a8c
AD
943/* I_SYS_TYPES:
944 * This symbol, if defined, indicates to the C program that it should
945 * include <sys/types.h>.
946 */
947#define I_SYS_TYPES /**/
948
e518068a
PP
949/* I_SYS_UN:
950 * This symbol, if defined, indicates to the C program that it should
951 * include <sys/un.h> to get UNIX domain socket definitions.
952 */
953#undef I_SYS_UN /**/
954
740ce14c
PP
955/* I_SYS_WAIT:
956 * This symbol, if defined, indicates to the C program that it should
957 * include <sys/wait.h>.
958 */
959#undef I_SYS_WAIT /**/
960
a0d0e21e
LW
961/* I_TERMIO:
962 * This symbol, if defined, indicates that the program should include
963 * <termio.h> rather than <sgtty.h>. There are also differences in
964 * the ioctl() calls that depend on the value of this symbol.
965 */
966/* I_TERMIOS:
967 * This symbol, if defined, indicates that the program should include
968 * the POSIX termios.h rather than sgtty.h or termio.h.
969 * There are also differences in the ioctl() calls that depend on the
970 * value of this symbol.
971 */
972/* I_SGTTY:
973 * This symbol, if defined, indicates that the program should include
974 * <sgtty.h> rather than <termio.h>. There are also differences in
975 * the ioctl() calls that depend on the value of this symbol.
976 */
977#undef I_TERMIO /**/
978#undef I_SGTTY /**/
979#undef I_TERMIOS /**/
2304df62
AD
980
981/* I_TIME:
982 * This symbol, if defined, indicates to the C program that it should
983 * include <time.h>.
79072805 984 */
2304df62
AD
985/* I_SYS_TIME:
986 * This symbol, if defined, indicates to the C program that it should
987 * include <sys/time.h>.
79072805 988 */
85e6fe83
LW
989/* I_SYS_TIME_KERNEL:
990 * This symbol, if defined, indicates to the C program that it should
991 * include <sys/time.h> with KERNEL defined.
992 */
a0d0e21e
LW
993#define I_TIME /**/
994#undef I_SYS_TIME /**/
995#undef I_SYS_TIME_KERNEL /**/
85e6fe83
LW
996
997/* I_UNISTD:
998 * This symbol, if defined, indicates to the C program that it should
999 * include <unistd.h>.
1000 */
a0d0e21e 1001#undef I_UNISTD /**/
79072805 1002
2304df62 1003/* I_UTIME:
79072805 1004 * This symbol, if defined, indicates to the C program that it should
2304df62 1005 * include <utime.h>.
79072805 1006 */
a0d0e21e
LW
1007#undef I_UTIME /**/
1008
2304df62 1009/* I_VARARGS:
79072805 1010 * This symbol, if defined, indicates to the C program that it should
2304df62 1011 * include <varargs.h>.
79072805 1012 */
a0d0e21e
LW
1013#undef I_VARARGS /**/
1014
1015
1016/* I_VFORK:
1017 * This symbol, if defined, indicates to the C program that it should
1018 * include vfork.h.
1019 */
1020#undef I_VFORK /**/
79072805 1021
09b7f37c
CB
1022/* Pid_t:
1023 * This symbol holds the type used to declare process ids in the kernel.
1024 * It can be int, uint, pid_t, etc... It may be necessary to include
1025 * <sys/types.h> to get any typedef'ed information.
1026 */
1027#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1028# define Pid_t pid_t /* config-skip */
1029#else
1030# define Pid_t int /* config-skip */
1031#endif
1032
a0d0e21e
LW
1033/* CAN_PROTOTYPE:
1034 * If defined, this macro indicates that the C compiler can handle
1035 * function prototypes.
79072805 1036 */
a0d0e21e
LW
1037/* _:
1038 * This macro is used to declare function parameters for folks who want
1039 * to make declarations with prototypes using a different style than
1040 * the above macros. Use double parentheses. For example:
1041 *
1042 * int main _((int argc, char *argv[]));
85e6fe83 1043 */
a0d0e21e
LW
1044#define CAN_PROTOTYPE /**/
1045#ifdef CAN_PROTOTYPE
1046#define _(args) args /* config-skip */
1047#else
1048#define _(args) () /* config-skip */
1049#endif
85e6fe83 1050
2304df62
AD
1051/* RANDBITS:
1052 * This symbol contains the number of bits of random number the rand()
1053 * function produces. Usual values are 15, 16, and 31.
79072805 1054 */
2304df62
AD
1055#define RANDBITS 31 /**/
1056
a0d0e21e
LW
1057
1058/* Select_fd_set_t:
1059 * This symbol holds the type used for the 2nd, 3rd, and 4th
1060 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1061 * is defined, and 'int *' otherwise. This is only useful if you
1062 * have select(), of course.
79072805 1063 */
84902520 1064#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 50200000) && defined(DECCRTL_SOCKETS)
491527d0 1065#define Select_fd_set_t fd_set * /* config-skip */
d27fe803 1066#else
84902520 1067#define Select_fd_set_t int * /* config-skip */
d27fe803 1068#endif
2304df62 1069
2304df62
AD
1070/* STDCHAR:
1071 * This symbol is defined to be the type of char used in stdio.h.
1072 * It has the values "unsigned char" or "char".
79072805 1073 */
a0d0e21e 1074#define STDCHAR char /**/
79072805 1075
16d20bd9
AD
1076/* UNLINK_ALL_VERSIONS:
1077 * This symbol, if defined, indicates that the program should arrange
1078 * to remove all versions of a file if unlink() is called.
85e6fe83 1079 */
16d20bd9
AD
1080#undef UNLINK_ALL_VERSIONS /**/
1081
a0d0e21e
LW
1082/* LOC_SED:
1083 * This symbol holds the complete pathname to the sed program.
85e6fe83 1084 */
a0d0e21e
LW
1085#define LOC_SED "_NLA0:" /**/
1086
1087/* BIN:
1088 * This symbol holds the path of the bin directory where the package will
1089 * be installed. Program must be prepared to deal with ~name substitution.
1090 */
2ae324a7
PP
1091/* BIN_EXP:
1092 * This symbol is the filename expanded version of the BIN symbol, for
1093 * programs that do not want to deal with that at run-time.
1094 */
a0d0e21e 1095#define BIN "/perl_root/000000" /**/
2ae324a7 1096#define BIN_EXP "/perl_root/000000" /**/
a0d0e21e
LW
1097
1098/* HAS_ALARM:
1099 * This symbol, if defined, indicates that the alarm routine is
1100 * available.
1101 */
1102#define HAS_ALARM /**/
85e6fe83 1103
e518068a
PP
1104/* HASATTRIBUTE:
1105 * This symbol indicates the C compiler can check for function attributes,
1106 * such as printf formats. This is normally only supported by GNU cc.
1107 */
1108#ifdef __GNUC__
1109# define HASATTRIBUTE /*config-skip*/
1110#else
1111# undef HASATTRIBUTE /*config-skip*/
1112#endif
1113#ifndef HASATTRIBUTE
1114#define __attribute__(_arg_)
1115#endif
1116
2304df62
AD
1117/* CASTI32:
1118 * This symbol is defined if the C compiler can cast negative
1119 * or large floating point numbers to 32-bit ints.
79072805 1120 */
2304df62
AD
1121#define CASTI32 /**/
1122
a0d0e21e
LW
1123/* HAS_CHOWN:
1124 * This symbol, if defined, indicates that the chown routine is
1125 * available.
1126 */
1127#define HAS_CHOWN /**/
1128
1129/* HAS_CHROOT:
1130 * This symbol, if defined, indicates that the chroot routine is
1131 * available.
1132 */
1133#undef HAS_CHROOT /**/
1134
1135/* HAS_CUSERID:
1136 * This symbol, if defined, indicates that the cuserid routine is
1137 * available to get character login names.
1138 */
1139#define HAS_CUSERID /**/
1140
1141/* HAS_DBL_DIG:
1142 * This symbol, if defined, indicates that this system's <float.h>
1143 * or <limits.h> defines the symbol DBL_DIG, which is the number
1144 * of significant digits in a double precision number. If this
1145 * symbol is not defined, a guess of 15 is usually pretty good.
1146 */
1147#define HAS_DBL_DIG /* */
1148
1149/* HAS_DIFFTIME:
1150 * This symbol, if defined, indicates that the difftime routine is
1151 * available.
1152 */
1153#define HAS_DIFFTIME /**/
1154
1155/* HAS_FORK:
1156 * This symbol, if defined, indicates that the fork routine is
1157 * available.
1158 */
1159/* VMS: In vmsish.h, fork is #defined to vfork. This kludge gets around
1160 * some obsolete code in pp.c, which should be fixed in its own right
1161 * sometime. - C. Bailey 26-Aug-1994
1162 */
1163#define HAS_FORK /**/
1164
1165/* HAS_GETLOGIN:
1166 * This symbol, if defined, indicates that the getlogin routine is
1167 * available.
1168 */
c07a80fd 1169#define HAS_GETLOGIN /**/
a0d0e21e
LW
1170
1171/* HAS_GETPPID:
1172 * This symbol, if defined, indicates that the getppid routine is
1173 * available.
1174 */
1175#undef HAS_GETPPID /**/
1176
85e6fe83
LW
1177/* HAS_HTONL:
1178 * This symbol, if defined, indicates that the htonl() routine (and
1179 * friends htons() ntohl() ntohs()) are available to do network
1180 * order byte swapping.
1181 */
1182/* HAS_HTONS:
1183 * This symbol, if defined, indicates that the htons() routine (and
1184 * friends htonl() ntohl() ntohs()) are available to do network
1185 * order byte swapping.
1186 */
1187/* HAS_NTOHL:
1188 * This symbol, if defined, indicates that the ntohl() routine (and
1189 * friends htonl() htons() ntohs()) are available to do network
1190 * order byte swapping.
1191 */
1192/* HAS_NTOHS:
1193 * This symbol, if defined, indicates that the ntohs() routine (and
1194 * friends htonl() htons() ntohl()) are available to do network
1195 * order byte swapping.
1196 */
a0d0e21e
LW
1197#define HAS_HTONL /**/
1198#define HAS_HTONS /**/
1199#define HAS_NTOHL /**/
1200#define HAS_NTOHS /**/
1201
1202/* HAS_MBLEN:
1203 * This symbol, if defined, indicates that the mblen routine is available
1204 * to find the number of bytes in a multibye character.
1205 */
36477c24
PP
1206#ifdef __DECC
1207# define HAS_MBLEN /*config-skip*/
1208#else
1209# undef HAS_MBLEN /*config-skip*/
1210#endif
85e6fe83 1211
a0d0e21e
LW
1212/* HAS_MKTIME:
1213 * This symbol, if defined, indicates that the mktime routine is
1214 * available.
79072805 1215 */
36477c24
PP
1216#ifdef __DECC
1217# define HAS_MKTIME /*config-skip*/
1218#else
1219# undef HAS_MKTIME /*config-skip*/
1220#endif
79072805 1221
a0d0e21e
LW
1222/* HAS_NICE:
1223 * This symbol, if defined, indicates that the nice routine is
1224 * available.
85e6fe83 1225 */
a0d0e21e 1226#define HAS_NICE /**/
85e6fe83 1227
a0d0e21e
LW
1228/* HAS_PAUSE:
1229 * This symbol, if defined, indicates that the pause routine is
1230 * available.
85e6fe83 1231 */
a0d0e21e 1232#define HAS_PAUSE /**/
85e6fe83 1233
a0d0e21e
LW
1234/* HAS_PIPE:
1235 * This symbol, if defined, indicates that the pipe routine is
1236 * available.
85e6fe83 1237 */
a0d0e21e 1238#define HAS_PIPE /**/
85e6fe83 1239
a0d0e21e
LW
1240/* HAS_READLINK:
1241 * This symbol, if defined, indicates that the readlink routine is
1242 * available.
85e6fe83 1243 */
a0d0e21e 1244#undef HAS_READLINK /**/
85e6fe83 1245
a0d0e21e
LW
1246/* HAS_SETLINEBUF:
1247 * This symbol, if defined, indicates that the setlinebuf routine is
1248 * available to change stderr or stdout from block-buffered or unbuffered
1249 * to a line-buffered mode.
85e6fe83 1250 */
a0d0e21e 1251#undef HAS_SETLINEBUF /**/
85e6fe83 1252
a0d0e21e
LW
1253/* HAS_STRCHR:
1254 * This symbol is defined to indicate that the strchr()/strrchr()
1255 * functions are available for string searching. If not, try the
1256 * index()/rindex() pair.
2304df62 1257 */
a0d0e21e
LW
1258/* HAS_INDEX:
1259 * This symbol is defined to indicate that the index()/rindex()
1260 * functions are available for string searching.
1261 */
1262#define HAS_STRCHR /**/
84902520 1263#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1264#define HAS_INDEX /*config-skip*/
84902520
TB
1265#else
1266#undef HAS_INDEX /*config-skip*/
1267#endif
79072805 1268
a0d0e21e
LW
1269/* HAS_STRCOLL:
1270 * This symbol, if defined, indicates that the strcoll routine is
1271 * available to compare strings using collating information.
85e6fe83 1272 */
36477c24
PP
1273#ifdef __DECC
1274# define HAS_STRCOLL /*config-skip*/
1275#else
1276# undef HAS_STRCOLL /*config-skip*/
1277#endif
85e6fe83 1278
bbce6d69
PP
1279/* HAS_STRTOD:
1280 * This symbol, if defined, indicates that the strtod routine is
71be2cbc 1281 * available to provide better numeric string conversion than atof().
bbce6d69
PP
1282 */
1283#define HAS_STRTOD /**/
1284
1285/* HAS_STRTOL:
71be2cbc
PP
1286 * This symbol, if defined, indicates that the strtol routine is available
1287 * to provide better numeric string conversion than atoi() and friends.
bbce6d69
PP
1288 */
1289#define HAS_STRTOL /**/
1290
1291/* HAS_STRTOUL:
1292 * This symbol, if defined, indicates that the strtoul routine is
71be2cbc 1293 * available to provide conversion of strings to unsigned long.
bbce6d69
PP
1294 */
1295#define HAS_STRTOUL /**/
1296
a0d0e21e
LW
1297/* HAS_STRXFRM:
1298 * This symbol, if defined, indicates that the strxfrm() routine is
1299 * available to compare strings using collating information.
85e6fe83 1300 */
36477c24
PP
1301#ifdef __DECC
1302# define HAS_STRXFRM /*config-skip*/
1303#else
1304# undef HAS_STRXFRM /*config-skip*/
1305#endif
85e6fe83 1306
a0d0e21e
LW
1307/* HAS_TCGETPGRP:
1308 * This symbol, if defined, indicates that the tcgetpgrp routine is
1309 * available to get foreground process group ID.
2304df62 1310 */
a0d0e21e
LW
1311#undef HAS_TCGETPGRP /**/
1312
1313/* HAS_TCSETPGRP:
1314 * This symbol, if defined, indicates that the tcsetpgrp routine is
1315 * available to set foreground process group ID.
2304df62 1316 */
a0d0e21e
LW
1317#undef HAS_TCSETPGRP /**/
1318
1319/* HAS_TIMES:
1320 * This symbol, if defined, indicates that the times() routine exists.
1321 * Note that this became obsolete on some systems (SUNOS), which now
1322 * use getrusage(). It may be necessary to include <sys/times.h>.
2304df62 1323 */
a0d0e21e 1324#define HAS_TIMES /**/
79072805 1325
a0d0e21e
LW
1326/* HAS_TZNAME:
1327 * This symbol, if defined, indicates that the tzname[] array is
1328 * available to access timezone names.
85e6fe83 1329 */
a0d0e21e 1330#undef HAS_TZNAME /**/
85e6fe83 1331
a0d0e21e
LW
1332/* HAS_UMASK:
1333 * This symbol, if defined, indicates that the umask routine is
1334 * available to get the file creation mask.
79072805 1335 */
a0d0e21e
LW
1336#define HAS_UMASK /**/
1337
a0d0e21e
LW
1338/* HAS_WCTOMB:
1339 * This symbol, if defined, indicates that the wctomb routine is available
1340 * to covert a wide character to a multibyte.
1341 */
36477c24
PP
1342#ifdef __DECC
1343# define HAS_WCTOMB /*config-skip*/
1344#else
1345# undef HAS_WCTOMB /*config-skip*/
1346#endif
a0d0e21e
LW
1347
1348/* Fpos_t:
1349 * This symbol holds the type used to declare file positions in libc.
1350 * It can be fpos_t, long, uint, etc... It may be necessary to include
1351 * <sys/types.h> to get any typedef'ed information.
1352 */
1353#define Fpos_t fpos_t /* File position type */
79072805 1354
2304df62
AD
1355/* Gid_t:
1356 * This symbol holds the return type of getgid() and the type of
1357 * argument to setrgid() and related functions. Typically,
1358 * it is the type of group ids in the kernel.
1359 * It can be int, ushort, uid_t, etc... It may be necessary to include
1360 * <sys/types.h> to get any typedef'ed information.
79072805 1361 */
e518068a
PP
1362#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1363# define Gid_t gid_t /* config-skip */
1364#else
1365# define Gid_t unsigned int /* config-skip */
1366#endif
79072805 1367
85e6fe83
LW
1368/* I_DLFCN:
1369 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1370 * be included.
1371 */
a0d0e21e 1372#undef I_DLFCN /**/
85e6fe83 1373
a0d0e21e 1374/* I_FLOAT:
85e6fe83 1375 * This symbol, if defined, indicates to the C program that it should
a0d0e21e
LW
1376 * include <float.h> to get definition of symbols like DBL_MAX or
1377 * DBL_MIN, i.e. machine dependent floating point values.
85e6fe83 1378 */
a0d0e21e 1379#define I_FLOAT /**/
85e6fe83 1380
a0d0e21e
LW
1381/* I_MATH:
1382 * This symbol, if defined, indicates to the C program that it should
1383 * include <math.h>.
85e6fe83 1384 */
a0d0e21e 1385#define I_MATH /**/
85e6fe83 1386
09b7f37c
CB
1387/* DOUBLESIZE:
1388 * This symbol contains the size of a double, so that the C preprocessor
1389 * can make decisions based on it.
1390 */
e518068a
PP
1391/* INTSIZE:
1392 * This symbol contains the size of an int, so that the C preprocessor
1393 * can make decisions based on it.
1394 */
4fdae800
PP
1395/* LONGSIZE:
1396 * This symbol contains the value of sizeof(long) so that the C
1397 * preprocessor can make decisions based on it.
1398 */
1399/* SHORTSIZE:
1400 * This symbol contains the value of sizeof(short) so that the C
1401 * preprocessor can make decisions based on it.
1402 */
09b7f37c
CB
1403/* PTRSIZE:
1404 * This symbol contains the size of a pointer, so that the C preprocessor
1405 * can make decisions based on it. It will be sizeof(void *) if
1406 * the compiler supports (void *); otherwise it will be
1407 * sizeof(char *).
1408 * VMS: Use 32-bit pointers everywhere for now 7-Mar-1998
1409 */
1410#define DOUBLESIZE 8 /**/
e518068a 1411#define INTSIZE 4 /**/
4fdae800
PP
1412#define LONGSIZE 4 /**/
1413#define SHORTSIZE 2 /**/
09b7f37c 1414#define PTRSIZE 4 /**/
748a9306 1415
a0d0e21e
LW
1416/* Off_t:
1417 * This symbol holds the type used to declare offsets in the kernel.
1418 * It can be int, long, off_t, etc... It may be necessary to include
1419 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1420 */
a0d0e21e 1421#define Off_t int /* <offset> type */
e518068a 1422
740ce14c
PP
1423/* I_VALUES:
1424 * This symbol, if defined, indicates to the C program that it should
1425 * include <values.h> to get definition of symbols like MINFLOAT or
1426 * MAXLONG, i.e. machine dependant limitations. Probably, you
1427 * should use <limits.h> instead, if it is available.
1428 */
1429#undef I_VALUES /**/
1430
e518068a
PP
1431/* Free_t:
1432 * This variable contains the return type of free(). It is usually
1433 * void, but occasionally int.
1434 */
a0d0e21e
LW
1435/* Malloc_t:
1436 * This symbol is the type of pointer returned by malloc and realloc.
85e6fe83 1437 */
a0d0e21e 1438#define Malloc_t void * /**/
e518068a 1439#define Free_t void /**/
a0d0e21e
LW
1440
1441/* MYMALLOC:
1442 * This symbol, if defined, indicates that we're using our own malloc.
85e6fe83 1443 */
a0d0e21e
LW
1444#undef MYMALLOC /**/
1445
740ce14c
PP
1446/* SH_PATH:
1447 * This symbol contains the full pathname to the shell used on this
1448 * on this system to execute Bourne shell scripts. Usually, this will be
1449 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1450 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as D:/bin/sh.
1451 */
1452#define SH_PATH "MCR" /**/
1453
e518068a
PP
1454/* SIG_NAME:
1455 * This symbol contains a list of signal names in order. This is intended
1456 * to be used as a static array initialization, like this:
1457 * char *sig_name[] = { SIG_NAME };
1458 * The signals in the list are separated with commas, and each signal
1459 * is surrounded by double quotes. There is no leading SIG in the signal
1460 * name, i.e. SIGQUIT is known as "QUIT". Duplicates are allowed.
1461 * The signal number for sig_name[i] is stored in sig_num[i].
1462 * The last element is 0 to terminate the list with a NULL. This
1463 * corresponds to the 0 at the end of the sig_num list.
1464 * See SIG_NUM and SIG_MAX.
1465 */
84902520
TB
1466#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
1467#define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE",\
1468 "KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM",\
1469 "ABRT","USR1","USR2","SPARE18","SPARE19","CHLD","CONT",\
1470 "STOP","TSTP","TTIN","TTOU","DEBUG","SPARE27","SPARE28",\
1471 "SPARE29","SPARE30","SPARE31","SPARE32","RTMIN","RTMAX",0 /**/
1472#else
e518068a
PP
1473#define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE",\
1474 "KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM",\
84902520
TB
1475 "ABRT","USR1","USR2",0 /*config-skip*/
1476#endif
e518068a
PP
1477
1478/* SIG_NUM:
1479 * This symbol contains a list of signal number, in the same order as the
1480 * SIG_NAME list. It is suitable for static array initialization, as in:
1481 * int sig_num[] = { SIG_NUM };
1482 * The signals in the list are separated with commas, and the indices
1483 * within that list and the SIG_NAME list match, so it's easy to compute
1484 * the signal name from a number or vice versa at the price of a small
1485 * dynamic linear lookup. Duplicates are allowed, so you can't assume
1486 * sig_num[i] == i. Instead, the signal number corresponding to
1487 * sig_name[i] is sig_number[i].
1488 * The last element is 0, corresponding to the 0 at the end of
1489 * the sig_name list.
1490 */
84902520
TB
1491#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
1492#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 /**/
1493#else
1494#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*/
1495#endif
e518068a 1496
a0d0e21e
LW
1497/* Mode_t:
1498 * This symbol holds the type used to declare file modes
1499 * for systems calls. It is usually mode_t, but may be
1500 * int or unsigned short. It may be necessary to include <sys/types.h>
1501 * to get any typedef'ed information.
85e6fe83 1502 */
a0d0e21e
LW
1503#define Mode_t unsigned int /* file mode parameter for system calls*/
1504
1505/* SSize_t:
1506 * This symbol holds the type used by functions that return
1507 * a count of bytes or an error condition. It must be a signed type.
1508 * It is usually ssize_t, but may be long or int, etc.
1509 * It may be necessary to include <sys/types.h> or <unistd.h>
1510 * to get any typedef'ed information.
1511 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
85e6fe83 1512 */
a0d0e21e
LW
1513#define SSize_t int /* signed count of bytes */
1514
e518068a
PP
1515/* VAL_O_NONBLOCK:
1516 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1517 * non-blocking I/O for the file descriptor. Note that there is no way
1518 * back, i.e. you cannot turn it blocking again this way. If you wish to
1519 * alternatively switch between blocking and non-blocking, use the
1520 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1521 */
1522/* VAL_EAGAIN:
1523 * This symbol holds the errno error code set by read() when no data was
1524 * present on the non-blocking file descriptor.
1525 */
1526/* RD_NODATA:
1527 * This symbol holds the return code from read() when no data is present
1528 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1529 * not defined, then you can't distinguish between no data and EOF by
1530 * issuing a read(). You'll have to find another way to tell for sure!
1531 */
1532/* EOF_NONBLOCK:
1533 * This symbol, if defined, indicates to the C program that a read() on
1534 * a non-blocking file descriptor will return 0 on EOF, and not the value
1535 * held in RD_NODATA (-1 usually, in that case!).
1536 */
8dd63a4d
PP
1537#undef VAL_O_NONBLOCK
1538#undef VAL_EAGAIN
1539#undef RD_NODATA
e518068a
PP
1540#undef EOF_NONBLOCK
1541
740ce14c 1542/* PRIVLIB:
a0d0e21e
LW
1543 * This symbol contains the name of the private library for this package.
1544 * The library is private in the sense that it needn't be in anyone's
1545 * execution path, but it should be accessible by the world. The program
1546 * should be prepared to do ~ expansion.
85e6fe83 1547 */
740ce14c
PP
1548/* PRIVLIB_EXP:
1549 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1550 * in programs that are not prepared to deal with ~ expansion at run-time.
1551 */
fed7345c 1552#define PRIVLIB_EXP "/perl_root/lib" /**/
740ce14c 1553#define PRIVLIB PRIVLIB_EXP /*config-skip*/
a0d0e21e 1554
740ce14c
PP
1555/* SITELIB:
1556 * This symbol contains the name of the private library for this package.
1557 * The library is private in the sense that it needn't be in anyone's
1558 * execution path, but it should be accessible by the world. The program
1559 * should be prepared to do ~ expansion.
1560 * The standard distribution will put nothing in this directory.
1561 * Individual sites may place their own extensions and modules in
1562 * this directory.
1563 */
e518068a
PP
1564/* SITELIB_EXP:
1565 * This symbol contains the ~name expanded version of SITELIB, to be used
1566 * in programs that are not prepared to deal with ~ expansion at run-time.
1567 */
482b294c 1568#define SITELIB_EXP "/perl_root/lib/site_perl" /**/
740ce14c 1569#define SITELIB SITELIB_EXP /*config-skip*/
e518068a 1570
740ce14c
PP
1571/* SITEARCH:
1572 * This symbol contains the name of the private library for this package.
1573 * The library is private in the sense that it needn't be in anyone's
1574 * execution path, but it should be accessible by the world. The program
1575 * should be prepared to do ~ expansion.
1576 * The standard distribution will put nothing in this directory.
1577 * Individual sites may place their own extensions and modules in
1578 * this directory.
1579 */
e518068a
PP
1580/* SITEARCH_EXP:
1581 * This symbol contains the ~name expanded version of SITEARCH, to be used
1582 * in programs that are not prepared to deal with ~ expansion at run-time.
1583 */
30fb25ec
PP
1584/* ==> NOTE <==
1585 * This value is automatically updated by FndVers.Com
1586 * when Perl is built. Please do not change it by hand; make
1587 * any changes to FndVers.Com instead.
1588 */
1589#define SITEARCH_EXP "/perl_root/lib/site_perl/VMS_VAX" /**/
740ce14c 1590#define SITEARCH SITEARCH_EXP /*config-skip*/
e518068a 1591
a0d0e21e
LW
1592/* Size_t:
1593 * This symbol holds the type used to declare length parameters
1594 * for string functions. It is usually size_t, but may be
1595 * unsigned long, int, etc. It may be necessary to include
1596 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1597 */
a0d0e21e
LW
1598#define Size_t size_t /* length paramater for string functions */
1599
1600/* Uid_t:
1601 * This symbol holds the type used to declare user ids in the kernel.
1602 * It can be int, ushort, uid_t, etc... It may be necessary to include
1603 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1604 */
b94f085b
PP
1605#if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1606# define Uid_t uid_t /* config-skip */
1607#else
1608# define Uid_t unsigned int /* config-skip */
1609#endif
85e6fe83 1610
a0d0e21e 1611/* I_SYS_PARAM:
85e6fe83 1612 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 1613 * include <sys/param.h>.
85e6fe83 1614 */
a0d0e21e 1615#undef I_SYS_PARAM
85e6fe83 1616
a0d0e21e
LW
1617/* VOID_CLOSEDIR:
1618 * This symbol, if defined, indicates that the closedir() routine
1619 * does not return a value.
79072805 1620 */
a0d0e21e 1621#define VOID_CLOSEDIR /**/
79072805 1622
a0d0e21e
LW
1623/* HAS_DLERROR:
1624 * This symbol, if defined, indicates that the dlerror routine is
1625 * available.
1626*/
1627#undef HAS_DLERROR /**/
1628
1629/* DLSYM_NEEDS_UNDERSCORE:
1630 * This symbol, if defined, indicates that we need to prepend an
1631 * underscore to the symbol name before calling dlsym(). This only
1632 * makes sense if you *have* dlsym, which we will presume is the
1633 * case if you're using dl_dlopen.xs.
85e6fe83 1634 */
a0d0e21e 1635#undef DLSYM_NEEDS_UNDERSCORE /* */
85e6fe83 1636
a0d0e21e
LW
1637/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1638 * This symbol, if defined, indicates that setuid scripts are secure.
79072805 1639 */
a0d0e21e
LW
1640/* DOSUID:
1641 * This symbol, if defined, indicates that the C program should
1642 * check the script that it is executing for setuid/setgid bits, and
1643 * attempt to emulate setuid/setgid on systems that have disabled
1644 * setuid #! scripts because the kernel can't do it securely.
1645 * It is up to the package designer to make sure that this emulation
1646 * is done securely. Among other things, it should do an fstat on
1647 * the script it just opened to make sure it really is a setuid/setgid
1648 * script, it should make sure the arguments passed correspond exactly
1649 * to the argument on the #! line, and it should not trust any
1650 * subprocesses to which it must pass the filename rather than the
1651 * file descriptor of the script to be executed.
1652 */
1653#undef SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1654#undef DOSUID /**/
79072805 1655
71be2cbc
PP
1656/* HAS_INET_ATON:
1657 * This symbol, if defined, indicates to the C program that the
1658 * inet_aton() function is available to parse IP address "dotted-quad"
1659 * strings.
1660 * VMS: SocketShr doesn't support this, so we let the Socket extension
1661 * roll its own.
1662 */
1663#undef HAS_INET_ATON /**/
1664
09b7f37c
CB
1665/* HAS_GNULIBC:
1666 * This symbol, if defined, indicates to the C program that
1667 * the GNU C library is being used.
1668 */
1669#undef HAS_GNULIBC /**/
1670
a0d0e21e
LW
1671/* HAS_ISASCII:
1672 * This manifest constant lets the C program know that the
1673 * isascii is available.
1674 */
1675#define HAS_ISASCII /**/
85e6fe83 1676
dd64f1c3
AD
1677/* HAS_LCHOWN:
1678 * This symbol, if defined, indicates that the lchown routine is
1679 * available to operate on a symbolic link (instead of following the
1680 * link).
1681 */
1682/*#define HAS_LCHOWN / **/
1683
36477c24
PP
1684/* HAS_SETLOCALE:
1685 * This symbol, if defined, indicates that the setlocale routine is
1686 * available to handle locale-specific ctype implementations.
1687 */
1688/* I_LOCALE:
1689 * This symbol, if defined, indicates to the C program that it should
1690 * include <locale.h>.
1691 */
a0d0e21e
LW
1692/* HAS_LOCALECONV:
1693 * This symbol, if defined, indicates that the localeconv routine is
1694 * available for numeric and monetary formatting conventions.
1695 */
36477c24
PP
1696#ifdef __DECC
1697# define I_LOCALE /*config-skip*/
1698# define HAS_SETLOCALE /*config-skip*/
1699# define HAS_LOCALECONV /*config-skip*/
1700#else
1701# undef I_LOCALE /*config-skip*/
1702# undef HAS_SETLOCALE /*config-skip*/
1703# undef HAS_LOCALECONV /*config-skip*/
1704#endif
2304df62 1705
a0d0e21e
LW
1706/* HAS_MKFIFO:
1707 * This symbol, if defined, indicates that the mkfifo routine is
1708 * available.
1709 */
1710#undef HAS_MKFIFO /**/
2304df62 1711
a0d0e21e
LW
1712/* HAS_PATHCONF:
1713 * This symbol, if defined, indicates that pathconf() is available
1714 * to determine file-system related limits and options associated
1715 * with a given filename.
1716 */
1717/* HAS_FPATHCONF:
1718 * This symbol, if defined, indicates that pathconf() is available
1719 * to determine file-system related limits and options associated
1720 * with a given open file descriptor.
1721 */
84902520 1722#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c
CB
1723#define HAS_PATHCONF /*config-skip*/
1724#define HAS_FPATHCONF /*config-skip*/
84902520
TB
1725#else
1726#undef HAS_PATHCONF /*config-skip*/
1727#undef HAS_FPATHCONF /*config-skip*/
1728#endif
85e6fe83 1729
a0d0e21e
LW
1730/* HAS_SAFE_BCOPY:
1731 * This symbol, if defined, indicates that the bcopy routine is available
1732 * to copy potentially overlapping memory blocks. Otherwise you should
1733 * probably use memmove() or memcpy(). If neither is defined, roll your
1734 * own version.
1735 */
1736#undef HAS_SAFE_BCOPY /**/
85e6fe83 1737
a0d0e21e
LW
1738/* HAS_SAFE_MEMCPY:
1739 * This symbol, if defined, indicates that the memcpy routine is available
1740 * to copy potentially overlapping memory blocks. Otherwise you should
1741 * probably use memmove() or memcpy(). If neither is defined, roll your
1742 * own version.
1743 */
1744#define HAS_SAFE_MEMCPY /**/
85e6fe83 1745
36477c24 1746/* HAS_SANE_MEMCMP:
71be2cbc
PP
1747 * This symbol, if defined, indicates that the memcmp routine is available
1748 * and can be used to compare relative magnitudes of chars with their high
1749 * bits set. If it is not defined, roll your own version.
36477c24
PP
1750 */
1751#define HAS_SANE_MEMCMP /**/
1752
a0d0e21e
LW
1753/* HAS_SETPGRP:
1754 * This symbol, if defined, indicates that the setpgrp routine is
1755 * available to set the current process group.
1756 */
edc7bc49
CB
1757/* USE_BSD_SETPGRP:
1758 * This symbol, if defined, indicates that setpgrp needs two
1759 * arguments whereas USG one needs none. See also HAS_SETPGID
1760 * for a POSIX interface.
1761 */
a0d0e21e 1762#undef HAS_SETPGRP /**/
edc7bc49 1763#undef USE_BSD_SETPGRP /**/
85e6fe83 1764
edc7bc49
CB
1765/* HAS_SETPGID:
1766 * This symbol, if defined, indicates that the setpgid routine is
1767 * available to set process group ID.
1768 */
1769#undef HAS_SETPGID /**/
1770
1771/* HAS_SETPGRP2:
1772 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
1773 * routine is available to set the current process group.
1774 */
1775#undef HAS_SETPGRP2 /**/
1776
a0d0e21e
LW
1777/* HAS_SYSCONF:
1778 * This symbol, if defined, indicates that sysconf() is available
1779 * to determine system related limits and options.
1780 */
84902520 1781#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1782#define HAS_SYSCONF /*config-skip*/
84902520
TB
1783#else
1784#undef HAS_SYSCONF /*config-skip*/
1785#endif
85e6fe83 1786
e518068a
PP
1787/* Gconvert:
1788 * This preprocessor macro is defined to convert a floating point
1789 * number to a string without a trailing decimal point. This
1790 * emulates the behavior of sprintf("%g"), but is sometimes much more
1791 * efficient. If gconvert() is not available, but gcvt() drops the
1792 * trailing decimal point, then gcvt() is used. If all else fails,
1793 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1794 * macro are: value, number of digits, whether trailing zeros should
1795 * be retained, and the output buffer.
1796 * Possible values are:
1797 * d_Gconvert='gconvert((x),(n),(t),(b))'
1798 * d_Gconvert='gcvt((x),(n),(b))'
1799 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1800 * The last two assume trailing zeros should not be kept.
1801 */
1802#define Gconvert(x,n,t,b) my_gconvert(x,n,t,b)
1803
edc7bc49
CB
1804/* HAS_GETPGID:
1805 * This symbol, if defined, indicates to the C program that
1806 * the getpgid(pid) function is available to get the
1807 * process group id.
1808 */
1809#undef HAS_GETPGID /**/
1810
1811/* HAS_GETPGRP:
1812 * This symbol, if defined, indicates that the getpgrp routine is
1813 * available to get the current process group.
1814 */
1815/* USE_BSD_GETPGRP:
1816 * This symbol, if defined, indicates that getpgrp needs one
1817 * arguments whereas USG one needs none.
1818 */
1819#undef HAS_GETPGRP /**/
1820#undef USE_BSD_GETPGRP /**/
1821
1822/* HAS_GETPGRP2:
1823 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
1824 * routine is available to get the current process group.
1825 */
1826#undef HAS_GETPGRP2 /**/
1827
740ce14c
PP
1828/* USE_SFIO:
1829 * This symbol, if defined, indicates that sfio should
1830 * be used.
1831 */
1832#undef USE_SFIO /**/
1833
fc1ce8cc
CB
1834/* PTHREADS_CREATED_JOINABLE:
1835 * This symbol, if defined, indicates that pthreads are created
1836 * in the joinable (aka undetached) state.
1837 */
1838#define PTHREADS_CREATED_JOINABLE /**/
1839
b94f085b
PP
1840/* Sigjmp_buf:
1841 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1842 */
1843/* Sigsetjmp:
1844 * This macro is used in the same way as sigsetjmp(), but will invoke
1845 * traditional setjmp() if sigsetjmp isn't available.
1846 */
1847/* Siglongjmp:
1848 * This macro is used in the same way as siglongjmp(), but will invoke
1849 * traditional longjmp() if siglongjmp isn't available.
1850 */
84902520 1851#if ((__VMS_VER >= 70000000) && (__DECC_VER >= 50200000)) || (__CRTL_VER >= 70000000)
09b7f37c 1852#define HAS_SIGSETJMP /*config-skip*/
84902520
TB
1853#else
1854#undef HAS_SIGSETJMP /*config-skip*/
1855#endif
b94f085b
PP
1856#ifdef HAS_SIGSETJMP
1857#define Sigjmp_buf sigjmp_buf /* config-skip */
1858#define Sigsetjmp(buf,save_mask) sigsetjmp(buf,save_mask) /* config-skip */
1859#define Siglongjmp(buf,retval) siglongjmp(buf,retval) /* config-skip */
1860#else
1861#define Sigjmp_buf jmp_buf /* config-skip */
1862#define Sigsetjmp(buf,save_mask) setjmp(buf) /* config-skip */
1863#define Siglongjmp(buf,retval) longjmp(buf,retval) /* config-skip */
1864#endif
1865
a0d0e21e
LW
1866/* USE_DYNAMIC_LOADING:
1867 * This symbol, if defined, indicates that dynamic loading of
1868 * some sort is available.
1869 */
1870#define USE_DYNAMIC_LOADING /**/
2304df62 1871
c07a80fd
PP
1872/* STARTPERL:
1873 * This variable contains the string to put in front of a perl
1874 * script to make sure (one hopes) that it runs with perl and not
1875 * some shell.
1876 */
1877#define STARTPERL "" /**/
1878
8dd63a4d
PP
1879/* Groups_t:
1880 * This symbol holds the type used for the second argument to
5cd24f17 1881 * [gs]etgroups(). Usually, this is the same of gidtype, but
8dd63a4d
PP
1882 * sometimes it isn't. It can be int, ushort, uid_t, etc...
1883 * It may be necessary to include <sys/types.h> to get any
1884 * typedef'ed information. This is only required if you have
5cd24f17 1885 * getgroups() or setgroups.
8dd63a4d 1886 */
5cd24f17
PP
1887#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1888#define Groups_t unsigned int /* config-skip */
8dd63a4d
PP
1889#endif
1890
1891/* DB_Prefix_t:
1892 * This symbol contains the type of the prefix structure element
1893 * in the <db.h> header file. In older versions of DB, it was
1894 * int, while in newer ones it is u_int32_t.
1895 */
1896/* DB_Hash_t:
1897 * This symbol contains the type of the prefix structure element
1898 * in the <db.h> header file. In older versions of DB, it was
1899 * int, while in newer ones it is size_t.
1900 */
1901#undef DB_Hash_t /**/
1902#undef DB_Prefix_t /**/
1903
740ce14c
PP
1904/* USE_PERLIO:
1905 * This symbol, if defined, indicates that the PerlIO abstraction should
1906 * be used throughout. If not defined, stdio should be
1907 * used in a fully backward compatible manner.
8dd63a4d 1908 */
740ce14c 1909#undef USE_PERLIO /**/
8dd63a4d 1910
17f28c40
CB
1911/* HAS_SETVBUF:
1912 * This symbol, if defined, indicates that the setvbuf routine is
1913 * available to change buffering on an open stdio stream.
1914 * to a line-buffered mode.
1915 */
1916#define HAS_SETVBUF /**/
1917
e518068a
PP
1918/* VOIDFLAGS:
1919 * This symbol indicates how much support of the void type is given by this
1920 * compiler. What various bits mean:
1921 *
1922 * 1 = supports declaration of void
1923 * 2 = supports arrays of pointers to functions returning void
1924 * 4 = supports comparisons between pointers to void functions and
1925 * addresses of void functions
1926 * 8 = suports declaration of generic void pointers
1927 *
1928 * The package designer should define VOIDUSED to indicate the requirements
1929 * of the package. This can be done either by #defining VOIDUSED before
1930 * including config.h, or by defining defvoidused in Myinit.U. If the
1931 * latter approach is taken, only those flags will be tested. If the
1932 * level of void support necessary is not present, defines void to int.
1933 */
1934#ifndef VOIDUSED
1935#define VOIDUSED 15
1936#endif
1937#define VOIDFLAGS 15
1938#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1939#define void int /* is void to be avoided? */ /* config-skip */
1940#define M_VOID /* Xenix strikes again */ /* config-skip */
1941#endif
1942
a0d0e21e
LW
1943#ifdef VMS_DO_SOCKETS
1944/* HAS_SOCKET:
1945 * This symbol, if defined, indicates that the BSD socket interface is
1946 * supported.
1947 */
1948/* HAS_SOCKETPAIR:
1949 * This symbol, if defined, indicates that the BSD socketpair() call is
1950 * supported.
1951 */
1952#define HAS_SOCKET /**/ /* config-skip */
1953#undef HAS_SOCKETPAIR /**/ /* config-skip */
85e6fe83 1954
a0d0e21e
LW
1955/* HAS_GETHOSTENT:
1956 * This symbol, if defined, indicates that the gethostent routine is
1957 * available to lookup host names in some data base or other.
1958 */
1959#define HAS_GETHOSTENT /**/ /* config-skip */
2304df62 1960
51e0df5c
HM
1961/* HAS_GETHOSTBYADDR:
1962 * This symbol, if defined, indicates that the gethostbyaddr routine is
09b7f37c 1963 * available to lookup host names by their IP addresses.
51e0df5c 1964 */
09b7f37c 1965#define HAS_GETHOSTBYADDR /**/ /* config-skip */
51e0df5c
HM
1966
1967/* Netdb_host_t:
1968 * This symbol holds the type used for the 1st argument
1969 * to gethostbyaddr().
1970 */
09b7f37c 1971#define Netdb_host_t char * /**/ /* config-skip */
51e0df5c
HM
1972
1973/* Netdb_hlen_t:
1974 * This symbol holds the type used for the 2nd argument
1975 * to gethostbyaddr().
1976 */
09b7f37c 1977#define Netdb_hlen_t int /**/ /* config-skip */
51e0df5c 1978
59f0d4a5
HM
1979/* HAS_GETPROTOBYNAME:
1980 * This symbol, if defined, indicates that the getprotobyname()
1981 * routine is available to look up protocols by their name.
1982 */
1983/* HAS_GETPROTOBYNUMBER:
1984 * This symbol, if defined, indicates that the getprotobynumber()
1985 * routine is available to look up protocols by their number.
1986 */
17f28c40
CB
1987#define HAS_GETPROTOBYNAME /*config-skip*/
1988#define HAS_GETPROTOBYNUMBER /*config-skip*/
59f0d4a5 1989
51e0df5c
HM
1990/* HAS_GETHOSTBYNAME:
1991 * This symbol, if defined, indicates that the gethostbyname routine is
1992 * available to lookup hosts by their DNS names.
1993 */
09b7f37c 1994#define HAS_GETHOSTBYNAME /*config-skip*/
51e0df5c
HM
1995
1996/* Netdb_name_t:
1997 * This symbol holds the type used for the 1st argument
1998 * to gethostbyname(), the 1st argument to getnetbyname(),
1999 * the 1st argument to getprotobyname(), the 1st argument to
2000 * getservbyname(), the 2nd argument to getservbyname(),
2001 * and the 2nd argument to getservbyport().
2002 */
09b7f37c 2003#define Netdb_name_t char *
51e0df5c 2004
09b7f37c
CB
2005#ifdef DECCRTL_SOCKETS
2006/* HAS_GETNETBYADDR:
51e0df5c
HM
2007 * This symbol, if defined, indicates that the getnetbyaddr routine is
2008 * available to lookup networks by their IP addresses.
2009 */
09b7f37c 2010#define HAS_GETNETBYADDR /**/ /* config-skip */
51e0df5c
HM
2011
2012/* Netdb_net_t:
2013 * This symbol holds the type used for the 1st argument
2014 * to getnetbyaddr().
2015 */
09b7f37c 2016#define Netdb_net_t long /**/ /* config-skip */
51e0df5c 2017
09b7f37c
CB
2018/* HAS_GETNETBYNAME:
2019 * This symbol, if defined, indicates that the getnetbyname routine is
2020 * available to lookup networks by their names.
fc1ce8cc 2021 */
09b7f37c 2022#define HAS_GETNETBYNAME /*config-skip*/
17f28c40
CB
2023
2024/* HAS_GETNETENT:
2025 * This symbol, if defined, indicates that the getnetent() routine is
2026 * available to look up network names in some data base or another.
2027 */
2028#define HAS_GETNETENT /*config-skip*/
2029
2030/* HAS_SETNETENT:
2031 * This symbol, if defined, indicates that the setnetent() routine is
2032 * available.
2033 */
2034#define HAS_SETNETENT /*config-skip*/
2035
2036/* HAS_ENDNETENT:
2037 * This symbol, if defined, indicates that the endnetent() routine is
2038 * available to close whatever was being used for network queries.
2039 */
2040#define HAS_ENDNETENT /*config-skip*/
09b7f37c 2041#else
17f28c40 2042#undef HAS_GETNETBYADDR /*config-skip*/
09b7f37c 2043#undef HAS_GETNETBYNAME /*config-skip*/
17f28c40
CB
2044#undef HAS_GETNETENT /*config-skip*/
2045#undef HAS_SETNETENT /*config-skip*/
2046#undef HAS_ENDNETENT /*config-skip*/
09b7f37c 2047#endif
fc1ce8cc 2048
09b7f37c
CB
2049/* HAS_GETPROTOBYNAME:
2050 * This symbol, if defined, indicates that the getprotobyname routine is
2051 * available to lookup protocols by their names.
fc1ce8cc 2052 */
09b7f37c
CB
2053/* HAS_GETPROTOBYNUMBER:
2054 * This symbol, if defined, indicates that the getprotobynumber()
2055 * routine is available to look up protocols by their number.
fc1ce8cc 2056 */
09b7f37c
CB
2057#define HAS_GETPROTOBYNAME /*config-skip*/
2058#define HAS_GETPROTOBYNUMBER /*config-skip*/
fc1ce8cc 2059
09b7f37c
CB
2060/* HAS_GETSERVBYNAME:
2061 * This symbol, if defined, indicates that the getservbyname()
2062 * routine is available to look up services by their name.
fc1ce8cc 2063 */
09b7f37c
CB
2064/* HAS_GETSERVBYPORT:
2065 * This symbol, if defined, indicates that the getservbyport()
2066 * routine is available to look up services by their port.
2067 */
2068#define HAS_GETSERVBYNAME /*config-skip*/
2069#define HAS_GETSERVBYPORT /*config-skip*/
fc1ce8cc 2070
09b7f37c
CB
2071/* HAS_SETHOSTENT:
2072 * This symbol, if defined, indicates that the sethostent() routine is
2073 * available.
fc1ce8cc 2074 */
09b7f37c 2075#define HAS_SETHOSTENT /*config-skip*/
fc1ce8cc 2076
a0d0e21e
LW
2077/* VMS: In general, TCP/IP header files should be included from
2078 * sockadapt.h, instead of here, in order to keep the TCP/IP code
2079 * together as much as possible.
2080 */
2081/* I_NETINET_IN:
2082 * This symbol, if defined, indicates to the C program that it should
2083 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
2084 */
2085#undef I_NETINET_IN /**/ /* config-skip */
2304df62 2086
fc1ce8cc
CB
2087/* I_NETDB:
2088 * This symbol, if defined, indicates that <netdb.h> exists and
2089 * should be included.
2090 */
2091#undef I_NETDB /**/ /* config-skip */
2092
a0d0e21e
LW
2093/* I_NET_ERRNO:
2094 * This symbol, if defined, indicates that <net/errno.h> exists and
2095 * should be included.
2096*/
2097#undef I_NET_ERRNO /**/ /* config-skip */
85e6fe83 2098
e518068a
PP
2099/* HAS_SELECT:
2100 * This symbol, if defined, indicates that the select routine is
2101 * available to select active file descriptors. If the timeout field
2102 * is used, <sys/time.h> may need to be included.
2103 */
2104#define HAS_SELECT /**/ /* config-skip */
2105
17f28c40
CB
2106/* HAS_ENDHOSTENT:
2107 * This symbol, if defined, indicates that the endhostent() routine is
2108 * available to close whatever was being used for host queries.
2109 */
2110#define HAS_ENDHOSTENT /*config-skip*/
2111
2112/* HAS_GETPROTOENT:
2113 * This symbol, if defined, indicates that the getprotoent() routine is
2114 * available to look up protocols in some data base or another.
2115 */
2116#define HAS_GETPROTOENT /*config-skip*/
2117
2118/* HAS_ENDPROTOENT:
2119 * This symbol, if defined, indicates that the endprotoent() routine is
2120 * available to close whatever was being used for protocol queries.
2121 */
2122#define HAS_ENDPROTOENT /*config-skip*/
2123
2124/* HAS_SETPROTOENT:
2125 * This symbol, if defined, indicates that the setprotoent() routine is
2126 * available.
2127 */
2128#define HAS_SETPROTOENT /*config-skip*/
2129
2130/* HAS_GETSERVENT:
2131 * This symbol, if defined, indicates that the getservent() routine is
2132 * available to look up network services in some data base or another.
2133 */
2134#define HAS_GETSERVENT /*config-skip*/
2135
2136/* HAS_SETSERVENT:
2137 * This symbol, if defined, indicates that the setservent() routine is
2138 * available.
2139 */
2140#define HAS_SETSERVENT /*config-skip*/
2141
2142/* HAS_ENDSERVENT:
2143 * This symbol, if defined, indicates that the endservent() routine is
2144 * available to close whatever was being used for service queries.
2145 */
2146#define HAS_ENDSERVENT /*config-skip*/
2147
b7b1864f
CB
2148/* HAS_GETHOST_PROTOS:
2149 * This symbol, if defined, indicates that <netdb.h> includes
2150 * prototypes for gethostent(), gethostbyname(), and
2151 * gethostbyaddr(). Otherwise, it is up to the program to guess
2152 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2153 */
2154#define HAS_GETHOST_PROTOS /*config-skip*/
2155
2156/* HAS_GETNET_PROTOS:
2157 * This symbol, if defined, indicates that <netdb.h> includes
2158 * prototypes for getnetent(), getnetbyname(), and
2159 * getnetbyaddr(). Otherwise, it is up to the program to guess
2160 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2161 */
2162#define HAS_GETNET_PROTOS /*config-skip*/
2163
2164/* HAS_GETPROTO_PROTOS:
2165 * This symbol, if defined, indicates that <netdb.h> includes
2166 * prototypes for getprotoent(), getprotobyname(), and
2167 * getprotobyaddr(). Otherwise, it is up to the program to guess
2168 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2169 */
2170#define HAS_GETPROTO_PROTOS /*config-skip*/
2171
2172/* HAS_GETSERV_PROTOS:
2173 * This symbol, if defined, indicates that <netdb.h> includes
2174 * prototypes for getservent(), getservbyname(), and
2175 * getservbyaddr(). Otherwise, it is up to the program to guess
2176 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2177 */
2178#define HAS_GETSERV_PROTOS /*config-skip*/
2179
a0d0e21e
LW
2180#else /* VMS_DO_SOCKETS */
2181
09b7f37c
CB
2182#undef HAS_SOCKET /*config-skip*/
2183#undef HAS_SOCKETPAIR /*config-skip*/
2184#undef HAS_GETHOSTENT /*config-skip*/
2185#undef HAS_SETHOSTENT /*config-skip*/
2186#undef I_NETINET_IN /*config-skip*/
2187#undef I_NETDB /*config-skip*/
2188#undef I_NET_ERRNO /*config-skip*/
2189#undef HAS_SELECT /*config-skip*/
2190#undef HAS_GETHOSTBYADDR /*config-skip*/
2191#undef HAS_GETNETBYADDR /*config-skip*/
17f28c40
CB
2192#undef HAS_GETNETENT /*config-skip*/
2193#undef HAS_SETNETENT /*config-skip*/
2194#undef HAS_ENDNETENT /*config-skip*/
09b7f37c
CB
2195#undef HAS_GETHOSTBYNAME /*config-skip*/
2196#undef HAS_GETNETBYNAME /*config-skip*/
2197#undef HAS_GETPROTOBYNAME /*config-skip*/
2198#undef HAS_GETPROTOBYNUMBER /*config-skip*/
2199#undef HAS_GETSERVBYNAME /*config-skip*/
2200#undef HAS_GETSERVBYPORT /*config-skip*/
17f28c40
CB
2201#undef HAS_ENDHOSTENT /*config-skip*/
2202#undef HAS_GETPROTOENT /*config-skip*/
2203#undef HAS_SETPROTOENT /*config-skip*/
2204#undef HAS_ENDPROTOENT /*config-skip*/
2205#undef HAS_GETSERVENT /*config-skip*/
2206#undef HAS_SETSERVENT /*config-skip*/
2207#undef HAS_ENDSERVENT /*config-skip*/
b7b1864f
CB
2208#undef HAS_GETHOST_PROTOS /*config-skip*/
2209#undef HAS_GETNET_PROTOS /*config-skip*/
2210#undef HAS_GETPROTO_PROTOS /*config-skip*/
2211#undef HAS_GETSERV_PROTOS /*config-skip*/
a0d0e21e
LW
2212
2213#endif /* !VMS_DO_SOCKETS */
79072805
LW
2214
2215#endif