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