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