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