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