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