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 "" |
53 | #define CPPMINUS "" |
54 | |
55 | /* HAS_ALARM: |
56 | * This symbol, if defined, indicates that the alarm routine is |
57 | * available. |
58 | */ |
32f822de |
59 | /*#define HAS_ALARM /**/ |
08aa1457 |
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 | */ |
927 | /* PWCOMMENT: |
928 | * This symbol, if defined, indicates to the C program that struct passwd |
929 | * contains pw_comment. |
930 | */ |
931 | /*#define I_PWD /**/ |
932 | /*#define PWQUOTA /**/ |
933 | /*#define PWAGE /**/ |
934 | /*#define PWCHANGE /**/ |
935 | /*#define PWCLASS /**/ |
936 | /*#define PWEXPIRE /**/ |
937 | /*#define PWCOMMENT /**/ |
938 | |
924b3ec4 |
939 | /* I_SFIO: |
940 | * This symbol, if defined, indicates to the C program that it should |
941 | * include <sfio.h>. |
942 | */ |
943 | /*#define I_SFIO /**/ |
944 | |
08aa1457 |
945 | /* I_STDDEF: |
946 | * This symbol, if defined, indicates that <stddef.h> exists and should |
947 | * be included. |
948 | */ |
949 | #define I_STDDEF /**/ |
950 | |
951 | /* I_STDLIB: |
952 | * This symbol, if defined, indicates that <stdlib.h> exists and should |
953 | * be included. |
954 | */ |
955 | #define I_STDLIB /**/ |
956 | |
957 | /* I_STRING: |
958 | * This symbol, if defined, indicates to the C program that it should |
959 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). |
960 | */ |
961 | #define I_STRING /**/ |
962 | |
963 | /* I_SYS_DIR: |
964 | * This symbol, if defined, indicates to the C program that it should |
965 | * include <sys/dir.h>. |
966 | */ |
967 | /*#define I_SYS_DIR /**/ |
968 | |
969 | /* I_SYS_FILE: |
970 | * This symbol, if defined, indicates to the C program that it should |
971 | * include <sys/file.h> to get definition of R_OK and friends. |
972 | */ |
973 | /*#define I_SYS_FILE /**/ |
974 | |
975 | /* I_SYS_IOCTL: |
976 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should |
977 | * be included. Otherwise, include <sgtty.h> or <termio.h>. |
978 | */ |
979 | /*#define I_SYS_IOCTL /**/ |
980 | |
981 | /* I_SYS_NDIR: |
982 | * This symbol, if defined, indicates to the C program that it should |
983 | * include <sys/ndir.h>. |
984 | */ |
985 | /*#define I_SYS_NDIR /**/ |
986 | |
987 | /* I_SYS_PARAM: |
988 | * This symbol, if defined, indicates to the C program that it should |
989 | * include <sys/param.h>. |
990 | */ |
991 | /*#define I_SYS_PARAM /**/ |
992 | |
993 | /* I_SYS_RESOURCE: |
994 | * This symbol, if defined, indicates to the C program that it should |
995 | * include <sys/resource.h>. |
996 | */ |
997 | /*#define I_SYS_RESOURCE /**/ |
998 | |
999 | /* I_SYS_SELECT: |
1000 | * This symbol, if defined, indicates to the C program that it should |
1001 | * include <sys/select.h> in order to get definition of struct timeval. |
1002 | */ |
1003 | /*#define I_SYS_SELECT /**/ |
1004 | |
924b3ec4 |
1005 | /* I_SYS_STAT: |
1006 | * This symbol, if defined, indicates to the C program that it should |
1007 | * include <sys/stat.h>. |
1008 | */ |
1009 | #define I_SYS_STAT /**/ |
1010 | |
08aa1457 |
1011 | /* I_SYS_TIMES: |
1012 | * This symbol, if defined, indicates to the C program that it should |
1013 | * include <sys/times.h>. |
1014 | */ |
1015 | /*#define I_SYS_TIMES /**/ |
1016 | |
08aa1457 |
1017 | /* I_SYS_UN: |
1018 | * This symbol, if defined, indicates to the C program that it should |
1019 | * include <sys/un.h> to get UNIX domain socket definitions. |
1020 | */ |
1021 | /*#define I_SYS_UN /**/ |
1022 | |
1023 | /* I_SYS_WAIT: |
1024 | * This symbol, if defined, indicates to the C program that it should |
1025 | * include <sys/wait.h>. |
1026 | */ |
1027 | /*#define I_SYS_WAIT /**/ |
1028 | |
1029 | /* I_TERMIO: |
1030 | * This symbol, if defined, indicates that the program should include |
1031 | * <termio.h> rather than <sgtty.h>. There are also differences in |
1032 | * the ioctl() calls that depend on the value of this symbol. |
1033 | */ |
1034 | /* I_TERMIOS: |
1035 | * This symbol, if defined, indicates that the program should include |
1036 | * the POSIX termios.h rather than sgtty.h or termio.h. |
1037 | * There are also differences in the ioctl() calls that depend on the |
1038 | * value of this symbol. |
1039 | */ |
1040 | /* I_SGTTY: |
1041 | * This symbol, if defined, indicates that the program should include |
1042 | * <sgtty.h> rather than <termio.h>. There are also differences in |
1043 | * the ioctl() calls that depend on the value of this symbol. |
1044 | */ |
1045 | /*#define I_TERMIO /**/ |
1046 | /*#define I_TERMIOS /**/ |
1047 | /*#define I_SGTTY /**/ |
1048 | |
08aa1457 |
1049 | /* I_UNISTD: |
1050 | * This symbol, if defined, indicates to the C program that it should |
1051 | * include <unistd.h>. |
1052 | */ |
1053 | /*#define I_UNISTD /**/ |
1054 | |
1055 | /* I_UTIME: |
1056 | * This symbol, if defined, indicates to the C program that it should |
1057 | * include <utime.h>. |
1058 | */ |
1059 | #define I_UTIME /**/ |
1060 | |
924b3ec4 |
1061 | /* I_VALUES: |
1062 | * This symbol, if defined, indicates to the C program that it should |
1063 | * include <values.h> to get definition of symbols like MINFLOAT or |
1064 | * MAXLONG, i.e. machine dependant limitations. Probably, you |
1065 | * should use <limits.h> instead, if it is available. |
1066 | */ |
1067 | /*#define I_VALUES /**/ |
1068 | |
08aa1457 |
1069 | /* I_STDARG: |
1070 | * This symbol, if defined, indicates that <stdarg.h> exists and should |
1071 | * be included. |
1072 | */ |
1073 | /* I_VARARGS: |
1074 | * This symbol, if defined, indicates to the C program that it should |
1075 | * include <varargs.h>. |
1076 | */ |
1077 | #define I_STDARG /**/ |
1078 | /*#define I_VARARGS /**/ |
1079 | |
1080 | /* I_VFORK: |
1081 | * This symbol, if defined, indicates to the C program that it should |
1082 | * include vfork.h. |
1083 | */ |
1084 | /*#define I_VFORK /**/ |
1085 | |
924b3ec4 |
1086 | /* Free_t: |
1087 | * This variable contains the return type of free(). It is usually |
1088 | * void, but occasionally int. |
1089 | */ |
1090 | /* Malloc_t: |
1091 | * This symbol is the type of pointer returned by malloc and realloc. |
1092 | */ |
1093 | #define Malloc_t void * /**/ |
1094 | #define Free_t void /**/ |
1095 | |
1096 | /* MYMALLOC: |
1097 | * This symbol, if defined, indicates that we're using our own malloc. |
1098 | */ |
1099 | #define MYMALLOC /**/ |
1100 | |
08aa1457 |
1101 | /* CAN_PROTOTYPE: |
1102 | * If defined, this macro indicates that the C compiler can handle |
1103 | * function prototypes. |
1104 | */ |
1105 | /* _: |
1106 | * This macro is used to declare function parameters for folks who want |
1107 | * to make declarations with prototypes using a different style than |
1108 | * the above macros. Use double parentheses. For example: |
1109 | * |
1110 | * int main _((int argc, char *argv[])); |
1111 | */ |
1112 | #define CAN_PROTOTYPE /**/ |
1113 | #ifdef CAN_PROTOTYPE |
1114 | #define _(args) args |
1115 | #else |
1116 | #define _(args) () |
1117 | #endif |
1118 | |
924b3ec4 |
1119 | /* SH_PATH: |
1120 | * This symbol contains the full pathname to the shell used on this |
1121 | * on this system to execute Bourne shell scripts. Usually, this will be |
1122 | * /bin/sh, though it's possible that some systems will have /bin/ksh, |
1123 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as |
1124 | * D:/bin/sh.exe. |
08aa1457 |
1125 | */ |
924b3ec4 |
1126 | #define SH_PATH "cmd /x /c" /**/ |
08aa1457 |
1127 | |
08aa1457 |
1128 | /* STDCHAR: |
1129 | * This symbol is defined to be the type of char used in stdio.h. |
1130 | * It has the values "unsigned char" or "char". |
1131 | */ |
1132 | #define STDCHAR unsigned char /**/ |
1133 | |
924b3ec4 |
1134 | /* VOIDFLAGS: |
1135 | * This symbol indicates how much support of the void type is given by this |
1136 | * compiler. What various bits mean: |
1137 | * |
1138 | * 1 = supports declaration of void |
1139 | * 2 = supports arrays of pointers to functions returning void |
1140 | * 4 = supports comparisons between pointers to void functions and |
1141 | * addresses of void functions |
1142 | * 8 = suports declaration of generic void pointers |
1143 | * |
1144 | * The package designer should define VOIDUSED to indicate the requirements |
1145 | * of the package. This can be done either by #defining VOIDUSED before |
1146 | * including config.h, or by defining defvoidused in Myinit.U. If the |
1147 | * latter approach is taken, only those flags will be tested. If the |
1148 | * level of void support necessary is not present, defines void to int. |
08aa1457 |
1149 | */ |
924b3ec4 |
1150 | #ifndef VOIDUSED |
1151 | #define VOIDUSED 15 |
1152 | #endif |
1153 | #define VOIDFLAGS 15 |
1154 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED |
1155 | #define void int /* is void to be avoided? */ |
1156 | #define M_VOID /* Xenix strikes again */ |
1157 | #endif |
08aa1457 |
1158 | |
924b3ec4 |
1159 | /* MEM_ALIGNBYTES: |
1160 | * This symbol contains the number of bytes required to align a |
1161 | * double. Usual values are 2, 4 and 8. |
1162 | * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture |
1163 | * Binaries (MAB) for targets with varying alignment. This only matters |
1164 | * for perl, where the config.h can be generated and installed on one |
1165 | * system, and used by a different architecture to build an extension. |
1166 | * The default is eight, for safety. |
08aa1457 |
1167 | */ |
924b3ec4 |
1168 | #define MEM_ALIGNBYTES 8 /**/ |
08aa1457 |
1169 | |
1170 | /* BYTEORDER: |
1171 | * This symbol holds the hexadecimal constant defined in byteorder, |
1172 | * i.e. 0x1234 or 0x4321, etc... |
1173 | * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture |
1174 | * Binaries (MAB) on either big endian or little endian machines. |
1175 | * The endian-ness is available at compile-time. This only matters |
1176 | * for perl, where the config.h can be generated and installed on |
1177 | * one system, and used by a different architecture to build an |
1178 | * extension. Older versions of NeXT that might not have |
1179 | * defined either *_ENDIAN__ were all on Motorola 680x0 series, |
1180 | * so the default case (for NeXT) is big endian to catch them. |
1181 | * This might matter for NeXT 3.0. |
1182 | */ |
1183 | #ifndef NeXT |
1184 | #define BYTEORDER 0x1234 /* large digits for MSB */ |
1185 | #else /* NeXT */ |
1186 | #ifdef __LITTLE_ENDIAN__ |
1187 | #define BYTEORDER 0x1234 |
1188 | #else /* __BIG_ENDIAN__ */ |
1189 | #define BYTEORDER 0x4321 |
1190 | #endif /* ENDIAN CHECK */ |
1191 | #endif /* NeXT */ |
1192 | |
924b3ec4 |
1193 | /* CASTI32: |
1194 | * This symbol is defined if the C compiler can cast negative |
1195 | * or large floating point numbers to 32-bit ints. |
08aa1457 |
1196 | */ |
924b3ec4 |
1197 | #define CASTI32 /**/ |
08aa1457 |
1198 | |
924b3ec4 |
1199 | /* CASTNEGFLOAT: |
1200 | * This symbol is defined if the C compiler can cast negative |
1201 | * numbers to unsigned longs, ints and shorts. |
08aa1457 |
1202 | */ |
924b3ec4 |
1203 | /* CASTFLAGS: |
1204 | * This symbol contains flags that say what difficulties the compiler |
1205 | * has casting odd floating values to unsigned long: |
1206 | * 0 = ok |
1207 | * 1 = couldn't cast < 0 |
1208 | * 2 = couldn't cast >= 0x80000000 |
1209 | * 4 = couldn't cast in argument expression list |
08aa1457 |
1210 | */ |
924b3ec4 |
1211 | #define CASTNEGFLOAT /**/ |
1212 | #define CASTFLAGS 0 /**/ |
1213 | |
1214 | /* VOID_CLOSEDIR: |
1215 | * This symbol, if defined, indicates that the closedir() routine |
1216 | * does not return a value. |
08aa1457 |
1217 | */ |
924b3ec4 |
1218 | /*#define VOID_CLOSEDIR /**/ |
08aa1457 |
1219 | |
1220 | /* Gconvert: |
1221 | * This preprocessor macro is defined to convert a floating point |
1222 | * number to a string without a trailing decimal point. This |
1223 | * emulates the behavior of sprintf("%g"), but is sometimes much more |
1224 | * efficient. If gconvert() is not available, but gcvt() drops the |
1225 | * trailing decimal point, then gcvt() is used. If all else fails, |
1226 | * a macro using sprintf("%g") is used. Arguments for the Gconvert |
1227 | * macro are: value, number of digits, whether trailing zeros should |
1228 | * be retained, and the output buffer. |
1229 | * Possible values are: |
1230 | * d_Gconvert='gconvert((x),(n),(t),(b))' |
1231 | * d_Gconvert='gcvt((x),(n),(b))' |
1232 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' |
1233 | * The last two assume trailing zeros should not be kept. |
1234 | */ |
ad2e33dc |
1235 | #define Gconvert(x,n,t,b) gcvt((x),(n),(b)) |
08aa1457 |
1236 | |
924b3ec4 |
1237 | /* HAS_GNULIBC: |
08aa1457 |
1238 | * This symbol, if defined, indicates to the C program that |
924b3ec4 |
1239 | * the GNU C library is being used. |
08aa1457 |
1240 | */ |
924b3ec4 |
1241 | /*#define HAS_GNULIBC /**/ |
1242 | /* HAS_ISASCII: |
1243 | * This manifest constant lets the C program know that isascii |
1244 | * is available. |
08aa1457 |
1245 | */ |
924b3ec4 |
1246 | #define HAS_ISASCII /**/ |
08aa1457 |
1247 | |
924b3ec4 |
1248 | /* HAS_OPEN3: |
1249 | * This manifest constant lets the C program know that the three |
1250 | * argument form of open(2) is available. |
08aa1457 |
1251 | */ |
924b3ec4 |
1252 | /*#define HAS_OPEN3 /**/ |
08aa1457 |
1253 | |
924b3ec4 |
1254 | /* HAS_SAFE_BCOPY: |
1255 | * This symbol, if defined, indicates that the bcopy routine is available |
1256 | * to copy potentially overlapping memory blocks. Otherwise you should |
1257 | * probably use memmove() or memcpy(). If neither is defined, roll your |
1258 | * own version. |
08aa1457 |
1259 | */ |
924b3ec4 |
1260 | /*#define HAS_SAFE_BCOPY /**/ |
08aa1457 |
1261 | |
924b3ec4 |
1262 | /* HAS_SAFE_MEMCPY: |
1263 | * This symbol, if defined, indicates that the memcpy routine is available |
1264 | * to copy potentially overlapping memory blocks. Otherwise you should |
1265 | * probably use memmove() or memcpy(). If neither is defined, roll your |
1266 | * own version. |
08aa1457 |
1267 | */ |
924b3ec4 |
1268 | /*#define HAS_SAFE_MEMCPY /**/ |
08aa1457 |
1269 | |
924b3ec4 |
1270 | /* HAS_SANE_MEMCMP: |
1271 | * This symbol, if defined, indicates that the memcmp routine is available |
1272 | * and can be used to compare relative magnitudes of chars with their high |
1273 | * bits set. If it is not defined, roll your own version. |
08aa1457 |
1274 | */ |
924b3ec4 |
1275 | #define HAS_SANE_MEMCMP /**/ |
08aa1457 |
1276 | |
924b3ec4 |
1277 | /* HAS_SIGACTION: |
1278 | * This symbol, if defined, indicates that Vr4's sigaction() routine |
1279 | * is available. |
fea7140c |
1280 | */ |
924b3ec4 |
1281 | /*#define HAS_SIGACTION /**/ |
fea7140c |
1282 | |
08aa1457 |
1283 | /* Sigjmp_buf: |
1284 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. |
1285 | */ |
1286 | /* Sigsetjmp: |
1287 | * This macro is used in the same way as sigsetjmp(), but will invoke |
1288 | * traditional setjmp() if sigsetjmp isn't available. |
1289 | * See HAS_SIGSETJMP. |
1290 | */ |
1291 | /* Siglongjmp: |
1292 | * This macro is used in the same way as siglongjmp(), but will invoke |
1293 | * traditional longjmp() if siglongjmp isn't available. |
1294 | * See HAS_SIGSETJMP. |
1295 | */ |
1296 | /*#define HAS_SIGSETJMP /**/ |
1297 | #ifdef HAS_SIGSETJMP |
1298 | #define Sigjmp_buf sigjmp_buf |
1299 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) |
1300 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) |
1301 | #else |
1302 | #define Sigjmp_buf jmp_buf |
1303 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) |
1304 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) |
1305 | #endif |
1306 | |
924b3ec4 |
1307 | /* USE_STDIO_PTR: |
1308 | * This symbol is defined if the _ptr and _cnt fields (or similar) |
1309 | * of the stdio FILE structure can be used to access the stdio buffer |
1310 | * for a file handle. If this is defined, then the FILE_ptr(fp) |
1311 | * and FILE_cnt(fp) macros will also be defined and should be used |
1312 | * to access these fields. |
08aa1457 |
1313 | */ |
924b3ec4 |
1314 | /* FILE_ptr: |
1315 | * This macro is used to access the _ptr field (or equivalent) of the |
1316 | * FILE structure pointed to by its argument. This macro will always be |
1317 | * defined if USE_STDIO_PTR is defined. |
1318 | */ |
1319 | /* STDIO_PTR_LVALUE: |
1320 | * This symbol is defined if the FILE_ptr macro can be used as an |
1321 | * lvalue. |
1322 | */ |
1323 | /* FILE_cnt: |
1324 | * This macro is used to access the _cnt field (or equivalent) of the |
1325 | * FILE structure pointed to by its argument. This macro will always be |
1326 | * defined if USE_STDIO_PTR is defined. |
1327 | */ |
1328 | /* STDIO_CNT_LVALUE: |
1329 | * This symbol is defined if the FILE_cnt macro can be used as an |
1330 | * lvalue. |
1331 | */ |
1332 | #define USE_STDIO_PTR /**/ |
1333 | #ifdef USE_STDIO_PTR |
1334 | #define FILE_ptr(fp) ((fp)->curp) |
1335 | #define STDIO_PTR_LVALUE /**/ |
1336 | #define FILE_cnt(fp) ((fp)->level) |
1337 | #define STDIO_CNT_LVALUE /**/ |
1338 | #endif |
08aa1457 |
1339 | |
924b3ec4 |
1340 | /* USE_STDIO_BASE: |
1341 | * This symbol is defined if the _base field (or similar) of the |
1342 | * stdio FILE structure can be used to access the stdio buffer for |
1343 | * a file handle. If this is defined, then the FILE_base(fp) macro |
1344 | * will also be defined and should be used to access this field. |
1345 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used |
1346 | * to determine the number of bytes in the buffer. USE_STDIO_BASE |
1347 | * will never be defined unless USE_STDIO_PTR is. |
08aa1457 |
1348 | */ |
924b3ec4 |
1349 | /* FILE_base: |
1350 | * This macro is used to access the _base field (or equivalent) of the |
1351 | * FILE structure pointed to by its argument. This macro will always be |
1352 | * defined if USE_STDIO_BASE is defined. |
08aa1457 |
1353 | */ |
924b3ec4 |
1354 | /* FILE_bufsiz: |
1355 | * This macro is used to determine the number of bytes in the I/O |
1356 | * buffer pointed to by _base field (or equivalent) of the FILE |
1357 | * structure pointed to its argument. This macro will always be defined |
1358 | * if USE_STDIO_BASE is defined. |
1359 | */ |
1360 | #define USE_STDIO_BASE /**/ |
1361 | #ifdef USE_STDIO_BASE |
1362 | #define FILE_base(fp) ((fp)->buffer) |
1363 | #define FILE_bufsiz(fp) ((fp)->level + (fp)->curp - (fp)->buffer) |
1364 | #endif |
08aa1457 |
1365 | |
924b3ec4 |
1366 | /* HAS_VPRINTF: |
1367 | * This symbol, if defined, indicates that the vprintf routine is available |
1368 | * to printf with a pointer to an argument list. If unavailable, you |
1369 | * may need to write your own, probably in terms of _doprnt(). |
08aa1457 |
1370 | */ |
924b3ec4 |
1371 | /* USE_CHAR_VSPRINTF: |
1372 | * This symbol is defined if this system has vsprintf() returning type |
1373 | * (char*). The trend seems to be to declare it as "int vsprintf()". It |
1374 | * is up to the package author to declare vsprintf correctly based on the |
1375 | * symbol. |
1376 | */ |
1377 | #define HAS_VPRINTF /**/ |
1378 | /*#define USE_CHAR_VSPRINTF /**/ |
08aa1457 |
1379 | |
07ba5892 |
1380 | /* DOUBLESIZE: |
1381 | * This symbol contains the size of a double, so that the C preprocessor |
1382 | * can make decisions based on it. |
1383 | */ |
1384 | #define DOUBLESIZE 8 /**/ |
1385 | |
924b3ec4 |
1386 | /* I_TIME: |
08aa1457 |
1387 | * This symbol, if defined, indicates to the C program that it should |
924b3ec4 |
1388 | * include <time.h>. |
08aa1457 |
1389 | */ |
924b3ec4 |
1390 | /* I_SYS_TIME: |
08aa1457 |
1391 | * This symbol, if defined, indicates to the C program that it should |
924b3ec4 |
1392 | * include <sys/time.h>. |
08aa1457 |
1393 | */ |
924b3ec4 |
1394 | /* I_SYS_TIME_KERNEL: |
08aa1457 |
1395 | * This symbol, if defined, indicates to the C program that it should |
924b3ec4 |
1396 | * include <sys/time.h> with KERNEL defined. |
08aa1457 |
1397 | */ |
924b3ec4 |
1398 | #define I_TIME /**/ |
1399 | /*#define I_SYS_TIME /**/ |
1400 | /*#define I_SYS_TIME_KERNEL /**/ |
08aa1457 |
1401 | |
924b3ec4 |
1402 | /* INTSIZE: |
1403 | * This symbol contains the value of sizeof(int) so that the C |
1404 | * preprocessor can make decisions based on it. |
08aa1457 |
1405 | */ |
924b3ec4 |
1406 | /* LONGSIZE: |
1407 | * This symbol contains the value of sizeof(long) so that the C |
1408 | * preprocessor can make decisions based on it. |
08aa1457 |
1409 | */ |
924b3ec4 |
1410 | /* SHORTSIZE: |
1411 | * This symbol contains the value of sizeof(short) so that the C |
1412 | * preprocessor can make decisions based on it. |
1413 | */ |
1414 | #define INTSIZE 4 /**/ |
1415 | #define LONGSIZE 4 /**/ |
1416 | #define SHORTSIZE 2 /**/ |
08aa1457 |
1417 | |
924b3ec4 |
1418 | /* VAL_O_NONBLOCK: |
1419 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on |
1420 | * non-blocking I/O for the file descriptor. Note that there is no way |
1421 | * back, i.e. you cannot turn it blocking again this way. If you wish to |
1422 | * alternatively switch between blocking and non-blocking, use the |
1423 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. |
08aa1457 |
1424 | */ |
924b3ec4 |
1425 | /* VAL_EAGAIN: |
1426 | * This symbol holds the errno error code set by read() when no data was |
1427 | * present on the non-blocking file descriptor. |
1428 | */ |
1429 | /* RD_NODATA: |
1430 | * This symbol holds the return code from read() when no data is present |
1431 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is |
1432 | * not defined, then you can't distinguish between no data and EOF by |
1433 | * issuing a read(). You'll have to find another way to tell for sure! |
1434 | */ |
1435 | /* EOF_NONBLOCK: |
1436 | * This symbol, if defined, indicates to the C program that a read() on |
1437 | * a non-blocking file descriptor will return 0 on EOF, and not the value |
1438 | * held in RD_NODATA (-1 usually, in that case!). |
1439 | */ |
1440 | #define VAL_O_NONBLOCK O_NONBLOCK |
1441 | #define VAL_EAGAIN EAGAIN |
1442 | #define RD_NODATA -1 |
1443 | #define EOF_NONBLOCK |
08aa1457 |
1444 | |
07ba5892 |
1445 | /* PTRSIZE: |
1446 | * This symbol contains the size of a pointer, so that the C preprocessor |
1447 | * can make decisions based on it. It will be sizeof(void *) if |
1448 | * the compiler supports (void *); otherwise it will be |
1449 | * sizeof(char *). |
1450 | */ |
1451 | #define PTRSIZE 4 /**/ |
1452 | |
924b3ec4 |
1453 | /* RANDBITS: |
1454 | * This symbol contains the number of bits of random number the rand() |
1455 | * function produces. Usual values are 15, 16, and 31. |
1456 | */ |
1457 | #define RANDBITS 15 /**/ |
1458 | |
1459 | /* SSize_t: |
1460 | * This symbol holds the type used by functions that return |
1461 | * a count of bytes or an error condition. It must be a signed type. |
1462 | * It is usually ssize_t, but may be long or int, etc. |
1463 | * It may be necessary to include <sys/types.h> or <unistd.h> |
1464 | * to get any typedef'ed information. |
1465 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). |
1466 | */ |
1467 | #define SSize_t int /* signed count of bytes */ |
1468 | |
1469 | /* OSNAME: |
1470 | * This symbol contains the name of the operating system, as determined |
1471 | * by Configure. You shouldn't rely on it too much; the specific |
1472 | * feature tests from Configure are generally more reliable. |
1473 | */ |
1474 | #define OSNAME "MSWin32" /**/ |
1475 | |
1476 | /* ARCHLIB: |
08aa1457 |
1477 | * This variable, if defined, holds the name of the directory in |
924b3ec4 |
1478 | * which the user wants to put architecture-dependent public |
1479 | * library files for perl5. It is most often a local directory |
1480 | * such as /usr/local/lib. Programs using this variable must be |
1481 | * prepared to deal with filename expansion. If ARCHLIB is the |
1482 | * same as PRIVLIB, it is not defined, since presumably the |
1483 | * program already searches PRIVLIB. |
1484 | */ |
1485 | /* ARCHLIB_EXP: |
1486 | * This symbol contains the ~name expanded version of ARCHLIB, to be used |
1487 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1488 | */ |
1489 | #define ARCHLIB "c:\\perl5004.5x\\lib\\MSWin32-x86" /**/ |
1490 | #define ARCHLIB_EXP (win32_perllib_path(ARCHNAME,NULL)) /**/ |
1491 | |
1492 | /* CAT2: |
1493 | * This macro catenates 2 tokens together. |
08aa1457 |
1494 | */ |
924b3ec4 |
1495 | /* STRINGIFY: |
1496 | * This macro surrounds its token with double quotes. |
1497 | */ |
1498 | #if 42 == 1 |
1499 | #define CAT2(a,b)a/**/b |
1500 | #define STRINGIFY(a)"a" |
1501 | /* If you can get stringification with catify, tell me how! */ |
1502 | #endif |
1503 | #if 42 == 42 |
1504 | #define CAT2(a,b)a ## b |
1505 | #define StGiFy(a)# a |
1506 | #define STRINGIFY(a)StGiFy(a) |
1507 | #endif |
1508 | #if 42 != 1 && 42 != 42 |
1509 | #include "Bletch: How does this C preprocessor catenate tokens?" |
1510 | #endif |
1511 | |
1512 | /* CSH: |
0cd52aa3 |
1513 | * This symbol, if defined, contains the full pathname of csh. |
08aa1457 |
1514 | */ |
0cd52aa3 |
1515 | /*#define HAS_CSH /**/ |
1516 | #ifdef HAS_CSH |
1517 | #define CSH "" /**/ |
1518 | #endif |
1519 | |
1520 | /* HAS_ENDHOSTENT: |
1521 | * This symbol, if defined, indicates that the endhostent() routine is |
1522 | * available to close whatever was being used for host queries. |
1523 | */ |
1524 | /*#define HAS_ENDHOSTENT /**/ |
1525 | |
1526 | /* HAS_ENDNETENT: |
1527 | * This symbol, if defined, indicates that the endnetent() routine is |
1528 | * available to close whatever was being used for network queries. |
1529 | */ |
1530 | /*#define HAS_ENDNETENT /**/ |
1531 | |
1532 | /* HAS_ENDPROTOENT: |
1533 | * This symbol, if defined, indicates that the endprotoent() routine is |
1534 | * available to close whatever was being used for protocol queries. |
1535 | */ |
1536 | /*#define HAS_ENDPROTOENT /**/ |
1537 | |
1538 | /* HAS_ENDSERVENT: |
1539 | * This symbol, if defined, indicates that the endservent() routine is |
1540 | * available to close whatever was being used for service queries. |
1541 | */ |
1542 | /*#define HAS_ENDSERVENT /**/ |
924b3ec4 |
1543 | |
07ba5892 |
1544 | /* HAS_GETHOSTBYADDR: |
1545 | * This symbol, if defined, indicates that the gethostbyaddr() routine is |
1546 | * available to look up hosts by their IP addresses. |
1547 | */ |
1548 | #define HAS_GETHOSTBYADDR /**/ |
1549 | |
1550 | /* HAS_GETHOSTBYNAME: |
1551 | * This symbol, if defined, indicates that the gethostbyname() routine is |
1552 | * available to look up host names in some data base or other. |
1553 | */ |
1554 | #define HAS_GETHOSTBYNAME /**/ |
1555 | |
1556 | /* HAS_GETHOSTENT: |
1557 | * This symbol, if defined, indicates that the gethostent() routine is |
1558 | * available to look up host names in some data base or another. |
1559 | */ |
1560 | /*#define HAS_GETHOSTENT /**/ |
1561 | |
1562 | /* HAS_GETNETBYADDR: |
1563 | * This symbol, if defined, indicates that the getnetbyaddr() routine is |
1564 | * available to look up networks by their IP addresses. |
1565 | */ |
1566 | /*#define HAS_GETNETBYADDR /**/ |
1567 | |
1568 | /* HAS_GETNETBYNAME: |
1569 | * This symbol, if defined, indicates that the getnetbyname() routine is |
1570 | * available to look up networks by their names. |
1571 | */ |
1572 | /*#define HAS_GETNETBYNAME /**/ |
1573 | |
0cd52aa3 |
1574 | /* HAS_GETNETENT: |
1575 | * This symbol, if defined, indicates that the getnetent() routine is |
1576 | * available to look up network names in some data base or another. |
1577 | */ |
1578 | /*#define HAS_GETNETENT /**/ |
1579 | |
1580 | /* HAS_GETPROTOENT: |
1581 | * This symbol, if defined, indicates that the getprotoent() routine is |
1582 | * available to look up protocols in some data base or another. |
1583 | */ |
1584 | /*#define HAS_GETPROTOENT /**/ |
1585 | |
07ba5892 |
1586 | /* HAS_GETPROTOBYNAME: |
1587 | * This symbol, if defined, indicates that the getprotobyname() |
1588 | * routine is available to look up protocols by their name. |
1589 | */ |
1590 | /* HAS_GETPROTOBYNUMBER: |
1591 | * This symbol, if defined, indicates that the getprotobynumber() |
1592 | * routine is available to look up protocols by their number. |
1593 | */ |
1594 | #define HAS_GETPROTOBYNAME /**/ |
1595 | #define HAS_GETPROTOBYNUMBER /**/ |
1596 | |
0cd52aa3 |
1597 | /* HAS_GETSERVENT: |
1598 | * This symbol, if defined, indicates that the getservent() routine is |
1599 | * available to look up network services in some data base or another. |
1600 | */ |
1601 | /*#define HAS_GETSERVENT /**/ |
1602 | |
07ba5892 |
1603 | /* HAS_GETSERVBYNAME: |
1604 | * This symbol, if defined, indicates that the getservbyname() |
1605 | * routine is available to look up services by their name. |
1606 | */ |
1607 | /* HAS_GETSERVBYPORT: |
1608 | * This symbol, if defined, indicates that the getservbyport() |
1609 | * routine is available to look up services by their port. |
1610 | */ |
1611 | #define HAS_GETSERVBYNAME /**/ |
1612 | #define HAS_GETSERVBYPORT /**/ |
1613 | |
0cd52aa3 |
1614 | /* HAS_LONG_DOUBLE: |
1615 | * This symbol will be defined if the C compiler supports long |
1616 | * doubles. |
1617 | */ |
1618 | /* LONG_DOUBLESIZE: |
1619 | * This symbol contains the size of a long double, so that the |
1620 | * C preprocessor can make decisions based on it. It is only |
1621 | * defined if the system supports long doubles. |
1622 | */ |
1623 | #define HAS_LONG_DOUBLE /**/ |
1624 | #ifdef HAS_LONG_DOUBLE |
1625 | #define LONG_DOUBLESIZE 10 /**/ |
1626 | #endif |
1627 | |
bdaec6b3 |
1628 | /* HAS_LONG_LONG: |
1629 | * This symbol will be defined if the C compiler supports |
1630 | * long long. |
1631 | */ |
1632 | /* LONGLONGSIZE: |
1633 | * This symbol contains the size of a long long, so that the |
1634 | * C preprocessor can make decisions based on it. It is only |
1635 | * defined if the system supports long long. |
1636 | */ |
1637 | /*#define HAS_LONG_LONG /**/ |
1638 | #ifdef HAS_LONG_LONG |
1639 | #define LONGLONGSIZE 8 /**/ |
1640 | #endif |
1641 | |
0cd52aa3 |
1642 | /* HAS_MKSTEMP: |
1643 | * This symbol, if defined, indicates that the mkstemp routine is |
1644 | * available to create and open a unique temporary file. |
1645 | */ |
1646 | /*#define HAS_MKSTEMP /**/ |
1647 | |
924b3ec4 |
1648 | /* HAS_SETGROUPS: |
1649 | * This symbol, if defined, indicates that the setgroups() routine is |
1650 | * available to set the list of process groups. If unavailable, multiple |
1651 | * groups are probably not supported. |
1652 | */ |
1653 | /*#define HAS_SETGROUPS /**/ |
1654 | |
07ba5892 |
1655 | /* HAS_SETHOSTENT: |
1656 | * This symbol, if defined, indicates that the sethostent() routine is |
1657 | * available. |
1658 | */ |
1659 | /*#define HAS_SETHOSTENT /**/ |
1660 | |
0cd52aa3 |
1661 | /* HAS_SETNETENT: |
1662 | * This symbol, if defined, indicates that the setnetent() routine is |
1663 | * available. |
1664 | */ |
1665 | /*#define HAS_SETNETENT /**/ |
1666 | |
1667 | /* HAS_SETPROTOENT: |
1668 | * This symbol, if defined, indicates that the setprotoent() routine is |
1669 | * available. |
1670 | */ |
1671 | /*#define HAS_SETPROTOENT /**/ |
1672 | |
1673 | /* HAS_SETSERVENT: |
1674 | * This symbol, if defined, indicates that the setservent() routine is |
1675 | * available. |
1676 | */ |
1677 | /*#define HAS_SETSERVENT /**/ |
1678 | |
1679 | /* HAS_SETVBUF: |
1680 | * This symbol, if defined, indicates that the setvbuf routine is |
1681 | * available to change buffering on an open stdio stream. |
1682 | * to a line-buffered mode. |
1683 | */ |
1684 | #define HAS_SETVBUF /**/ |
1685 | |
bdaec6b3 |
1686 | /* HAS_SOCKET: |
1687 | * This symbol, if defined, indicates that the BSD socket interface is |
1688 | * supported. |
1689 | */ |
1690 | /* HAS_SOCKETPAIR: |
1691 | * This symbol, if defined, indicates that the BSD socketpair() call is |
1692 | * supported. |
1693 | */ |
1694 | #define HAS_SOCKET /**/ |
1695 | /*#define HAS_SOCKETPAIR /**/ |
1696 | |
924b3ec4 |
1697 | /* Signal_t: |
1698 | * This symbol's value is either "void" or "int", corresponding to the |
1699 | * appropriate return type of a signal handler. Thus, you can declare |
1700 | * a signal handler using "Signal_t (*handler)()", and define the |
1701 | * handler using "Signal_t handler(sig)". |
1702 | */ |
1703 | #define Signal_t void /* Signal handler's return type */ |
1704 | |
1705 | /* Groups_t: |
1706 | * This symbol holds the type used for the second argument to |
1707 | * getgroups() and setgropus(). Usually, this is the same as |
1708 | * gidtype (gid_t) , but sometimes it isn't. |
1709 | * It can be int, ushort, uid_t, etc... |
1710 | * It may be necessary to include <sys/types.h> to get any |
1711 | * typedef'ed information. This is only required if you have |
1712 | * getgroups() or setgropus().. |
1713 | */ |
1714 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) |
1715 | #define Groups_t gid_t /* Type for 2nd arg to [sg]etgroups() */ |
1716 | #endif |
1717 | |
1718 | /* I_NETDB: |
1719 | * This symbol, if defined, indicates that <netdb.h> exists and |
1720 | * should be included. |
1721 | */ |
1722 | /*#define I_NETDB /**/ |
08aa1457 |
1723 | |
bdaec6b3 |
1724 | /* I_SYS_TYPES: |
1725 | * This symbol, if defined, indicates to the C program that it should |
1726 | * include <sys/types.h>. |
1727 | */ |
1728 | #define I_SYS_TYPES /**/ |
1729 | |
08aa1457 |
1730 | /* PRIVLIB: |
1731 | * This symbol contains the name of the private library for this package. |
1732 | * The library is private in the sense that it needn't be in anyone's |
1733 | * execution path, but it should be accessible by the world. The program |
1734 | * should be prepared to do ~ expansion. |
1735 | */ |
1736 | /* PRIVLIB_EXP: |
1737 | * This symbol contains the ~name expanded version of PRIVLIB, to be used |
1738 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1739 | */ |
924b3ec4 |
1740 | #define PRIVLIB "c:\\perl5004.5x\\lib" /**/ |
2d7a9237 |
1741 | #define PRIVLIB_EXP (win32_perllib_path(NULL)) /**/ |
08aa1457 |
1742 | |
08aa1457 |
1743 | /* SITEARCH: |
1744 | * This symbol contains the name of the private library for this package. |
1745 | * The library is private in the sense that it needn't be in anyone's |
1746 | * execution path, but it should be accessible by the world. The program |
1747 | * should be prepared to do ~ expansion. |
1748 | * The standard distribution will put nothing in this directory. |
1749 | * Individual sites may place their own extensions and modules in |
1750 | * this directory. |
1751 | */ |
1752 | /* SITEARCH_EXP: |
1753 | * This symbol contains the ~name expanded version of SITEARCH, to be used |
1754 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1755 | */ |
924b3ec4 |
1756 | #define SITEARCH "c:\\perl5004.5x\\lib\\site\\MSWin32-x86" /**/ |
2d7a9237 |
1757 | #define SITEARCH_EXP (win32_perllib_path("site",ARCHNAME,NULL)) /**/ |
08aa1457 |
1758 | |
1759 | /* SITELIB: |
1760 | * This symbol contains the name of the private library for this package. |
1761 | * The library is private in the sense that it needn't be in anyone's |
1762 | * execution path, but it should be accessible by the world. The program |
1763 | * should be prepared to do ~ expansion. |
1764 | * The standard distribution will put nothing in this directory. |
1765 | * Individual sites may place their own extensions and modules in |
1766 | * this directory. |
1767 | */ |
1768 | /* SITELIB_EXP: |
1769 | * This symbol contains the ~name expanded version of SITELIB, to be used |
1770 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1771 | */ |
924b3ec4 |
1772 | #define SITELIB "c:\\perl5004.5x\\lib\\site" /**/ |
2d7a9237 |
1773 | #define SITELIB_EXP (win32_perllib_path("site",NULL)) /**/ |
08aa1457 |
1774 | |
924b3ec4 |
1775 | /* DLSYM_NEEDS_UNDERSCORE: |
1776 | * This symbol, if defined, indicates that we need to prepend an |
1777 | * underscore to the symbol name before calling dlsym(). This only |
1778 | * makes sense if you *have* dlsym, which we will presume is the |
1779 | * case if you're using dl_dlopen.xs. |
1780 | */ |
1781 | /*#define DLSYM_NEEDS_UNDERSCORE /**/ |
1782 | |
1783 | /* USE_SFIO: |
1784 | * This symbol, if defined, indicates that sfio should |
1785 | * be used. |
1786 | */ |
1787 | /*#define USE_SFIO /**/ |
1788 | |
1789 | /* USE_DYNAMIC_LOADING: |
1790 | * This symbol, if defined, indicates that dynamic loading of |
1791 | * some sort is available. |
1792 | */ |
1793 | #define USE_DYNAMIC_LOADING /**/ |
1794 | |
1795 | /* DB_Prefix_t: |
1796 | * This symbol contains the type of the prefix structure element |
1797 | * in the <db.h> header file. In older versions of DB, it was |
1798 | * int, while in newer ones it is u_int32_t. |
1799 | */ |
1800 | /* DB_Hash_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 size_t. |
1804 | */ |
1805 | #define DB_Hash_t int /**/ |
1806 | #define DB_Prefix_t int /**/ |
1807 | |
08aa1457 |
1808 | /* STARTPERL: |
1809 | * This variable contains the string to put in front of a perl |
1810 | * script to make sure (one hopes) that it runs with perl and not |
1811 | * some shell. |
1812 | */ |
161b471a |
1813 | #define STARTPERL "#!perl" /**/ |
08aa1457 |
1814 | |
1815 | /* USE_PERLIO: |
1816 | * This symbol, if defined, indicates that the PerlIO abstraction should |
1817 | * be used throughout. If not defined, stdio should be |
1818 | * used in a fully backward compatible manner. |
1819 | */ |
1820 | /*#define USE_PERLIO /**/ |
1821 | |
bdaec6b3 |
1822 | /* HAS_GETHOST_PROTOS: |
1823 | * This symbol, if defined, indicates that <netdb.h> includes |
1824 | * prototypes for gethostent(), gethostbyname(), and |
1825 | * gethostbyaddr(). Otherwise, it is up to the program to guess |
1826 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
1827 | */ |
1828 | #define HAS_GETHOST_PROTOS /**/ |
1829 | |
1830 | /* HAS_GETNET_PROTOS: |
1831 | * This symbol, if defined, indicates that <netdb.h> includes |
1832 | * prototypes for getnetent(), getnetbyname(), and |
1833 | * getnetbyaddr(). Otherwise, it is up to the program to guess |
1834 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
1835 | */ |
1836 | /*#define HAS_GETNET_PROTOS /**/ |
1837 | |
1838 | /* HAS_GETPROTO_PROTOS: |
1839 | * This symbol, if defined, indicates that <netdb.h> includes |
1840 | * prototypes for getprotoent(), getprotobyname(), and |
1841 | * getprotobyaddr(). Otherwise, it is up to the program to guess |
1842 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
1843 | */ |
1844 | #define HAS_GETPROTO_PROTOS /**/ |
1845 | |
1846 | /* HAS_GETSERV_PROTOS: |
1847 | * This symbol, if defined, indicates that <netdb.h> includes |
1848 | * prototypes for getservent(), getservbyname(), and |
1849 | * getservbyaddr(). Otherwise, it is up to the program to guess |
1850 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. |
1851 | */ |
1852 | #define HAS_GETSERV_PROTOS /**/ |
1853 | |
924b3ec4 |
1854 | /* Netdb_host_t: |
1855 | * This symbol holds the type used for the 1st argument |
1856 | * to gethostbyaddr(). |
08aa1457 |
1857 | */ |
924b3ec4 |
1858 | /* Netdb_hlen_t: |
1859 | * This symbol holds the type used for the 2nd argument |
1860 | * to gethostbyaddr(). |
1861 | */ |
1862 | /* Netdb_name_t: |
1863 | * This symbol holds the type used for the argument to |
1864 | * gethostbyname(). |
1865 | */ |
1866 | /* Netdb_net_t: |
1867 | * This symbol holds the type used for the 1st argument to |
1868 | * getnetbyaddr(). |
1869 | */ |
1870 | #define Netdb_host_t char * /**/ |
1871 | #define Netdb_hlen_t int /**/ |
1872 | #define Netdb_name_t char * /**/ |
1873 | #define Netdb_net_t long /**/ |
1874 | |
1875 | /* Select_fd_set_t: |
1876 | * This symbol holds the type used for the 2nd, 3rd, and 4th |
1877 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET |
1878 | * is defined, and 'int *' otherwise. This is only useful if you |
1879 | * have select(), of course. |
1880 | */ |
1881 | #define Select_fd_set_t Perl_fd_set * /**/ |
1882 | |
bdaec6b3 |
1883 | /* SIG_NAME: |
1884 | * This symbol contains a list of signal names in order of |
1885 | * signal number. This is intended |
1886 | * to be used as a static array initialization, like this: |
1887 | * char *sig_name[] = { SIG_NAME }; |
1888 | * The signals in the list are separated with commas, and each signal |
1889 | * is surrounded by double quotes. There is no leading SIG in the signal |
1890 | * name, i.e. SIGQUIT is known as "QUIT". |
1891 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, |
1892 | * etc., where nn is the actual signal number (e.g. NUM37). |
1893 | * The signal number for sig_name[i] is stored in sig_num[i]. |
1894 | * The last element is 0 to terminate the list with a NULL. This |
1895 | * corresponds to the 0 at the end of the sig_num list. |
1896 | */ |
1897 | /* SIG_NUM: |
1898 | * This symbol contains a list of signal numbers, in the same order as the |
1899 | * SIG_NAME list. It is suitable for static array initialization, as in: |
1900 | * int sig_num[] = { SIG_NUM }; |
1901 | * The signals in the list are separated with commas, and the indices |
1902 | * within that list and the SIG_NAME list match, so it's easy to compute |
1903 | * the signal name from a number or vice versa at the price of a small |
1904 | * dynamic linear lookup. |
1905 | * Duplicates are allowed, but are moved to the end of the list. |
1906 | * The signal number corresponding to sig_name[i] is sig_number[i]. |
1907 | * if (i < NSIG) then sig_number[i] == i. |
1908 | * The last element is 0, corresponding to the 0 at the end of |
1909 | * the sig_name list. |
1910 | */ |
1911 | #define SIG_NAME "ZERO", "INT", "QUIT", "ILL", "FPE", "KILL", "SEGV", "PIPE", "ALRM", "TERM", "USR1", "USR2", "CHLD", "USR3", "BREAK", "ABRT", "STOP", "CONT", "CLD", 0 /**/ |
1912 | #define SIG_NUM 0, 2, 3, 4, 8, 9, 11, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 25, 18, 0 /**/ |
1913 | |
924b3ec4 |
1914 | /* ARCHNAME: |
1915 | * This symbol holds a string representing the architecture name. |
1916 | * It may be used to construct an architecture-dependant pathname |
1917 | * where library files may be held under a private library, for |
1918 | * instance. |
1919 | */ |
1920 | #define ARCHNAME "MSWin32-x86" /**/ |
1921 | |
1922 | /* HAS_PTHREAD_YIELD: |
1923 | * This symbol, if defined, indicates that the pthread_yield |
1924 | * routine is available to yield the execution of the current |
1925 | * thread. |
1926 | */ |
1927 | /*#define HAS_PTHREAD_YIELD /**/ |
1928 | |
1929 | /* PTHREADS_CREATED_JOINABLE: |
1930 | * This symbol, if defined, indicates that pthreads are created |
1931 | * in the joinable (aka undetached) state. |
1932 | */ |
1933 | /*#define PTHREADS_CREATED_JOINABLE /**/ |
1934 | |
1935 | /* USE_THREADS: |
1936 | * This symbol, if defined, indicates that Perl should |
1937 | * be built to use threads. |
1938 | */ |
07ba5892 |
1939 | /* OLD_PTHREADS_API: |
1940 | * This symbol, if defined, indicates that Perl should |
1941 | * be built to use the old draft POSIX threads API. |
1942 | */ |
924b3ec4 |
1943 | /*#define USE_THREADS /**/ |
07ba5892 |
1944 | /*#define OLD_PTHREADS_API /**/ |
08aa1457 |
1945 | |
bdaec6b3 |
1946 | /* Time_t: |
1947 | * This symbol holds the type returned by time(). It can be long, |
1948 | * or time_t on BSD sites (in which case <sys/types.h> should be |
1949 | * included). |
1950 | */ |
1951 | #define Time_t time_t /* Time type */ |
1952 | |
1953 | /* HAS_TIMES: |
1954 | * This symbol, if defined, indicates that the times() routine exists. |
1955 | * Note that this became obsolete on some systems (SUNOS), which now |
1956 | * use getrusage(). It may be necessary to include <sys/times.h>. |
1957 | */ |
1958 | #define HAS_TIMES /**/ |
1959 | |
1960 | /* Fpos_t: |
1961 | * This symbol holds the type used to declare file positions in libc. |
1962 | * It can be fpos_t, long, uint, etc... It may be necessary to include |
1963 | * <sys/types.h> to get any typedef'ed information. |
1964 | */ |
1965 | #define Fpos_t fpos_t /* File position type */ |
1966 | |
1967 | /* Gid_t: |
1968 | * This symbol holds the return type of getgid() and the type of |
1969 | * argument to setrgid() and related functions. Typically, |
1970 | * it is the type of group ids in the kernel. It can be int, ushort, |
1971 | * uid_t, etc... It may be necessary to include <sys/types.h> to get |
1972 | * any typedef'ed information. |
1973 | */ |
1974 | #define Gid_t gid_t /* Type for getgid(), etc... */ |
1975 | |
1976 | /* Off_t: |
1977 | * This symbol holds the type used to declare offsets in the kernel. |
1978 | * It can be int, long, off_t, etc... It may be necessary to include |
1979 | * <sys/types.h> to get any typedef'ed information. |
1980 | */ |
1981 | #define Off_t off_t /* <offset> type */ |
1982 | |
1983 | /* Mode_t: |
1984 | * This symbol holds the type used to declare file modes |
1985 | * for systems calls. It is usually mode_t, but may be |
1986 | * int or unsigned short. It may be necessary to include <sys/types.h> |
1987 | * to get any typedef'ed information. |
1988 | */ |
1989 | #define Mode_t mode_t /* file mode parameter for system calls */ |
1990 | |
1991 | /* Pid_t: |
1992 | * This symbol holds the type used to declare process ids in the kernel. |
1993 | * It can be int, uint, pid_t, etc... It may be necessary to include |
1994 | * <sys/types.h> to get any typedef'ed information. |
1995 | */ |
1996 | #define Pid_t int /* PID type */ |
1997 | |
1998 | /* Size_t: |
1999 | * This symbol holds the type used to declare length parameters |
2000 | * for string functions. It is usually size_t, but may be |
2001 | * unsigned long, int, etc. It may be necessary to include |
2002 | * <sys/types.h> to get any typedef'ed information. |
2003 | */ |
2004 | #define Size_t size_t /* length paramater for string functions */ |
2005 | |
2006 | /* Uid_t: |
2007 | * This symbol holds the type used to declare user ids in the kernel. |
2008 | * It can be int, ushort, uid_t, etc... It may be necessary to include |
2009 | * <sys/types.h> to get any typedef'ed information. |
2010 | */ |
2011 | #define Uid_t uid_t /* UID type */ |
2012 | |
08aa1457 |
2013 | #endif |
2014 | #include <win32.h> |