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