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