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