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