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