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