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