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