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