Commit | Line | Data |
---|---|---|
3ebb1980 JH |
1 | /* |
2 | * This file was produced by running the config_h.SH script, which | |
3 | * gets its values from uconfig.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 uconfig.sh and rerun config_h.SH. | |
9 | * | |
10 | * $Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ | |
11 | */ | |
12 | ||
13 | /* | |
14 | * Package name : | |
15 | * Source directory : | |
16 | * Configuration time: | |
17 | * Configured by : | |
18 | * Target system : unknown | |
19 | */ | |
20 | ||
21 | #ifndef _config_h_ | |
22 | #define _config_h_ | |
23 | ||
24 | /* LOC_SED: | |
25 | * This symbol holds the complete pathname to the sed program. | |
26 | */ | |
27 | #define LOC_SED "" /**/ | |
28 | ||
29 | /* HAS_ALARM: | |
30 | * This symbol, if defined, indicates that the alarm routine is | |
31 | * available. | |
32 | */ | |
33 | /*#define HAS_ALARM / **/ | |
34 | ||
35 | /* HASATTRIBUTE: | |
36 | * This symbol indicates the C compiler can check for function attributes, | |
37 | * such as printf formats. This is normally only supported by GNU cc. | |
38 | */ | |
39 | /*#define HASATTRIBUTE / **/ | |
40 | #ifndef HASATTRIBUTE | |
41 | #define __attribute__(_arg_) | |
42 | #endif | |
43 | ||
44 | /* HAS_BCMP: | |
45 | * This symbol is defined if the bcmp() routine is available to | |
46 | * compare blocks of memory. | |
47 | */ | |
48 | /*#define HAS_BCMP / **/ | |
49 | ||
50 | /* HAS_BCOPY: | |
51 | * This symbol is defined if the bcopy() routine is available to | |
52 | * copy blocks of memory. | |
53 | */ | |
54 | /*#define HAS_BCOPY / **/ | |
55 | ||
56 | /* HAS_BZERO: | |
57 | * This symbol is defined if the bzero() routine is available to | |
58 | * set a memory block to 0. | |
59 | */ | |
60 | /*#define HAS_BZERO / **/ | |
61 | ||
62 | /* HAS_CHOWN: | |
63 | * This symbol, if defined, indicates that the chown routine is | |
64 | * available. | |
65 | */ | |
66 | /*#define HAS_CHOWN / **/ | |
67 | ||
68 | /* HAS_CHROOT: | |
69 | * This symbol, if defined, indicates that the chroot routine is | |
70 | * available. | |
71 | */ | |
72 | /*#define HAS_CHROOT / **/ | |
73 | ||
74 | /* HAS_CHSIZE: | |
75 | * This symbol, if defined, indicates that the chsize routine is available | |
76 | * to truncate files. You might need a -lx to get this routine. | |
77 | */ | |
78 | /*#define HAS_CHSIZE / **/ | |
79 | ||
80 | /* HASCONST: | |
81 | * This symbol, if defined, indicates that this C compiler knows about | |
82 | * the const type. There is no need to actually test for that symbol | |
83 | * within your programs. The mere use of the "const" keyword will | |
84 | * trigger the necessary tests. | |
85 | */ | |
86 | /*#define HASCONST / **/ | |
87 | #ifndef HASCONST | |
88 | #define const | |
89 | #endif | |
90 | ||
91 | /* HAS_CRYPT: | |
92 | * This symbol, if defined, indicates that the crypt routine is available | |
93 | * to encrypt passwords and the like. | |
94 | */ | |
95 | /*#define HAS_CRYPT / **/ | |
96 | ||
97 | /* HAS_CUSERID: | |
98 | * This symbol, if defined, indicates that the cuserid routine is | |
99 | * available to get character login names. | |
100 | */ | |
101 | /*#define HAS_CUSERID / **/ | |
102 | ||
103 | /* HAS_DBL_DIG: | |
104 | * This symbol, if defined, indicates that this system's <float.h> | |
105 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
106 | * of significant digits in a double precision number. If this | |
107 | * symbol is not defined, a guess of 15 is usually pretty good. | |
108 | */ | |
109 | /*#define HAS_DBL_DIG / * */ | |
110 | ||
111 | /* HAS_DIFFTIME: | |
112 | * This symbol, if defined, indicates that the difftime routine is | |
113 | * available. | |
114 | */ | |
115 | /*#define HAS_DIFFTIME / **/ | |
116 | ||
117 | /* HAS_DLERROR: | |
118 | * This symbol, if defined, indicates that the dlerror routine is | |
119 | * available to return a string describing the last error that | |
120 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
121 | */ | |
122 | /*#define HAS_DLERROR / **/ | |
123 | ||
124 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: | |
125 | * This symbol, if defined, indicates that the bug that prevents | |
126 | * setuid scripts from being secure is not present in this kernel. | |
127 | */ | |
128 | /* DOSUID: | |
129 | * This symbol, if defined, indicates that the C program should | |
130 | * check the script that it is executing for setuid/setgid bits, and | |
131 | * attempt to emulate setuid/setgid on systems that have disabled | |
132 | * setuid #! scripts because the kernel can't do it securely. | |
133 | * It is up to the package designer to make sure that this emulation | |
134 | * is done securely. Among other things, it should do an fstat on | |
135 | * the script it just opened to make sure it really is a setuid/setgid | |
136 | * script, it should make sure the arguments passed correspond exactly | |
137 | * to the argument on the #! line, and it should not trust any | |
138 | * subprocesses to which it must pass the filename rather than the | |
139 | * file descriptor of the script to be executed. | |
140 | */ | |
141 | /*#define SETUID_SCRIPTS_ARE_SECURE_NOW / **/ | |
142 | /*#define DOSUID / **/ | |
143 | ||
144 | /* HAS_DUP2: | |
145 | * This symbol, if defined, indicates that the dup2 routine is | |
146 | * available to duplicate file descriptors. | |
147 | */ | |
148 | /*#define HAS_DUP2 / **/ | |
149 | ||
150 | /* HAS_FCHMOD: | |
151 | * This symbol, if defined, indicates that the fchmod routine is available | |
152 | * to change mode of opened files. If unavailable, use chmod(). | |
153 | */ | |
154 | /*#define HAS_FCHMOD / **/ | |
155 | ||
156 | /* HAS_FCHOWN: | |
157 | * This symbol, if defined, indicates that the fchown routine is available | |
158 | * to change ownership of opened files. If unavailable, use chown(). | |
159 | */ | |
160 | /*#define HAS_FCHOWN / **/ | |
161 | ||
162 | /* HAS_FCNTL: | |
163 | * This symbol, if defined, indicates to the C program that | |
164 | * the fcntl() function exists. | |
165 | */ | |
166 | /*#define HAS_FCNTL / **/ | |
167 | ||
168 | /* HAS_FGETPOS: | |
169 | * This symbol, if defined, indicates that the fgetpos routine is | |
170 | * available to get the file position indicator, similar to ftell(). | |
171 | */ | |
172 | /*#define HAS_FGETPOS / **/ | |
173 | ||
174 | /* HAS_FLOCK: | |
175 | * This symbol, if defined, indicates that the flock routine is | |
176 | * available to do file locking. | |
177 | */ | |
178 | /*#define HAS_FLOCK / **/ | |
179 | ||
180 | /* HAS_FORK: | |
181 | * This symbol, if defined, indicates that the fork routine is | |
182 | * available. | |
183 | */ | |
184 | #define HAS_FORK /**/ | |
185 | ||
186 | /* HAS_FSETPOS: | |
187 | * This symbol, if defined, indicates that the fsetpos routine is | |
188 | * available to set the file position indicator, similar to fseek(). | |
189 | */ | |
190 | /*#define HAS_FSETPOS / **/ | |
191 | ||
192 | /* HAS_GETTIMEOFDAY: | |
193 | * This symbol, if defined, indicates that the gettimeofday() system | |
194 | * call is available for a sub-second accuracy clock. Usually, the file | |
195 | * <sys/resource.h> needs to be included (see I_SYS_RESOURCE). | |
196 | * The type "Timeval" should be used to refer to "struct timeval". | |
197 | */ | |
198 | /*#define HAS_GETTIMEOFDAY / **/ | |
199 | #ifdef HAS_GETTIMEOFDAY | |
200 | #define Timeval struct timeval /* Structure used by gettimeofday() */ | |
201 | #endif | |
202 | ||
203 | /* HAS_GETGROUPS: | |
204 | * This symbol, if defined, indicates that the getgroups() routine is | |
205 | * available to get the list of process groups. If unavailable, multiple | |
206 | * groups are probably not supported. | |
207 | */ | |
208 | /*#define HAS_GETGROUPS / **/ | |
209 | ||
210 | /* HAS_GETLOGIN: | |
211 | * This symbol, if defined, indicates that the getlogin routine is | |
212 | * available to get the login name. | |
213 | */ | |
214 | /*#define HAS_GETLOGIN / **/ | |
215 | ||
216 | /* HAS_GETPGID: | |
217 | * This symbol, if defined, indicates to the C program that | |
218 | * the getpgid(pid) function is available to get the | |
219 | * process group id. | |
220 | */ | |
221 | /*#define HAS_GETPGID / **/ | |
222 | ||
223 | /* HAS_GETPGRP: | |
224 | * This symbol, if defined, indicates that the getpgrp routine is | |
225 | * available to get the current process group. | |
226 | */ | |
227 | /* USE_BSD_GETPGRP: | |
228 | * This symbol, if defined, indicates that getpgrp needs one | |
229 | * arguments whereas USG one needs none. | |
230 | */ | |
231 | /*#define HAS_GETPGRP / **/ | |
232 | /*#define USE_BSD_GETPGRP / **/ | |
233 | ||
234 | /* HAS_GETPGRP2: | |
235 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) | |
236 | * routine is available to get the current process group. | |
237 | */ | |
238 | /*#define HAS_GETPGRP2 / **/ | |
239 | ||
240 | /* HAS_GETPPID: | |
241 | * This symbol, if defined, indicates that the getppid routine is | |
242 | * available to get the parent process ID. | |
243 | */ | |
244 | /*#define HAS_GETPPID / **/ | |
245 | ||
246 | /* HAS_GETPRIORITY: | |
247 | * This symbol, if defined, indicates that the getpriority routine is | |
248 | * available to get a process's priority. | |
249 | */ | |
250 | /*#define HAS_GETPRIORITY / **/ | |
251 | ||
252 | /* HAS_INET_ATON: | |
253 | * This symbol, if defined, indicates to the C program that the | |
254 | * inet_aton() function is available to parse IP address "dotted-quad" | |
255 | * strings. | |
256 | */ | |
257 | /*#define HAS_INET_ATON / **/ | |
258 | ||
259 | /* HAS_KILLPG: | |
260 | * This symbol, if defined, indicates that the killpg routine is available | |
261 | * to kill process groups. If unavailable, you probably should use kill | |
262 | * with a negative process number. | |
263 | */ | |
264 | /*#define HAS_KILLPG / **/ | |
265 | ||
266 | /* HAS_LINK: | |
267 | * This symbol, if defined, indicates that the link routine is | |
268 | * available to create hard links. | |
269 | */ | |
270 | /*#define HAS_LINK / **/ | |
271 | ||
272 | /* HAS_LOCALECONV: | |
273 | * This symbol, if defined, indicates that the localeconv routine is | |
274 | * available for numeric and monetary formatting conventions. | |
275 | */ | |
276 | /*#define HAS_LOCALECONV / **/ | |
277 | ||
278 | /* HAS_LOCKF: | |
279 | * This symbol, if defined, indicates that the lockf routine is | |
280 | * available to do file locking. | |
281 | */ | |
282 | /*#define HAS_LOCKF / **/ | |
283 | ||
284 | /* HAS_LSTAT: | |
285 | * This symbol, if defined, indicates that the lstat routine is | |
286 | * available to do file stats on symbolic links. | |
287 | */ | |
288 | /*#define HAS_LSTAT / **/ | |
289 | ||
290 | /* HAS_MBLEN: | |
291 | * This symbol, if defined, indicates that the mblen routine is available | |
292 | * to find the number of bytes in a multibye character. | |
293 | */ | |
294 | /*#define HAS_MBLEN / **/ | |
295 | ||
296 | /* HAS_MBSTOWCS: | |
297 | * This symbol, if defined, indicates that the mbstowcs routine is | |
298 | * available to covert a multibyte string into a wide character string. | |
299 | */ | |
300 | /*#define HAS_MBSTOWCS / **/ | |
301 | ||
302 | /* HAS_MBTOWC: | |
303 | * This symbol, if defined, indicates that the mbtowc routine is available | |
304 | * to covert a multibyte to a wide character. | |
305 | */ | |
306 | /*#define HAS_MBTOWC / **/ | |
307 | ||
308 | /* HAS_MEMCMP: | |
309 | * This symbol, if defined, indicates that the memcmp routine is available | |
310 | * to compare blocks of memory. | |
311 | */ | |
312 | /*#define HAS_MEMCMP / **/ | |
313 | ||
314 | /* HAS_MEMCPY: | |
315 | * This symbol, if defined, indicates that the memcpy routine is available | |
316 | * to copy blocks of memory. | |
317 | */ | |
318 | /*#define HAS_MEMCPY / **/ | |
319 | ||
320 | /* HAS_MEMMOVE: | |
321 | * This symbol, if defined, indicates that the memmove routine is available | |
322 | * to copy potentially overlapping blocks of memory. This should be used | |
323 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
324 | * own version. | |
325 | */ | |
326 | /*#define HAS_MEMMOVE / **/ | |
327 | ||
328 | /* HAS_MEMSET: | |
329 | * This symbol, if defined, indicates that the memset routine is available | |
330 | * to set blocks of memory. | |
331 | */ | |
332 | /*#define HAS_MEMSET / **/ | |
333 | ||
334 | /* HAS_MKDIR: | |
335 | * This symbol, if defined, indicates that the mkdir routine is available | |
336 | * to create directories. Otherwise you should fork off a new process to | |
337 | * exec /bin/mkdir. | |
338 | */ | |
339 | /*#define HAS_MKDIR / **/ | |
340 | ||
341 | /* HAS_MKFIFO: | |
342 | * This symbol, if defined, indicates that the mkfifo routine is | |
343 | * available to create FIFOs. Otherwise, mknod should be able to | |
344 | * do it for you. However, if mkfifo is there, mknod might require | |
345 | * super-user privileges which mkfifo will not. | |
346 | */ | |
347 | /*#define HAS_MKFIFO / **/ | |
348 | ||
349 | /* HAS_MKTIME: | |
350 | * This symbol, if defined, indicates that the mktime routine is | |
351 | * available. | |
352 | */ | |
353 | /*#define HAS_MKTIME / **/ | |
354 | ||
355 | /* HAS_MSYNC: | |
356 | * This symbol, if defined, indicates that the msync system call is | |
357 | * available to synchronize a mapped file. | |
358 | */ | |
359 | /*#define HAS_MSYNC / **/ | |
360 | ||
361 | /* HAS_MUNMAP: | |
362 | * This symbol, if defined, indicates that the munmap system call is | |
363 | * available to unmap a region, usually mapped by mmap(). | |
364 | */ | |
365 | /*#define HAS_MUNMAP / **/ | |
366 | ||
367 | /* HAS_NICE: | |
368 | * This symbol, if defined, indicates that the nice routine is | |
369 | * available. | |
370 | */ | |
371 | /*#define HAS_NICE / **/ | |
372 | ||
373 | /* HAS_PATHCONF: | |
374 | * This symbol, if defined, indicates that pathconf() is available | |
375 | * to determine file-system related limits and options associated | |
376 | * with a given filename. | |
377 | */ | |
378 | /* HAS_FPATHCONF: | |
379 | * This symbol, if defined, indicates that pathconf() is available | |
380 | * to determine file-system related limits and options associated | |
381 | * with a given open file descriptor. | |
382 | */ | |
383 | /*#define HAS_PATHCONF / **/ | |
384 | /*#define HAS_FPATHCONF / **/ | |
385 | ||
386 | /* HAS_PAUSE: | |
387 | * This symbol, if defined, indicates that the pause routine is | |
388 | * available to suspend a process until a signal is received. | |
389 | */ | |
390 | /*#define HAS_PAUSE / **/ | |
391 | ||
392 | /* HAS_PIPE: | |
393 | * This symbol, if defined, indicates that the pipe routine is | |
394 | * available to create an inter-process channel. | |
395 | */ | |
396 | /*#define HAS_PIPE / **/ | |
397 | ||
398 | /* HAS_POLL: | |
399 | * This symbol, if defined, indicates that the poll routine is | |
400 | * available to poll active file descriptors. You may safely | |
401 | * include <poll.h> when this symbol is defined. | |
402 | */ | |
403 | /*#define HAS_POLL / **/ | |
404 | ||
405 | /* HAS_READDIR: | |
406 | * This symbol, if defined, indicates that the readdir routine is | |
407 | * available to read directory entries. You may have to include | |
408 | * <dirent.h>. See I_DIRENT. | |
409 | */ | |
410 | /*#define HAS_READDIR / **/ | |
411 | ||
412 | /* HAS_SEEKDIR: | |
413 | * This symbol, if defined, indicates that the seekdir routine is | |
414 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
415 | */ | |
416 | /*#define HAS_SEEKDIR / **/ | |
417 | ||
418 | /* HAS_TELLDIR: | |
419 | * This symbol, if defined, indicates that the telldir routine is | |
420 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
421 | */ | |
422 | /*#define HAS_TELLDIR / **/ | |
423 | ||
424 | /* HAS_REWINDDIR: | |
425 | * This symbol, if defined, indicates that the rewinddir routine is | |
426 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
427 | */ | |
428 | /*#define HAS_REWINDDIR / **/ | |
429 | ||
430 | /* HAS_READLINK: | |
431 | * This symbol, if defined, indicates that the readlink routine is | |
432 | * available to read the value of a symbolic link. | |
433 | */ | |
434 | /*#define HAS_READLINK / **/ | |
435 | ||
436 | /* HAS_RENAME: | |
437 | * This symbol, if defined, indicates that the rename routine is available | |
438 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
439 | * trick. | |
440 | */ | |
441 | /*#define HAS_RENAME / **/ | |
442 | ||
443 | /* HAS_RMDIR: | |
444 | * This symbol, if defined, indicates that the rmdir routine is | |
445 | * available to remove directories. Otherwise you should fork off a | |
446 | * new process to exec /bin/rmdir. | |
447 | */ | |
448 | /*#define HAS_RMDIR / **/ | |
449 | ||
450 | /* HAS_SELECT: | |
451 | * This symbol, if defined, indicates that the select routine is | |
452 | * available to select active file descriptors. If the timeout field | |
453 | * is used, <sys/time.h> may need to be included. | |
454 | */ | |
455 | /*#define HAS_SELECT / **/ | |
456 | ||
457 | /* HAS_SETEGID: | |
458 | * This symbol, if defined, indicates that the setegid routine is available | |
459 | * to change the effective gid of the current program. | |
460 | */ | |
461 | /*#define HAS_SETEGID / **/ | |
462 | ||
463 | /* HAS_SETEUID: | |
464 | * This symbol, if defined, indicates that the seteuid routine is available | |
465 | * to change the effective uid of the current program. | |
466 | */ | |
467 | /*#define HAS_SETEUID / **/ | |
468 | ||
469 | /* HAS_SETLINEBUF: | |
470 | * This symbol, if defined, indicates that the setlinebuf routine is | |
471 | * available to change stderr or stdout from block-buffered or unbuffered | |
472 | * to a line-buffered mode. | |
473 | */ | |
474 | /*#define HAS_SETLINEBUF / **/ | |
475 | ||
476 | /* HAS_SETLOCALE: | |
477 | * This symbol, if defined, indicates that the setlocale routine is | |
478 | * available to handle locale-specific ctype implementations. | |
479 | */ | |
480 | /*#define HAS_SETLOCALE / **/ | |
481 | ||
482 | /* HAS_SETPGID: | |
483 | * This symbol, if defined, indicates that the setpgid(pid, gpid) | |
484 | * routine is available to set process group ID. | |
485 | */ | |
486 | /*#define HAS_SETPGID / **/ | |
487 | ||
488 | /* HAS_SETPGRP: | |
489 | * This symbol, if defined, indicates that the setpgrp routine is | |
490 | * available to set the current process group. | |
491 | */ | |
492 | /* USE_BSD_SETPGRP: | |
493 | * This symbol, if defined, indicates that setpgrp needs two | |
494 | * arguments whereas USG one needs none. See also HAS_SETPGID | |
495 | * for a POSIX interface. | |
496 | */ | |
497 | /*#define HAS_SETPGRP / **/ | |
498 | /*#define USE_BSD_SETPGRP / **/ | |
499 | ||
500 | /* HAS_SETPGRP2: | |
501 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) | |
502 | * routine is available to set the current process group. | |
503 | */ | |
504 | /*#define HAS_SETPGRP2 / **/ | |
505 | ||
506 | /* HAS_SETPRIORITY: | |
507 | * This symbol, if defined, indicates that the setpriority routine is | |
508 | * available to set a process's priority. | |
509 | */ | |
510 | /*#define HAS_SETPRIORITY / **/ | |
511 | ||
512 | /* HAS_SETREGID: | |
513 | * This symbol, if defined, indicates that the setregid routine is | |
514 | * available to change the real and effective gid of the current | |
515 | * process. | |
516 | */ | |
517 | /* HAS_SETRESGID: | |
518 | * This symbol, if defined, indicates that the setresgid routine is | |
519 | * available to change the real, effective and saved gid of the current | |
520 | * process. | |
521 | */ | |
522 | /*#define HAS_SETREGID / **/ | |
523 | /*#define HAS_SETRESGID / **/ | |
524 | ||
525 | /* HAS_SETREUID: | |
526 | * This symbol, if defined, indicates that the setreuid routine is | |
527 | * available to change the real and effective uid of the current | |
528 | * process. | |
529 | */ | |
530 | /* HAS_SETRESUID: | |
531 | * This symbol, if defined, indicates that the setresuid routine is | |
532 | * available to change the real, effective and saved uid of the current | |
533 | * process. | |
534 | */ | |
535 | /*#define HAS_SETREUID / **/ | |
536 | /*#define HAS_SETRESUID / **/ | |
537 | ||
538 | /* HAS_SETRGID: | |
539 | * This symbol, if defined, indicates that the setrgid routine is available | |
540 | * to change the real gid of the current program. | |
541 | */ | |
542 | /*#define HAS_SETRGID / **/ | |
543 | ||
544 | /* HAS_SETRUID: | |
545 | * This symbol, if defined, indicates that the setruid routine is available | |
546 | * to change the real uid of the current program. | |
547 | */ | |
548 | /*#define HAS_SETRUID / **/ | |
549 | ||
550 | /* HAS_SETSID: | |
551 | * This symbol, if defined, indicates that the setsid routine is | |
552 | * available to set the process group ID. | |
553 | */ | |
554 | /*#define HAS_SETSID / **/ | |
555 | ||
556 | /* Shmat_t: | |
557 | * This symbol holds the return type of the shmat() system call. | |
558 | * Usually set to 'void *' or 'char *'. | |
559 | */ | |
560 | /* HAS_SHMAT_PROTOTYPE: | |
561 | * This symbol, if defined, indicates that the sys/shm.h includes | |
562 | * a prototype for shmat(). Otherwise, it is up to the program to | |
563 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, | |
564 | * but not always right so it should be emitted by the program only | |
565 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
566 | */ | |
567 | #define Shmat_t void * /**/ | |
568 | /*#define HAS_SHMAT_PROTOTYPE / **/ | |
569 | ||
570 | /* HAS_STRCHR: | |
571 | * This symbol is defined to indicate that the strchr()/strrchr() | |
572 | * functions are available for string searching. If not, try the | |
573 | * index()/rindex() pair. | |
574 | */ | |
575 | /* HAS_INDEX: | |
576 | * This symbol is defined to indicate that the index()/rindex() | |
577 | * functions are available for string searching. | |
578 | */ | |
579 | /*#define HAS_STRCHR / **/ | |
580 | /*#define HAS_INDEX / **/ | |
581 | ||
582 | /* HAS_STRCOLL: | |
583 | * This symbol, if defined, indicates that the strcoll routine is | |
584 | * available to compare strings using collating information. | |
585 | */ | |
586 | /*#define HAS_STRCOLL / **/ | |
587 | ||
588 | /* USE_STRUCT_COPY: | |
589 | * This symbol, if defined, indicates that this C compiler knows how | |
590 | * to copy structures. If undefined, you'll need to use a block copy | |
591 | * routine of some sort instead. | |
592 | */ | |
593 | /*#define USE_STRUCT_COPY / **/ | |
594 | ||
595 | /* HAS_STRTOD: | |
596 | * This symbol, if defined, indicates that the strtod routine is | |
597 | * available to provide better numeric string conversion than atof(). | |
598 | */ | |
599 | /*#define HAS_STRTOD / **/ | |
600 | ||
601 | /* HAS_STRTOL: | |
602 | * This symbol, if defined, indicates that the strtol routine is available | |
603 | * to provide better numeric string conversion than atoi() and friends. | |
604 | */ | |
605 | /*#define HAS_STRTOL / **/ | |
606 | ||
607 | /* HAS_STRTOUL: | |
608 | * This symbol, if defined, indicates that the strtoul routine is | |
609 | * available to provide conversion of strings to unsigned long. | |
610 | */ | |
611 | /*#define HAS_STRTOUL / **/ | |
612 | ||
613 | /* HAS_STRXFRM: | |
614 | * This symbol, if defined, indicates that the strxfrm() routine is | |
615 | * available to transform strings. | |
616 | */ | |
617 | /*#define HAS_STRXFRM / **/ | |
618 | ||
619 | /* HAS_SYMLINK: | |
620 | * This symbol, if defined, indicates that the symlink routine is available | |
621 | * to create symbolic links. | |
622 | */ | |
623 | /*#define HAS_SYMLINK / **/ | |
624 | ||
625 | /* HAS_SYSCALL: | |
626 | * This symbol, if defined, indicates that the syscall routine is | |
627 | * available to call arbitrary system calls. If undefined, that's tough. | |
628 | */ | |
629 | /*#define HAS_SYSCALL / **/ | |
630 | ||
631 | /* HAS_SYSCONF: | |
632 | * This symbol, if defined, indicates that sysconf() is available | |
633 | * to determine system related limits and options. | |
634 | */ | |
635 | /*#define HAS_SYSCONF / **/ | |
636 | ||
637 | /* HAS_SYSTEM: | |
638 | * This symbol, if defined, indicates that the system routine is | |
639 | * available to issue a shell command. | |
640 | */ | |
641 | /*#define HAS_SYSTEM / **/ | |
642 | ||
643 | /* HAS_TCGETPGRP: | |
644 | * This symbol, if defined, indicates that the tcgetpgrp routine is | |
645 | * available to get foreground process group ID. | |
646 | */ | |
647 | /*#define HAS_TCGETPGRP / **/ | |
648 | ||
649 | /* HAS_TCSETPGRP: | |
650 | * This symbol, if defined, indicates that the tcsetpgrp routine is | |
651 | * available to set foreground process group ID. | |
652 | */ | |
653 | /*#define HAS_TCSETPGRP / **/ | |
654 | ||
655 | /* HAS_TRUNCATE: | |
656 | * This symbol, if defined, indicates that the truncate routine is | |
657 | * available to truncate files. | |
658 | */ | |
659 | /*#define HAS_TRUNCATE / **/ | |
660 | ||
661 | /* HAS_TZNAME: | |
662 | * This symbol, if defined, indicates that the tzname[] array is | |
663 | * available to access timezone names. | |
664 | */ | |
665 | /*#define HAS_TZNAME / **/ | |
666 | ||
667 | /* HAS_UMASK: | |
668 | * This symbol, if defined, indicates that the umask routine is | |
669 | * available to set and get the value of the file creation mask. | |
670 | */ | |
671 | /*#define HAS_UMASK / **/ | |
672 | ||
673 | /* HASVOLATILE: | |
674 | * This symbol, if defined, indicates that this C compiler knows about | |
675 | * the volatile declaration. | |
676 | */ | |
677 | /*#define HASVOLATILE / **/ | |
678 | #ifndef HASVOLATILE | |
679 | #define volatile | |
680 | #endif | |
681 | ||
682 | /* HAS_WAIT4: | |
683 | * This symbol, if defined, indicates that wait4() exists. | |
684 | */ | |
685 | /*#define HAS_WAIT4 / **/ | |
686 | ||
687 | /* HAS_WAITPID: | |
688 | * This symbol, if defined, indicates that the waitpid routine is | |
689 | * available to wait for child process. | |
690 | */ | |
691 | /*#define HAS_WAITPID / **/ | |
692 | ||
693 | /* HAS_WCSTOMBS: | |
694 | * This symbol, if defined, indicates that the wcstombs routine is | |
695 | * available to convert wide character strings to multibyte strings. | |
696 | */ | |
697 | /*#define HAS_WCSTOMBS / **/ | |
698 | ||
699 | /* HAS_WCTOMB: | |
700 | * This symbol, if defined, indicates that the wctomb routine is available | |
701 | * to covert a wide character to a multibyte. | |
702 | */ | |
703 | /*#define HAS_WCTOMB / **/ | |
704 | ||
705 | /* I_ARPA_INET: | |
706 | * This symbol, if defined, indicates to the C program that it should | |
707 | * include <arpa/inet.h> to get inet_addr and friends declarations. | |
708 | */ | |
709 | /*#define I_ARPA_INET / **/ | |
710 | ||
711 | /* I_DBM: | |
712 | * This symbol, if defined, indicates that <dbm.h> exists and should | |
713 | * be included. | |
714 | */ | |
715 | /* I_RPCSVC_DBM: | |
716 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and | |
717 | * should be included. | |
718 | */ | |
719 | /*#define I_DBM / **/ | |
720 | /*#define I_RPCSVC_DBM / **/ | |
721 | ||
722 | /* I_DIRENT: | |
723 | * This symbol, if defined, indicates to the C program that it should | |
724 | * include <dirent.h>. Using this symbol also triggers the definition | |
725 | * of the Direntry_t define which ends up being 'struct dirent' or | |
726 | * 'struct direct' depending on the availability of <dirent.h>. | |
727 | */ | |
728 | /* DIRNAMLEN: | |
729 | * This symbol, if defined, indicates to the C program that the length | |
730 | * of directory entry names is provided by a d_namlen field. Otherwise | |
731 | * you need to do strlen() on the d_name field. | |
732 | */ | |
733 | /* Direntry_t: | |
734 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
735 | * whether dirent is available or not. You should use this pseudo type to | |
736 | * portably declare your directory entries. | |
737 | */ | |
738 | /*#define I_DIRENT / **/ | |
739 | /*#define DIRNAMLEN / **/ | |
740 | #define Direntry_t struct dirent | |
741 | ||
742 | /* I_DLFCN: | |
743 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
744 | * be included. | |
745 | */ | |
746 | /*#define I_DLFCN / **/ | |
747 | ||
748 | /* I_FCNTL: | |
749 | * This manifest constant tells the C program to include <fcntl.h>. | |
750 | */ | |
751 | /*#define I_FCNTL / **/ | |
752 | ||
753 | /* I_FLOAT: | |
754 | * This symbol, if defined, indicates to the C program that it should | |
755 | * include <float.h> to get definition of symbols like DBL_MAX or | |
756 | * DBL_MIN, i.e. machine dependent floating point values. | |
757 | */ | |
758 | /*#define I_FLOAT / **/ | |
759 | ||
760 | /* I_LIMITS: | |
761 | * This symbol, if defined, indicates to the C program that it should | |
762 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
763 | * LONG_MAX, i.e. machine dependant limitations. | |
764 | */ | |
765 | /*#define I_LIMITS / **/ | |
766 | ||
767 | /* I_LOCALE: | |
768 | * This symbol, if defined, indicates to the C program that it should | |
769 | * include <locale.h>. | |
770 | */ | |
771 | /*#define I_LOCALE / **/ | |
772 | ||
773 | /* I_MATH: | |
774 | * This symbol, if defined, indicates to the C program that it should | |
775 | * include <math.h>. | |
776 | */ | |
251f6efd | 777 | #define I_MATH /**/ |
3ebb1980 JH |
778 | |
779 | /* I_MEMORY: | |
780 | * This symbol, if defined, indicates to the C program that it should | |
781 | * include <memory.h>. | |
782 | */ | |
783 | /*#define I_MEMORY / **/ | |
784 | ||
785 | /* I_NDBM: | |
786 | * This symbol, if defined, indicates that <ndbm.h> exists and should | |
787 | * be included. | |
788 | */ | |
789 | /*#define I_NDBM / **/ | |
790 | ||
791 | /* I_NET_ERRNO: | |
792 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
793 | * should be included. | |
794 | */ | |
795 | /*#define I_NET_ERRNO / **/ | |
796 | ||
797 | /* I_NETINET_IN: | |
798 | * This symbol, if defined, indicates to the C program that it should | |
799 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. | |
800 | */ | |
801 | /*#define I_NETINET_IN / **/ | |
802 | ||
803 | /* I_SFIO: | |
804 | * This symbol, if defined, indicates to the C program that it should | |
805 | * include <sfio.h>. | |
806 | */ | |
807 | /*#define I_SFIO / **/ | |
808 | ||
809 | /* I_STDDEF: | |
810 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
811 | * be included. | |
812 | */ | |
813 | /*#define I_STDDEF / **/ | |
814 | ||
815 | /* I_STDLIB: | |
816 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
817 | * be included. | |
818 | */ | |
819 | /*#define I_STDLIB / **/ | |
820 | ||
821 | /* I_STRING: | |
822 | * This symbol, if defined, indicates to the C program that it should | |
823 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
824 | */ | |
825 | #define I_STRING /**/ | |
826 | ||
827 | /* I_SYS_DIR: | |
828 | * This symbol, if defined, indicates to the C program that it should | |
829 | * include <sys/dir.h>. | |
830 | */ | |
831 | /*#define I_SYS_DIR / **/ | |
832 | ||
833 | /* I_SYS_FILE: | |
834 | * This symbol, if defined, indicates to the C program that it should | |
835 | * include <sys/file.h> to get definition of R_OK and friends. | |
836 | */ | |
837 | /*#define I_SYS_FILE / **/ | |
838 | ||
839 | /* I_SYS_IOCTL: | |
840 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
841 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
842 | */ | |
843 | /*#define I_SYS_IOCTL / **/ | |
844 | ||
845 | /* I_SYS_NDIR: | |
846 | * This symbol, if defined, indicates to the C program that it should | |
847 | * include <sys/ndir.h>. | |
848 | */ | |
849 | /*#define I_SYS_NDIR / **/ | |
850 | ||
851 | /* I_SYS_PARAM: | |
852 | * This symbol, if defined, indicates to the C program that it should | |
853 | * include <sys/param.h>. | |
854 | */ | |
855 | /*#define I_SYS_PARAM / **/ | |
856 | ||
857 | /* I_SYS_RESOURCE: | |
858 | * This symbol, if defined, indicates to the C program that it should | |
859 | * include <sys/resource.h>. | |
860 | */ | |
861 | /*#define I_SYS_RESOURCE / **/ | |
862 | ||
863 | /* I_SYS_SELECT: | |
864 | * This symbol, if defined, indicates to the C program that it should | |
865 | * include <sys/select.h> in order to get definition of struct timeval. | |
866 | */ | |
867 | /*#define I_SYS_SELECT / **/ | |
868 | ||
869 | /* I_SYS_STAT: | |
870 | * This symbol, if defined, indicates to the C program that it should | |
871 | * include <sys/stat.h>. | |
872 | */ | |
873 | #define I_SYS_STAT /**/ | |
874 | ||
875 | /* I_SYS_TIMES: | |
876 | * This symbol, if defined, indicates to the C program that it should | |
877 | * include <sys/times.h>. | |
878 | */ | |
879 | /*#define I_SYS_TIMES / **/ | |
880 | ||
881 | /* I_SYS_TYPES: | |
882 | * This symbol, if defined, indicates to the C program that it should | |
883 | * include <sys/types.h>. | |
884 | */ | |
885 | /*#define I_SYS_TYPES / **/ | |
886 | ||
887 | /* I_SYS_UN: | |
888 | * This symbol, if defined, indicates to the C program that it should | |
889 | * include <sys/un.h> to get UNIX domain socket definitions. | |
890 | */ | |
891 | /*#define I_SYS_UN / **/ | |
892 | ||
893 | /* I_SYS_WAIT: | |
894 | * This symbol, if defined, indicates to the C program that it should | |
895 | * include <sys/wait.h>. | |
896 | */ | |
897 | /*#define I_SYS_WAIT / **/ | |
898 | ||
899 | /* I_TERMIO: | |
900 | * This symbol, if defined, indicates that the program should include | |
901 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
902 | * the ioctl() calls that depend on the value of this symbol. | |
903 | */ | |
904 | /* I_TERMIOS: | |
905 | * This symbol, if defined, indicates that the program should include | |
906 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
907 | * There are also differences in the ioctl() calls that depend on the | |
908 | * value of this symbol. | |
909 | */ | |
910 | /* I_SGTTY: | |
911 | * This symbol, if defined, indicates that the program should include | |
912 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
913 | * the ioctl() calls that depend on the value of this symbol. | |
914 | */ | |
915 | /*#define I_TERMIO / **/ | |
916 | /*#define I_TERMIOS / **/ | |
917 | /*#define I_SGTTY / **/ | |
918 | ||
919 | /* I_UNISTD: | |
920 | * This symbol, if defined, indicates to the C program that it should | |
921 | * include <unistd.h>. | |
922 | */ | |
923 | /*#define I_UNISTD / **/ | |
924 | ||
925 | /* I_UTIME: | |
926 | * This symbol, if defined, indicates to the C program that it should | |
927 | * include <utime.h>. | |
928 | */ | |
929 | /*#define I_UTIME / **/ | |
930 | ||
931 | /* I_VALUES: | |
932 | * This symbol, if defined, indicates to the C program that it should | |
933 | * include <values.h> to get definition of symbols like MINFLOAT or | |
934 | * MAXLONG, i.e. machine dependant limitations. Probably, you | |
935 | * should use <limits.h> instead, if it is available. | |
936 | */ | |
937 | /*#define I_VALUES / **/ | |
938 | ||
939 | /* I_STDARG: | |
940 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
941 | * be included. | |
942 | */ | |
943 | /* I_VARARGS: | |
944 | * This symbol, if defined, indicates to the C program that it should | |
945 | * include <varargs.h>. | |
946 | */ | |
947 | #define I_STDARG /**/ | |
948 | /*#define I_VARARGS / **/ | |
949 | ||
950 | /* I_VFORK: | |
951 | * This symbol, if defined, indicates to the C program that it should | |
952 | * include vfork.h. | |
953 | */ | |
954 | /*#define I_VFORK / **/ | |
955 | ||
956 | /* CAN_PROTOTYPE: | |
957 | * If defined, this macro indicates that the C compiler can handle | |
958 | * function prototypes. | |
959 | */ | |
960 | /* _: | |
961 | * This macro is used to declare function parameters for folks who want | |
962 | * to make declarations with prototypes using a different style than | |
963 | * the above macros. Use double parentheses. For example: | |
964 | * | |
965 | * int main _((int argc, char *argv[])); | |
966 | */ | |
967 | /*#define CAN_PROTOTYPE / **/ | |
968 | #ifdef CAN_PROTOTYPE | |
969 | #define _(args) args | |
970 | #else | |
971 | #define _(args) () | |
972 | #endif | |
973 | ||
974 | /* SH_PATH: | |
975 | * This symbol contains the full pathname to the shell used on this | |
976 | * on this system to execute Bourne shell scripts. Usually, this will be | |
977 | * /bin/sh, though it's possible that some systems will have /bin/ksh, | |
978 | * /bin/pdksh, /bin/ash, /bin/bash, or even something such as | |
979 | * D:/bin/sh.exe. | |
980 | */ | |
981 | #define SH_PATH "" /**/ | |
982 | ||
983 | /* STDCHAR: | |
984 | * This symbol is defined to be the type of char used in stdio.h. | |
985 | * It has the values "unsigned char" or "char". | |
986 | */ | |
987 | #define STDCHAR char /**/ | |
988 | ||
989 | /* CROSSCOMPILE: | |
990 | * This symbol, if defined, signifies that we our | |
991 | * build process is a cross-compilation. | |
992 | */ | |
993 | /*#define CROSSCOMPILE / **/ | |
994 | ||
995 | /* INTSIZE: | |
996 | * This symbol contains the value of sizeof(int) so that the C | |
997 | * preprocessor can make decisions based on it. | |
998 | */ | |
999 | /* LONGSIZE: | |
1000 | * This symbol contains the value of sizeof(long) so that the C | |
1001 | * preprocessor can make decisions based on it. | |
1002 | */ | |
1003 | /* SHORTSIZE: | |
1004 | * This symbol contains the value of sizeof(short) so that the C | |
1005 | * preprocessor can make decisions based on it. | |
1006 | */ | |
1007 | #define INTSIZE 1 /**/ | |
1008 | #define LONGSIZE 1 /**/ | |
1009 | #define SHORTSIZE 1 /**/ | |
1010 | ||
1011 | /* MULTIARCH: | |
1012 | * This symbol, if defined, signifies that the build | |
1013 | * process will produce some binary files that are going to be | |
1014 | * used in a cross-platform environment. This is the case for | |
1015 | * example with the NeXT "fat" binaries that contain executables | |
1016 | * for several CPUs. | |
1017 | */ | |
1018 | /*#define MULTIARCH / **/ | |
1019 | ||
1020 | /* HAS_QUAD: | |
1021 | * This symbol, if defined, tells that there's a 64-bit integer type, | |
1022 | * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one | |
1023 | * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T. | |
1024 | */ | |
1025 | /*#define HAS_QUAD / **/ | |
1026 | #ifdef HAS_QUAD | |
1027 | # define Quad_t int64_t /**/ | |
1028 | # define Uquad_t uint64_t /**/ | |
1029 | # define QUADKIND 4 /**/ | |
1030 | # define QUAD_IS_INT 1 | |
1031 | # define QUAD_IS_LONG 2 | |
1032 | # define QUAD_IS_LONG_LONG 3 | |
1033 | # define QUAD_IS_INT64_T 4 | |
1034 | #endif | |
1035 | ||
1036 | /* HAS_ACCESSX: | |
1037 | * This symbol, if defined, indicates that the accessx routine is | |
1038 | * available to do extended access checks. | |
1039 | */ | |
1040 | /*#define HAS_ACCESSX / **/ | |
1041 | ||
1042 | /* HAS_EACCESS: | |
1043 | * This symbol, if defined, indicates that the eaccess routine is | |
1044 | * available to do extended access checks. | |
1045 | */ | |
1046 | /*#define HAS_EACCESS / **/ | |
1047 | ||
1048 | /* I_SYS_ACCESS: | |
1049 | * This symbol, if defined, indicates to the C program that it should | |
1050 | * include <sys/access.h>. | |
1051 | */ | |
1052 | /*#define I_SYS_ACCESS / **/ | |
1053 | ||
1054 | /* I_SYS_SECURITY: | |
1055 | * This symbol, if defined, indicates to the C program that it should | |
1056 | * include <sys/security.h>. | |
1057 | */ | |
1058 | /*#define I_SYS_SECURITY / **/ | |
1059 | ||
1060 | /* OSNAME: | |
1061 | * This symbol contains the name of the operating system, as determined | |
1062 | * by Configure. You shouldn't rely on it too much; the specific | |
1063 | * feature tests from Configure are generally more reliable. | |
1064 | */ | |
1065 | #define OSNAME "unknown" /**/ | |
1066 | ||
1067 | /* MEM_ALIGNBYTES: | |
1068 | * This symbol contains the number of bytes required to align a | |
1069 | * double, or a long double when applicable. Usual values are 2, | |
1070 | * 4 and 8. The default is eight, for safety. | |
1071 | */ | |
1072 | #if defined(CROSSCOMPILE) || defined(MULTIARCH) | |
1073 | # define MEM_ALIGNBYTES 8 | |
1074 | #else | |
1075 | #define MEM_ALIGNBYTES 4 | |
1076 | #endif | |
1077 | ||
1078 | /* ARCHLIB: | |
1079 | * This variable, if defined, holds the name of the directory in | |
1080 | * which the user wants to put architecture-dependent public | |
1081 | * library files for . It is most often a local directory | |
1082 | * such as /usr/local/lib. Programs using this variable must be | |
1083 | * prepared to deal with filename expansion. If ARCHLIB is the | |
1084 | * same as PRIVLIB, it is not defined, since presumably the | |
1085 | * program already searches PRIVLIB. | |
1086 | */ | |
1087 | /* ARCHLIB_EXP: | |
1088 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
1089 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1090 | */ | |
1091 | /*#define ARCHLIB "/usr/local/lib/perl5/5.6/unknown" / **/ | |
1092 | /*#define ARCHLIB_EXP "/usr/local/lib/perl5/5.6/unknown" / **/ | |
1093 | ||
1094 | /* ARCHNAME: | |
1095 | * This symbol holds a string representing the architecture name. | |
1096 | * It may be used to construct an architecture-dependant pathname | |
1097 | * where library files may be held under a private library, for | |
1098 | * instance. | |
1099 | */ | |
1100 | #define ARCHNAME "unknown" /**/ | |
1101 | ||
1102 | /* HAS_ATOLF: | |
1103 | * This symbol, if defined, indicates that the atolf routine is | |
1104 | * available to convert strings into long doubles. | |
1105 | */ | |
1106 | /*#define HAS_ATOLF / **/ | |
1107 | ||
1108 | /* HAS_ATOLL: | |
1109 | * This symbol, if defined, indicates that the atoll routine is | |
1110 | * available to convert strings into long longs. | |
1111 | */ | |
1112 | /*#define HAS_ATOLL / **/ | |
1113 | ||
1114 | /* BIN: | |
1115 | * This symbol holds the path of the bin directory where the package will | |
1116 | * be installed. Program must be prepared to deal with ~name substitution. | |
1117 | */ | |
1118 | /* BIN_EXP: | |
1119 | * This symbol is the filename expanded version of the BIN symbol, for | |
1120 | * programs that do not want to deal with that at run-time. | |
1121 | */ | |
1122 | #define BIN "/usr/local/bin" /**/ | |
1123 | #define BIN_EXP "" /**/ | |
1124 | ||
1125 | /* PERL_BINCOMPAT_5005: | |
1126 | * This symbol, if defined, indicates that this version of Perl should be | |
1127 | * binary-compatible with Perl 5.005. This is impossible for builds | |
1128 | * that use features like threads and multiplicity it is always | |
1129 | * for those versions. | |
1130 | */ | |
1131 | /*#define PERL_BINCOMPAT_5005 / **/ | |
1132 | ||
1133 | /* BYTEORDER: | |
1134 | * This symbol holds the hexadecimal constant defined in byteorder, | |
1135 | * i.e. 0x1234 or 0x4321, etc... | |
1136 | * If the compiler supports cross-compiling or multiple-architecture | |
1137 | * binaries (eg. on NeXT systems), use compiler-defined macros to | |
1138 | * determine the byte order. | |
1139 | * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture | |
1140 | * Binaries (MAB) on either big endian or little endian machines. | |
1141 | * The endian-ness is available at compile-time. This only matters | |
1142 | * for perl, where the config.h can be generated and installed on | |
1143 | * one system, and used by a different architecture to build an | |
1144 | * extension. Older versions of NeXT that might not have | |
1145 | * defined either *_ENDIAN__ were all on Motorola 680x0 series, | |
1146 | * so the default case (for NeXT) is big endian to catch them. | |
1147 | * This might matter for NeXT 3.0. | |
1148 | */ | |
1149 | #if defined(CROSSCOMPILE) || defined(MULTIARCH) | |
1150 | # ifdef __LITTLE_ENDIAN__ | |
1151 | # if LONGSIZE == 4 | |
1152 | # define BYTEORDER 0x1234 | |
1153 | # else | |
1154 | # if LONGSIZE == 8 | |
1155 | # define BYTEORDER 0x12345678 | |
1156 | # endif | |
1157 | # endif | |
1158 | # else | |
1159 | # ifdef __BIG_ENDIAN__ | |
1160 | # if LONGSIZE == 4 | |
1161 | # define BYTEORDER 0x4321 | |
1162 | # else | |
1163 | # if LONGSIZE == 8 | |
1164 | # define BYTEORDER 0x87654321 | |
1165 | # endif | |
1166 | # endif | |
1167 | # endif | |
1168 | # endif | |
1169 | # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__)) | |
1170 | # define BYTEORDER 0x4321 | |
1171 | # endif | |
1172 | #else | |
1173 | #define BYTEORDER 0x12 /* large digits for MSB */ | |
1174 | #endif /* NeXT */ | |
1175 | ||
1176 | /* CAT2: | |
1177 | * This macro catenates 2 tokens together. | |
1178 | */ | |
1179 | /* STRINGIFY: | |
1180 | * This macro surrounds its token with double quotes. | |
1181 | */ | |
1182 | #if 42 == 1 | |
fc92a0ee JH |
1183 | #define CAT2(a,b) a/**/b |
1184 | #define STRINGIFY(a) "a" | |
3ebb1980 JH |
1185 | /* If you can get stringification with catify, tell me how! */ |
1186 | #endif | |
1187 | #if 42 == 42 | |
fc92a0ee JH |
1188 | #define PeRl_CaTiFy(a, b) a ## b |
1189 | #define PeRl_StGiFy(a) #a | |
3ebb1980 JH |
1190 | /* the additional level of indirection enables these macros to be |
1191 | * used as arguments to other macros. See K&R 2nd ed., page 231. */ | |
fc92a0ee JH |
1192 | #define CAT2(a,b) PeRl_CaTiFy(a,b) |
1193 | #define StGiFy(a) PeRl_StGiFy(a) | |
1194 | #define STRINGIFY(a) PeRl_StGiFy(a) | |
3ebb1980 JH |
1195 | #endif |
1196 | #if 42 != 1 && 42 != 42 | |
1197 | # include "Bletch: How does this C preprocessor catenate tokens?" | |
1198 | #endif | |
1199 | ||
1200 | /* CPPSTDIN: | |
1201 | * This symbol contains the first part of the string which will invoke | |
1202 | * the C preprocessor on the standard input and produce to standard | |
1203 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also | |
1204 | * call a wrapper. See CPPRUN. | |
1205 | */ | |
1206 | /* CPPMINUS: | |
1207 | * This symbol contains the second part of the string which will invoke | |
1208 | * the C preprocessor on the standard input and produce to standard | |
1209 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus | |
1210 | * to specify standard input, otherwise the value is "". | |
1211 | */ | |
1212 | /* CPPRUN: | |
1213 | * This symbol contains the string which will invoke a C preprocessor on | |
1214 | * the standard input and produce to standard output. It needs to end | |
1215 | * with CPPLAST, after all other preprocessor flags have been specified. | |
1216 | * The main difference with CPPSTDIN is that this program will never be a | |
1217 | * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is | |
1218 | * available directly to the user. Note that it may well be different from | |
1219 | * the preprocessor used to compile the C program. | |
1220 | */ | |
1221 | /* CPPLAST: | |
1222 | * This symbol is intended to be used along with CPPRUN in the same manner | |
1223 | * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "". | |
1224 | */ | |
1225 | #define CPPSTDIN "" | |
1226 | #define CPPMINUS "" | |
1227 | #define CPPRUN "" | |
1228 | #define CPPLAST "" | |
1229 | ||
1230 | /* HAS_ACCESS: | |
1231 | * This manifest constant lets the C program know that the access() | |
1232 | * system call is available to check for accessibility using real UID/GID. | |
1233 | * (always present on UNIX.) | |
1234 | */ | |
1235 | /*#define HAS_ACCESS / **/ | |
1236 | ||
1237 | /* CASTI32: | |
1238 | * This symbol is defined if the C compiler can cast negative | |
1239 | * or large floating point numbers to 32-bit ints. | |
1240 | */ | |
1241 | /*#define CASTI32 / **/ | |
1242 | ||
1243 | /* CASTNEGFLOAT: | |
1244 | * This symbol is defined if the C compiler can cast negative | |
1245 | * numbers to unsigned longs, ints and shorts. | |
1246 | */ | |
1247 | /* CASTFLAGS: | |
1248 | * This symbol contains flags that say what difficulties the compiler | |
1249 | * has casting odd floating values to unsigned long: | |
1250 | * 0 = ok | |
1251 | * 1 = couldn't cast < 0 | |
1252 | * 2 = couldn't cast >= 0x80000000 | |
1253 | * 4 = couldn't cast in argument expression list | |
1254 | */ | |
1255 | /*#define CASTNEGFLOAT / **/ | |
1256 | #define CASTFLAGS 0 /**/ | |
1257 | ||
1258 | /* VOID_CLOSEDIR: | |
1259 | * This symbol, if defined, indicates that the closedir() routine | |
1260 | * does not return a value. | |
1261 | */ | |
1262 | /*#define VOID_CLOSEDIR / **/ | |
1263 | ||
1264 | /* HAS_CSH: | |
1265 | * This symbol, if defined, indicates that the C-shell exists. | |
1266 | */ | |
1267 | /* CSH: | |
1268 | * This symbol, if defined, contains the full pathname of csh. | |
1269 | */ | |
1270 | /*#define HAS_CSH / **/ | |
1271 | #ifdef HAS_CSH | |
1272 | #define CSH "" /**/ | |
1273 | #endif | |
1274 | ||
1275 | /* DLSYM_NEEDS_UNDERSCORE: | |
1276 | * This symbol, if defined, indicates that we need to prepend an | |
1277 | * underscore to the symbol name before calling dlsym(). This only | |
1278 | * makes sense if you *have* dlsym, which we will presume is the | |
1279 | * case if you're using dl_dlopen.xs. | |
1280 | */ | |
1281 | /*#define DLSYM_NEEDS_UNDERSCORE / **/ | |
1282 | ||
1283 | /* HAS_DRAND48_PROTO: | |
1284 | * This symbol, if defined, indicates that the system provides | |
1285 | * a prototype for the drand48() function. Otherwise, it is up | |
1286 | * to the program to supply one. A good guess is | |
1287 | * extern double drand48 _((void)); | |
1288 | */ | |
1289 | /*#define HAS_DRAND48_PROTO / **/ | |
1290 | ||
1291 | /* HAS_ENDGRENT: | |
1292 | * This symbol, if defined, indicates that the getgrent routine is | |
1293 | * available for finalizing sequential access of the group database. | |
1294 | */ | |
1295 | /*#define HAS_ENDGRENT / **/ | |
1296 | ||
1297 | /* HAS_ENDHOSTENT: | |
1298 | * This symbol, if defined, indicates that the endhostent() routine is | |
1299 | * available to close whatever was being used for host queries. | |
1300 | */ | |
1301 | /*#define HAS_ENDHOSTENT / **/ | |
1302 | ||
1303 | /* HAS_ENDNETENT: | |
1304 | * This symbol, if defined, indicates that the endnetent() routine is | |
1305 | * available to close whatever was being used for network queries. | |
1306 | */ | |
1307 | /*#define HAS_ENDNETENT / **/ | |
1308 | ||
1309 | /* HAS_ENDPROTOENT: | |
1310 | * This symbol, if defined, indicates that the endprotoent() routine is | |
1311 | * available to close whatever was being used for protocol queries. | |
1312 | */ | |
1313 | /*#define HAS_ENDPROTOENT / **/ | |
1314 | ||
1315 | /* HAS_ENDPWENT: | |
1316 | * This symbol, if defined, indicates that the getgrent routine is | |
1317 | * available for finalizing sequential access of the passwd database. | |
1318 | */ | |
1319 | /*#define HAS_ENDPWENT / **/ | |
1320 | ||
1321 | /* HAS_ENDSERVENT: | |
1322 | * This symbol, if defined, indicates that the endservent() routine is | |
1323 | * available to close whatever was being used for service queries. | |
1324 | */ | |
1325 | /*#define HAS_ENDSERVENT / **/ | |
1326 | ||
1327 | /* HAS_FD_SET: | |
1328 | * This symbol, when defined, indicates presence of the fd_set typedef | |
1329 | * in <sys/types.h> | |
1330 | */ | |
1331 | /*#define HAS_FD_SET / **/ | |
1332 | ||
1333 | /* FLEXFILENAMES: | |
1334 | * This symbol, if defined, indicates that the system supports filenames | |
1335 | * longer than 14 characters. | |
1336 | */ | |
1337 | /*#define FLEXFILENAMES / **/ | |
1338 | ||
1339 | /* HAS_FPOS64_T: | |
1340 | * This symbol will be defined if the C compiler supports fpos64_t. | |
1341 | */ | |
1342 | /*#define HAS_FPOS64_T / **/ | |
1343 | ||
1344 | /* HAS_FREXPL: | |
1345 | * This symbol, if defined, indicates that the frexpl routine is | |
1346 | * available to break a long double floating-point number into | |
1347 | * a normalized fraction and an integral power of 2. | |
1348 | */ | |
1349 | /*#define HAS_FREXPL / **/ | |
1350 | ||
1351 | /* HAS_STRUCT_FS_DATA: | |
1352 | * This symbol, if defined, indicates that the struct fs_data | |
1353 | * to do statfs() is supported. | |
1354 | */ | |
1355 | /*#define HAS_STRUCT_FS_DATA / **/ | |
1356 | ||
1357 | /* HAS_FSEEKO: | |
1358 | * This symbol, if defined, indicates that the fseeko routine is | |
1359 | * available to fseek beyond 32 bits (useful for ILP32 hosts). | |
1360 | */ | |
1361 | /*#define HAS_FSEEKO / **/ | |
1362 | ||
1363 | /* HAS_FSTATFS: | |
1364 | * This symbol, if defined, indicates that the fstatfs routine is | |
1365 | * available to stat filesystems by file descriptors. | |
1366 | */ | |
1367 | /*#define HAS_FSTATFS / **/ | |
1368 | ||
1369 | /* HAS_FTELLO: | |
1370 | * This symbol, if defined, indicates that the ftello routine is | |
1371 | * available to ftell beyond 32 bits (useful for ILP32 hosts). | |
1372 | */ | |
1373 | /*#define HAS_FTELLO / **/ | |
1374 | ||
1375 | /* Gconvert: | |
1376 | * This preprocessor macro is defined to convert a floating point | |
1377 | * number to a string without a trailing decimal point. This | |
1378 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1379 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1380 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1381 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1382 | * macro are: value, number of digits, whether trailing zeros should | |
1383 | * be retained, and the output buffer. | |
1384 | * Possible values are: | |
1385 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1386 | * d_Gconvert='gcvt((x),(n),(b))' | |
1387 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1388 | * The last two assume trailing zeros should not be kept. | |
1389 | */ | |
1390 | #define Gconvert(x,n,t,b) sprintf((b),"%.*g",(n),(x)) | |
1391 | ||
1392 | /* HAS_GETCWD: | |
1393 | * This symbol, if defined, indicates that the getcwd routine is | |
1394 | * available to get the current working directory. | |
1395 | */ | |
1396 | /*#define HAS_GETCWD / **/ | |
1397 | ||
1398 | /* HAS_GETESPWNAM: | |
1399 | * This symbol, if defined, indicates that the getespwnam system call is | |
1400 | * available to retrieve enchanced (shadow) password entries by name. | |
1401 | */ | |
1402 | /*#define HAS_GETESPWNAM / **/ | |
1403 | ||
1404 | /* HAS_GETFSSTAT: | |
1405 | * This symbol, if defined, indicates that the getfsstat routine is | |
1406 | * available to stat filesystems in bulk. | |
1407 | */ | |
1408 | /*#define HAS_GETFSSTAT / **/ | |
1409 | ||
1410 | /* HAS_GETGRENT: | |
1411 | * This symbol, if defined, indicates that the getgrent routine is | |
1412 | * available for sequential access of the group database. | |
1413 | */ | |
1414 | /*#define HAS_GETGRENT / **/ | |
1415 | ||
1416 | /* HAS_GETHOSTBYADDR: | |
1417 | * This symbol, if defined, indicates that the gethostbyaddr() routine is | |
1418 | * available to look up hosts by their IP addresses. | |
1419 | */ | |
1420 | /*#define HAS_GETHOSTBYADDR / **/ | |
1421 | ||
1422 | /* HAS_GETHOSTBYNAME: | |
1423 | * This symbol, if defined, indicates that the gethostbyname() routine is | |
1424 | * available to look up host names in some data base or other. | |
1425 | */ | |
1426 | /*#define HAS_GETHOSTBYNAME / **/ | |
1427 | ||
1428 | /* HAS_GETHOSTENT: | |
1429 | * This symbol, if defined, indicates that the gethostent() routine is | |
1430 | * available to look up host names in some data base or another. | |
1431 | */ | |
1432 | /*#define HAS_GETHOSTENT / **/ | |
1433 | ||
1434 | /* HAS_GETHOSTNAME: | |
1435 | * This symbol, if defined, indicates that the C program may use the | |
1436 | * gethostname() routine to derive the host name. See also HAS_UNAME | |
1437 | * and PHOSTNAME. | |
1438 | */ | |
1439 | /* HAS_UNAME: | |
1440 | * This symbol, if defined, indicates that the C program may use the | |
1441 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
1442 | * and PHOSTNAME. | |
1443 | */ | |
1444 | /* PHOSTNAME: | |
1445 | * This symbol, if defined, indicates the command to feed to the | |
1446 | * popen() routine to derive the host name. See also HAS_GETHOSTNAME | |
1447 | * and HAS_UNAME. Note that the command uses a fully qualified path, | |
1448 | * so that it is safe even if used by a process with super-user | |
1449 | * privileges. | |
1450 | */ | |
1451 | /* HAS_PHOSTNAME: | |
1452 | * This symbol, if defined, indicates that the C program may use the | |
1453 | * contents of PHOSTNAME as a command to feed to the popen() routine | |
1454 | * to derive the host name. | |
1455 | */ | |
1456 | /*#define HAS_GETHOSTNAME / **/ | |
1457 | /*#define HAS_UNAME / **/ | |
1458 | /*#define HAS_PHOSTNAME / **/ | |
1459 | #ifdef HAS_PHOSTNAME | |
1460 | #define PHOSTNAME "" /* How to get the host name */ | |
1461 | #endif | |
1462 | ||
1463 | /* HAS_GETHOST_PROTOS: | |
1464 | * This symbol, if defined, indicates that <netdb.h> includes | |
1465 | * prototypes for gethostent(), gethostbyname(), and | |
1466 | * gethostbyaddr(). Otherwise, it is up to the program to guess | |
1467 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1468 | */ | |
1469 | /*#define HAS_GETHOST_PROTOS / **/ | |
1470 | ||
1471 | /* HAS_GETMNT: | |
1472 | * This symbol, if defined, indicates that the getmnt routine is | |
1473 | * available to get filesystem mount info by filename. | |
1474 | */ | |
1475 | /*#define HAS_GETMNT / **/ | |
1476 | ||
1477 | /* HAS_GETMNTENT: | |
1478 | * This symbol, if defined, indicates that the getmntent routine is | |
1479 | * available to iterate through mounted file systems to get their info. | |
1480 | */ | |
1481 | /*#define HAS_GETMNTENT / **/ | |
1482 | ||
1483 | /* HAS_GETNETBYADDR: | |
1484 | * This symbol, if defined, indicates that the getnetbyaddr() routine is | |
1485 | * available to look up networks by their IP addresses. | |
1486 | */ | |
1487 | /*#define HAS_GETNETBYADDR / **/ | |
1488 | ||
1489 | /* HAS_GETNETBYNAME: | |
1490 | * This symbol, if defined, indicates that the getnetbyname() routine is | |
1491 | * available to look up networks by their names. | |
1492 | */ | |
1493 | /*#define HAS_GETNETBYNAME / **/ | |
1494 | ||
1495 | /* HAS_GETNETENT: | |
1496 | * This symbol, if defined, indicates that the getnetent() routine is | |
1497 | * available to look up network names in some data base or another. | |
1498 | */ | |
1499 | /*#define HAS_GETNETENT / **/ | |
1500 | ||
1501 | /* HAS_GETNET_PROTOS: | |
1502 | * This symbol, if defined, indicates that <netdb.h> includes | |
1503 | * prototypes for getnetent(), getnetbyname(), and | |
1504 | * getnetbyaddr(). Otherwise, it is up to the program to guess | |
1505 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1506 | */ | |
1507 | /*#define HAS_GETNET_PROTOS / **/ | |
1508 | ||
1509 | /* HAS_GETPROTOENT: | |
1510 | * This symbol, if defined, indicates that the getprotoent() routine is | |
1511 | * available to look up protocols in some data base or another. | |
1512 | */ | |
1513 | /*#define HAS_GETPROTOENT / **/ | |
1514 | ||
1515 | /* HAS_GETPROTOBYNAME: | |
1516 | * This symbol, if defined, indicates that the getprotobyname() | |
1517 | * routine is available to look up protocols by their name. | |
1518 | */ | |
1519 | /* HAS_GETPROTOBYNUMBER: | |
1520 | * This symbol, if defined, indicates that the getprotobynumber() | |
1521 | * routine is available to look up protocols by their number. | |
1522 | */ | |
1523 | /*#define HAS_GETPROTOBYNAME / **/ | |
1524 | /*#define HAS_GETPROTOBYNUMBER / **/ | |
1525 | ||
1526 | /* HAS_GETPROTO_PROTOS: | |
1527 | * This symbol, if defined, indicates that <netdb.h> includes | |
1528 | * prototypes for getprotoent(), getprotobyname(), and | |
1529 | * getprotobyaddr(). Otherwise, it is up to the program to guess | |
1530 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1531 | */ | |
1532 | /*#define HAS_GETPROTO_PROTOS / **/ | |
1533 | ||
1534 | /* HAS_GETPRPWNAM: | |
1535 | * This symbol, if defined, indicates that the getprpwnam system call is | |
1536 | * available to retrieve protected (shadow) password entries by name. | |
1537 | */ | |
1538 | /*#define HAS_GETPRPWNAM / **/ | |
1539 | ||
1540 | /* HAS_GETPWENT: | |
1541 | * This symbol, if defined, indicates that the getpwent routine is | |
1542 | * available for sequential access of the passwd database. | |
1543 | * If this is not available, the older getpw() function may be available. | |
1544 | */ | |
1545 | /*#define HAS_GETPWENT / **/ | |
1546 | ||
1547 | /* HAS_GETSERVENT: | |
1548 | * This symbol, if defined, indicates that the getservent() routine is | |
1549 | * available to look up network services in some data base or another. | |
1550 | */ | |
1551 | /*#define HAS_GETSERVENT / **/ | |
1552 | ||
1553 | /* HAS_GETSERV_PROTOS: | |
1554 | * This symbol, if defined, indicates that <netdb.h> includes | |
1555 | * prototypes for getservent(), getservbyname(), and | |
1556 | * getservbyaddr(). Otherwise, it is up to the program to guess | |
1557 | * them. See netdbtype.U for probing for various Netdb_xxx_t types. | |
1558 | */ | |
1559 | /*#define HAS_GETSERV_PROTOS / **/ | |
1560 | ||
1561 | /* HAS_GETSPNAM: | |
1562 | * This symbol, if defined, indicates that the getspnam system call is | |
1563 | * available to retrieve SysV shadow password entries by name. | |
1564 | */ | |
1565 | /*#define HAS_GETSPNAM / **/ | |
1566 | ||
1567 | /* HAS_GETSERVBYNAME: | |
1568 | * This symbol, if defined, indicates that the getservbyname() | |
1569 | * routine is available to look up services by their name. | |
1570 | */ | |
1571 | /* HAS_GETSERVBYPORT: | |
1572 | * This symbol, if defined, indicates that the getservbyport() | |
1573 | * routine is available to look up services by their port. | |
1574 | */ | |
1575 | /*#define HAS_GETSERVBYNAME / **/ | |
1576 | /*#define HAS_GETSERVBYPORT / **/ | |
1577 | ||
1578 | /* HAS_GNULIBC: | |
1579 | * This symbol, if defined, indicates to the C program that | |
1580 | * the GNU C library is being used. | |
1581 | */ | |
1582 | /*#define HAS_GNULIBC / **/ | |
1583 | #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE) | |
1584 | # define _GNU_SOURCE | |
1585 | #endif | |
1586 | /* HAS_HASMNTOPT: | |
1587 | * This symbol, if defined, indicates that the hasmntopt routine is | |
1588 | * available to query the mount options of file systems. | |
1589 | */ | |
1590 | /*#define HAS_HASMNTOPT / **/ | |
1591 | ||
1592 | /* HAS_HTONL: | |
1593 | * This symbol, if defined, indicates that the htonl() routine (and | |
1594 | * friends htons() ntohl() ntohs()) are available to do network | |
1595 | * order byte swapping. | |
1596 | */ | |
1597 | /* HAS_HTONS: | |
1598 | * This symbol, if defined, indicates that the htons() routine (and | |
1599 | * friends htonl() ntohl() ntohs()) are available to do network | |
1600 | * order byte swapping. | |
1601 | */ | |
1602 | /* HAS_NTOHL: | |
1603 | * This symbol, if defined, indicates that the ntohl() routine (and | |
1604 | * friends htonl() htons() ntohs()) are available to do network | |
1605 | * order byte swapping. | |
1606 | */ | |
1607 | /* HAS_NTOHS: | |
1608 | * This symbol, if defined, indicates that the ntohs() routine (and | |
1609 | * friends htonl() htons() ntohl()) are available to do network | |
1610 | * order byte swapping. | |
1611 | */ | |
1612 | /*#define HAS_HTONL / **/ | |
1613 | /*#define HAS_HTONS / **/ | |
1614 | /*#define HAS_NTOHL / **/ | |
1615 | /*#define HAS_NTOHS / **/ | |
1616 | ||
1617 | /* HAS_ICONV: | |
1618 | * This symbol, if defined, indicates that the iconv routine is | |
1619 | * available to do character set conversions. | |
1620 | */ | |
1621 | /*#define HAS_ICONV / **/ | |
1622 | ||
1623 | /* HAS_INT64_T: | |
1624 | * This symbol will defined if the C compiler supports int64_t. | |
1625 | * Usually the <inttypes.h> needs to be included, but sometimes | |
1626 | * <sys/types.h> is enough. | |
1627 | */ | |
1628 | /*#define HAS_INT64_T / **/ | |
1629 | ||
1630 | /* HAS_ISASCII: | |
1631 | * This manifest constant lets the C program know that isascii | |
1632 | * is available. | |
1633 | */ | |
1634 | /*#define HAS_ISASCII / **/ | |
1635 | ||
1636 | /* HAS_ISNAN: | |
1637 | * This symbol, if defined, indicates that the isnan routine is | |
1638 | * available to check whether a double is a NaN. | |
1639 | */ | |
1640 | /*#define HAS_ISNAN / **/ | |
1641 | ||
1642 | /* HAS_ISNANL: | |
1643 | * This symbol, if defined, indicates that the isnanl routine is | |
1644 | * available to check whether a long double is a NaN. | |
1645 | */ | |
1646 | /*#define HAS_ISNANL / **/ | |
1647 | ||
1648 | /* HAS_LCHOWN: | |
1649 | * This symbol, if defined, indicates that the lchown routine is | |
1650 | * available to operate on a symbolic link (instead of following the | |
1651 | * link). | |
1652 | */ | |
1653 | /*#define HAS_LCHOWN / **/ | |
1654 | ||
1655 | /* HAS_LDBL_DIG: | |
1656 | * This symbol, if defined, indicates that this system's <float.h> | |
1657 | * or <limits.h> defines the symbol LDBL_DIG, which is the number | |
1658 | * of significant digits in a long double precision number. Unlike | |
1659 | * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined. | |
1660 | */ | |
1661 | /*#define HAS_LDBL_DIG / * */ | |
1662 | ||
1663 | /* HAS_LONG_DOUBLE: | |
1664 | * This symbol will be defined if the C compiler supports long | |
1665 | * doubles. | |
1666 | */ | |
1667 | /* LONG_DOUBLESIZE: | |
1668 | * This symbol contains the size of a long double, so that the | |
1669 | * C preprocessor can make decisions based on it. It is only | |
1670 | * defined if the system supports long doubles. | |
1671 | */ | |
1672 | /*#define HAS_LONG_DOUBLE / **/ | |
1673 | #ifdef HAS_LONG_DOUBLE | |
1674 | #define LONG_DOUBLESIZE 1 /**/ | |
1675 | #endif | |
1676 | ||
1677 | /* HAS_LONG_LONG: | |
1678 | * This symbol will be defined if the C compiler supports long long. | |
1679 | */ | |
1680 | /* LONGLONGSIZE: | |
1681 | * This symbol contains the size of a long long, so that the | |
1682 | * C preprocessor can make decisions based on it. It is only | |
1683 | * defined if the system supports long long. | |
1684 | */ | |
1685 | /*#define HAS_LONG_LONG / **/ | |
1686 | #ifdef HAS_LONG_LONG | |
1687 | #define LONGLONGSIZE 1 /**/ | |
1688 | #endif | |
1689 | ||
1690 | /* HAS_LSEEK_PROTO: | |
1691 | * This symbol, if defined, indicates that the system provides | |
1692 | * a prototype for the lseek() function. Otherwise, it is up | |
1693 | * to the program to supply one. A good guess is | |
1694 | * extern off_t lseek(int, off_t, int); | |
1695 | */ | |
1696 | /*#define HAS_LSEEK_PROTO / **/ | |
1697 | ||
1698 | /* HAS_MADVISE: | |
1699 | * This symbol, if defined, indicates that the madvise system call is | |
1700 | * available to map a file into memory. | |
1701 | */ | |
1702 | /*#define HAS_MADVISE / **/ | |
1703 | ||
1704 | /* HAS_MEMCHR: | |
1705 | * This symbol, if defined, indicates that the memchr routine is available | |
1706 | * to locate characters within a C string. | |
1707 | */ | |
1708 | /*#define HAS_MEMCHR / **/ | |
1709 | ||
1710 | /* HAS_MKDTEMP: | |
1711 | * This symbol, if defined, indicates that the mkdtemp routine is | |
1712 | * available to exclusively create a uniquely named temporary directory. | |
1713 | */ | |
1714 | /*#define HAS_MKDTEMP / **/ | |
1715 | ||
1716 | /* HAS_MKSTEMP: | |
1717 | * This symbol, if defined, indicates that the mkstemp routine is | |
1718 | * available to exclusively create and open a uniquely named | |
1719 | * temporary file. | |
1720 | */ | |
1721 | /*#define HAS_MKSTEMP / **/ | |
1722 | ||
1723 | /* HAS_MKSTEMPS: | |
1724 | * This symbol, if defined, indicates that the mkstemps routine is | |
1725 | * available to excluslvely create and open a uniquely named | |
1726 | * (with a suffix) temporary file. | |
1727 | */ | |
1728 | /*#define HAS_MKSTEMPS / **/ | |
1729 | ||
1730 | /* HAS_MMAP: | |
1731 | * This symbol, if defined, indicates that the mmap system call is | |
1732 | * available to map a file into memory. | |
1733 | */ | |
1734 | /* Mmap_t: | |
1735 | * This symbol holds the return type of the mmap() system call | |
1736 | * (and simultaneously the type of the first argument). | |
1737 | * Usually set to 'void *' or 'cadd_t'. | |
1738 | */ | |
1739 | /*#define HAS_MMAP / **/ | |
1740 | #define Mmap_t /**/ | |
1741 | ||
1742 | /* HAS_MODFL: | |
1743 | * This symbol, if defined, indicates that the modfl routine is | |
1744 | * available to split a long double x into a fractional part f and | |
1745 | * an integer part i such that |f| < 1.0 and (f + i) = x. | |
1746 | */ | |
1747 | /*#define HAS_MODFL / **/ | |
1748 | ||
1749 | /* HAS_MPROTECT: | |
1750 | * This symbol, if defined, indicates that the mprotect system call is | |
1751 | * available to modify the access protection of a memory mapped file. | |
1752 | */ | |
1753 | /*#define HAS_MPROTECT / **/ | |
1754 | ||
1755 | /* HAS_MSG: | |
1756 | * This symbol, if defined, indicates that the entire msg*(2) library is | |
1757 | * supported (IPC mechanism based on message queues). | |
1758 | */ | |
1759 | /*#define HAS_MSG / **/ | |
1760 | ||
1761 | /* HAS_OFF64_T: | |
1762 | * This symbol will be defined if the C compiler supports off64_t. | |
1763 | */ | |
1764 | /*#define HAS_OFF64_T / **/ | |
1765 | ||
1766 | /* HAS_OPEN3: | |
1767 | * This manifest constant lets the C program know that the three | |
1768 | * argument form of open(2) is available. | |
1769 | */ | |
1770 | /*#define HAS_OPEN3 / **/ | |
1771 | ||
1772 | /* OLD_PTHREAD_CREATE_JOINABLE: | |
1773 | * This symbol, if defined, indicates how to create pthread | |
1774 | * in joinable (aka undetached) state. NOTE: not defined | |
1775 | * if pthread.h already has defined PTHREAD_CREATE_JOINABLE | |
1776 | * (the new version of the constant). | |
1777 | * If defined, known values are PTHREAD_CREATE_UNDETACHED | |
1778 | * and __UNDETACHED. | |
1779 | */ | |
1780 | /*#define OLD_PTHREAD_CREATE_JOINABLE / **/ | |
1781 | ||
1782 | /* HAS_PTHREAD_YIELD: | |
1783 | * This symbol, if defined, indicates that the pthread_yield | |
1784 | * routine is available to yield the execution of the current | |
1785 | * thread. sched_yield is preferable to pthread_yield. | |
1786 | */ | |
1787 | /* SCHED_YIELD: | |
1788 | * This symbol defines the way to yield the execution of | |
1789 | * the current thread. Known ways are sched_yield, | |
1790 | * pthread_yield, and pthread_yield with NULL. | |
1791 | */ | |
1792 | /* HAS_SCHED_YIELD: | |
1793 | * This symbol, if defined, indicates that the sched_yield | |
1794 | * routine is available to yield the execution of the current | |
1795 | * thread. sched_yield is preferable to pthread_yield. | |
1796 | */ | |
1797 | /*#define HAS_PTHREAD_YIELD / **/ | |
1798 | #define SCHED_YIELD sched_yield() /**/ | |
1799 | /*#define HAS_SCHED_YIELD / **/ | |
1800 | ||
1801 | /* HAS_SAFE_BCOPY: | |
1802 | * This symbol, if defined, indicates that the bcopy routine is available | |
1803 | * to copy potentially overlapping memory blocks. Otherwise you should | |
1804 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
1805 | * own version. | |
1806 | */ | |
1807 | /*#define HAS_SAFE_BCOPY / **/ | |
1808 | ||
1809 | /* HAS_SAFE_MEMCPY: | |
1810 | * This symbol, if defined, indicates that the memcpy routine is available | |
1811 | * to copy potentially overlapping memory blocks. Otherwise you should | |
1812 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
1813 | * own version. | |
1814 | */ | |
1815 | /*#define HAS_SAFE_MEMCPY / **/ | |
1816 | ||
1817 | /* HAS_SANE_MEMCMP: | |
1818 | * This symbol, if defined, indicates that the memcmp routine is available | |
1819 | * and can be used to compare relative magnitudes of chars with their high | |
1820 | * bits set. If it is not defined, roll your own version. | |
1821 | */ | |
1822 | /*#define HAS_SANE_MEMCMP / **/ | |
1823 | ||
1824 | /* HAS_SEM: | |
1825 | * This symbol, if defined, indicates that the entire sem*(2) library is | |
1826 | * supported. | |
1827 | */ | |
1828 | /*#define HAS_SEM / **/ | |
1829 | ||
1830 | /* HAS_SETGRENT: | |
1831 | * This symbol, if defined, indicates that the setgrent routine is | |
1832 | * available for initializing sequential access of the group database. | |
1833 | */ | |
1834 | /*#define HAS_SETGRENT / **/ | |
1835 | ||
1836 | /* HAS_SETGROUPS: | |
1837 | * This symbol, if defined, indicates that the setgroups() routine is | |
1838 | * available to set the list of process groups. If unavailable, multiple | |
1839 | * groups are probably not supported. | |
1840 | */ | |
1841 | /*#define HAS_SETGROUPS / **/ | |
1842 | ||
1843 | /* HAS_SETHOSTENT: | |
1844 | * This symbol, if defined, indicates that the sethostent() routine is | |
1845 | * available. | |
1846 | */ | |
1847 | /*#define HAS_SETHOSTENT / **/ | |
1848 | ||
1849 | /* HAS_SETNETENT: | |
1850 | * This symbol, if defined, indicates that the setnetent() routine is | |
1851 | * available. | |
1852 | */ | |
1853 | /*#define HAS_SETNETENT / **/ | |
1854 | ||
1855 | /* HAS_SETPROTOENT: | |
1856 | * This symbol, if defined, indicates that the setprotoent() routine is | |
1857 | * available. | |
1858 | */ | |
1859 | /*#define HAS_SETPROTOENT / **/ | |
1860 | ||
fc92a0ee JH |
1861 | /* HAS_SETPROCTITLE: |
1862 | * This symbol, if defined, indicates that the setproctitle routine is | |
1863 | * available to set process title. | |
1864 | */ | |
1865 | /*#define HAS_SETPROCTITLE / **/ | |
1866 | ||
3ebb1980 JH |
1867 | /* HAS_SETPWENT: |
1868 | * This symbol, if defined, indicates that the setpwent routine is | |
1869 | * available for initializing sequential access of the passwd database. | |
1870 | */ | |
1871 | /*#define HAS_SETPWENT / **/ | |
1872 | ||
1873 | /* HAS_SETSERVENT: | |
1874 | * This symbol, if defined, indicates that the setservent() routine is | |
1875 | * available. | |
1876 | */ | |
1877 | /*#define HAS_SETSERVENT / **/ | |
1878 | ||
1879 | /* HAS_SETVBUF: | |
1880 | * This symbol, if defined, indicates that the setvbuf routine is | |
1881 | * available to change buffering on an open stdio stream. | |
1882 | * to a line-buffered mode. | |
1883 | */ | |
1884 | /*#define HAS_SETVBUF / **/ | |
1885 | ||
1886 | /* USE_SFIO: | |
1887 | * This symbol, if defined, indicates that sfio should | |
1888 | * be used. | |
1889 | */ | |
1890 | /*#define USE_SFIO / **/ | |
1891 | ||
1892 | /* HAS_SHM: | |
1893 | * This symbol, if defined, indicates that the entire shm*(2) library is | |
1894 | * supported. | |
1895 | */ | |
1896 | /*#define HAS_SHM / **/ | |
1897 | ||
1898 | /* HAS_SIGACTION: | |
1899 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
1900 | * is available. | |
1901 | */ | |
1902 | /*#define HAS_SIGACTION / **/ | |
1903 | ||
1904 | /* HAS_SIGSETJMP: | |
1905 | * This variable indicates to the C program that the sigsetjmp() | |
1906 | * routine is available to save the calling process's registers | |
1907 | * and stack environment for later use by siglongjmp(), and | |
1908 | * to optionally save the process's signal mask. See | |
1909 | * Sigjmp_buf, Sigsetjmp, and Siglongjmp. | |
1910 | */ | |
1911 | /* Sigjmp_buf: | |
1912 | * This is the buffer type to be used with Sigsetjmp and Siglongjmp. | |
1913 | */ | |
1914 | /* Sigsetjmp: | |
1915 | * This macro is used in the same way as sigsetjmp(), but will invoke | |
1916 | * traditional setjmp() if sigsetjmp isn't available. | |
1917 | * See HAS_SIGSETJMP. | |
1918 | */ | |
1919 | /* Siglongjmp: | |
1920 | * This macro is used in the same way as siglongjmp(), but will invoke | |
1921 | * traditional longjmp() if siglongjmp isn't available. | |
1922 | * See HAS_SIGSETJMP. | |
1923 | */ | |
1924 | /*#define HAS_SIGSETJMP / **/ | |
1925 | #ifdef HAS_SIGSETJMP | |
1926 | #define Sigjmp_buf sigjmp_buf | |
1927 | #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask)) | |
1928 | #define Siglongjmp(buf,retval) siglongjmp((buf),(retval)) | |
1929 | #else | |
1930 | #define Sigjmp_buf jmp_buf | |
1931 | #define Sigsetjmp(buf,save_mask) setjmp((buf)) | |
1932 | #define Siglongjmp(buf,retval) longjmp((buf),(retval)) | |
1933 | #endif | |
1934 | ||
1935 | /* HAS_SOCKET: | |
1936 | * This symbol, if defined, indicates that the BSD socket interface is | |
1937 | * supported. | |
1938 | */ | |
1939 | /* HAS_SOCKETPAIR: | |
1940 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
1941 | * supported. | |
1942 | */ | |
1943 | /* HAS_MSG_CTRUNC: | |
1944 | * This symbol, if defined, indicates that the MSG_CTRUNC is supported. | |
1945 | * Checking just with #ifdef might not be enough because this symbol | |
1946 | * has been known to be an enum. | |
1947 | */ | |
1948 | /* HAS_MSG_DONTROUTE: | |
1949 | * This symbol, if defined, indicates that the MSG_DONTROUTE is supported. | |
1950 | * Checking just with #ifdef might not be enough because this symbol | |
1951 | * has been known to be an enum. | |
1952 | */ | |
1953 | /* HAS_MSG_OOB: | |
1954 | * This symbol, if defined, indicates that the MSG_OOB is supported. | |
1955 | * Checking just with #ifdef might not be enough because this symbol | |
1956 | * has been known to be an enum. | |
1957 | */ | |
1958 | /* HAS_MSG_PEEK: | |
1959 | * This symbol, if defined, indicates that the MSG_PEEK is supported. | |
1960 | * Checking just with #ifdef might not be enough because this symbol | |
1961 | * has been known to be an enum. | |
1962 | */ | |
1963 | /* HAS_MSG_PROXY: | |
1964 | * This symbol, if defined, indicates that the MSG_PROXY is supported. | |
1965 | * Checking just with #ifdef might not be enough because this symbol | |
1966 | * has been known to be an enum. | |
1967 | */ | |
1968 | /* HAS_SCM_RIGHTS: | |
1969 | * This symbol, if defined, indicates that the SCM_RIGHTS is supported. | |
1970 | * Checking just with #ifdef might not be enough because this symbol | |
1971 | * has been known to be an enum. | |
1972 | */ | |
1973 | /*#define HAS_SOCKET / **/ | |
1974 | /*#define HAS_SOCKETPAIR / **/ | |
1975 | /*#define HAS_MSG_CTRUNC / **/ | |
1976 | /*#define HAS_MSG_DONTROUTE / **/ | |
1977 | /*#define HAS_MSG_OOB / **/ | |
1978 | /*#define HAS_MSG_PEEK / **/ | |
1979 | /*#define HAS_MSG_PROXY / **/ | |
1980 | /*#define HAS_SCM_RIGHTS / **/ | |
1981 | ||
1b9c9cf5 DH |
1982 | /* HAS_SOCKS5_INIT: |
1983 | * This symbol, if defined, indicates that the socks5_init routine is | |
1984 | * available to initialize SOCKS 5. | |
1985 | */ | |
1986 | /*#define HAS_SOCKS5_INIT / **/ | |
1987 | ||
3ebb1980 JH |
1988 | /* HAS_SQRTL: |
1989 | * This symbol, if defined, indicates that the sqrtl routine is | |
1990 | * available to do long double square roots. | |
1991 | */ | |
1992 | /*#define HAS_SQRTL / **/ | |
1993 | ||
1994 | /* USE_STAT_BLOCKS: | |
1995 | * This symbol is defined if this system has a stat structure declaring | |
1996 | * st_blksize and st_blocks. | |
1997 | */ | |
1998 | #ifndef USE_STAT_BLOCKS | |
1999 | /*#define USE_STAT_BLOCKS / **/ | |
2000 | #endif | |
2001 | ||
2002 | /* HAS_STRUCT_STATFS_F_FLAGS: | |
2003 | * This symbol, if defined, indicates that the struct statfs | |
2004 | * does have the f_flags member containing the mount flags of | |
2005 | * the filesystem containing the file. | |
2006 | * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3), | |
2007 | * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not | |
2008 | * have statfs() and struct statfs, they have ustat() and getmnt() | |
2009 | * with struct ustat and struct fs_data. | |
2010 | */ | |
2011 | /*#define HAS_STRUCT_STATFS_F_FLAGS / **/ | |
2012 | ||
2013 | /* HAS_STRUCT_STATFS: | |
2014 | * This symbol, if defined, indicates that the struct statfs | |
2015 | * to do statfs() is supported. | |
2016 | */ | |
2017 | /*#define HAS_STRUCT_STATFS / **/ | |
2018 | ||
2019 | /* HAS_FSTATVFS: | |
2020 | * This symbol, if defined, indicates that the fstatvfs routine is | |
2021 | * available to stat filesystems by file descriptors. | |
2022 | */ | |
2023 | /*#define HAS_FSTATVFS / **/ | |
2024 | ||
2025 | /* USE_STDIO_PTR: | |
2026 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
2027 | * of the stdio FILE structure can be used to access the stdio buffer | |
2028 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
2029 | * and FILE_cnt(fp) macros will also be defined and should be used | |
2030 | * to access these fields. | |
2031 | */ | |
2032 | /* FILE_ptr: | |
2033 | * This macro is used to access the _ptr field (or equivalent) of the | |
2034 | * FILE structure pointed to by its argument. This macro will always be | |
2035 | * defined if USE_STDIO_PTR is defined. | |
2036 | */ | |
2037 | /* STDIO_PTR_LVALUE: | |
2038 | * This symbol is defined if the FILE_ptr macro can be used as an | |
2039 | * lvalue. | |
2040 | */ | |
2041 | /* FILE_cnt: | |
2042 | * This macro is used to access the _cnt field (or equivalent) of the | |
2043 | * FILE structure pointed to by its argument. This macro will always be | |
2044 | * defined if USE_STDIO_PTR is defined. | |
2045 | */ | |
2046 | /* STDIO_CNT_LVALUE: | |
2047 | * This symbol is defined if the FILE_cnt macro can be used as an | |
2048 | * lvalue. | |
2049 | */ | |
2050 | /*#define USE_STDIO_PTR / **/ | |
2051 | #ifdef USE_STDIO_PTR | |
2052 | #define FILE_ptr(fp) ((fp)->_IO_read_ptr) | |
2053 | /*#define STDIO_PTR_LVALUE / **/ | |
2054 | #define FILE_cnt(fp) ((fp)->_IO_read_end - (fp)->_IO_read_ptr) | |
2055 | /*#define STDIO_CNT_LVALUE / **/ | |
2056 | #endif | |
2057 | ||
2058 | /* USE_STDIO_BASE: | |
2059 | * This symbol is defined if the _base field (or similar) of the | |
2060 | * stdio FILE structure can be used to access the stdio buffer for | |
2061 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
2062 | * will also be defined and should be used to access this field. | |
2063 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
2064 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
2065 | * will never be defined unless USE_STDIO_PTR is. | |
2066 | */ | |
2067 | /* FILE_base: | |
2068 | * This macro is used to access the _base field (or equivalent) of the | |
2069 | * FILE structure pointed to by its argument. This macro will always be | |
2070 | * defined if USE_STDIO_BASE is defined. | |
2071 | */ | |
2072 | /* FILE_bufsiz: | |
2073 | * This macro is used to determine the number of bytes in the I/O | |
2074 | * buffer pointed to by _base field (or equivalent) of the FILE | |
2075 | * structure pointed to its argument. This macro will always be defined | |
2076 | * if USE_STDIO_BASE is defined. | |
2077 | */ | |
2078 | /*#define USE_STDIO_BASE / **/ | |
2079 | #ifdef USE_STDIO_BASE | |
2080 | #define FILE_base(fp) ((fp)->_IO_read_base) | |
2081 | #define FILE_bufsiz(fp) ((fp)->_IO_read_end - (fp)->_IO_read_base) | |
2082 | #endif | |
2083 | ||
2084 | /* HAS_STRERROR: | |
2085 | * This symbol, if defined, indicates that the strerror routine is | |
2086 | * available to translate error numbers to strings. See the writeup | |
2087 | * of Strerror() in this file before you try to define your own. | |
2088 | */ | |
2089 | /* HAS_SYS_ERRLIST: | |
2090 | * This symbol, if defined, indicates that the sys_errlist array is | |
2091 | * available to translate error numbers to strings. The extern int | |
2092 | * sys_nerr gives the size of that table. | |
2093 | */ | |
2094 | /* Strerror: | |
2095 | * This preprocessor symbol is defined as a macro if strerror() is | |
2096 | * not available to translate error numbers to strings but sys_errlist[] | |
2097 | * array is there. | |
2098 | */ | |
2099 | /*#define HAS_STRERROR / **/ | |
2100 | /*#define HAS_SYS_ERRLIST / **/ | |
2101 | #define Strerror(e) strerror(e) | |
2102 | ||
2103 | /* HAS_STRTOLD: | |
2104 | * This symbol, if defined, indicates that the strtold routine is | |
2105 | * available to convert strings to long doubles. | |
2106 | */ | |
2107 | /*#define HAS_STRTOLD / **/ | |
2108 | ||
2109 | /* HAS_STRTOLL: | |
2110 | * This symbol, if defined, indicates that the strtoll routine is | |
2111 | * available to convert strings to long longs. | |
2112 | */ | |
2113 | /*#define HAS_STRTOLL / **/ | |
2114 | ||
2115 | /* HAS_STRTOULL: | |
2116 | * This symbol, if defined, indicates that the strtoull routine is | |
2117 | * available to convert strings to unsigned long longs. | |
2118 | */ | |
2119 | /*#define HAS_STRTOULL / **/ | |
2120 | ||
2121 | /* HAS_STRTOUQ: | |
2122 | * This symbol, if defined, indicates that the strtouq routine is | |
2123 | * available to convert strings to unsigned long longs (quads). | |
2124 | */ | |
2125 | /*#define HAS_STRTOUQ / **/ | |
2126 | ||
2127 | /* HAS_TELLDIR_PROTO: | |
2128 | * This symbol, if defined, indicates that the system provides | |
2129 | * a prototype for the telldir() function. Otherwise, it is up | |
2130 | * to the program to supply one. A good guess is | |
2131 | * extern long telldir _((DIR*)); | |
2132 | */ | |
2133 | /*#define HAS_TELLDIR_PROTO / **/ | |
2134 | ||
2135 | /* Time_t: | |
2136 | * This symbol holds the type returned by time(). It can be long, | |
2137 | * or time_t on BSD sites (in which case <sys/types.h> should be | |
2138 | * included). | |
2139 | */ | |
2140 | #define Time_t int /* Time type */ | |
2141 | ||
2142 | /* HAS_TIMES: | |
2143 | * This symbol, if defined, indicates that the times() routine exists. | |
2144 | * Note that this became obsolete on some systems (SUNOS), which now | |
2145 | * use getrusage(). It may be necessary to include <sys/times.h>. | |
2146 | */ | |
2147 | /*#define HAS_TIMES / **/ | |
2148 | ||
2149 | /* HAS_UNION_SEMUN: | |
2150 | * This symbol, if defined, indicates that the union semun is | |
2151 | * defined by including <sys/sem.h>. If not, the user code | |
2152 | * probably needs to define it as: | |
2153 | * union semun { | |
2154 | * int val; | |
2155 | * struct semid_ds *buf; | |
2156 | * unsigned short *array; | |
2157 | * } | |
2158 | */ | |
2159 | /* USE_SEMCTL_SEMUN: | |
2160 | * This symbol, if defined, indicates that union semun is | |
2161 | * used for semctl IPC_STAT. | |
2162 | */ | |
2163 | /* USE_SEMCTL_SEMID_DS: | |
2164 | * This symbol, if defined, indicates that struct semid_ds * is | |
2165 | * used for semctl IPC_STAT. | |
2166 | */ | |
2167 | /*#define HAS_UNION_SEMUN / **/ | |
2168 | /*#define USE_SEMCTL_SEMUN / **/ | |
2169 | /*#define USE_SEMCTL_SEMID_DS / **/ | |
2170 | ||
2171 | /* HAS_USTAT: | |
2172 | * This symbol, if defined, indicates that the ustat system call is | |
2173 | * available to query file system statistics by dev_t. | |
2174 | */ | |
2175 | /*#define HAS_USTAT / **/ | |
2176 | ||
2177 | /* HAS_VFORK: | |
2178 | * This symbol, if defined, indicates that vfork() exists. | |
2179 | */ | |
2180 | /*#define HAS_VFORK / **/ | |
2181 | ||
2182 | /* Signal_t: | |
2183 | * This symbol's value is either "void" or "int", corresponding to the | |
2184 | * appropriate return type of a signal handler. Thus, you can declare | |
2185 | * a signal handler using "Signal_t (*handler)()", and define the | |
2186 | * handler using "Signal_t handler(sig)". | |
2187 | */ | |
2188 | #define Signal_t int /* Signal handler's return type */ | |
2189 | ||
2190 | /* HAS_VPRINTF: | |
2191 | * This symbol, if defined, indicates that the vprintf routine is available | |
2192 | * to printf with a pointer to an argument list. If unavailable, you | |
2193 | * may need to write your own, probably in terms of _doprnt(). | |
2194 | */ | |
2195 | /* USE_CHAR_VSPRINTF: | |
2196 | * This symbol is defined if this system has vsprintf() returning type | |
2197 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
2198 | * is up to the package author to declare vsprintf correctly based on the | |
2199 | * symbol. | |
2200 | */ | |
2201 | #define HAS_VPRINTF /**/ | |
2202 | /*#define USE_CHAR_VSPRINTF / **/ | |
2203 | ||
2204 | /* USE_DYNAMIC_LOADING: | |
2205 | * This symbol, if defined, indicates that dynamic loading of | |
2206 | * some sort is available. | |
2207 | */ | |
2208 | /*#define USE_DYNAMIC_LOADING / **/ | |
2209 | ||
2210 | /* DOUBLESIZE: | |
2211 | * This symbol contains the size of a double, so that the C preprocessor | |
2212 | * can make decisions based on it. | |
2213 | */ | |
2214 | #define DOUBLESIZE 1 /**/ | |
2215 | ||
2216 | /* EBCDIC: | |
2217 | * This symbol, if defined, indicates that this system uses | |
2218 | * EBCDIC encoding. | |
2219 | */ | |
2220 | /*#define EBCDIC / **/ | |
2221 | ||
2222 | /* FFLUSH_NULL: | |
2223 | * This symbol, if defined, tells that fflush(NULL) does flush | |
2224 | * all pending stdio output. | |
2225 | */ | |
2226 | /* FFLUSH_ALL: | |
2227 | * This symbol, if defined, tells that to flush | |
2228 | * all pending stdio output one must loop through all | |
2229 | * the stdio file handles stored in an array and fflush them. | |
2230 | * Note that if fflushNULL is defined, fflushall will not | |
2231 | * even be probed for and will be left undefined. | |
2232 | */ | |
2233 | /*#define FFLUSH_NULL / **/ | |
2234 | /*#define FFLUSH_ALL / **/ | |
2235 | ||
2236 | /* Fpos_t: | |
2237 | * This symbol holds the type used to declare file positions in libc. | |
2238 | * It can be fpos_t, long, uint, etc... It may be necessary to include | |
2239 | * <sys/types.h> to get any typedef'ed information. | |
2240 | */ | |
2241 | #define Fpos_t int /* File position type */ | |
2242 | ||
2243 | /* Gid_t_f: | |
2244 | * This symbol defines the format string used for printing a Gid_t. | |
2245 | */ | |
2246 | #define Gid_t_f "lu" /**/ | |
2247 | ||
2248 | /* Gid_t_sign: | |
2249 | * This symbol holds the signedess of a Gid_t. | |
2250 | * 1 for unsigned, -1 for signed. | |
2251 | */ | |
2252 | #define Gid_t_sign 1 /* GID sign */ | |
2253 | ||
2254 | /* Gid_t_size: | |
2255 | * This symbol holds the size of a Gid_t in bytes. | |
2256 | */ | |
2257 | #define Gid_t_size 4 /* GID size */ | |
2258 | ||
2259 | /* Gid_t: | |
2260 | * This symbol holds the return type of getgid() and the type of | |
2261 | * argument to setrgid() and related functions. Typically, | |
2262 | * it is the type of group ids in the kernel. It can be int, ushort, | |
2263 | * gid_t, etc... It may be necessary to include <sys/types.h> to get | |
2264 | * any typedef'ed information. | |
2265 | */ | |
2266 | #define Gid_t int /* Type for getgid(), etc... */ | |
2267 | ||
2268 | /* Groups_t: | |
2269 | * This symbol holds the type used for the second argument to | |
2270 | * getgroups() and setgroups(). Usually, this is the same as | |
2271 | * gidtype (gid_t) , but sometimes it isn't. | |
2272 | * It can be int, ushort, gid_t, etc... | |
2273 | * It may be necessary to include <sys/types.h> to get any | |
2274 | * typedef'ed information. This is only required if you have | |
2275 | * getgroups() or setgroups().. | |
2276 | */ | |
2277 | #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS) | |
2278 | #define Groups_t int /* Type for 2nd arg to [sg]etgroups() */ | |
2279 | #endif | |
2280 | ||
2281 | /* DB_Prefix_t: | |
2282 | * This symbol contains the type of the prefix structure element | |
2283 | * in the <db.h> header file. In older versions of DB, it was | |
2284 | * int, while in newer ones it is u_int32_t. | |
2285 | */ | |
2286 | /* DB_Hash_t: | |
2287 | * This symbol contains the type of the prefix structure element | |
2288 | * in the <db.h> header file. In older versions of DB, it was | |
2289 | * int, while in newer ones it is size_t. | |
2290 | */ | |
2291 | #define DB_Hash_t u_int32_t /**/ | |
2292 | #define DB_Prefix_t size_t /**/ | |
2293 | ||
2294 | /* I_GRP: | |
2295 | * This symbol, if defined, indicates to the C program that it should | |
2296 | * include <grp.h>. | |
2297 | */ | |
2298 | /* GRPASSWD: | |
2299 | * This symbol, if defined, indicates to the C program that struct group | |
2300 | * in <grp.h> contains gr_passwd. | |
2301 | */ | |
2302 | /*#define I_GRP / **/ | |
2303 | /*#define GRPASSWD / **/ | |
2304 | ||
2305 | /* I_ICONV: | |
2306 | * This symbol, if defined, indicates that <iconv.h> exists and | |
2307 | * should be included. | |
2308 | */ | |
2309 | /*#define I_ICONV / **/ | |
2310 | ||
2311 | /* I_IEEEFP: | |
2312 | * This symbol, if defined, indicates that <ieeefp.h> exists and | |
2313 | * should be included. | |
2314 | */ | |
2315 | /*#define I_IEEEFP / **/ | |
2316 | ||
2317 | /* I_INTTYPES: | |
2318 | * This symbol, if defined, indicates to the C program that it should | |
2319 | * include <inttypes.h>. | |
2320 | */ | |
2321 | /*#define I_INTTYPES / **/ | |
2322 | ||
1b9c9cf5 DH |
2323 | /* I_LIBUTIL: |
2324 | * This symbol, if defined, indicates that <libutil.h> exists and | |
2325 | * should be included. | |
2326 | */ | |
2327 | /*#define I_LIBUTIL / **/ | |
2328 | ||
3ebb1980 JH |
2329 | /* I_MACH_CTHREADS: |
2330 | * This symbol, if defined, indicates to the C program that it should | |
2331 | * include <mach/cthreads.h>. | |
2332 | */ | |
2333 | /*#define I_MACH_CTHREADS / **/ | |
2334 | ||
2335 | /* I_MNTENT: | |
2336 | * This symbol, if defined, indicates that <mntent.h> exists and | |
2337 | * should be included. | |
2338 | */ | |
2339 | /*#define I_MNTENT / **/ | |
2340 | ||
2341 | /* I_NETDB: | |
2342 | * This symbol, if defined, indicates that <netdb.h> exists and | |
2343 | * should be included. | |
2344 | */ | |
2345 | /*#define I_NETDB / **/ | |
2346 | ||
2347 | /* I_NETINET_TCP: | |
2348 | * This symbol, if defined, indicates to the C program that it should | |
2349 | * include <netinet/tcp.h>. | |
2350 | */ | |
2351 | /*#define I_NETINET_TCP / **/ | |
2352 | ||
2353 | /* I_POLL: | |
2354 | * This symbol, if defined, indicates that <poll.h> exists and | |
2355 | * should be included. | |
2356 | */ | |
2357 | /*#define I_POLL / **/ | |
2358 | ||
2359 | /* I_PROT: | |
2360 | * This symbol, if defined, indicates that <prot.h> exists and | |
2361 | * should be included. | |
2362 | */ | |
2363 | /*#define I_PROT / **/ | |
2364 | ||
2365 | /* I_PTHREAD: | |
2366 | * This symbol, if defined, indicates to the C program that it should | |
2367 | * include <pthread.h>. | |
2368 | */ | |
2369 | /*#define I_PTHREAD / **/ | |
2370 | ||
2371 | /* I_PWD: | |
2372 | * This symbol, if defined, indicates to the C program that it should | |
2373 | * include <pwd.h>. | |
2374 | */ | |
2375 | /* PWQUOTA: | |
2376 | * This symbol, if defined, indicates to the C program that struct passwd | |
2377 | * contains pw_quota. | |
2378 | */ | |
2379 | /* PWAGE: | |
2380 | * This symbol, if defined, indicates to the C program that struct passwd | |
2381 | * contains pw_age. | |
2382 | */ | |
2383 | /* PWCHANGE: | |
2384 | * This symbol, if defined, indicates to the C program that struct passwd | |
2385 | * contains pw_change. | |
2386 | */ | |
2387 | /* PWCLASS: | |
2388 | * This symbol, if defined, indicates to the C program that struct passwd | |
2389 | * contains pw_class. | |
2390 | */ | |
2391 | /* PWEXPIRE: | |
2392 | * This symbol, if defined, indicates to the C program that struct passwd | |
2393 | * contains pw_expire. | |
2394 | */ | |
2395 | /* PWCOMMENT: | |
2396 | * This symbol, if defined, indicates to the C program that struct passwd | |
2397 | * contains pw_comment. | |
2398 | */ | |
2399 | /* PWGECOS: | |
2400 | * This symbol, if defined, indicates to the C program that struct passwd | |
2401 | * contains pw_gecos. | |
2402 | */ | |
2403 | /* PWPASSWD: | |
2404 | * This symbol, if defined, indicates to the C program that struct passwd | |
2405 | * contains pw_passwd. | |
2406 | */ | |
2407 | /*#define I_PWD / **/ | |
2408 | /*#define PWQUOTA / **/ | |
2409 | /*#define PWAGE / **/ | |
2410 | /*#define PWCHANGE / **/ | |
2411 | /*#define PWCLASS / **/ | |
2412 | /*#define PWEXPIRE / **/ | |
2413 | /*#define PWCOMMENT / **/ | |
2414 | /*#define PWGECOS / **/ | |
2415 | /*#define PWPASSWD / **/ | |
2416 | ||
2417 | /* I_SHADOW: | |
2418 | * This symbol, if defined, indicates that <shadow.h> exists and | |
2419 | * should be included. | |
2420 | */ | |
2421 | /*#define I_SHADOW / **/ | |
2422 | ||
2423 | /* I_SOCKS: | |
2424 | * This symbol, if defined, indicates that <socks.h> exists and | |
2425 | * should be included. | |
2426 | */ | |
2427 | /*#define I_SOCKS / **/ | |
2428 | ||
2429 | /* I_SUNMATH: | |
2430 | * This symbol, if defined, indicates that <sunmath.h> exists and | |
2431 | * should be included. | |
2432 | */ | |
2433 | /*#define I_SUNMATH / **/ | |
2434 | ||
2435 | /* I_SYSLOG: | |
2436 | * This symbol, if defined, indicates that <syslog.h> exists and | |
2437 | * should be included. | |
2438 | */ | |
2439 | /*#define I_SYSLOG / **/ | |
2440 | ||
2441 | /* I_SYSMODE: | |
2442 | * This symbol, if defined, indicates that <sys/mode.h> exists and | |
2443 | * should be included. | |
2444 | */ | |
2445 | /*#define I_SYSMODE / **/ | |
2446 | ||
2447 | /* I_SYS_MOUNT: | |
2448 | * This symbol, if defined, indicates that <sys/mount.h> exists and | |
2449 | * should be included. | |
2450 | */ | |
2451 | /*#define I_SYS_MOUNT / **/ | |
2452 | ||
2453 | /* I_SYS_STATFS: | |
2454 | * This symbol, if defined, indicates that <sys/statfs.h> exists. | |
2455 | */ | |
2456 | /*#define I_SYS_STATFS / **/ | |
2457 | ||
2458 | /* I_SYS_STATVFS: | |
2459 | * This symbol, if defined, indicates that <sys/statvfs.h> exists and | |
2460 | * should be included. | |
2461 | */ | |
2462 | /*#define I_SYS_STATVFS / **/ | |
2463 | ||
2464 | /* I_SYSUIO: | |
2465 | * This symbol, if defined, indicates that <sys/uio.h> exists and | |
2466 | * should be included. | |
2467 | */ | |
2468 | /*#define I_SYSUIO / **/ | |
2469 | ||
2470 | /* I_SYSUTSNAME: | |
2471 | * This symbol, if defined, indicates that <sys/utsname.h> exists and | |
2472 | * should be included. | |
2473 | */ | |
2474 | /*#define I_SYSUTSNAME / **/ | |
2475 | ||
2476 | /* I_SYS_VFS: | |
2477 | * This symbol, if defined, indicates that <sys/vfs.h> exists and | |
2478 | * should be included. | |
2479 | */ | |
2480 | /*#define I_SYS_VFS / **/ | |
2481 | ||
2482 | /* I_TIME: | |
2483 | * This symbol, if defined, indicates to the C program that it should | |
2484 | * include <time.h>. | |
2485 | */ | |
2486 | /* I_SYS_TIME: | |
2487 | * This symbol, if defined, indicates to the C program that it should | |
2488 | * include <sys/time.h>. | |
2489 | */ | |
2490 | /* I_SYS_TIME_KERNEL: | |
2491 | * This symbol, if defined, indicates to the C program that it should | |
2492 | * include <sys/time.h> with KERNEL defined. | |
2493 | */ | |
2494 | #define I_TIME /**/ | |
2495 | /*#define I_SYS_TIME / **/ | |
2496 | /*#define I_SYS_TIME_KERNEL / **/ | |
2497 | ||
2498 | /* I_USTAT: | |
2499 | * This symbol, if defined, indicates that <ustat.h> exists and | |
2500 | * should be included. | |
2501 | */ | |
2502 | /*#define I_USTAT / **/ | |
2503 | ||
2504 | /* PERL_INC_VERSION_LIST: | |
2505 | * This variable specifies the list of subdirectories in over | |
2506 | * which perl.c:incpush() and lib/lib.pm will automatically | |
2507 | * search when adding directories to @INC, in a format suitable | |
2508 | * for a C initialization string. See the inc_version_list entry | |
2509 | * in Porting/Glossary for more details. | |
2510 | */ | |
2511 | #define PERL_INC_VERSION_LIST NULL /**/ | |
2512 | ||
2513 | /* INSTALL_USR_BIN_PERL: | |
2514 | * This symbol, if defined, indicates that Perl is to be installed | |
2515 | * also as /usr/bin/perl. | |
2516 | */ | |
2517 | /*#define INSTALL_USR_BIN_PERL / **/ | |
2518 | ||
2519 | /* PERL_PRIfldbl: | |
2520 | * This symbol, if defined, contains the string used by stdio to | |
2521 | * format long doubles (format 'f') for output. | |
2522 | */ | |
2523 | /* PERL_PRIgldbl: | |
2524 | * This symbol, if defined, contains the string used by stdio to | |
2525 | * format long doubles (format 'g') for output. | |
2526 | */ | |
2527 | /*#define PERL_PRIfldbl "llf" / **/ | |
2528 | /*#define PERL_PRIgldbl "llg" / **/ | |
2529 | ||
2530 | /* Off_t: | |
2531 | * This symbol holds the type used to declare offsets in the kernel. | |
2532 | * It can be int, long, off_t, etc... It may be necessary to include | |
2533 | * <sys/types.h> to get any typedef'ed information. | |
2534 | */ | |
2535 | /* LSEEKSIZE: | |
2536 | * This symbol holds the number of bytes used by the Off_t. | |
2537 | */ | |
2538 | /* Off_t_size: | |
2539 | * This symbol holds the number of bytes used by the Off_t. | |
2540 | */ | |
2541 | #define Off_t int /* <offset> type */ | |
2542 | #define LSEEKSIZE 1 /* <offset> size */ | |
2543 | #define Off_t_size 1 /* <offset> size */ | |
2544 | ||
2545 | /* Free_t: | |
2546 | * This variable contains the return type of free(). It is usually | |
2547 | * void, but occasionally int. | |
2548 | */ | |
2549 | /* Malloc_t: | |
2550 | * This symbol is the type of pointer returned by malloc and realloc. | |
2551 | */ | |
2552 | #define Malloc_t void * /**/ | |
2553 | #define Free_t int /**/ | |
2554 | ||
2555 | /* MYMALLOC: | |
2556 | * This symbol, if defined, indicates that we're using our own malloc. | |
2557 | */ | |
2558 | /*#define MYMALLOC / **/ | |
2559 | ||
2560 | /* Mode_t: | |
2561 | * This symbol holds the type used to declare file modes | |
2562 | * for systems calls. It is usually mode_t, but may be | |
2563 | * int or unsigned short. It may be necessary to include <sys/types.h> | |
2564 | * to get any typedef'ed information. | |
2565 | */ | |
2566 | #define Mode_t int /* file mode parameter for system calls */ | |
2567 | ||
2568 | /* VAL_O_NONBLOCK: | |
2569 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
2570 | * non-blocking I/O for the file descriptor. Note that there is no way | |
2571 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
2572 | * alternatively switch between blocking and non-blocking, use the | |
2573 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
2574 | */ | |
2575 | /* VAL_EAGAIN: | |
2576 | * This symbol holds the errno error code set by read() when no data was | |
2577 | * present on the non-blocking file descriptor. | |
2578 | */ | |
2579 | /* RD_NODATA: | |
2580 | * This symbol holds the return code from read() when no data is present | |
2581 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
2582 | * not defined, then you can't distinguish between no data and EOF by | |
2583 | * issuing a read(). You'll have to find another way to tell for sure! | |
2584 | */ | |
2585 | /* EOF_NONBLOCK: | |
2586 | * This symbol, if defined, indicates to the C program that a read() on | |
2587 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
2588 | * held in RD_NODATA (-1 usually, in that case!). | |
2589 | */ | |
2590 | #define VAL_O_NONBLOCK O_NONBLOCK | |
2591 | #define VAL_EAGAIN EAGAIN | |
2592 | #define RD_NODATA -1 | |
2593 | #undef EOF_NONBLOCK | |
2594 | ||
2595 | /* Netdb_host_t: | |
2596 | * This symbol holds the type used for the 1st argument | |
2597 | * to gethostbyaddr(). | |
2598 | */ | |
2599 | /* Netdb_hlen_t: | |
2600 | * This symbol holds the type used for the 2nd argument | |
2601 | * to gethostbyaddr(). | |
2602 | */ | |
2603 | /* Netdb_name_t: | |
2604 | * This symbol holds the type used for the argument to | |
2605 | * gethostbyname(). | |
2606 | */ | |
2607 | /* Netdb_net_t: | |
2608 | * This symbol holds the type used for the 1st argument to | |
2609 | * getnetbyaddr(). | |
2610 | */ | |
2611 | #define Netdb_host_t const char * /**/ | |
2612 | #define Netdb_hlen_t int /**/ | |
2613 | #define Netdb_name_t const char * /**/ | |
2614 | #define Netdb_net_t unsigned long /**/ | |
2615 | ||
2616 | /* PERL_OTHERLIBDIRS: | |
2617 | * This variable contains a colon-separated set of paths for the perl | |
2618 | * binary to search for additional library files or modules. | |
2619 | * These directories will be tacked to the end of @INC. | |
2620 | * Perl will automatically search below each path for version- | |
2621 | * and architecture-specific directories. See PERL_INC_VERSION_LIST | |
2622 | * for more details. | |
2623 | */ | |
2624 | /*#define PERL_OTHERLIBDIRS "" / **/ | |
2625 | ||
2626 | /* IVTYPE: | |
2627 | * This symbol defines the C type used for Perl's IV. | |
2628 | */ | |
2629 | /* UVTYPE: | |
2630 | * This symbol defines the C type used for Perl's UV. | |
2631 | */ | |
2632 | /* I8TYPE: | |
2633 | * This symbol defines the C type used for Perl's I8. | |
2634 | */ | |
2635 | /* U8TYPE: | |
2636 | * This symbol defines the C type used for Perl's U8. | |
2637 | */ | |
2638 | /* I16TYPE: | |
2639 | * This symbol defines the C type used for Perl's I16. | |
2640 | */ | |
2641 | /* U16TYPE: | |
2642 | * This symbol defines the C type used for Perl's U16. | |
2643 | */ | |
2644 | /* I32TYPE: | |
2645 | * This symbol defines the C type used for Perl's I32. | |
2646 | */ | |
2647 | /* U32TYPE: | |
2648 | * This symbol defines the C type used for Perl's U32. | |
2649 | */ | |
2650 | /* I64TYPE: | |
2651 | * This symbol defines the C type used for Perl's I64. | |
2652 | */ | |
2653 | /* U64TYPE: | |
2654 | * This symbol defines the C type used for Perl's U64. | |
2655 | */ | |
2656 | /* NVTYPE: | |
2657 | * This symbol defines the C type used for Perl's NV. | |
2658 | */ | |
2659 | /* IVSIZE: | |
2660 | * This symbol contains the sizeof(IV). | |
2661 | */ | |
2662 | /* UVSIZE: | |
2663 | * This symbol contains the sizeof(UV). | |
2664 | */ | |
2665 | /* I8SIZE: | |
2666 | * This symbol contains the sizeof(I8). | |
2667 | */ | |
2668 | /* U8SIZE: | |
2669 | * This symbol contains the sizeof(U8). | |
2670 | */ | |
2671 | /* I16SIZE: | |
2672 | * This symbol contains the sizeof(I16). | |
2673 | */ | |
2674 | /* U16SIZE: | |
2675 | * This symbol contains the sizeof(U16). | |
2676 | */ | |
2677 | /* I32SIZE: | |
2678 | * This symbol contains the sizeof(I32). | |
2679 | */ | |
2680 | /* U32SIZE: | |
2681 | * This symbol contains the sizeof(U32). | |
2682 | */ | |
2683 | /* I64SIZE: | |
2684 | * This symbol contains the sizeof(I64). | |
2685 | */ | |
2686 | /* U64SIZE: | |
2687 | * This symbol contains the sizeof(U64). | |
2688 | */ | |
2689 | /* NVSIZE: | |
2690 | * This symbol contains the sizeof(NV). | |
2691 | */ | |
2692 | /* NV_PRESERVES_UV: | |
2693 | * This symbol, if defined, indicates that a variable of type NVTYPE | |
2694 | * can preserve all the bits of a variable of type UVTYPE. | |
2695 | */ | |
2696 | /* NV_PRESERVES_UV_BITS: | |
2697 | * This symbol contains the number of bits a variable of type NVTYPE | |
2698 | * can preserve of a variable of type UVTYPE. | |
2699 | */ | |
2700 | #define IVTYPE long /**/ | |
2701 | #define UVTYPE unsigned long /**/ | |
2702 | #define I8TYPE char /**/ | |
2703 | #define U8TYPE unsigned char /**/ | |
2704 | #define I16TYPE short /**/ | |
2705 | #define U16TYPE unsigned short /**/ | |
2706 | #define I32TYPE long /**/ | |
2707 | #define U32TYPE unsigned long /**/ | |
2708 | #ifdef HAS_QUAD | |
2709 | #define I64TYPE int64_t /**/ | |
2710 | #define U64TYPE uint64_t /**/ | |
2711 | #endif | |
2712 | #define NVTYPE double /**/ | |
2713 | #define IVSIZE 4 /**/ | |
2714 | #define UVSIZE 4 /**/ | |
2715 | #define I8SIZE 1 /**/ | |
2716 | #define U8SIZE 1 /**/ | |
2717 | #define I16SIZE 2 /**/ | |
2718 | #define U16SIZE 2 /**/ | |
2719 | #define I32SIZE 4 /**/ | |
2720 | #define U32SIZE 4 /**/ | |
2721 | #ifdef HAS_QUAD | |
2722 | #define I64SIZE 8 /**/ | |
2723 | #define U64SIZE 8 /**/ | |
2724 | #endif | |
2725 | #define NVSIZE 8 /**/ | |
2726 | #undef NV_PRESERVES_UV | |
2727 | #define NV_PRESERVES_UV_BITS | |
2728 | ||
2729 | /* IVdf: | |
2730 | * This symbol defines the format string used for printing a Perl IV | |
2731 | * as a signed decimal integer. | |
2732 | */ | |
2733 | /* UVuf: | |
2734 | * This symbol defines the format string used for printing a Perl UV | |
2735 | * as an unsigned decimal integer. | |
2736 | */ | |
2737 | /* UVof: | |
2738 | * This symbol defines the format string used for printing a Perl UV | |
2739 | * as an unsigned octal integer. | |
2740 | */ | |
2741 | /* UVxf: | |
2742 | * This symbol defines the format string used for printing a Perl UV | |
fd47df60 JH |
2743 | * as an unsigned hexadecimal integer in lowercase abcdef. |
2744 | */ | |
2745 | /* NVef: | |
2746 | * This symbol defines the format string used for printing a Perl NV | |
2747 | * using %e-ish floating point format. | |
2748 | */ | |
2749 | /* NVff: | |
2750 | * This symbol defines the format string used for printing a Perl NV | |
2751 | * using %f-ish floating point format. | |
2752 | */ | |
2753 | /* NVgf: | |
2754 | * This symbol defines the format string used for printing a Perl NV | |
2755 | * using %g-ish floating point format. | |
3ebb1980 JH |
2756 | */ |
2757 | #define IVdf "ld" /**/ | |
2758 | #define UVuf "lu" /**/ | |
2759 | #define UVof "lo" /**/ | |
2760 | #define UVxf "lx" /**/ | |
fd47df60 JH |
2761 | #define NVef "e" /**/ |
2762 | #define NVff "f" /**/ | |
2763 | #define NVgf "g" /**/ | |
3ebb1980 JH |
2764 | |
2765 | /* Pid_t: | |
2766 | * This symbol holds the type used to declare process ids in the kernel. | |
2767 | * It can be int, uint, pid_t, etc... It may be necessary to include | |
2768 | * <sys/types.h> to get any typedef'ed information. | |
2769 | */ | |
2770 | #define Pid_t int /* PID type */ | |
2771 | ||
2772 | /* PRIVLIB: | |
2773 | * This symbol contains the name of the private library for this package. | |
2774 | * The library is private in the sense that it needn't be in anyone's | |
2775 | * execution path, but it should be accessible by the world. The program | |
2776 | * should be prepared to do ~ expansion. | |
2777 | */ | |
2778 | /* PRIVLIB_EXP: | |
2779 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
2780 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
2781 | */ | |
2782 | #define PRIVLIB "/usr/local/lib/perl5/5.6" /**/ | |
2783 | #define PRIVLIB_EXP "/usr/local/lib/perl5/5.6" /**/ | |
2784 | ||
2785 | /* PTRSIZE: | |
2786 | * This symbol contains the size of a pointer, so that the C preprocessor | |
2787 | * can make decisions based on it. It will be sizeof(void *) if | |
2788 | * the compiler supports (void *); otherwise it will be | |
2789 | * sizeof(char *). | |
2790 | */ | |
2791 | #define PTRSIZE 1 /**/ | |
2792 | ||
2793 | /* Drand01: | |
2794 | * This macro is to be used to generate uniformly distributed | |
2795 | * random numbers over the range [0., 1.[. You may have to supply | |
2796 | * an 'extern double drand48();' in your program since SunOS 4.1.3 | |
2797 | * doesn't provide you with anything relevant in it's headers. | |
2798 | * See HAS_DRAND48_PROTO. | |
2799 | */ | |
2800 | /* Rand_seed_t: | |
2801 | * This symbol defines the type of the argument of the | |
2802 | * random seed function. | |
2803 | */ | |
2804 | /* seedDrand01: | |
2805 | * This symbol defines the macro to be used in seeding the | |
2806 | * random number generator (see Drand01). | |
2807 | */ | |
2808 | /* RANDBITS: | |
2809 | * This symbol indicates how many bits are produced by the | |
2810 | * function used to generate normalized random numbers. | |
2811 | * Values include 15, 16, 31, and 48. | |
2812 | */ | |
2813 | #define Drand01() ((rand() & 0x7FFF) / (double) ((unsigned long)1 << 15)) /**/ | |
2814 | #define Rand_seed_t int /**/ | |
2815 | #define seedDrand01(x) srand((Rand_seed_t)x) /**/ | |
2816 | #define RANDBITS 48 /**/ | |
2817 | ||
2818 | /* SELECT_MIN_BITS: | |
2819 | * This symbol holds the minimum number of bits operated by select. | |
2820 | * That is, if you do select(n, ...), how many bits at least will be | |
2821 | * cleared in the masks if some activity is detected. Usually this | |
2822 | * is either n or 32*ceil(n/32), especially many little-endians do | |
2823 | * the latter. This is only useful if you have select(), naturally. | |
2824 | */ | |
2825 | #define SELECT_MIN_BITS 32 /**/ | |
2826 | ||
2827 | /* Select_fd_set_t: | |
2828 | * This symbol holds the type used for the 2nd, 3rd, and 4th | |
2829 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET | |
2830 | * is defined, and 'int *' otherwise. This is only useful if you | |
2831 | * have select(), of course. | |
2832 | */ | |
2833 | #define Select_fd_set_t int /**/ | |
2834 | ||
2835 | /* SIG_NAME: | |
2836 | * This symbol contains a list of signal names in order of | |
2837 | * signal number. This is intended | |
2838 | * to be used as a static array initialization, like this: | |
2839 | * char *sig_name[] = { SIG_NAME }; | |
2840 | * The signals in the list are separated with commas, and each signal | |
2841 | * is surrounded by double quotes. There is no leading SIG in the signal | |
2842 | * name, i.e. SIGQUIT is known as "QUIT". | |
2843 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
2844 | * etc., where nn is the actual signal number (e.g. NUM37). | |
2845 | * The signal number for sig_name[i] is stored in sig_num[i]. | |
2846 | * The last element is 0 to terminate the list with a NULL. This | |
2847 | * corresponds to the 0 at the end of the sig_num list. | |
2848 | */ | |
2849 | /* SIG_NUM: | |
2850 | * This symbol contains a list of signal numbers, in the same order as the | |
2851 | * SIG_NAME list. It is suitable for static array initialization, as in: | |
2852 | * int sig_num[] = { SIG_NUM }; | |
2853 | * The signals in the list are separated with commas, and the indices | |
2854 | * within that list and the SIG_NAME list match, so it's easy to compute | |
2855 | * the signal name from a number or vice versa at the price of a small | |
2856 | * dynamic linear lookup. | |
2857 | * Duplicates are allowed, but are moved to the end of the list. | |
2858 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
2859 | * if (i < NSIG) then sig_number[i] == i. | |
2860 | * The last element is 0, corresponding to the 0 at the end of | |
2861 | * the sig_name list. | |
2862 | */ | |
2863 | #define SIG_NAME 0 /**/ | |
2864 | #define SIG_NUM 0 /**/ | |
2865 | ||
2866 | /* SITEARCH: | |
2867 | * This symbol contains the name of the private library for this package. | |
2868 | * The library is private in the sense that it needn't be in anyone's | |
2869 | * execution path, but it should be accessible by the world. The program | |
2870 | * should be prepared to do ~ expansion. | |
2871 | * The standard distribution will put nothing in this directory. | |
2872 | * After perl has been installed, users may install their own local | |
2873 | * architecture-dependent modules in this directory with | |
2874 | * MakeMaker Makefile.PL | |
2875 | * or equivalent. See INSTALL for details. | |
2876 | */ | |
2877 | /* SITEARCH_EXP: | |
2878 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
2879 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
2880 | */ | |
2881 | #define SITEARCH "" /**/ | |
2882 | #define SITEARCH_EXP "" /**/ | |
2883 | ||
2884 | /* SITELIB: | |
2885 | * This symbol contains the name of the private library for this package. | |
2886 | * The library is private in the sense that it needn't be in anyone's | |
2887 | * execution path, but it should be accessible by the world. The program | |
2888 | * should be prepared to do ~ expansion. | |
2889 | * The standard distribution will put nothing in this directory. | |
2890 | * After perl has been installed, users may install their own local | |
2891 | * architecture-independent modules in this directory with | |
2892 | * MakeMaker Makefile.PL | |
2893 | * or equivalent. See INSTALL for details. | |
2894 | */ | |
2895 | /* SITELIB_EXP: | |
2896 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
2897 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
2898 | */ | |
2899 | /* SITELIB_STEM: | |
2900 | * This define is SITELIB_EXP with any trailing version-specific component | |
2901 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
2902 | * be tacked onto this variable to generate a list of directories to search. | |
2903 | */ | |
2904 | #define SITELIB "" /**/ | |
2905 | #define SITELIB_EXP "" /**/ | |
2906 | #define SITELIB_STEM "" /**/ | |
2907 | ||
2908 | /* Size_t_size: | |
2909 | * This symbol holds the size of a Size_t in bytes. | |
2910 | */ | |
2911 | #define Size_t_size 1 /* */ | |
2912 | ||
2913 | /* Size_t: | |
2914 | * This symbol holds the type used to declare length parameters | |
2915 | * for string functions. It is usually size_t, but may be | |
2916 | * unsigned long, int, etc. It may be necessary to include | |
2917 | * <sys/types.h> to get any typedef'ed information. | |
2918 | */ | |
2919 | #define Size_t int /* length paramater for string functions */ | |
2920 | ||
2921 | /* Sock_size_t: | |
2922 | * This symbol holds the type used for the size argument of | |
2923 | * various socket calls (just the base type, not the pointer-to). | |
2924 | */ | |
2925 | #define Sock_size_t int /**/ | |
2926 | ||
2927 | /* SSize_t: | |
2928 | * This symbol holds the type used by functions that return | |
2929 | * a count of bytes or an error condition. It must be a signed type. | |
2930 | * It is usually ssize_t, but may be long or int, etc. | |
2931 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
2932 | * to get any typedef'ed information. | |
2933 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
2934 | */ | |
2935 | #define SSize_t int /* signed count of bytes */ | |
2936 | ||
2937 | /* STARTPERL: | |
2938 | * This variable contains the string to put in front of a perl | |
2939 | * script to make sure (one hopes) that it runs with perl and not | |
2940 | * some shell. | |
2941 | */ | |
2942 | #define STARTPERL "" /**/ | |
2943 | ||
2944 | /* HAS_STDIO_STREAM_ARRAY: | |
2945 | * This symbol, if defined, tells that there is an array | |
2946 | * holding the stdio streams. | |
2947 | */ | |
2948 | /* STDIO_STREAM_ARRAY: | |
2949 | * This symbol tells the name of the array holding the stdio streams. | |
2950 | * Usual values include _iob, __iob, and __sF. | |
2951 | */ | |
2952 | /*#define HAS_STDIO_STREAM_ARRAY / **/ | |
2953 | #define STDIO_STREAM_ARRAY | |
2954 | ||
2955 | /* Uid_t_f: | |
2956 | * This symbol defines the format string used for printing a Uid_t. | |
2957 | */ | |
2958 | #define Uid_t_f "lu" /**/ | |
2959 | ||
2960 | /* Uid_t_sign: | |
2961 | * This symbol holds the signedess of a Uid_t. | |
2962 | * 1 for unsigned, -1 for signed. | |
2963 | */ | |
2964 | #define Uid_t_sign 1 /* UID sign */ | |
2965 | ||
2966 | /* Uid_t_size: | |
2967 | * This symbol holds the size of a Uid_t in bytes. | |
2968 | */ | |
2969 | #define Uid_t_size 4 /* UID size */ | |
2970 | ||
2971 | /* Uid_t: | |
2972 | * This symbol holds the type used to declare user ids in the kernel. | |
2973 | * It can be int, ushort, uid_t, etc... It may be necessary to include | |
2974 | * <sys/types.h> to get any typedef'ed information. | |
2975 | */ | |
2976 | #define Uid_t int /* UID type */ | |
2977 | ||
2978 | /* USE_64_BIT_INT: | |
2979 | * This symbol, if defined, indicates that 64-bit integers should | |
2980 | * be used when available. If not defined, the native integers | |
2981 | * will be employed (be they 32 or 64 bits). The minimal possible | |
2982 | * 64-bitness is used, just enough to get 64-bit integers into Perl. | |
2983 | * This may mean using for example "long longs", while your memory | |
2984 | * may still be limited to 2 gigabytes. | |
2985 | */ | |
2986 | /* USE_64_BIT_ALL: | |
2987 | * This symbol, if defined, indicates that 64-bit integers should | |
2988 | * be used when available. If not defined, the native integers | |
2989 | * will be used (be they 32 or 64 bits). The maximal possible | |
2990 | * 64-bitness is employed: LP64 or ILP64, meaning that you will | |
2991 | * be able to use more than 2 gigabytes of memory. This mode is | |
2992 | * even more binary incompatible than USE_64_BIT_INT. You may not | |
2993 | * be able to run the resulting executable in a 32-bit CPU at all or | |
2994 | * you may need at least to reboot your OS to 64-bit mode. | |
2995 | */ | |
2996 | #ifndef USE_64_BIT_INT | |
2997 | /*#define USE_64_BIT_INT / **/ | |
2998 | #endif | |
2999 | ||
3000 | #ifndef USE_64_BIT_ALL | |
3001 | /*#define USE_64_BIT_ALL / **/ | |
3002 | #endif | |
3003 | ||
3004 | /* USE_LARGE_FILES: | |
3005 | * This symbol, if defined, indicates that large file support | |
3006 | * should be used when available. | |
3007 | */ | |
3008 | #ifndef USE_LARGE_FILES | |
3009 | /*#define USE_LARGE_FILES / **/ | |
3010 | #endif | |
3011 | ||
3012 | /* USE_LONG_DOUBLE: | |
3013 | * This symbol, if defined, indicates that long doubles should | |
3014 | * be used when available. | |
3015 | */ | |
3016 | #ifndef USE_LONG_DOUBLE | |
3017 | /*#define USE_LONG_DOUBLE / **/ | |
3018 | #endif | |
3019 | ||
3020 | /* USE_MORE_BITS: | |
3021 | * This symbol, if defined, indicates that 64-bit interfaces and | |
3022 | * long doubles should be used when available. | |
3023 | */ | |
3024 | #ifndef USE_MORE_BITS | |
3025 | /*#define USE_MORE_BITS / **/ | |
3026 | #endif | |
3027 | ||
3028 | /* MULTIPLICITY: | |
3029 | * This symbol, if defined, indicates that Perl should | |
3030 | * be built to use multiplicity. | |
3031 | */ | |
3032 | #ifndef MULTIPLICITY | |
3033 | /*#define MULTIPLICITY / **/ | |
3034 | #endif | |
3035 | ||
3036 | /* USE_PERLIO: | |
3037 | * This symbol, if defined, indicates that the PerlIO abstraction should | |
3038 | * be used throughout. If not defined, stdio should be | |
3039 | * used in a fully backward compatible manner. | |
3040 | */ | |
3041 | #ifndef USE_PERLIO | |
3042 | /*#define USE_PERLIO / **/ | |
3043 | #endif | |
3044 | ||
3045 | /* USE_SOCKS: | |
3046 | * This symbol, if defined, indicates that Perl should | |
3047 | * be built to use socks. | |
3048 | */ | |
3049 | #ifndef USE_SOCKS | |
3050 | /*#define USE_SOCKS / **/ | |
3051 | #endif | |
3052 | ||
3053 | /* USE_ITHREADS: | |
3054 | * This symbol, if defined, indicates that Perl should be built to | |
3055 | * use the interpreter-based threading implementation. | |
3056 | */ | |
3057 | /* USE_5005THREADS: | |
3058 | * This symbol, if defined, indicates that Perl should be built to | |
3059 | * use the 5.005-based threading implementation. | |
3060 | */ | |
3061 | /* OLD_PTHREADS_API: | |
3062 | * This symbol, if defined, indicates that Perl should | |
3063 | * be built to use the old draft POSIX threads API. | |
3064 | */ | |
3065 | /*#define USE_5005THREADS / **/ | |
3066 | /*#define USE_ITHREADS / **/ | |
3067 | #if defined(USE_5005THREADS) && !defined(USE_ITHREADS) | |
3068 | #define USE_THREADS /* until src is revised*/ | |
3069 | #endif | |
3070 | /*#define OLD_PTHREADS_API / **/ | |
3071 | ||
3072 | /* PERL_VENDORARCH: | |
3073 | * If defined, this symbol contains the name of a private library. | |
3074 | * The library is private in the sense that it needn't be in anyone's | |
3075 | * execution path, but it should be accessible by the world. | |
3076 | * It may have a ~ on the front. | |
3077 | * The standard distribution will put nothing in this directory. | |
3078 | * Vendors who distribute perl may wish to place their own | |
3079 | * architecture-dependent modules and extensions in this directory with | |
3080 | * MakeMaker Makefile.PL INSTALLDIRS=vendor | |
3081 | * or equivalent. See INSTALL for details. | |
3082 | */ | |
3083 | /* PERL_VENDORARCH_EXP: | |
3084 | * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used | |
3085 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
3086 | */ | |
3087 | /*#define PERL_VENDORARCH "" / **/ | |
3088 | /*#define PERL_VENDORARCH_EXP "" / **/ | |
3089 | ||
3090 | /* PERL_VENDORLIB_EXP: | |
3091 | * This symbol contains the ~name expanded version of VENDORLIB, to be used | |
3092 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
3093 | */ | |
3094 | /* PERL_VENDORLIB_STEM: | |
3095 | * This define is PERL_VENDORLIB_EXP with any trailing version-specific component | |
3096 | * removed. The elements in inc_version_list (inc_version_list.U) can | |
3097 | * be tacked onto this variable to generate a list of directories to search. | |
3098 | */ | |
3099 | /*#define PERL_VENDORLIB_EXP "" / **/ | |
3100 | /*#define PERL_VENDORLIB_STEM "" / **/ | |
3101 | ||
3102 | /* VOIDFLAGS: | |
3103 | * This symbol indicates how much support of the void type is given by this | |
3104 | * compiler. What various bits mean: | |
3105 | * | |
3106 | * 1 = supports declaration of void | |
3107 | * 2 = supports arrays of pointers to functions returning void | |
3108 | * 4 = supports comparisons between pointers to void functions and | |
3109 | * addresses of void functions | |
3110 | * 8 = suports declaration of generic void pointers | |
3111 | * | |
3112 | * The package designer should define VOIDUSED to indicate the requirements | |
3113 | * of the package. This can be done either by #defining VOIDUSED before | |
3114 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
3115 | * latter approach is taken, only those flags will be tested. If the | |
3116 | * level of void support necessary is not present, defines void to int. | |
3117 | */ | |
3118 | #ifndef VOIDUSED | |
3119 | #define VOIDUSED 1 | |
3120 | #endif | |
3121 | #define VOIDFLAGS 1 | |
3122 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
3123 | #define void int /* is void to be avoided? */ | |
3124 | #define M_VOID /* Xenix strikes again */ | |
3125 | #endif | |
3126 | ||
3127 | /* PERL_XS_APIVERSION: | |
3128 | * This variable contains the version of the oldest perl binary | |
3129 | * compatible with the present perl. perl.c:incpush() and | |
3130 | * lib/lib.pm will automatically search in for older | |
3131 | * directories across major versions back to xs_apiversion. | |
3132 | * This is only useful if you have a perl library directory tree | |
3133 | * structured like the default one. | |
3134 | * See INSTALL for how this works. | |
3135 | * The versioned site_perl directory was introduced in 5.005, | |
3136 | * so that is the lowest possible value. | |
3137 | * Since this can depend on compile time options (such as | |
3138 | * bincompat) it is set by Configure. Other non-default sources | |
3139 | * of potential incompatibility, such as multiplicity, threads, | |
3140 | * debugging, 64bits, sfio, etc., are not checked for currently, | |
3141 | * though in principle we could go snooping around in old | |
3142 | * Config.pm files. | |
3143 | */ | |
3144 | /* PERL_PM_APIVERSION: | |
3145 | * This variable contains the version of the oldest perl | |
3146 | * compatible with the present perl. (That is, pure perl modules | |
3147 | * written for pm_apiversion will still work for the current | |
3148 | * version). perl.c:incpush() and lib/lib.pm will automatically | |
3149 | * search in for older directories across major versions | |
3150 | * back to pm_apiversion. This is only useful if you have a perl | |
3151 | * library directory tree structured like the default one. The | |
3152 | * versioned site_perl library was introduced in 5.005, so that's | |
3153 | * the default setting for this variable. It's hard to imagine | |
3154 | * it changing before Perl6. It is included here for symmetry | |
3155 | * with xs_apiveprsion -- the searching algorithms will | |
3156 | * (presumably) be similar. | |
3157 | * See the INSTALL file for how this works. | |
3158 | */ | |
3159 | #define PERL_XS_APIVERSION "5.005" | |
3160 | #define PERL_PM_APIVERSION "5.005" | |
3161 | ||
3162 | #endif |