perl5.001 patch.1c
[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
a0d0e21e 13/* Configuration time: 12-Oct-1994 17:00
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 */
a0d0e21e 463#undef Shmat_t char * /**/ /* config-skip */
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
2304df62 472/* USE_STD_STDIO:
79072805 473 * This symbol is defined if this system has a FILE structure declaring
474 * _ptr and _cnt in stdio.h.
475 */
a0d0e21e 476#undef USE_STD_STDIO /**/
79072805 477
2304df62 478/* USE_STRUCT_COPY:
79072805 479 * This symbol, if defined, indicates that this C compiler knows how
480 * to copy structures. If undefined, you'll need to use a block copy
481 * routine of some sort instead.
482 */
2304df62 483#define USE_STRUCT_COPY /**/
79072805 484
a0d0e21e 485/* HAS_STRERROR:
486 * This symbol, if defined, indicates that the strerror routine is
487 * available to translate error numbers to strings. See the writeup
488 * of Strerror() in this file before you try to define your own.
489 */
490/* HAS_SYS_ERRLIST:
491 * This symbol, if defined, indicates that the sys_errlist array is
492 * available to translate error numbers to strings. The extern int
493 * sys_nerr gives the size of that table.
494 */
495/* Strerror:
496 * This preprocessor symbol is defined as a macro if strerror() is
497 * not available to translate error numbers to strings but sys_errlist[]
498 * array is there.
499 */
500#define HAS_STRERROR /**/
501#undef HAS_SYS_ERRLIST /**/
502#ifdef HAS_STRERROR
503# define Strerror(e) strerror((e),vaxc$errno)
504#else
505#define Strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/ /* config-skip */
506#endif
507
2304df62 508/* HAS_SYMLINK:
79072805 509 * This symbol, if defined, indicates that the symlink routine is available
510 * to create symbolic links.
511 */
a0d0e21e 512#undef HAS_SYMLINK /**/
2304df62 513
514/* HAS_SYSCALL:
515 * This symbol, if defined, indicates that the syscall routine is
516 * available to call arbitrary system calls. If undefined, that's tough.
517 */
a0d0e21e 518#undef HAS_SYSCALL /**/
79072805 519
2304df62 520/* HAS_SYSTEM:
521 * This symbol, if defined, indicates that the system routine is
522 * available to issue a shell command.
79072805 523 */
2304df62 524#define HAS_SYSTEM /**/
79072805 525
85e6fe83 526/* Time_t:
527 * This symbol holds the type returned by time(). It can be long,
528 * or time_t on BSD sites (in which case <sys/types.h> should be
529 * included).
530 */
a0d0e21e 531#define Time_t time_t /* Time type */
79072805 532
2304df62 533/* HAS_TRUNCATE:
79072805 534 * This symbol, if defined, indicates that the truncate routine is
535 * available to truncate files.
536 */
a0d0e21e 537#undef HAS_TRUNCATE /**/
79072805 538
2304df62 539
a0d0e21e 540/* HAS_VFORK:
541 * This symbol, if defined, indicates that vfork() exists.
79072805 542 */
a0d0e21e 543#define HAS_VFORK /**/
79072805 544
748a9306 545/* Signal_t:
546 * This symbol's value is either "void" or "int", corresponding to the
547 * appropriate return type of a signal handler. Thus, you can declare
548 * a signal handler using "Signal_t (*handler)()", and define the
549 * handler using "Signal_t handler(sig)".
550 */
551#define Signal_t void /* Signal handler's return type */
552
2304df62 553/* HASVOLATILE:
79072805 554 * This symbol, if defined, indicates that this C compiler knows about
555 * the volatile declaration.
556 */
a0d0e21e 557#define HASVOLATILE /**/
2304df62 558#ifndef HASVOLATILE
a0d0e21e 559#define volatile /* config-skip */
2304df62 560#endif
79072805 561
2304df62 562/* HAS_VPRINTF:
79072805 563 * This symbol, if defined, indicates that the vprintf routine is available
564 * to printf with a pointer to an argument list. If unavailable, you
565 * may need to write your own, probably in terms of _doprnt().
566 */
2304df62 567/* USE_CHAR_VSPRINTF:
79072805 568 * This symbol is defined if this system has vsprintf() returning type
569 * (char*). The trend seems to be to declare it as "int vsprintf()". It
570 * is up to the package author to declare vsprintf correctly based on the
571 * symbol.
572 */
2304df62 573#define HAS_VPRINTF /**/
a0d0e21e 574#undef USE_CHAR_VSPRINTF /**/
79072805 575
2304df62 576/* HAS_WAIT4:
79072805 577 * This symbol, if defined, indicates that wait4() exists.
578 */
a0d0e21e 579#undef HAS_WAIT4 /**/
79072805 580
2304df62 581/* HAS_WAITPID:
582 * This symbol, if defined, indicates that the waitpid routine is
583 * available to wait for child process.
79072805 584 */
748a9306 585#define HAS_WAITPID /**/
79072805 586
a0d0e21e 587/* HAS_WCSTOMBS:
588 * This symbol, if defined, indicates that the wcstombs routine is
589 * available to convert wide character strings to multibyte strings.
79072805 590 */
a0d0e21e 591#undef HAS_WCSTOMBS /**/
79072805 592
2304df62 593/* I_DIRENT:
594 * This symbol, if defined, indicates to the C program that it should
595 * include <dirent.h>. Using this symbol also triggers the definition
596 * of the Direntry_t define which ends up being 'struct dirent' or
597 * 'struct direct' depending on the availability of <dirent.h>.
79072805 598 */
2304df62 599/* DIRNAMLEN:
600 * This symbol, if defined, indicates to the C program that the length
601 * of directory entry names is provided by a d_namlen field. Otherwise
602 * you need to do strlen() on the d_name field.
603 */
a0d0e21e 604#undef I_DIRENT /**/
605#define DIRNAMLEN /**/
2304df62 606#define Direntry_t struct dirent
79072805 607
2304df62 608/* I_FCNTL:
79072805 609 * This manifest constant tells the C program to include <fcntl.h>.
610 */
a0d0e21e 611#undef I_FCNTL /**/
79072805 612
2304df62 613/* I_GRP:
79072805 614 * This symbol, if defined, indicates to the C program that it should
2304df62 615 * include <grp.h>.
79072805 616 */
a0d0e21e 617#undef I_GRP /**/
79072805 618
a0d0e21e 619/* I_LIMITS:
620 * This symbol, if defined, indicates to the C program that it should
621 * include <limits.h> to get definition of symbols like WORD_BIT or
622 * LONG_MAX, i.e. machine dependant limitations.
2304df62 623 */
a0d0e21e 624#undef I_LIMITS /**/
2304df62 625
a0d0e21e 626/* I_MEMORY:
79072805 627 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 628 * include <memory.h>.
79072805 629 */
a0d0e21e 630#undef I_MEMORY /**/
631
632/* I_NDBM:
633 * This symbol, if defined, indicates that ndbm.h exists and should
634 * be included.
79072805 635 */
a0d0e21e 636#undef I_NDBM /**/
79072805 637
2304df62 638/* I_STDARG:
639 * This symbol, if defined, indicates that <stdarg.h> exists and should
640 * be included.
79072805 641 */
a0d0e21e 642#define I_STDARG /**/
643
644/* I_PWD:
645 * This symbol, if defined, indicates to the C program that it should
646 * include <pwd.h>.
647 */
648/* PWQUOTA:
649 * This symbol, if defined, indicates to the C program that struct passwd
650 * contains pw_quota.
651 */
652/* PWAGE:
653 * This symbol, if defined, indicates to the C program that struct passwd
654 * contains pw_age.
655 */
656/* PWCHANGE:
657 * This symbol, if defined, indicates to the C program that struct passwd
658 * contains pw_change.
659 */
660/* PWCLASS:
661 * This symbol, if defined, indicates to the C program that struct passwd
662 * contains pw_class.
663 */
664/* PWEXPIRE:
665 * This symbol, if defined, indicates to the C program that struct passwd
666 * contains pw_expire.
667 */
668/* PWCOMMENT:
669 * This symbol, if defined, indicates to the C program that struct passwd
670 * contains pw_comment.
671 */
672#undef I_PWD /**/
673#undef PWQUOTA /**/
674#undef PWAGE /**/
675#undef PWCHANGE /**/
676#undef PWCLASS /**/
677#undef PWEXPIRE /**/
748a9306 678#define PWCOMMENT /**/
79072805 679
2304df62 680/* I_STDDEF:
681 * This symbol, if defined, indicates that <stddef.h> exists and should
79072805 682 * be included.
683 */
2304df62 684#define I_STDDEF /**/
685
a0d0e21e 686/* I_STDLIB:
687* This symbol, if defined, indicates that <stdlib.h> exists and should
688* be included.
689*/
690#define I_STDLIB /**/
691
85e6fe83 692/* I_STRING:
693 * This symbol, if defined, indicates to the C program that it should
694 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
695 */
696#define I_STRING /**/
697
2304df62 698/* I_SYS_DIR:
699 * This symbol, if defined, indicates to the C program that it should
700 * include <sys/dir.h>.
701 */
a0d0e21e 702#undef I_SYS_DIR /**/
2304df62 703
704/* I_SYS_FILE:
705 * This symbol, if defined, indicates to the C program that it should
706 * include <sys/file.h> to get definition of R_OK and friends.
707 */
a0d0e21e 708#undef I_SYS_FILE /**/
79072805 709
2304df62 710/* I_SYS_IOCTL:
711 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
712 * be included. Otherwise, include <sgtty.h> or <termio.h>.
79072805 713 */
a0d0e21e 714#undef I_SYS_IOCTL /**/
715
716/* HAS_IOCTL:
717 * This symbol, if defined, indicates that the ioctl() routine is
718 * available to set I/O characteristics
719 */
720#undef HAS_IOCTL /**/
2304df62 721
722/* I_SYS_NDIR:
723 * This symbol, if defined, indicates to the C program that it should
724 * include <sys/ndir.h>.
79072805 725 */
a0d0e21e 726#undef I_SYS_NDIR /**/
2304df62 727
728/* I_SYS_SELECT:
729 * This symbol, if defined, indicates to the C program that it should
730 * include <sys/select.h> in order to get definition of struct timeval.
731 */
a0d0e21e 732#undef I_SYS_SELECT /**/
733
40000a8c 734/* I_SYS_STAT:
735 * This symbol, if defined, indicates to the C program that it should
736 * include <sys/stat.h>.
737 */
738#define I_SYS_STAT /**/
a0d0e21e 739
740/* I_SYS_TIMES:
741 * This symbol, if defined, indicates to the C program that it should
742 * include <sys/times.h>.
743 */
744#undef I_SYS_TIMES /**/
745
40000a8c 746/* I_SYS_TYPES:
747 * This symbol, if defined, indicates to the C program that it should
748 * include <sys/types.h>.
749 */
750#define I_SYS_TYPES /**/
751
a0d0e21e 752/* I_TERMIO:
753 * This symbol, if defined, indicates that the program should include
754 * <termio.h> rather than <sgtty.h>. There are also differences in
755 * the ioctl() calls that depend on the value of this symbol.
756 */
757/* I_TERMIOS:
758 * This symbol, if defined, indicates that the program should include
759 * the POSIX termios.h rather than sgtty.h or termio.h.
760 * There are also differences in the ioctl() calls that depend on the
761 * value of this symbol.
762 */
763/* I_SGTTY:
764 * This symbol, if defined, indicates that the program should include
765 * <sgtty.h> rather than <termio.h>. There are also differences in
766 * the ioctl() calls that depend on the value of this symbol.
767 */
768#undef I_TERMIO /**/
769#undef I_SGTTY /**/
770#undef I_TERMIOS /**/
2304df62 771
772/* I_TIME:
773 * This symbol, if defined, indicates to the C program that it should
774 * include <time.h>.
79072805 775 */
2304df62 776/* I_SYS_TIME:
777 * This symbol, if defined, indicates to the C program that it should
778 * include <sys/time.h>.
79072805 779 */
85e6fe83 780/* I_SYS_TIME_KERNEL:
781 * This symbol, if defined, indicates to the C program that it should
782 * include <sys/time.h> with KERNEL defined.
783 */
a0d0e21e 784#define I_TIME /**/
785#undef I_SYS_TIME /**/
786#undef I_SYS_TIME_KERNEL /**/
85e6fe83 787
788/* I_UNISTD:
789 * This symbol, if defined, indicates to the C program that it should
790 * include <unistd.h>.
791 */
a0d0e21e 792#undef I_UNISTD /**/
79072805 793
2304df62 794/* I_UTIME:
79072805 795 * This symbol, if defined, indicates to the C program that it should
2304df62 796 * include <utime.h>.
79072805 797 */
a0d0e21e 798#undef I_UTIME /**/
799
800/* HAS_UTIME:
801 * This symbol, if defined, indicates that the routine utime() is
802 * available to update the access and modification times of files.
803 */
748a9306 804#define HAS_UTIME /**/
79072805 805
a0d0e21e 806/* I_STDARG:
807 * This symbol, if defined, indicates that <stdarg.h> exists and should
808 * be included.
809 */
2304df62 810/* I_VARARGS:
79072805 811 * This symbol, if defined, indicates to the C program that it should
2304df62 812 * include <varargs.h>.
79072805 813 */
a0d0e21e 814#define I_STDARG /**/
815#undef I_VARARGS /**/
816
817
818/* I_VFORK:
819 * This symbol, if defined, indicates to the C program that it should
820 * include vfork.h.
821 */
822#undef I_VFORK /**/
79072805 823
2304df62 824/* INTSIZE:
79072805 825 * This symbol contains the size of an int, so that the C preprocessor
826 * can make decisions based on it.
827 */
828#define INTSIZE 4 /**/
829
85e6fe83 830
a0d0e21e 831/* CAN_PROTOTYPE:
832 * If defined, this macro indicates that the C compiler can handle
833 * function prototypes.
79072805 834 */
a0d0e21e 835/* _:
836 * This macro is used to declare function parameters for folks who want
837 * to make declarations with prototypes using a different style than
838 * the above macros. Use double parentheses. For example:
839 *
840 * int main _((int argc, char *argv[]));
85e6fe83 841 */
a0d0e21e 842#define CAN_PROTOTYPE /**/
843#ifdef CAN_PROTOTYPE
844#define _(args) args /* config-skip */
845#else
846#define _(args) () /* config-skip */
847#endif
85e6fe83 848
2304df62 849/* RANDBITS:
850 * This symbol contains the number of bits of random number the rand()
851 * function produces. Usual values are 15, 16, and 31.
79072805 852 */
2304df62 853#define RANDBITS 31 /**/
854
a0d0e21e 855
856/* Select_fd_set_t:
857 * This symbol holds the type used for the 2nd, 3rd, and 4th
858 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
859 * is defined, and 'int *' otherwise. This is only useful if you
860 * have select(), of course.
79072805 861 */
a0d0e21e 862#define Select_fd_set_t fd_set * /**/
2304df62 863
2304df62 864/* STDCHAR:
865 * This symbol is defined to be the type of char used in stdio.h.
866 * It has the values "unsigned char" or "char".
79072805 867 */
a0d0e21e 868#define STDCHAR char /**/
79072805 869
a0d0e21e 870/* VOIDFLAGS:
871 * This symbol indicates how much support of the void type is given by this
872 * compiler. What various bits mean:
873 *
874 * 1 = supports declaration of void
875 * 2 = supports arrays of pointers to functions returning void
876 * 4 = supports comparisons between pointers to void functions and
877 * addresses of void functions
878 * 8 = suports declaration of generic void pointers
879 *
880 * The package designer should define VOIDUSED to indicate the requirements
881 * of the package. This can be done either by #defining VOIDUSED before
882 * including config.h, or by defining defvoidused in Myinit.U. If the
883 * latter approach is taken, only those flags will be tested. If the
884 * level of void support necessary is not present, defines void to int.
885 */
886#ifndef VOIDUSED
887#define VOIDUSED 15
888#endif
889#define VOIDFLAGS 15
890#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
891#define void int /* is void to be avoided? */ /* config-skip */
892#define M_VOID /* Xenix strikes again */ /* config-skip */
893#endif
894
895
896/* EUNICE:
897 * This symbol, if defined, indicates that the program is being compiled
898 * under the EUNICE package under VMS. The program will need to handle
899 * things like files that don't go away the first time you unlink them,
900 * due to version numbering. It will also need to compensate for lack
901 * of a respectable link() command.
85e6fe83 902 */
903/* VMS:
904 * This symbol, if defined, indicates that the program is running under
905 * VMS. It is currently only set in conjunction with the EUNICE symbol.
906 */
a0d0e21e 907#define EUNICE /**/
908/* This symbol is automagically defined by all VMS C compilers I've seen.
909 * Just in case, however . . . */
910#ifndef VMS
911#define VMS /**/
912#endif
85e6fe83 913
a0d0e21e 914/* LOC_SED:
915 * This symbol holds the complete pathname to the sed program.
85e6fe83 916 */
a0d0e21e 917#define LOC_SED "_NLA0:" /**/
918
919/* BIN:
920 * This symbol holds the path of the bin directory where the package will
921 * be installed. Program must be prepared to deal with ~name substitution.
922 */
923#define BIN "/perl_root/000000" /**/
924
925/* HAS_ALARM:
926 * This symbol, if defined, indicates that the alarm routine is
927 * available.
928 */
929#define HAS_ALARM /**/
85e6fe83 930
2304df62 931/* CASTI32:
932 * This symbol is defined if the C compiler can cast negative
933 * or large floating point numbers to 32-bit ints.
79072805 934 */
2304df62 935#define CASTI32 /**/
936
a0d0e21e 937/* HAS_CHOWN:
938 * This symbol, if defined, indicates that the chown routine is
939 * available.
940 */
941#define HAS_CHOWN /**/
942
943/* HAS_CHROOT:
944 * This symbol, if defined, indicates that the chroot routine is
945 * available.
946 */
947#undef HAS_CHROOT /**/
948
949/* HAS_CUSERID:
950 * This symbol, if defined, indicates that the cuserid routine is
951 * available to get character login names.
952 */
953#define HAS_CUSERID /**/
954
955/* HAS_DBL_DIG:
956 * This symbol, if defined, indicates that this system's <float.h>
957 * or <limits.h> defines the symbol DBL_DIG, which is the number
958 * of significant digits in a double precision number. If this
959 * symbol is not defined, a guess of 15 is usually pretty good.
960 */
961#define HAS_DBL_DIG /* */
962
963/* HAS_DIFFTIME:
964 * This symbol, if defined, indicates that the difftime routine is
965 * available.
966 */
967#define HAS_DIFFTIME /**/
968
969/* HAS_FORK:
970 * This symbol, if defined, indicates that the fork routine is
971 * available.
972 */
973/* VMS: In vmsish.h, fork is #defined to vfork. This kludge gets around
974 * some obsolete code in pp.c, which should be fixed in its own right
975 * sometime. - C. Bailey 26-Aug-1994
976 */
977#define HAS_FORK /**/
978
979/* HAS_GETLOGIN:
980 * This symbol, if defined, indicates that the getlogin routine is
981 * available.
982 */
983#undef HAS_GETLOGIN /**/
984
985/* HAS_GETPPID:
986 * This symbol, if defined, indicates that the getppid routine is
987 * available.
988 */
989#undef HAS_GETPPID /**/
990
1aef975c 991/* HAS_GETGRENT:
992 * This symbol, if defined, indicates that the getgrent routine is
a0d0e21e 993 * available.
994 */
1aef975c 995#undef HAS_GETGRENT /**/
a0d0e21e 996
85e6fe83 997/* HAS_HTONL:
998 * This symbol, if defined, indicates that the htonl() routine (and
999 * friends htons() ntohl() ntohs()) are available to do network
1000 * order byte swapping.
1001 */
1002/* HAS_HTONS:
1003 * This symbol, if defined, indicates that the htons() routine (and
1004 * friends htonl() ntohl() ntohs()) are available to do network
1005 * order byte swapping.
1006 */
1007/* HAS_NTOHL:
1008 * This symbol, if defined, indicates that the ntohl() routine (and
1009 * friends htonl() htons() ntohs()) are available to do network
1010 * order byte swapping.
1011 */
1012/* HAS_NTOHS:
1013 * This symbol, if defined, indicates that the ntohs() routine (and
1014 * friends htonl() htons() ntohl()) are available to do network
1015 * order byte swapping.
1016 */
a0d0e21e 1017#define HAS_HTONL /**/
1018#define HAS_HTONS /**/
1019#define HAS_NTOHL /**/
1020#define HAS_NTOHS /**/
1021
1022/* HAS_MBLEN:
1023 * This symbol, if defined, indicates that the mblen routine is available
1024 * to find the number of bytes in a multibye character.
1025 */
1026#undef HAS_MBLEN /**/
85e6fe83 1027
a0d0e21e 1028/* HAS_MKTIME:
1029 * This symbol, if defined, indicates that the mktime routine is
1030 * available.
79072805 1031 */
a0d0e21e 1032#undef HAS_MKTIME /**/
79072805 1033
a0d0e21e 1034/* HAS_NICE:
1035 * This symbol, if defined, indicates that the nice routine is
1036 * available.
85e6fe83 1037 */
a0d0e21e 1038#define HAS_NICE /**/
85e6fe83 1039
a0d0e21e 1040/* HAS_PASSWD:
1aef975c 1041 * This symbol, if defined, indicates that the getpwnam(),
1042 * getpwuid(), and getpwent() routines are available to
1043 * get password entries.
85e6fe83 1044 */
748a9306 1045#define HAS_PASSWD /**/
85e6fe83 1046
a0d0e21e 1047/* HAS_PAUSE:
1048 * This symbol, if defined, indicates that the pause routine is
1049 * available.
85e6fe83 1050 */
a0d0e21e 1051#define HAS_PAUSE /**/
85e6fe83 1052
a0d0e21e 1053/* HAS_PIPE:
1054 * This symbol, if defined, indicates that the pipe routine is
1055 * available.
85e6fe83 1056 */
a0d0e21e 1057#define HAS_PIPE /**/
85e6fe83 1058
a0d0e21e 1059/* HAS_READLINK:
1060 * This symbol, if defined, indicates that the readlink routine is
1061 * available.
85e6fe83 1062 */
a0d0e21e 1063#undef HAS_READLINK /**/
85e6fe83 1064
a0d0e21e 1065/* HAS_SETLINEBUF:
1066 * This symbol, if defined, indicates that the setlinebuf routine is
1067 * available to change stderr or stdout from block-buffered or unbuffered
1068 * to a line-buffered mode.
85e6fe83 1069 */
a0d0e21e 1070#undef HAS_SETLINEBUF /**/
85e6fe83 1071
a0d0e21e 1072/* HAS_STRCHR:
1073 * This symbol is defined to indicate that the strchr()/strrchr()
1074 * functions are available for string searching. If not, try the
1075 * index()/rindex() pair.
2304df62 1076 */
a0d0e21e 1077/* HAS_INDEX:
1078 * This symbol is defined to indicate that the index()/rindex()
1079 * functions are available for string searching.
1080 */
1081#define HAS_STRCHR /**/
1082#undef HAS_INDEX /**/
79072805 1083
a0d0e21e 1084/* HAS_STRCOLL:
1085 * This symbol, if defined, indicates that the strcoll routine is
1086 * available to compare strings using collating information.
85e6fe83 1087 */
a0d0e21e 1088#undef HAS_STRCOLL /**/
85e6fe83 1089
a0d0e21e 1090/* HAS_STRXFRM:
1091 * This symbol, if defined, indicates that the strxfrm() routine is
1092 * available to compare strings using collating information.
85e6fe83 1093 */
a0d0e21e 1094#undef HAS_STRXFRM /**/
85e6fe83 1095
a0d0e21e 1096/* HAS_TCGETPGRP:
1097 * This symbol, if defined, indicates that the tcgetpgrp routine is
1098 * available to get foreground process group ID.
2304df62 1099 */
a0d0e21e 1100#undef HAS_TCGETPGRP /**/
1101
1102/* HAS_TCSETPGRP:
1103 * This symbol, if defined, indicates that the tcsetpgrp routine is
1104 * available to set foreground process group ID.
2304df62 1105 */
a0d0e21e 1106#undef HAS_TCSETPGRP /**/
1107
1108/* HAS_TIMES:
1109 * This symbol, if defined, indicates that the times() routine exists.
1110 * Note that this became obsolete on some systems (SUNOS), which now
1111 * use getrusage(). It may be necessary to include <sys/times.h>.
2304df62 1112 */
a0d0e21e 1113#define HAS_TIMES /**/
79072805 1114
a0d0e21e 1115/* HAS_TZNAME:
1116 * This symbol, if defined, indicates that the tzname[] array is
1117 * available to access timezone names.
85e6fe83 1118 */
a0d0e21e 1119#undef HAS_TZNAME /**/
85e6fe83 1120
a0d0e21e 1121/* HAS_UMASK:
1122 * This symbol, if defined, indicates that the umask routine is
1123 * available to get the file creation mask.
79072805 1124 */
a0d0e21e 1125#define HAS_UMASK /**/
1126
1127/* VOIDSIG:
1128 * This symbol is defined if this system declares "void (*signal(...))()" in
1129 * signal.h. The old way was to declare it as "int (*signal(...))()". It
1130 * is up to the package author to declare things correctly based on the
1131 * symbol.
1132 */
1133#define VOIDSIG /**/
1134
1135/* HAS_WCTOMB:
1136 * This symbol, if defined, indicates that the wctomb routine is available
1137 * to covert a wide character to a multibyte.
1138 */
1139#undef HAS_WCTOMB /**/
1140
1141/* Fpos_t:
1142 * This symbol holds the type used to declare file positions in libc.
1143 * It can be fpos_t, long, uint, etc... It may be necessary to include
1144 * <sys/types.h> to get any typedef'ed information.
1145 */
1146#define Fpos_t fpos_t /* File position type */
79072805 1147
2304df62 1148/* Gid_t:
1149 * This symbol holds the return type of getgid() and the type of
1150 * argument to setrgid() and related functions. Typically,
1151 * it is the type of group ids in the kernel.
1152 * It can be int, ushort, uid_t, etc... It may be necessary to include
1153 * <sys/types.h> to get any typedef'ed information.
79072805 1154 */
a0d0e21e 1155#define Gid_t unsigned int /* Type for getgid(), etc... */
79072805 1156
85e6fe83 1157/* I_DLFCN:
1158 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1159 * be included.
1160 */
a0d0e21e 1161#undef I_DLFCN /**/
85e6fe83 1162
a0d0e21e 1163/* I_FLOAT:
85e6fe83 1164 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 1165 * include <float.h> to get definition of symbols like DBL_MAX or
1166 * DBL_MIN, i.e. machine dependent floating point values.
85e6fe83 1167 */
a0d0e21e 1168#define I_FLOAT /**/
85e6fe83 1169
a0d0e21e 1170/* I_MATH:
1171 * This symbol, if defined, indicates to the C program that it should
1172 * include <math.h>.
85e6fe83 1173 */
a0d0e21e 1174#define I_MATH /**/
85e6fe83 1175
748a9306 1176/* I_SYS_STAT:
1177 * This symbol, if defined, indicates to the C program that it should
1178 * include <sys/stat.h>.
1179 */
1180#define I_SYS_STAT /**/
1181
1182
a0d0e21e 1183/* Off_t:
1184 * This symbol holds the type used to declare offsets in the kernel.
1185 * It can be int, long, off_t, etc... It may be necessary to include
1186 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1187 */
a0d0e21e 1188#define Off_t int /* <offset> type */
1189/* Malloc_t:
1190 * This symbol is the type of pointer returned by malloc and realloc.
85e6fe83 1191 */
a0d0e21e 1192#define Malloc_t void * /**/
1193
1194/* MYMALLOC:
1195 * This symbol, if defined, indicates that we're using our own malloc.
85e6fe83 1196 */
a0d0e21e 1197#undef MYMALLOC /**/
1198
1199/* Mode_t:
1200 * This symbol holds the type used to declare file modes
1201 * for systems calls. It is usually mode_t, but may be
1202 * int or unsigned short. It may be necessary to include <sys/types.h>
1203 * to get any typedef'ed information.
85e6fe83 1204 */
a0d0e21e 1205#define Mode_t unsigned int /* file mode parameter for system calls*/
1206
1207/* SSize_t:
1208 * This symbol holds the type used by functions that return
1209 * a count of bytes or an error condition. It must be a signed type.
1210 * It is usually ssize_t, but may be long or int, etc.
1211 * It may be necessary to include <sys/types.h> or <unistd.h>
1212 * to get any typedef'ed information.
1213 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
85e6fe83 1214 */
a0d0e21e 1215#define SSize_t int /* signed count of bytes */
1216
1217
fed7345c 1218/* PRIVLIB_EXP:
a0d0e21e 1219 * This symbol contains the name of the private library for this package.
1220 * The library is private in the sense that it needn't be in anyone's
1221 * execution path, but it should be accessible by the world. The program
1222 * should be prepared to do ~ expansion.
85e6fe83 1223 */
fed7345c 1224#define PRIVLIB_EXP "/perl_root/lib" /**/
a0d0e21e 1225
1226/* SCRIPTDIR:
1227 * This symbol holds the name of the directory in which the user wants
1228 * to put publicly executable scripts for the package in question. It
1229 * is often a directory that is mounted across diverse architectures.
1230 * Programs must be prepared to deal with ~name expansion.
85e6fe83 1231 */
a0d0e21e 1232#define SCRIPTDIR "/perl_root/script" /**/
85e6fe83 1233
a0d0e21e 1234/* SIG_NAME:
1235 * This symbol contains a list of signal names in order. This is intended
1236 * to be used as a static array initialization, like this:
1237 * char *sig_name[] = { SIG_NAME };
1238 * The signals in the list are separated with commas, and each signal
1239 * is surrounded by double quotes. There is no leading SIG in the signal
1240 * name, i.e. SIGQUIT is known as "QUIT".
85e6fe83 1241 */
a0d0e21e 1242#define SIG_NAME "HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE","KILL",\
1243 "BUS","SEGV","SYS","PIPE","ALRM","TERM"
1244
1245/* Size_t:
1246 * This symbol holds the type used to declare length parameters
1247 * for string functions. It is usually size_t, but may be
1248 * unsigned long, int, etc. It may be necessary to include
1249 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1250 */
a0d0e21e 1251#define Size_t size_t /* length paramater for string functions */
1252
1253/* Uid_t:
1254 * This symbol holds the type used to declare user ids in the kernel.
1255 * It can be int, ushort, uid_t, etc... It may be necessary to include
1256 * <sys/types.h> to get any typedef'ed information.
85e6fe83 1257 */
a0d0e21e 1258#define Uid_t unsigned int /* UID type */
85e6fe83 1259
a0d0e21e 1260/* I_SYS_PARAM:
85e6fe83 1261 * This symbol, if defined, indicates to the C program that it should
a0d0e21e 1262 * include <sys/param.h>.
85e6fe83 1263 */
a0d0e21e 1264#undef I_SYS_PARAM
85e6fe83 1265
a0d0e21e 1266/* GNUC_ATTRIBUTE_CHECK:
1267 * This symbol indicates the C compiler can check for function attributes,
1268 * such as printf formats.
85e6fe83 1269 */
a0d0e21e 1270/* VMS: true for gcc, undef for VAXC/DECC. This is handled in Descrip.MMS
1271 * C. Bailey 26-Aug-1994
1272 */
748a9306 1273/*#define GNUC_ATTRIBUTE_CHECK */
85e6fe83 1274
a0d0e21e 1275/* VOID_CLOSEDIR:
1276 * This symbol, if defined, indicates that the closedir() routine
1277 * does not return a value.
79072805 1278 */
a0d0e21e 1279#define VOID_CLOSEDIR /**/
79072805 1280
a0d0e21e 1281/* HAS_DLERROR:
1282 * This symbol, if defined, indicates that the dlerror routine is
1283 * available.
1284*/
1285#undef HAS_DLERROR /**/
1286
1287/* DLSYM_NEEDS_UNDERSCORE:
1288 * This symbol, if defined, indicates that we need to prepend an
1289 * underscore to the symbol name before calling dlsym(). This only
1290 * makes sense if you *have* dlsym, which we will presume is the
1291 * case if you're using dl_dlopen.xs.
85e6fe83 1292 */
a0d0e21e 1293#undef DLSYM_NEEDS_UNDERSCORE /* */
85e6fe83 1294
a0d0e21e 1295/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1296 * This symbol, if defined, indicates that setuid scripts are secure.
79072805 1297 */
a0d0e21e 1298/* DOSUID:
1299 * This symbol, if defined, indicates that the C program should
1300 * check the script that it is executing for setuid/setgid bits, and
1301 * attempt to emulate setuid/setgid on systems that have disabled
1302 * setuid #! scripts because the kernel can't do it securely.
1303 * It is up to the package designer to make sure that this emulation
1304 * is done securely. Among other things, it should do an fstat on
1305 * the script it just opened to make sure it really is a setuid/setgid
1306 * script, it should make sure the arguments passed correspond exactly
1307 * to the argument on the #! line, and it should not trust any
1308 * subprocesses to which it must pass the filename rather than the
1309 * file descriptor of the script to be executed.
1310 */
1311#undef SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1312#undef DOSUID /**/
79072805 1313
a0d0e21e 1314/* Gconvert:
1315 * This preprocessor macro is defined to convert a floating point
1316 * number to a string without a trailing decimal point. This
1317 * emulates the behavior of sprintf("%g"), but is sometimes much more
1318 * efficient. If gconvert() is not available, but gcvt() drops the
1319 * trailing decimal point, then gcvt() is used. If all else fails,
1320 * a macro using sprintf("%g") is used.
79072805 1321 */
a0d0e21e 1322#define Gconvert(x,n,t,b) my_gconvert(x,n,t,b)
2304df62 1323
a0d0e21e 1324/* HAS_ISASCII:
1325 * This manifest constant lets the C program know that the
1326 * isascii is available.
1327 */
1328#define HAS_ISASCII /**/
85e6fe83 1329
a0d0e21e 1330/* USE_LINUX_STDIO:
1331 * This symbol is defined if this system has a FILE structure declaring
1332 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
1333 */
1334#undef USE_LINUX_STDIO /**/
2304df62 1335
a0d0e21e 1336/* HAS_LOCALECONV:
1337 * This symbol, if defined, indicates that the localeconv routine is
1338 * available for numeric and monetary formatting conventions.
1339 */
1340#undef HAS_LOCALECONV /**/
2304df62 1341
a0d0e21e 1342/* HAS_MKFIFO:
1343 * This symbol, if defined, indicates that the mkfifo routine is
1344 * available.
1345 */
1346#undef HAS_MKFIFO /**/
2304df62 1347
a0d0e21e 1348/* HAS_PATHCONF:
1349 * This symbol, if defined, indicates that pathconf() is available
1350 * to determine file-system related limits and options associated
1351 * with a given filename.
1352 */
1353/* HAS_FPATHCONF:
1354 * This symbol, if defined, indicates that pathconf() is available
1355 * to determine file-system related limits and options associated
1356 * with a given open file descriptor.
1357 */
1358#undef HAS_PATHCONF /**/
1359#undef HAS_FPATHCONF /**/
85e6fe83 1360
a0d0e21e 1361/* HAS_SAFE_BCOPY:
1362 * This symbol, if defined, indicates that the bcopy routine is available
1363 * to copy potentially overlapping memory blocks. Otherwise you should
1364 * probably use memmove() or memcpy(). If neither is defined, roll your
1365 * own version.
1366 */
1367#undef HAS_SAFE_BCOPY /**/
85e6fe83 1368
a0d0e21e 1369/* HAS_SAFE_MEMCPY:
1370 * This symbol, if defined, indicates that the memcpy routine is available
1371 * to copy potentially overlapping memory blocks. Otherwise you should
1372 * probably use memmove() or memcpy(). If neither is defined, roll your
1373 * own version.
1374 */
1375#define HAS_SAFE_MEMCPY /**/
85e6fe83 1376
a0d0e21e 1377/* HAS_SETPGRP:
1378 * This symbol, if defined, indicates that the setpgrp routine is
1379 * available to set the current process group.
1380 */
1381/* USE_BSDPGRP:
1382 * This symbol, if defined, indicates that the BSD notion of process
1383 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1384 * instead of the USG setpgrp().
1385 */
1386#undef HAS_SETPGRP /**/
1387#undef USE_BSDPGRP /**/
85e6fe83 1388
a0d0e21e 1389/* HAS_SYSCONF:
1390 * This symbol, if defined, indicates that sysconf() is available
1391 * to determine system related limits and options.
1392 */
1393#undef HAS_SYSCONF /**/
85e6fe83 1394
a0d0e21e 1395/* USE_DYNAMIC_LOADING:
1396 * This symbol, if defined, indicates that dynamic loading of
1397 * some sort is available.
1398 */
1399#define USE_DYNAMIC_LOADING /**/
2304df62 1400
a0d0e21e 1401#ifdef VMS_DO_SOCKETS
1402/* HAS_SOCKET:
1403 * This symbol, if defined, indicates that the BSD socket interface is
1404 * supported.
1405 */
1406/* HAS_SOCKETPAIR:
1407 * This symbol, if defined, indicates that the BSD socketpair() call is
1408 * supported.
1409 */
1410#define HAS_SOCKET /**/ /* config-skip */
1411#undef HAS_SOCKETPAIR /**/ /* config-skip */
85e6fe83 1412
a0d0e21e 1413/* HAS_GETHOSTENT:
1414 * This symbol, if defined, indicates that the gethostent routine is
1415 * available to lookup host names in some data base or other.
1416 */
1417#define HAS_GETHOSTENT /**/ /* config-skip */
2304df62 1418
a0d0e21e 1419/* VMS: In general, TCP/IP header files should be included from
1420 * sockadapt.h, instead of here, in order to keep the TCP/IP code
1421 * together as much as possible.
1422 */
1423/* I_NETINET_IN:
1424 * This symbol, if defined, indicates to the C program that it should
1425 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1426 */
1427#undef I_NETINET_IN /**/ /* config-skip */
2304df62 1428
a0d0e21e 1429/* Groups_t:
1430 * This symbol holds the type used for the second argument to
1431 * getgroups(). Usually, this is the same of gidtype, but
1432 * sometimes it isn't. It can be int, ushort, uid_t, etc...
1433 * It may be necessary to include <sys/types.h> to get any
1434 * typedef'ed information. This is only required if you have
1435 * getgroups().
1436 */
1437#ifdef HAS_GETGROUPS
1438#define Groups_t unsigned int /* Type for 2nd arg to getgroups() */ /* config-skip */
85e6fe83 1439#endif
1440
a0d0e21e 1441/* I_NET_ERRNO:
1442 * This symbol, if defined, indicates that <net/errno.h> exists and
1443 * should be included.
1444*/
1445#undef I_NET_ERRNO /**/ /* config-skip */
85e6fe83 1446
a0d0e21e 1447#else /* VMS_DO_SOCKETS */
1448
1449#undef HAS_SOCKET /**/ /* config-skip */
1450#undef HAS_SOCKETPAIR /**/ /* config-skip */
1451#undef HAS_GETHOSTENT /**/ /* config-skip */
1452#undef I_NETINET_IN /**/ /* config-skip */
1453#undef I_NET_ERRNO /**/ /* config-skip */
1454
1455#endif /* !VMS_DO_SOCKETS */
79072805 1456
1457#endif