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