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