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