Commit | Line | Data |
---|---|---|
16d20bd9 | 1 | /* This file (config_H) is a sample config.h file. If you are unable |
a0d0e21e LW |
2 | to successfully run Configure, copy this file to config.h and |
3 | edit it to suit your system. | |
85e6fe83 LW |
4 | */ |
5 | /* | |
6 | * This file was produced by running the config_h.SH script, which | |
8d063cd8 LW |
7 | * gets its values from config.sh, which is generally produced by |
8 | * running Configure. | |
9 | * | |
10 | * Feel free to modify any of this as the need arises. Note, however, | |
1aef975c AD |
11 | * that running config_h.SH again will wipe out any changes you've made. |
12 | * For a more permanent change edit config.sh and rerun config_h.SH. | |
85e6fe83 | 13 | * |
4633a7c4 | 14 | * $Id: Config_h.U,v 3.0.1.4 1995/09/25 09:10:49 ram Exp $ |
8d063cd8 | 15 | */ |
a687059c | 16 | |
fbfd4aab | 17 | /* Configuration time: Thu Feb 8 17:15:11 EST 1996 |
4633a7c4 LW |
18 | * Configured by: doughera |
19 | * Target system: sunos fractal 5.4 generic_101946-29 i86pc i386 | |
68decaef | 20 | */ |
68decaef | 21 | |
85e6fe83 LW |
22 | #ifndef _config_h_ |
23 | #define _config_h_ | |
fe14fcc3 | 24 | |
a0d0e21e LW |
25 | /* MEM_ALIGNBYTES: |
26 | * This symbol contains the number of bytes required to align a | |
27 | * double. Usual values are 2, 4 and 8. | |
28 | */ | |
29 | #define MEM_ALIGNBYTES 4 /**/ | |
30 | ||
85e6fe83 LW |
31 | /* BIN: |
32 | * This symbol holds the path of the bin directory where the package will | |
33 | * be installed. Program must be prepared to deal with ~name substitution. | |
a687059c | 34 | */ |
fbfd4aab | 35 | #define BIN "/usr/local/bin" /**/ |
a687059c | 36 | |
ecfc5424 AD |
37 | /* CAT2: |
38 | * This macro catenates 2 tokens together. | |
39 | */ | |
4633a7c4 | 40 | #if 42 == 1 |
ecfc5424 AD |
41 | #define CAT2(a,b)a/**/b |
42 | #define CAT3(a,b,c)a/**/b/**/c | |
43 | #define CAT4(a,b,c,d)a/**/b/**/c/**/d | |
44 | #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e | |
45 | #define STRINGIFY(a)"a" | |
46 | /* If you can get stringification with catify, tell me how! */ | |
47 | #endif | |
4633a7c4 | 48 | #if 42 == 42 |
ecfc5424 AD |
49 | #define CAT2(a,b)a ## b |
50 | #define CAT3(a,b,c)a ## b ## c | |
51 | #define CAT4(a,b,c,d)a ## b ## c ## d | |
52 | #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e | |
53 | #define StGiFy(a)# a | |
54 | #define STRINGIFY(a)StGiFy(a) | |
55 | #define SCAT2(a,b)StGiFy(a) StGiFy(b) | |
56 | #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c) | |
57 | #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) | |
58 | #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e) | |
59 | #endif | |
60 | #ifndef CAT2 | |
61 | #include "Bletch: How does this C preprocessor catenate tokens?" | |
62 | #endif | |
63 | ||
85e6fe83 | 64 | /* CPPSTDIN: |
a687059c LW |
65 | * This symbol contains the first part of the string which will invoke |
66 | * the C preprocessor on the standard input and produce to standard | |
85e6fe83 LW |
67 | * output. Typical value of "cc -E" or "/lib/cpp", but it can also |
68 | * call a wrapper. See CPPRUN. | |
a687059c | 69 | */ |
85e6fe83 | 70 | /* CPPMINUS: |
a687059c LW |
71 | * This symbol contains the second part of the string which will invoke |
72 | * the C preprocessor on the standard input and produce to standard | |
73 | * output. This symbol will have the value "-" if CPPSTDIN needs a minus | |
74 | * to specify standard input, otherwise the value is "". | |
75 | */ | |
fbfd4aab | 76 | #define CPPSTDIN "cc -E" |
a0d0e21e LW |
77 | #define CPPMINUS "-" |
78 | ||
79 | /* HAS_ALARM: | |
80 | * This symbol, if defined, indicates that the alarm routine is | |
81 | * available. | |
82 | */ | |
83 | #define HAS_ALARM /**/ | |
a687059c | 84 | |
ecfc5424 AD |
85 | /* HASATTRIBUTE: |
86 | * This symbol indicates the C compiler can check for function attributes, | |
87 | * such as printf formats. This is normally only supported by GNU cc. | |
88 | */ | |
fbfd4aab | 89 | /*#define HASATTRIBUTE /**/ |
ecfc5424 AD |
90 | #ifndef HASATTRIBUTE |
91 | #define __attribute__(_arg_) | |
92 | #endif | |
93 | ||
85e6fe83 LW |
94 | /* HAS_BCMP: |
95 | * This symbol is defined if the bcmp() routine is available to | |
96 | * compare blocks of memory. | |
a687059c | 97 | */ |
4633a7c4 | 98 | /*#define HAS_BCMP /**/ |
a687059c | 99 | |
85e6fe83 LW |
100 | /* HAS_BCOPY: |
101 | * This symbol is defined if the bcopy() routine is available to | |
102 | * copy blocks of memory. | |
a687059c | 103 | */ |
4633a7c4 | 104 | /*#define HAS_BCOPY /**/ |
fe14fcc3 | 105 | |
85e6fe83 LW |
106 | /* HAS_BZERO: |
107 | * This symbol is defined if the bzero() routine is available to | |
108 | * set a memory block to 0. | |
fe14fcc3 | 109 | */ |
4633a7c4 | 110 | /*#define HAS_BZERO /**/ |
8d063cd8 | 111 | |
a0d0e21e LW |
112 | /* CASTI32: |
113 | * This symbol is defined if the C compiler can cast negative | |
114 | * or large floating point numbers to 32-bit ints. | |
115 | */ | |
4633a7c4 | 116 | #define CASTI32 /**/ |
a0d0e21e | 117 | |
85e6fe83 LW |
118 | /* CASTNEGFLOAT: |
119 | * This symbol is defined if the C compiler can cast negative | |
120 | * numbers to unsigned longs, ints and shorts. | |
fe14fcc3 | 121 | */ |
85e6fe83 | 122 | /* CASTFLAGS: |
fe14fcc3 LW |
123 | * This symbol contains flags that say what difficulties the compiler |
124 | * has casting odd floating values to unsigned long: | |
85e6fe83 | 125 | * 0 = ok |
fe14fcc3 LW |
126 | * 1 = couldn't cast < 0 |
127 | * 2 = couldn't cast >= 0x80000000 | |
232e078e | 128 | * 4 = couldn't cast in argument expression list |
fe14fcc3 | 129 | */ |
4633a7c4 LW |
130 | #define CASTNEGFLOAT /**/ |
131 | #define CASTFLAGS 0 /**/ | |
a0d0e21e LW |
132 | |
133 | /* HAS_CHOWN: | |
134 | * This symbol, if defined, indicates that the chown routine is | |
135 | * available. | |
136 | */ | |
137 | #define HAS_CHOWN /**/ | |
138 | ||
139 | /* HAS_CHROOT: | |
140 | * This symbol, if defined, indicates that the chroot routine is | |
141 | * available. | |
142 | */ | |
143 | #define HAS_CHROOT /**/ | |
8d063cd8 | 144 | |
85e6fe83 | 145 | /* HAS_CHSIZE: |
fe14fcc3 LW |
146 | * This symbol, if defined, indicates that the chsize routine is available |
147 | * to truncate files. You might need a -lx to get this routine. | |
148 | */ | |
16d20bd9 | 149 | /*#define HAS_CHSIZE /**/ |
ecfc5424 AD |
150 | |
151 | /* VOID_CLOSEDIR: | |
152 | * This symbol, if defined, indicates that the closedir() routine | |
153 | * does not return a value. | |
154 | */ | |
155 | /*#define VOID_CLOSEDIR /**/ | |
85e6fe83 LW |
156 | |
157 | /* HASCONST: | |
158 | * This symbol, if defined, indicates that this C compiler knows about | |
159 | * the const type. There is no need to actually test for that symbol | |
160 | * within your programs. The mere use of the "const" keyword will | |
161 | * trigger the necessary tests. | |
162 | */ | |
4633a7c4 | 163 | #define HASCONST /**/ |
85e6fe83 LW |
164 | #ifndef HASCONST |
165 | #define const | |
166 | #endif | |
fe14fcc3 | 167 | |
85e6fe83 | 168 | /* HAS_CRYPT: |
a687059c LW |
169 | * This symbol, if defined, indicates that the crypt routine is available |
170 | * to encrypt passwords and the like. | |
171 | */ | |
85e6fe83 | 172 | #define HAS_CRYPT /**/ |
fe14fcc3 | 173 | |
a0d0e21e LW |
174 | /* HAS_CUSERID: |
175 | * This symbol, if defined, indicates that the cuserid routine is | |
176 | * available to get character login names. | |
a687059c | 177 | */ |
a0d0e21e LW |
178 | #define HAS_CUSERID /**/ |
179 | ||
180 | /* HAS_DBL_DIG: | |
181 | * This symbol, if defined, indicates that this system's <float.h> | |
182 | * or <limits.h> defines the symbol DBL_DIG, which is the number | |
183 | * of significant digits in a double precision number. If this | |
184 | * symbol is not defined, a guess of 15 is usually pretty good. | |
185 | */ | |
186 | #define HAS_DBL_DIG /* */ | |
187 | ||
188 | /* HAS_DIFFTIME: | |
189 | * This symbol, if defined, indicates that the difftime routine is | |
190 | * available. | |
191 | */ | |
192 | #define HAS_DIFFTIME /**/ | |
a687059c | 193 | |
ecfc5424 AD |
194 | /* HAS_DLERROR: |
195 | * This symbol, if defined, indicates that the dlerror routine is | |
196 | * available to return a string describing the last error that | |
197 | * occurred from a call to dlopen(), dlclose() or dlsym(). | |
198 | */ | |
4633a7c4 | 199 | #define HAS_DLERROR /**/ |
ecfc5424 | 200 | |
85e6fe83 LW |
201 | /* HAS_DUP2: |
202 | * This symbol, if defined, indicates that the dup2 routine is | |
203 | * available to duplicate file descriptors. | |
a687059c | 204 | */ |
85e6fe83 | 205 | #define HAS_DUP2 /**/ |
a687059c | 206 | |
85e6fe83 | 207 | /* HAS_FCHMOD: |
a687059c LW |
208 | * This symbol, if defined, indicates that the fchmod routine is available |
209 | * to change mode of opened files. If unavailable, use chmod(). | |
210 | */ | |
4633a7c4 | 211 | #define HAS_FCHMOD /**/ |
a687059c | 212 | |
85e6fe83 | 213 | /* HAS_FCHOWN: |
a687059c LW |
214 | * This symbol, if defined, indicates that the fchown routine is available |
215 | * to change ownership of opened files. If unavailable, use chown(). | |
216 | */ | |
4633a7c4 | 217 | #define HAS_FCHOWN /**/ |
a687059c | 218 | |
85e6fe83 | 219 | /* HAS_FCNTL: |
fe14fcc3 LW |
220 | * This symbol, if defined, indicates to the C program that |
221 | * the fcntl() function exists. | |
a687059c | 222 | */ |
85e6fe83 | 223 | #define HAS_FCNTL /**/ |
a687059c | 224 | |
a0d0e21e LW |
225 | /* HAS_FGETPOS: |
226 | * This symbol, if defined, indicates that the fgetpos routine is | |
227 | * available to get the file position indicator, similar to ftell(). | |
228 | */ | |
4633a7c4 | 229 | #define HAS_FGETPOS /**/ |
a0d0e21e | 230 | |
85e6fe83 | 231 | /* FLEXFILENAMES: |
fe14fcc3 LW |
232 | * This symbol, if defined, indicates that the system supports filenames |
233 | * longer than 14 characters. | |
234 | */ | |
4633a7c4 | 235 | #define FLEXFILENAMES /**/ |
fe14fcc3 | 236 | |
85e6fe83 LW |
237 | /* HAS_FLOCK: |
238 | * This symbol, if defined, indicates that the flock routine is | |
a687059c LW |
239 | * available to do file locking. |
240 | */ | |
a0d0e21e LW |
241 | /*#define HAS_FLOCK /**/ |
242 | ||
243 | /* HAS_FORK: | |
244 | * This symbol, if defined, indicates that the fork routine is | |
245 | * available. | |
246 | */ | |
247 | #define HAS_FORK /**/ | |
248 | ||
249 | /* HAS_FSETPOS: | |
250 | * This symbol, if defined, indicates that the fsetpos routine is | |
251 | * available to set the file position indicator, similar to fseek(). | |
252 | */ | |
4633a7c4 | 253 | #define HAS_FSETPOS /**/ |
ecfc5424 | 254 | |
85e6fe83 | 255 | /* HAS_GETGROUPS: |
a687059c LW |
256 | * This symbol, if defined, indicates that the getgroups() routine is |
257 | * available to get the list of process groups. If unavailable, multiple | |
258 | * groups are probably not supported. | |
259 | */ | |
85e6fe83 | 260 | #define HAS_GETGROUPS /**/ |
a687059c | 261 | |
85e6fe83 LW |
262 | /* HAS_GETHOSTENT: |
263 | * This symbol, if defined, indicates that the gethostent routine is | |
a687059c LW |
264 | * available to lookup host names in some data base or other. |
265 | */ | |
4633a7c4 | 266 | #define HAS_GETHOSTENT /**/ |
85e6fe83 LW |
267 | |
268 | /* HAS_UNAME: | |
269 | * This symbol, if defined, indicates that the C program may use the | |
270 | * uname() routine to derive the host name. See also HAS_GETHOSTNAME | |
271 | * and PHOSTNAME. | |
272 | */ | |
273 | #define HAS_UNAME /**/ | |
a687059c | 274 | |
a0d0e21e LW |
275 | /* HAS_GETLOGIN: |
276 | * This symbol, if defined, indicates that the getlogin routine is | |
277 | * available to get the login name. | |
278 | */ | |
279 | #define HAS_GETLOGIN /**/ | |
280 | ||
85e6fe83 LW |
281 | /* HAS_GETPGRP: |
282 | * This symbol, if defined, indicates that the getpgrp routine is | |
a687059c LW |
283 | * available to get the current process group. |
284 | */ | |
85e6fe83 | 285 | #define HAS_GETPGRP /**/ |
fe14fcc3 | 286 | |
85e6fe83 | 287 | /* HAS_GETPGRP2: |
fe14fcc3 LW |
288 | * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX) |
289 | * routine is available to get the current process group. | |
290 | */ | |
85e6fe83 | 291 | /*#define HAS_GETPGRP2 /**/ |
a687059c | 292 | |
a0d0e21e LW |
293 | /* HAS_GETPPID: |
294 | * This symbol, if defined, indicates that the getppid routine is | |
295 | * available to get the parent process ID. | |
296 | */ | |
297 | #define HAS_GETPPID /**/ | |
298 | ||
85e6fe83 LW |
299 | /* HAS_GETPRIORITY: |
300 | * This symbol, if defined, indicates that the getpriority routine is | |
a687059c LW |
301 | * available to get a process's priority. |
302 | */ | |
a0d0e21e LW |
303 | /*#define HAS_GETPRIORITY /**/ |
304 | ||
a0d0e21e LW |
305 | /* HAS_HTONL: |
306 | * This symbol, if defined, indicates that the htonl() routine (and | |
307 | * friends htons() ntohl() ntohs()) are available to do network | |
308 | * order byte swapping. | |
309 | */ | |
310 | /* HAS_HTONS: | |
311 | * This symbol, if defined, indicates that the htons() routine (and | |
312 | * friends htonl() ntohl() ntohs()) are available to do network | |
313 | * order byte swapping. | |
314 | */ | |
315 | /* HAS_NTOHL: | |
316 | * This symbol, if defined, indicates that the ntohl() routine (and | |
317 | * friends htonl() htons() ntohs()) are available to do network | |
318 | * order byte swapping. | |
319 | */ | |
320 | /* HAS_NTOHS: | |
321 | * This symbol, if defined, indicates that the ntohs() routine (and | |
322 | * friends htonl() htons() ntohl()) are available to do network | |
323 | * order byte swapping. | |
324 | */ | |
325 | #define HAS_HTONL /**/ | |
326 | #define HAS_HTONS /**/ | |
327 | #define HAS_NTOHL /**/ | |
328 | #define HAS_NTOHS /**/ | |
a687059c | 329 | |
ecfc5424 AD |
330 | /* HAS_ISASCII: |
331 | * This manifest constant lets the C program know that isascii | |
332 | * is available. | |
333 | */ | |
334 | #define HAS_ISASCII /**/ | |
335 | ||
85e6fe83 | 336 | /* HAS_KILLPG: |
a687059c LW |
337 | * This symbol, if defined, indicates that the killpg routine is available |
338 | * to kill process groups. If unavailable, you probably should use kill | |
339 | * with a negative process number. | |
340 | */ | |
a0d0e21e | 341 | /*#define HAS_KILLPG /**/ |
a687059c | 342 | |
85e6fe83 LW |
343 | /* HAS_LINK: |
344 | * This symbol, if defined, indicates that the link routine is | |
345 | * available to create hard links. | |
fe14fcc3 | 346 | */ |
85e6fe83 | 347 | #define HAS_LINK /**/ |
fe14fcc3 | 348 | |
ecfc5424 AD |
349 | /* HAS_LOCALECONV: |
350 | * This symbol, if defined, indicates that the localeconv routine is | |
351 | * available for numeric and monetary formatting conventions. | |
352 | */ | |
353 | #define HAS_LOCALECONV /**/ | |
354 | ||
a0d0e21e LW |
355 | /* HAS_LOCKF: |
356 | * This symbol, if defined, indicates that the lockf routine is | |
357 | * available to do file locking. | |
358 | */ | |
359 | #define HAS_LOCKF /**/ | |
360 | ||
85e6fe83 LW |
361 | /* HAS_LSTAT: |
362 | * This symbol, if defined, indicates that the lstat routine is | |
363 | * available to do file stats on symbolic links. | |
a687059c | 364 | */ |
85e6fe83 | 365 | #define HAS_LSTAT /**/ |
a687059c | 366 | |
a0d0e21e LW |
367 | /* HAS_MBLEN: |
368 | * This symbol, if defined, indicates that the mblen routine is available | |
369 | * to find the number of bytes in a multibye character. | |
370 | */ | |
4633a7c4 | 371 | #define HAS_MBLEN /**/ |
a0d0e21e LW |
372 | |
373 | /* HAS_MBSTOWCS: | |
374 | * This symbol, if defined, indicates that the mbstowcs routine is | |
375 | * available to covert a multibyte string into a wide character string. | |
376 | */ | |
4633a7c4 | 377 | #define HAS_MBSTOWCS /**/ |
a0d0e21e LW |
378 | |
379 | /* HAS_MBTOWC: | |
380 | * This symbol, if defined, indicates that the mbtowc routine is available | |
381 | * to covert a multibyte to a wide character. | |
382 | */ | |
4633a7c4 | 383 | #define HAS_MBTOWC /**/ |
a0d0e21e | 384 | |
85e6fe83 LW |
385 | /* HAS_MEMCMP: |
386 | * This symbol, if defined, indicates that the memcmp routine is available | |
387 | * to compare blocks of memory. | |
a687059c | 388 | */ |
85e6fe83 LW |
389 | #define HAS_MEMCMP /**/ |
390 | ||
391 | /* HAS_MEMCPY: | |
68decaef | 392 | * This symbol, if defined, indicates that the memcpy routine is available |
85e6fe83 | 393 | * to copy blocks of memory. |
68decaef | 394 | */ |
85e6fe83 | 395 | #define HAS_MEMCPY /**/ |
68decaef | 396 | |
85e6fe83 | 397 | /* HAS_MEMMOVE: |
68decaef | 398 | * This symbol, if defined, indicates that the memmove routine is available |
85e6fe83 LW |
399 | * to copy potentially overlapping blocks of memory. This should be used |
400 | * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your | |
401 | * own version. | |
68decaef | 402 | */ |
4633a7c4 | 403 | #define HAS_MEMMOVE /**/ |
68decaef | 404 | |
85e6fe83 | 405 | /* HAS_MEMSET: |
68decaef | 406 | * This symbol, if defined, indicates that the memset routine is available |
85e6fe83 | 407 | * to set blocks of memory. |
68decaef | 408 | */ |
85e6fe83 | 409 | #define HAS_MEMSET /**/ |
a687059c | 410 | |
85e6fe83 | 411 | /* HAS_MKDIR: |
a687059c LW |
412 | * This symbol, if defined, indicates that the mkdir routine is available |
413 | * to create directories. Otherwise you should fork off a new process to | |
414 | * exec /bin/mkdir. | |
415 | */ | |
85e6fe83 | 416 | #define HAS_MKDIR /**/ |
fe14fcc3 | 417 | |
ecfc5424 AD |
418 | /* HAS_MKFIFO: |
419 | * This symbol, if defined, indicates that the mkfifo routine is | |
420 | * available to create FIFOs. Otherwise, mknod should be able to | |
421 | * do it for you. However, if mkfifo is there, mknod might require | |
422 | * super-user privileges which mkfifo will not. | |
423 | */ | |
424 | #define HAS_MKFIFO /**/ | |
425 | ||
a0d0e21e LW |
426 | /* HAS_MKTIME: |
427 | * This symbol, if defined, indicates that the mktime routine is | |
428 | * available. | |
429 | */ | |
430 | #define HAS_MKTIME /**/ | |
431 | ||
85e6fe83 | 432 | /* HAS_MSG: |
fe14fcc3 | 433 | * This symbol, if defined, indicates that the entire msg*(2) library is |
85e6fe83 | 434 | * supported (IPC mechanism based on message queues). |
fe14fcc3 | 435 | */ |
85e6fe83 | 436 | #define HAS_MSG /**/ |
fe14fcc3 | 437 | |
a0d0e21e LW |
438 | /* HAS_NICE: |
439 | * This symbol, if defined, indicates that the nice routine is | |
440 | * available. | |
fe14fcc3 | 441 | */ |
a0d0e21e | 442 | #define HAS_NICE /**/ |
fe14fcc3 | 443 | |
a0d0e21e LW |
444 | /* HAS_OPEN3: |
445 | * This manifest constant lets the C program know that the three | |
446 | * argument form of open(2) is available. | |
fe14fcc3 | 447 | */ |
a0d0e21e | 448 | #define HAS_OPEN3 /**/ |
fe14fcc3 | 449 | |
ecfc5424 AD |
450 | /* HAS_PATHCONF: |
451 | * This symbol, if defined, indicates that pathconf() is available | |
452 | * to determine file-system related limits and options associated | |
453 | * with a given filename. | |
454 | */ | |
455 | /* HAS_FPATHCONF: | |
456 | * This symbol, if defined, indicates that pathconf() is available | |
457 | * to determine file-system related limits and options associated | |
458 | * with a given open file descriptor. | |
459 | */ | |
460 | #define HAS_PATHCONF /**/ | |
461 | #define HAS_FPATHCONF /**/ | |
462 | ||
a0d0e21e LW |
463 | /* HAS_PAUSE: |
464 | * This symbol, if defined, indicates that the pause routine is | |
465 | * available to suspend a process until a signal is received. | |
a687059c | 466 | */ |
a0d0e21e | 467 | #define HAS_PAUSE /**/ |
fe14fcc3 | 468 | |
a0d0e21e LW |
469 | /* HAS_PIPE: |
470 | * This symbol, if defined, indicates that the pipe routine is | |
471 | * available to create an inter-process channel. | |
fe14fcc3 | 472 | */ |
a0d0e21e LW |
473 | #define HAS_PIPE /**/ |
474 | ||
4633a7c4 LW |
475 | /* HAS_POLL: |
476 | * This symbol, if defined, indicates that the poll routine is | |
477 | * available to poll active file descriptors. | |
478 | */ | |
479 | #define HAS_POLL /**/ | |
480 | ||
a0d0e21e LW |
481 | /* HAS_READDIR: |
482 | * This symbol, if defined, indicates that the readdir routine is | |
483 | * available to read directory entries. You may have to include | |
484 | * <dirent.h>. See I_DIRENT. | |
485 | */ | |
486 | #define HAS_READDIR /**/ | |
487 | ||
488 | /* HAS_SEEKDIR: | |
489 | * This symbol, if defined, indicates that the seekdir routine is | |
490 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
491 | */ | |
492 | #define HAS_SEEKDIR /**/ | |
493 | ||
494 | /* HAS_TELLDIR: | |
495 | * This symbol, if defined, indicates that the telldir routine is | |
496 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
497 | */ | |
498 | #define HAS_TELLDIR /**/ | |
499 | ||
500 | /* HAS_REWINDDIR: | |
501 | * This symbol, if defined, indicates that the rewinddir routine is | |
502 | * available. You may have to include <dirent.h>. See I_DIRENT. | |
503 | */ | |
504 | #define HAS_REWINDDIR /**/ | |
505 | ||
506 | /* HAS_READLINK: | |
507 | * This symbol, if defined, indicates that the readlink routine is | |
508 | * available to read the value of a symbolic link. | |
509 | */ | |
510 | #define HAS_READLINK /**/ | |
a687059c | 511 | |
85e6fe83 | 512 | /* HAS_RENAME: |
a687059c LW |
513 | * This symbol, if defined, indicates that the rename routine is available |
514 | * to rename files. Otherwise you should do the unlink(), link(), unlink() | |
515 | * trick. | |
516 | */ | |
85e6fe83 | 517 | #define HAS_RENAME /**/ |
a687059c | 518 | |
85e6fe83 LW |
519 | /* HAS_RMDIR: |
520 | * This symbol, if defined, indicates that the rmdir routine is | |
521 | * available to remove directories. Otherwise you should fork off a | |
522 | * new process to exec /bin/rmdir. | |
68decaef | 523 | */ |
85e6fe83 | 524 | #define HAS_RMDIR /**/ |
68decaef | 525 | |
ecfc5424 AD |
526 | /* HAS_SAFE_BCOPY: |
527 | * This symbol, if defined, indicates that the bcopy routine is available | |
528 | * to copy potentially overlapping memory blocks. Otherwise you should | |
529 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
530 | * own version. | |
531 | */ | |
4633a7c4 | 532 | /*#define HAS_SAFE_BCOPY /**/ |
ecfc5424 AD |
533 | |
534 | /* HAS_SAFE_MEMCPY: | |
535 | * This symbol, if defined, indicates that the memcpy routine is available | |
536 | * to copy potentially overlapping memory blocks. Otherwise you should | |
537 | * probably use memmove() or memcpy(). If neither is defined, roll your | |
538 | * own version. | |
539 | */ | |
232e078e | 540 | /*#define HAS_SAFE_MEMCPY /**/ |
ecfc5424 | 541 | |
85e6fe83 LW |
542 | /* HAS_SELECT: |
543 | * This symbol, if defined, indicates that the select routine is | |
544 | * available to select active file descriptors. If the timeout field | |
545 | * is used, <sys/time.h> may need to be included. | |
68decaef | 546 | */ |
85e6fe83 | 547 | #define HAS_SELECT /**/ |
68decaef | 548 | |
85e6fe83 | 549 | /* HAS_SEM: |
fe14fcc3 LW |
550 | * This symbol, if defined, indicates that the entire sem*(2) library is |
551 | * supported. | |
552 | */ | |
85e6fe83 | 553 | #define HAS_SEM /**/ |
fe14fcc3 | 554 | |
85e6fe83 | 555 | /* HAS_SETEGID: |
a687059c LW |
556 | * This symbol, if defined, indicates that the setegid routine is available |
557 | * to change the effective gid of the current program. | |
558 | */ | |
85e6fe83 | 559 | #define HAS_SETEGID /**/ |
a687059c | 560 | |
85e6fe83 | 561 | /* HAS_SETEUID: |
a687059c LW |
562 | * This symbol, if defined, indicates that the seteuid routine is available |
563 | * to change the effective uid of the current program. | |
564 | */ | |
85e6fe83 LW |
565 | #define HAS_SETEUID /**/ |
566 | ||
a0d0e21e LW |
567 | /* HAS_SETLINEBUF: |
568 | * This symbol, if defined, indicates that the setlinebuf routine is | |
569 | * available to change stderr or stdout from block-buffered or unbuffered | |
570 | * to a line-buffered mode. | |
571 | */ | |
572 | /*#define HAS_SETLINEBUF /**/ | |
573 | ||
574 | /* HAS_SETLOCALE: | |
575 | * This symbol, if defined, indicates that the setlocale routine is | |
576 | * available to handle locale-specific ctype implementations. | |
577 | */ | |
578 | #define HAS_SETLOCALE /**/ | |
579 | ||
85e6fe83 LW |
580 | /* HAS_SETPGID: |
581 | * This symbol, if defined, indicates that the setpgid routine is | |
582 | * available to set process group ID. | |
583 | */ | |
584 | #define HAS_SETPGID /**/ | |
a687059c | 585 | |
85e6fe83 LW |
586 | /* HAS_SETPGRP: |
587 | * This symbol, if defined, indicates that the setpgrp routine is | |
a687059c LW |
588 | * available to set the current process group. |
589 | */ | |
ecfc5424 AD |
590 | /* USE_BSDPGRP: |
591 | * This symbol, if defined, indicates that the BSD notion of process | |
592 | * group is to be used. For instance, you have to say setpgrp(pid, pgrp) | |
593 | * instead of the USG setpgrp(). | |
594 | */ | |
85e6fe83 | 595 | #define HAS_SETPGRP /**/ |
ecfc5424 | 596 | /*#define USE_BSDPGRP /**/ |
a687059c | 597 | |
85e6fe83 | 598 | /* HAS_SETPGRP2: |
fe14fcc3 LW |
599 | * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX) |
600 | * routine is available to set the current process group. | |
601 | */ | |
85e6fe83 | 602 | /*#define HAS_SETPGRP2 /**/ |
fe14fcc3 | 603 | |
85e6fe83 LW |
604 | /* HAS_SETPRIORITY: |
605 | * This symbol, if defined, indicates that the setpriority routine is | |
a687059c LW |
606 | * available to set a process's priority. |
607 | */ | |
a0d0e21e | 608 | /*#define HAS_SETPRIORITY /**/ |
a687059c | 609 | |
85e6fe83 | 610 | /* HAS_SETREGID: |
fe14fcc3 | 611 | * This symbol, if defined, indicates that the setregid routine is |
85e6fe83 LW |
612 | * available to change the real and effective gid of the current |
613 | * process. | |
a687059c | 614 | */ |
85e6fe83 | 615 | /* HAS_SETRESGID: |
fe14fcc3 LW |
616 | * This symbol, if defined, indicates that the setresgid routine is |
617 | * available to change the real, effective and saved gid of the current | |
85e6fe83 | 618 | * process. |
fe14fcc3 | 619 | */ |
4633a7c4 | 620 | /*#define HAS_SETREGID /**/ |
85e6fe83 | 621 | /*#define HAS_SETRESGID /**/ |
a687059c | 622 | |
85e6fe83 | 623 | /* HAS_SETREUID: |
fe14fcc3 | 624 | * This symbol, if defined, indicates that the setreuid routine is |
85e6fe83 LW |
625 | * available to change the real and effective uid of the current |
626 | * process. | |
fe14fcc3 | 627 | */ |
85e6fe83 | 628 | /* HAS_SETRESUID: |
fe14fcc3 LW |
629 | * This symbol, if defined, indicates that the setresuid routine is |
630 | * available to change the real, effective and saved uid of the current | |
85e6fe83 | 631 | * process. |
a687059c | 632 | */ |
4633a7c4 | 633 | /*#define HAS_SETREUID /**/ |
85e6fe83 | 634 | /*#define HAS_SETRESUID /**/ |
a687059c | 635 | |
85e6fe83 | 636 | /* HAS_SETRGID: |
a687059c LW |
637 | * This symbol, if defined, indicates that the setrgid routine is available |
638 | * to change the real gid of the current program. | |
639 | */ | |
a0d0e21e | 640 | /*#define HAS_SETRGID /**/ |
a687059c | 641 | |
85e6fe83 | 642 | /* HAS_SETRUID: |
a687059c LW |
643 | * This symbol, if defined, indicates that the setruid routine is available |
644 | * to change the real uid of the current program. | |
645 | */ | |
a0d0e21e | 646 | /*#define HAS_SETRUID /**/ |
fe14fcc3 | 647 | |
85e6fe83 LW |
648 | /* HAS_SETSID: |
649 | * This symbol, if defined, indicates that the setsid routine is | |
650 | * available to set the process group ID. | |
fe14fcc3 | 651 | */ |
85e6fe83 | 652 | #define HAS_SETSID /**/ |
fe14fcc3 | 653 | |
85e6fe83 LW |
654 | /* HAS_SHM: |
655 | * This symbol, if defined, indicates that the entire shm*(2) library is | |
656 | * supported. | |
2b317908 | 657 | */ |
85e6fe83 | 658 | #define HAS_SHM /**/ |
fe14fcc3 | 659 | |
a0d0e21e LW |
660 | /* Shmat_t: |
661 | * This symbol holds the return type of the shmat() system call. | |
662 | * Usually set to 'void *' or 'char *'. | |
fe14fcc3 | 663 | */ |
a0d0e21e LW |
664 | /* HAS_SHMAT_PROTOTYPE: |
665 | * This symbol, if defined, indicates that the sys/shm.h includes | |
666 | * a prototype for shmat(). Otherwise, it is up to the program to | |
667 | * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess, | |
668 | * but not always right so it should be emitted by the program only | |
669 | * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs. | |
fe14fcc3 | 670 | */ |
4633a7c4 LW |
671 | #define Shmat_t void * /**/ |
672 | #define HAS_SHMAT_PROTOTYPE /**/ | |
a687059c | 673 | |
fbfd4aab | 674 | /* HAS_SIGACTION: |
675 | * This symbol, if defined, indicates that Vr4's sigaction() routine | |
676 | * is available. | |
677 | */ | |
678 | #define HAS_SIGACTION /**/ | |
679 | ||
85e6fe83 | 680 | /* HAS_SOCKET: |
a687059c LW |
681 | * This symbol, if defined, indicates that the BSD socket interface is |
682 | * supported. | |
683 | */ | |
85e6fe83 LW |
684 | /* HAS_SOCKETPAIR: |
685 | * This symbol, if defined, indicates that the BSD socketpair() call is | |
a687059c LW |
686 | * supported. |
687 | */ | |
85e6fe83 | 688 | #define HAS_SOCKET /**/ |
4633a7c4 | 689 | #define HAS_SOCKETPAIR /**/ |
a687059c | 690 | |
85e6fe83 | 691 | /* USE_STAT_BLOCKS: |
a687059c LW |
692 | * This symbol is defined if this system has a stat structure declaring |
693 | * st_blksize and st_blocks. | |
694 | */ | |
4633a7c4 | 695 | #define USE_STAT_BLOCKS /**/ |
a687059c | 696 | |
16d20bd9 AD |
697 | /* USE_STDIO_PTR: |
698 | * This symbol is defined if the _ptr and _cnt fields (or similar) | |
699 | * of the stdio FILE structure can be used to access the stdio buffer | |
700 | * for a file handle. If this is defined, then the FILE_ptr(fp) | |
701 | * and FILE_cnt(fp) macros will also be defined and should be used | |
702 | * to access these fields. | |
703 | */ | |
704 | /* USE_STDIO_BASE: | |
705 | * This symbol is defined if the _base field (or similar) of the | |
706 | * stdio FILE structure can be used to access the stdio buffer for | |
707 | * a file handle. If this is defined, then the FILE_base(fp) macro | |
708 | * will also be defined and should be used to access this field. | |
709 | * Also, the FILE_bufsiz(fp) macro will be defined and should be used | |
710 | * to determine the number of bytes in the buffer. USE_STDIO_BASE | |
711 | * will never be defined unless USE_STDIO_PTR is. | |
712 | */ | |
713 | #define USE_STDIO_PTR /**/ | |
714 | #define USE_STDIO_BASE /**/ | |
715 | ||
716 | /* FILE_ptr: | |
717 | * This macro is used to access the _ptr field (or equivalent) of the | |
718 | * FILE structure pointed to by its argument. This macro will always be | |
719 | * defined if USE_STDIO_PTR is defined. | |
720 | */ | |
c2960299 AD |
721 | /* STDIO_PTR_LVALUE: |
722 | * This symbol is defined if the FILE_ptr macro can be used as an | |
723 | * lvalue. | |
724 | */ | |
16d20bd9 AD |
725 | /* FILE_cnt: |
726 | * This macro is used to access the _cnt field (or equivalent) of the | |
727 | * FILE structure pointed to by its argument. This macro will always be | |
728 | * defined if USE_STDIO_PTR is defined. | |
729 | */ | |
c2960299 AD |
730 | /* STDIO_CNT_LVALUE: |
731 | * This symbol is defined if the FILE_cnt macro can be used as an | |
732 | * lvalue. | |
733 | */ | |
16d20bd9 AD |
734 | #ifdef USE_STDIO_PTR |
735 | #define FILE_ptr(fp) ((fp)->_ptr) | |
4aa0a1f7 | 736 | #define STDIO_PTR_LVALUE /**/ |
16d20bd9 | 737 | #define FILE_cnt(fp) ((fp)->_cnt) |
4aa0a1f7 | 738 | #define STDIO_CNT_LVALUE /**/ |
16d20bd9 AD |
739 | #endif |
740 | ||
741 | /* FILE_base: | |
742 | * This macro is used to access the _base field (or equivalent) of the | |
743 | * FILE structure pointed to by its argument. This macro will always be | |
744 | * defined if USE_STDIO_BASE is defined. | |
745 | */ | |
746 | /* FILE_bufsiz: | |
747 | * This macro is used to determine the number of bytes in the I/O | |
748 | * buffer pointed to by _base field (or equivalent) of the FILE | |
749 | * structure pointed to its argument. This macro will always be defined | |
750 | * if USE_STDIO_BASE is defined. | |
a687059c | 751 | */ |
16d20bd9 AD |
752 | #ifdef USE_STDIO_BASE |
753 | #define FILE_base(fp) ((fp)->_base) | |
754 | #define FILE_bufsiz(fp) ((fp)->_cnt + (fp)->_ptr - (fp)->_base) | |
755 | #endif | |
8d063cd8 | 756 | |
a0d0e21e LW |
757 | /* HAS_STRCHR: |
758 | * This symbol is defined to indicate that the strchr()/strrchr() | |
759 | * functions are available for string searching. If not, try the | |
760 | * index()/rindex() pair. | |
761 | */ | |
762 | /* HAS_INDEX: | |
763 | * This symbol is defined to indicate that the index()/rindex() | |
764 | * functions are available for string searching. | |
765 | */ | |
766 | #define HAS_STRCHR /**/ | |
767 | /*#define HAS_INDEX /**/ | |
768 | ||
769 | /* HAS_STRCOLL: | |
770 | * This symbol, if defined, indicates that the strcoll routine is | |
771 | * available to compare strings using collating information. | |
772 | */ | |
773 | #define HAS_STRCOLL /**/ | |
774 | ||
85e6fe83 | 775 | /* USE_STRUCT_COPY: |
8d063cd8 LW |
776 | * This symbol, if defined, indicates that this C compiler knows how |
777 | * to copy structures. If undefined, you'll need to use a block copy | |
778 | * routine of some sort instead. | |
779 | */ | |
85e6fe83 | 780 | #define USE_STRUCT_COPY /**/ |
fe14fcc3 | 781 | |
a0d0e21e LW |
782 | /* HAS_STRERROR: |
783 | * This symbol, if defined, indicates that the strerror routine is | |
784 | * available to translate error numbers to strings. See the writeup | |
785 | * of Strerror() in this file before you try to define your own. | |
786 | */ | |
787 | /* HAS_SYS_ERRLIST: | |
788 | * This symbol, if defined, indicates that the sys_errlist array is | |
789 | * available to translate error numbers to strings. The extern int | |
790 | * sys_nerr gives the size of that table. | |
791 | */ | |
792 | /* Strerror: | |
793 | * This preprocessor symbol is defined as a macro if strerror() is | |
794 | * not available to translate error numbers to strings but sys_errlist[] | |
795 | * array is there. | |
796 | */ | |
797 | #define HAS_STRERROR /**/ | |
798 | #define HAS_SYS_ERRLIST /**/ | |
799 | #define Strerror(e) strerror(e) | |
800 | ||
801 | /* HAS_STRXFRM: | |
802 | * This symbol, if defined, indicates that the strxfrm() routine is | |
803 | * available to transform strings. | |
804 | */ | |
805 | #define HAS_STRXFRM /**/ | |
806 | ||
85e6fe83 | 807 | /* HAS_SYMLINK: |
a687059c LW |
808 | * This symbol, if defined, indicates that the symlink routine is available |
809 | * to create symbolic links. | |
810 | */ | |
85e6fe83 | 811 | #define HAS_SYMLINK /**/ |
a687059c | 812 | |
85e6fe83 LW |
813 | /* HAS_SYSCALL: |
814 | * This symbol, if defined, indicates that the syscall routine is | |
815 | * available to call arbitrary system calls. If undefined, that's tough. | |
a687059c | 816 | */ |
85e6fe83 | 817 | #define HAS_SYSCALL /**/ |
a687059c | 818 | |
ecfc5424 AD |
819 | /* HAS_SYSCONF: |
820 | * This symbol, if defined, indicates that sysconf() is available | |
821 | * to determine system related limits and options. | |
822 | */ | |
823 | #define HAS_SYSCONF /**/ | |
824 | ||
85e6fe83 LW |
825 | /* HAS_SYSTEM: |
826 | * This symbol, if defined, indicates that the system routine is | |
827 | * available to issue a shell command. | |
68decaef | 828 | */ |
85e6fe83 | 829 | #define HAS_SYSTEM /**/ |
68decaef | 830 | |
a0d0e21e LW |
831 | /* HAS_TCGETPGRP: |
832 | * This symbol, if defined, indicates that the tcgetpgrp routine is | |
833 | * available to get foreground process group ID. | |
834 | */ | |
835 | #define HAS_TCGETPGRP /**/ | |
836 | ||
837 | /* HAS_TCSETPGRP: | |
838 | * This symbol, if defined, indicates that the tcsetpgrp routine is | |
839 | * available to set foreground process group ID. | |
85e6fe83 | 840 | */ |
a0d0e21e | 841 | #define HAS_TCSETPGRP /**/ |
85e6fe83 | 842 | |
ecfc5424 AD |
843 | /* Time_t: |
844 | * This symbol holds the type returned by time(). It can be long, | |
845 | * or time_t on BSD sites (in which case <sys/types.h> should be | |
846 | * included). | |
847 | */ | |
848 | #define Time_t time_t /* Time type */ | |
849 | ||
85e6fe83 LW |
850 | /* HAS_TIMES: |
851 | * This symbol, if defined, indicates that the times() routine exists. | |
852 | * Note that this became obsolete on some systems (SUNOS), which now | |
853 | * use getrusage(). It may be necessary to include <sys/times.h>. | |
854 | */ | |
855 | #define HAS_TIMES /**/ | |
856 | ||
857 | /* HAS_TRUNCATE: | |
fe14fcc3 LW |
858 | * This symbol, if defined, indicates that the truncate routine is |
859 | * available to truncate files. | |
a687059c | 860 | */ |
4633a7c4 | 861 | #define HAS_TRUNCATE /**/ |
a0d0e21e LW |
862 | |
863 | /* HAS_TZNAME: | |
864 | * This symbol, if defined, indicates that the tzname[] array is | |
865 | * available to access timezone names. | |
866 | */ | |
867 | #define HAS_TZNAME /**/ | |
868 | ||
869 | /* HAS_UMASK: | |
870 | * This symbol, if defined, indicates that the umask routine is | |
871 | * available to set and get the value of the file creation mask. | |
872 | */ | |
873 | #define HAS_UMASK /**/ | |
a687059c | 874 | |
a0d0e21e LW |
875 | /* HAS_VFORK: |
876 | * This symbol, if defined, indicates that vfork() exists. | |
8d063cd8 | 877 | */ |
a0d0e21e | 878 | /*#define HAS_VFORK /**/ |
a687059c | 879 | |
ecfc5424 AD |
880 | /* Signal_t: |
881 | * This symbol's value is either "void" or "int", corresponding to the | |
882 | * appropriate return type of a signal handler. Thus, you can declare | |
883 | * a signal handler using "Signal_t (*handler)()", and define the | |
884 | * handler using "Signal_t handler(sig)". | |
885 | */ | |
ecfc5424 | 886 | #define Signal_t void /* Signal handler's return type */ |
a687059c | 887 | |
85e6fe83 | 888 | /* HASVOLATILE: |
fe14fcc3 LW |
889 | * This symbol, if defined, indicates that this C compiler knows about |
890 | * the volatile declaration. | |
891 | */ | |
4633a7c4 | 892 | #define HASVOLATILE /**/ |
85e6fe83 LW |
893 | #ifndef HASVOLATILE |
894 | #define volatile | |
895 | #endif | |
fe14fcc3 | 896 | |
85e6fe83 | 897 | /* HAS_VPRINTF: |
a687059c LW |
898 | * This symbol, if defined, indicates that the vprintf routine is available |
899 | * to printf with a pointer to an argument list. If unavailable, you | |
900 | * may need to write your own, probably in terms of _doprnt(). | |
901 | */ | |
85e6fe83 | 902 | /* USE_CHAR_VSPRINTF: |
a687059c LW |
903 | * This symbol is defined if this system has vsprintf() returning type |
904 | * (char*). The trend seems to be to declare it as "int vsprintf()". It | |
905 | * is up to the package author to declare vsprintf correctly based on the | |
906 | * symbol. | |
907 | */ | |
85e6fe83 | 908 | #define HAS_VPRINTF /**/ |
a0d0e21e | 909 | /*#define USE_CHAR_VSPRINTF /**/ |
a687059c | 910 | |
85e6fe83 | 911 | /* HAS_WAIT4: |
fe14fcc3 LW |
912 | * This symbol, if defined, indicates that wait4() exists. |
913 | */ | |
a0d0e21e | 914 | /*#define HAS_WAIT4 /**/ |
fe14fcc3 | 915 | |
85e6fe83 LW |
916 | /* HAS_WAITPID: |
917 | * This symbol, if defined, indicates that the waitpid routine is | |
918 | * available to wait for child process. | |
fe14fcc3 | 919 | */ |
85e6fe83 | 920 | #define HAS_WAITPID /**/ |
fe14fcc3 | 921 | |
a0d0e21e LW |
922 | /* HAS_WCSTOMBS: |
923 | * This symbol, if defined, indicates that the wcstombs routine is | |
924 | * available to convert wide character strings to multibyte strings. | |
925 | */ | |
4633a7c4 | 926 | #define HAS_WCSTOMBS /**/ |
a0d0e21e LW |
927 | |
928 | /* HAS_WCTOMB: | |
929 | * This symbol, if defined, indicates that the wctomb routine is available | |
930 | * to covert a wide character to a multibyte. | |
931 | */ | |
4633a7c4 | 932 | #define HAS_WCTOMB /**/ |
a0d0e21e LW |
933 | |
934 | /* Fpos_t: | |
935 | * This symbol holds the type used to declare file positions in libc. | |
936 | * It can be fpos_t, long, uint, etc... It may be necessary to include | |
937 | * <sys/types.h> to get any typedef'ed information. | |
938 | */ | |
939 | #define Fpos_t fpos_t /* File position type */ | |
940 | ||
941 | /* Gid_t: | |
942 | * This symbol holds the return type of getgid() and the type of | |
943 | * argument to setrgid() and related functions. Typically, | |
944 | * it is the type of group ids in the kernel. It can be int, ushort, | |
945 | * uid_t, etc... It may be necessary to include <sys/types.h> to get | |
946 | * any typedef'ed information. | |
a687059c | 947 | */ |
a0d0e21e | 948 | #define Gid_t gid_t /* Type for getgid(), etc... */ |
2b317908 | 949 | |
ecfc5424 AD |
950 | /* Groups_t: |
951 | * This symbol holds the type used for the second argument to | |
952 | * getgroups(). Usually, this is the same of gidtype, but | |
953 | * sometimes it isn't. It can be int, ushort, uid_t, etc... | |
954 | * It may be necessary to include <sys/types.h> to get any | |
955 | * typedef'ed information. This is only required if you have | |
956 | * getgroups(). | |
957 | */ | |
958 | #ifdef HAS_GETGROUPS | |
959 | #define Groups_t gid_t /* Type for 2nd arg to getgroups() */ | |
960 | #endif | |
961 | ||
232e078e AD |
962 | /* DB_Prefix_t: |
963 | * This symbol contains the type of the prefix structure element | |
964 | * in the <db.h> header file. In older versions of DB, it was | |
965 | * int, while in newer ones it is u_int32_t. | |
966 | */ | |
967 | /* DB_Hash_t: | |
968 | * This symbol contains the type of the prefix structure element | |
969 | * in the <db.h> header file. In older versions of DB, it was | |
970 | * int, while in newer ones it is size_t. | |
971 | */ | |
972 | #define DB_Hash_t int /**/ | |
973 | #define DB_Prefix_t int /**/ | |
974 | ||
85e6fe83 LW |
975 | /* I_DIRENT: |
976 | * This symbol, if defined, indicates to the C program that it should | |
977 | * include <dirent.h>. Using this symbol also triggers the definition | |
978 | * of the Direntry_t define which ends up being 'struct dirent' or | |
979 | * 'struct direct' depending on the availability of <dirent.h>. | |
980 | */ | |
981 | /* DIRNAMLEN: | |
982 | * This symbol, if defined, indicates to the C program that the length | |
983 | * of directory entry names is provided by a d_namlen field. Otherwise | |
984 | * you need to do strlen() on the d_name field. | |
2b317908 | 985 | */ |
a0d0e21e LW |
986 | /* Direntry_t: |
987 | * This symbol is set to 'struct direct' or 'struct dirent' depending on | |
988 | * whether dirent is available or not. You should use this pseudo type to | |
989 | * portably declare your directory entries. | |
990 | */ | |
85e6fe83 LW |
991 | #define I_DIRENT /**/ |
992 | /*#define DIRNAMLEN /**/ | |
85e6fe83 | 993 | #define Direntry_t struct dirent |
a0d0e21e LW |
994 | |
995 | /* I_DLFCN: | |
996 | * This symbol, if defined, indicates that <dlfcn.h> exists and should | |
997 | * be included. | |
998 | */ | |
4633a7c4 | 999 | #define I_DLFCN /**/ |
a687059c | 1000 | |
85e6fe83 | 1001 | /* I_FCNTL: |
fe14fcc3 | 1002 | * This manifest constant tells the C program to include <fcntl.h>. |
a687059c | 1003 | */ |
a0d0e21e | 1004 | #define I_FCNTL /**/ |
a687059c | 1005 | |
a0d0e21e LW |
1006 | /* I_FLOAT: |
1007 | * This symbol, if defined, indicates to the C program that it should | |
1008 | * include <float.h> to get definition of symbols like DBL_MAX or | |
1009 | * DBL_MIN, i.e. machine dependent floating point values. | |
a687059c | 1010 | */ |
a0d0e21e | 1011 | #define I_FLOAT /**/ |
a687059c | 1012 | |
85e6fe83 | 1013 | /* I_GRP: |
a687059c | 1014 | * This symbol, if defined, indicates to the C program that it should |
85e6fe83 | 1015 | * include <grp.h>. |
a687059c | 1016 | */ |
85e6fe83 | 1017 | #define I_GRP /**/ |
a687059c | 1018 | |
a0d0e21e LW |
1019 | /* I_LIMITS: |
1020 | * This symbol, if defined, indicates to the C program that it should | |
1021 | * include <limits.h> to get definition of symbols like WORD_BIT or | |
1022 | * LONG_MAX, i.e. machine dependant limitations. | |
1023 | */ | |
1024 | #define I_LIMITS /**/ | |
1025 | ||
1026 | /* I_MATH: | |
1027 | * This symbol, if defined, indicates to the C program that it should | |
1028 | * include <math.h>. | |
1029 | */ | |
1030 | #define I_MATH /**/ | |
1031 | ||
1032 | /* I_MEMORY: | |
1033 | * This symbol, if defined, indicates to the C program that it should | |
1034 | * include <memory.h>. | |
1035 | */ | |
1036 | /*#define I_MEMORY /**/ | |
1037 | ||
232e078e | 1038 | /* I_NDBM: |
16d20bd9 | 1039 | * This symbol, if defined, indicates that <ndbm.h> exists and should |
232e078e AD |
1040 | * be included. |
1041 | */ | |
1042 | #define I_NDBM /**/ | |
1043 | ||
ecfc5424 AD |
1044 | /* I_NET_ERRNO: |
1045 | * This symbol, if defined, indicates that <net/errno.h> exists and | |
1046 | * should be included. | |
fe14fcc3 | 1047 | */ |
4633a7c4 | 1048 | /*#define I_NET_ERRNO /**/ |
fe14fcc3 | 1049 | |
85e6fe83 | 1050 | /* I_NETINET_IN: |
a687059c | 1051 | * This symbol, if defined, indicates to the C program that it should |
85e6fe83 | 1052 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
a687059c | 1053 | */ |
85e6fe83 | 1054 | #define I_NETINET_IN /**/ |
85e6fe83 | 1055 | |
a0d0e21e LW |
1056 | /* I_PWD: |
1057 | * This symbol, if defined, indicates to the C program that it should | |
1058 | * include <pwd.h>. | |
1059 | */ | |
1060 | /* PWQUOTA: | |
1061 | * This symbol, if defined, indicates to the C program that struct passwd | |
1062 | * contains pw_quota. | |
1063 | */ | |
1064 | /* PWAGE: | |
1065 | * This symbol, if defined, indicates to the C program that struct passwd | |
1066 | * contains pw_age. | |
1067 | */ | |
1068 | /* PWCHANGE: | |
1069 | * This symbol, if defined, indicates to the C program that struct passwd | |
1070 | * contains pw_change. | |
fe14fcc3 | 1071 | */ |
a0d0e21e LW |
1072 | /* PWCLASS: |
1073 | * This symbol, if defined, indicates to the C program that struct passwd | |
1074 | * contains pw_class. | |
1075 | */ | |
1076 | /* PWEXPIRE: | |
1077 | * This symbol, if defined, indicates to the C program that struct passwd | |
1078 | * contains pw_expire. | |
1079 | */ | |
1080 | /* PWCOMMENT: | |
1081 | * This symbol, if defined, indicates to the C program that struct passwd | |
1082 | * contains pw_comment. | |
1083 | */ | |
1084 | #define I_PWD /**/ | |
1085 | /*#define PWQUOTA /**/ | |
1086 | #define PWAGE /**/ | |
1087 | /*#define PWCHANGE /**/ | |
1088 | /*#define PWCLASS /**/ | |
1089 | /*#define PWEXPIRE /**/ | |
1090 | #define PWCOMMENT /**/ | |
85e6fe83 LW |
1091 | |
1092 | /* I_STDDEF: | |
1093 | * This symbol, if defined, indicates that <stddef.h> exists and should | |
1094 | * be included. | |
fe14fcc3 | 1095 | */ |
85e6fe83 LW |
1096 | #define I_STDDEF /**/ |
1097 | ||
a0d0e21e LW |
1098 | /* I_STDLIB: |
1099 | * This symbol, if defined, indicates that <stdlib.h> exists and should | |
1100 | * be included. | |
1101 | */ | |
1102 | #define I_STDLIB /**/ | |
1103 | ||
85e6fe83 LW |
1104 | /* I_STRING: |
1105 | * This symbol, if defined, indicates to the C program that it should | |
1106 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). | |
fe14fcc3 | 1107 | */ |
85e6fe83 LW |
1108 | #define I_STRING /**/ |
1109 | ||
1110 | /* I_SYS_DIR: | |
1111 | * This symbol, if defined, indicates to the C program that it should | |
1112 | * include <sys/dir.h>. | |
fe14fcc3 | 1113 | */ |
4633a7c4 | 1114 | /*#define I_SYS_DIR /**/ |
a687059c | 1115 | |
85e6fe83 LW |
1116 | /* I_SYS_FILE: |
1117 | * This symbol, if defined, indicates to the C program that it should | |
1118 | * include <sys/file.h> to get definition of R_OK and friends. | |
a687059c | 1119 | */ |
a0d0e21e | 1120 | /*#define I_SYS_FILE /**/ |
a687059c | 1121 | |
85e6fe83 LW |
1122 | /* I_SYS_IOCTL: |
1123 | * This symbol, if defined, indicates that <sys/ioctl.h> exists and should | |
1124 | * be included. Otherwise, include <sgtty.h> or <termio.h>. | |
a687059c | 1125 | */ |
85e6fe83 | 1126 | #define I_SYS_IOCTL /**/ |
a687059c | 1127 | |
85e6fe83 LW |
1128 | /* I_SYS_NDIR: |
1129 | * This symbol, if defined, indicates to the C program that it should | |
1130 | * include <sys/ndir.h>. | |
fe14fcc3 | 1131 | */ |
85e6fe83 LW |
1132 | /*#define I_SYS_NDIR /**/ |
1133 | ||
a0d0e21e LW |
1134 | /* I_SYS_PARAM: |
1135 | * This symbol, if defined, indicates to the C program that it should | |
1136 | * include <sys/param.h>. | |
1137 | */ | |
1138 | #define I_SYS_PARAM /**/ | |
1139 | ||
85e6fe83 LW |
1140 | /* I_SYS_SELECT: |
1141 | * This symbol, if defined, indicates to the C program that it should | |
1142 | * include <sys/select.h> in order to get definition of struct timeval. | |
fe14fcc3 | 1143 | */ |
4633a7c4 | 1144 | #define I_SYS_SELECT /**/ |
85e6fe83 | 1145 | |
a0d0e21e | 1146 | /* I_SYS_TIMES: |
85e6fe83 | 1147 | * This symbol, if defined, indicates to the C program that it should |
a0d0e21e | 1148 | * include <sys/times.h>. |
fe14fcc3 | 1149 | */ |
a0d0e21e LW |
1150 | #define I_SYS_TIMES /**/ |
1151 | ||
fed7345c AD |
1152 | /* I_SYS_TYPES: |
1153 | * This symbol, if defined, indicates to the C program that it should | |
1154 | * include <sys/types.h>. | |
1155 | */ | |
1156 | #define I_SYS_TYPES /**/ | |
1157 | ||
fbfd4aab | 1158 | /* I_SYS_UN: |
1159 | * This symbol, if defined, indicates to the C program that it should | |
1160 | * include <sys/un.h> to get UNIX domain socket definitions. | |
1161 | */ | |
1162 | #define I_SYS_UN /**/ | |
1163 | ||
a0d0e21e LW |
1164 | /* I_TERMIO: |
1165 | * This symbol, if defined, indicates that the program should include | |
1166 | * <termio.h> rather than <sgtty.h>. There are also differences in | |
1167 | * the ioctl() calls that depend on the value of this symbol. | |
1168 | */ | |
1169 | /* I_TERMIOS: | |
1170 | * This symbol, if defined, indicates that the program should include | |
1171 | * the POSIX termios.h rather than sgtty.h or termio.h. | |
1172 | * There are also differences in the ioctl() calls that depend on the | |
1173 | * value of this symbol. | |
1174 | */ | |
1175 | /* I_SGTTY: | |
1176 | * This symbol, if defined, indicates that the program should include | |
1177 | * <sgtty.h> rather than <termio.h>. There are also differences in | |
1178 | * the ioctl() calls that depend on the value of this symbol. | |
1179 | */ | |
1180 | /*#define I_TERMIO /**/ | |
1181 | #define I_TERMIOS /**/ | |
1182 | /*#define I_SGTTY /**/ | |
1183 | ||
1184 | /* I_TIME: | |
1185 | * This symbol, if defined, indicates to the C program that it should | |
1186 | * include <time.h>. | |
1187 | */ | |
1188 | /* I_SYS_TIME: | |
1189 | * This symbol, if defined, indicates to the C program that it should | |
1190 | * include <sys/time.h>. | |
1191 | */ | |
1192 | /* I_SYS_TIME_KERNEL: | |
fe14fcc3 | 1193 | * This symbol, if defined, indicates to the C program that it should |
85e6fe83 | 1194 | * include <sys/time.h> with KERNEL defined. |
fe14fcc3 | 1195 | */ |
85e6fe83 LW |
1196 | /*#define I_TIME /**/ |
1197 | #define I_SYS_TIME /**/ | |
1198 | /*#define I_SYS_TIME_KERNEL /**/ | |
fe14fcc3 | 1199 | |
a0d0e21e LW |
1200 | /* I_UNISTD: |
1201 | * This symbol, if defined, indicates to the C program that it should | |
1202 | * include <unistd.h>. | |
1203 | */ | |
1204 | #define I_UNISTD /**/ | |
1205 | ||
85e6fe83 | 1206 | /* I_UTIME: |
a687059c | 1207 | * This symbol, if defined, indicates to the C program that it should |
85e6fe83 | 1208 | * include <utime.h>. |
a687059c | 1209 | */ |
85e6fe83 | 1210 | #define I_UTIME /**/ |
a687059c | 1211 | |
a0d0e21e LW |
1212 | /* I_VFORK: |
1213 | * This symbol, if defined, indicates to the C program that it should | |
1214 | * include vfork.h. | |
1215 | */ | |
1216 | /*#define I_VFORK /**/ | |
fe14fcc3 | 1217 | |
85e6fe83 LW |
1218 | /* Off_t: |
1219 | * This symbol holds the type used to declare offsets in the kernel. | |
1220 | * It can be int, long, off_t, etc... It may be necessary to include | |
1221 | * <sys/types.h> to get any typedef'ed information. | |
fe14fcc3 | 1222 | */ |
85e6fe83 LW |
1223 | #define Off_t off_t /* <offset> type */ |
1224 | ||
ecfc5424 AD |
1225 | /* Mode_t: |
1226 | * This symbol holds the type used to declare file modes | |
1227 | * for systems calls. It is usually mode_t, but may be | |
1228 | * int or unsigned short. It may be necessary to include <sys/types.h> | |
1229 | * to get any typedef'ed information. | |
1230 | */ | |
1231 | #define Mode_t mode_t /* file mode parameter for system calls */ | |
1232 | ||
a0d0e21e LW |
1233 | /* CAN_PROTOTYPE: |
1234 | * If defined, this macro indicates that the C compiler can handle | |
1235 | * function prototypes. | |
1236 | */ | |
1237 | /* _: | |
1238 | * This macro is used to declare function parameters for folks who want | |
1239 | * to make declarations with prototypes using a different style than | |
1240 | * the above macros. Use double parentheses. For example: | |
1241 | * | |
1242 | * int main _((int argc, char *argv[])); | |
1243 | */ | |
4633a7c4 | 1244 | #define CAN_PROTOTYPE /**/ |
a0d0e21e LW |
1245 | #ifdef CAN_PROTOTYPE |
1246 | #define _(args) args | |
1247 | #else | |
1248 | #define _(args) () | |
1249 | #endif | |
85e6fe83 LW |
1250 | |
1251 | /* RANDBITS: | |
1252 | * This symbol contains the number of bits of random number the rand() | |
1253 | * function produces. Usual values are 15, 16, and 31. | |
fe14fcc3 | 1254 | */ |
a0d0e21e | 1255 | #define RANDBITS 15 /**/ |
85e6fe83 LW |
1256 | |
1257 | /* SCRIPTDIR: | |
1258 | * This symbol holds the name of the directory in which the user wants | |
1259 | * to put publicly executable scripts for the package in question. It | |
1260 | * is often a directory that is mounted across diverse architectures. | |
1261 | * Programs must be prepared to deal with ~name expansion. | |
fe14fcc3 | 1262 | */ |
fbfd4aab | 1263 | #define SCRIPTDIR "/usr/local/script" /**/ |
85e6fe83 | 1264 | |
a0d0e21e LW |
1265 | /* Select_fd_set_t: |
1266 | * This symbol holds the type used for the 2nd, 3rd, and 4th | |
1267 | * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET | |
1268 | * is defined, and 'int *' otherwise. This is only useful if you | |
1269 | * have select(), of course. | |
1270 | */ | |
1271 | #define Select_fd_set_t fd_set * /**/ | |
1272 | ||
a0d0e21e LW |
1273 | /* Size_t: |
1274 | * This symbol holds the type used to declare length parameters | |
1275 | * for string functions. It is usually size_t, but may be | |
1276 | * unsigned long, int, etc. It may be necessary to include | |
1277 | * <sys/types.h> to get any typedef'ed information. | |
1278 | */ | |
1279 | #define Size_t size_t /* length paramater for string functions */ | |
1280 | ||
ecfc5424 AD |
1281 | /* SSize_t: |
1282 | * This symbol holds the type used by functions that return | |
1283 | * a count of bytes or an error condition. It must be a signed type. | |
1284 | * It is usually ssize_t, but may be long or int, etc. | |
1285 | * It may be necessary to include <sys/types.h> or <unistd.h> | |
1286 | * to get any typedef'ed information. | |
1287 | * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t). | |
1288 | */ | |
4633a7c4 | 1289 | #define SSize_t ssize_t /* signed count of bytes */ |
ecfc5424 | 1290 | |
85e6fe83 LW |
1291 | /* STDCHAR: |
1292 | * This symbol is defined to be the type of char used in stdio.h. | |
1293 | * It has the values "unsigned char" or "char". | |
fe14fcc3 | 1294 | */ |
85e6fe83 LW |
1295 | #define STDCHAR unsigned char /**/ |
1296 | ||
1297 | /* Uid_t: | |
1298 | * This symbol holds the type used to declare user ids in the kernel. | |
1299 | * It can be int, ushort, uid_t, etc... It may be necessary to include | |
1300 | * <sys/types.h> to get any typedef'ed information. | |
fe14fcc3 | 1301 | */ |
85e6fe83 | 1302 | #define Uid_t uid_t /* UID type */ |
fe14fcc3 | 1303 | |
85e6fe83 LW |
1304 | /* VMS: |
1305 | * This symbol, if defined, indicates that the program is running under | |
1306 | * VMS. It is currently only set in conjunction with the EUNICE symbol. | |
2b317908 | 1307 | */ |
85e6fe83 | 1308 | /*#define VMS /**/ |
68decaef | 1309 | |
a0d0e21e LW |
1310 | /* LOC_SED: |
1311 | * This symbol holds the complete pathname to the sed program. | |
85e6fe83 | 1312 | */ |
a0d0e21e LW |
1313 | #define LOC_SED "/bin/sed" /**/ |
1314 | ||
4633a7c4 LW |
1315 | /* ARCHLIB_EXP: |
1316 | * This symbol contains the ~name expanded version of ARCHLIB, to be used | |
1317 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1318 | */ | |
fbfd4aab | 1319 | #define ARCHLIB_EXP "/usr/local/lib/perl5/i86pc-solaris/5.002" /**/ |
4633a7c4 LW |
1320 | |
1321 | /* BYTEORDER: | |
1322 | * This symbol hold the hexadecimal constant defined in byteorder, | |
1323 | * i.e. 0x1234 or 0x4321, etc... | |
1324 | */ | |
1325 | #define BYTEORDER 0x1234 /* large digits for MSB */ | |
1326 | ||
1aef975c AD |
1327 | /* CSH: |
1328 | * This symbol, if defined, indicates that the C-shell exists. | |
1329 | * If defined, contains the full pathname of csh. | |
1330 | */ | |
1331 | #define CSH "/bin/csh" /**/ | |
1332 | ||
a0d0e21e LW |
1333 | /* DLSYM_NEEDS_UNDERSCORE: |
1334 | * This symbol, if defined, indicates that we need to prepend an | |
1335 | * underscore to the symbol name before calling dlsym(). This only | |
1336 | * makes sense if you *have* dlsym, which we will presume is the | |
1337 | * case if you're using dl_dlopen.xs. | |
85e6fe83 | 1338 | */ |
a0d0e21e LW |
1339 | /*#define DLSYM_NEEDS_UNDERSCORE /* */ |
1340 | ||
fbfd4aab | 1341 | /* SETUID_SCRIPTS_ARE_SECURE_NOW: |
1342 | * This symbol, if defined, indicates that the bug that prevents | |
1343 | * setuid scripts from being secure is not present in this kernel. | |
1344 | */ | |
1345 | /* DOSUID: | |
1346 | * This symbol, if defined, indicates that the C program should | |
1347 | * check the script that it is executing for setuid/setgid bits, and | |
1348 | * attempt to emulate setuid/setgid on systems that have disabled | |
1349 | * setuid #! scripts because the kernel can't do it securely. | |
1350 | * It is up to the package designer to make sure that this emulation | |
1351 | * is done securely. Among other things, it should do an fstat on | |
1352 | * the script it just opened to make sure it really is a setuid/setgid | |
1353 | * script, it should make sure the arguments passed correspond exactly | |
1354 | * to the argument on the #! line, and it should not trust any | |
1355 | * subprocesses to which it must pass the filename rather than the | |
1356 | * file descriptor of the script to be executed. | |
1357 | */ | |
1358 | #define SETUID_SCRIPTS_ARE_SECURE_NOW /**/ | |
1359 | /*#define DOSUID /**/ | |
1360 | ||
4633a7c4 LW |
1361 | /* Gconvert: |
1362 | * This preprocessor macro is defined to convert a floating point | |
1363 | * number to a string without a trailing decimal point. This | |
1364 | * emulates the behavior of sprintf("%g"), but is sometimes much more | |
1365 | * efficient. If gconvert() is not available, but gcvt() drops the | |
1366 | * trailing decimal point, then gcvt() is used. If all else fails, | |
1367 | * a macro using sprintf("%g") is used. Arguments for the Gconvert | |
1368 | * macro are: value, number of digits, whether trailing zeros should | |
1369 | * be retained, and the output buffer. | |
1370 | * Possible values are: | |
1371 | * d_Gconvert='gconvert((x),(n),(t),(b))' | |
1372 | * d_Gconvert='gcvt((x),(n),(b))' | |
1373 | * d_Gconvert='sprintf((b),"%.*g",(n),(x))' | |
1374 | * The last two assume trailing zeros should not be kept. | |
1375 | */ | |
1376 | #define Gconvert(x,n,t,b) gconvert((x),(n),(t),(b)) | |
1377 | ||
85e6fe83 LW |
1378 | /* USE_DYNAMIC_LOADING: |
1379 | * This symbol, if defined, indicates that dynamic loading of | |
1380 | * some sort is available. | |
1381 | */ | |
4633a7c4 LW |
1382 | #define USE_DYNAMIC_LOADING /**/ |
1383 | ||
1384 | /* I_DBM: | |
1385 | * This symbol, if defined, indicates that <dbm.h> exists and should | |
1386 | * be included. | |
1387 | */ | |
1388 | /* I_RPCSVC_DBM: | |
1389 | * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and | |
1390 | * should be included. | |
1391 | */ | |
1392 | /*#define I_DBM /**/ | |
1393 | #define I_RPCSVC_DBM /**/ | |
1394 | ||
1395 | /* I_LOCALE: | |
1396 | * This symbol, if defined, indicates to the C program that it should | |
1397 | * include <locale.h>. | |
1398 | */ | |
1399 | #define I_LOCALE /**/ | |
85e6fe83 | 1400 | |
1aef975c AD |
1401 | /* I_SYS_STAT: |
1402 | * This symbol, if defined, indicates to the C program that it should | |
1403 | * include <sys/stat.h>. | |
1404 | */ | |
1405 | #define I_SYS_STAT /**/ | |
1406 | ||
fbfd4aab | 1407 | /* I_STDARG: |
1408 | * This symbol, if defined, indicates that <stdarg.h> exists and should | |
1409 | * be included. | |
1410 | */ | |
1411 | /* I_VARARGS: | |
1412 | * This symbol, if defined, indicates to the C program that it should | |
1413 | * include <varargs.h>. | |
1414 | */ | |
1415 | #define I_STDARG /**/ | |
1416 | /*#define I_VARARGS /**/ | |
1417 | ||
4633a7c4 LW |
1418 | /* INTSIZE: |
1419 | * This symbol contains the size of an int, so that the C preprocessor | |
1420 | * can make decisions based on it. | |
1421 | */ | |
1422 | #define INTSIZE 4 /**/ | |
1423 | ||
94b6baf5 AD |
1424 | /* Free_t: |
1425 | * This variable contains the return type of free(). It is usually | |
1426 | * void, but occasionally int. | |
1427 | */ | |
85e6fe83 LW |
1428 | /* Malloc_t: |
1429 | * This symbol is the type of pointer returned by malloc and realloc. | |
1430 | */ | |
4633a7c4 | 1431 | #define Malloc_t void * /**/ |
94b6baf5 | 1432 | #define Free_t void /**/ |
85e6fe83 LW |
1433 | |
1434 | /* MYMALLOC: | |
1435 | * This symbol, if defined, indicates that we're using our own malloc. | |
1436 | */ | |
1437 | #define MYMALLOC /**/ | |
1438 | ||
fbfd4aab | 1439 | /* VAL_O_NONBLOCK: |
1440 | * This symbol is to be used during open() or fcntl(F_SETFL) to turn on | |
1441 | * non-blocking I/O for the file descriptor. Note that there is no way | |
1442 | * back, i.e. you cannot turn it blocking again this way. If you wish to | |
1443 | * alternatively switch between blocking and non-blocking, use the | |
1444 | * ioctl(FIOSNBIO) call instead, but that is not supported by all devices. | |
1445 | */ | |
1446 | /* VAL_EAGAIN: | |
1447 | * This symbol holds the errno error code set by read() when no data was | |
1448 | * present on the non-blocking file descriptor. | |
1449 | */ | |
1450 | /* RD_NODATA: | |
1451 | * This symbol holds the return code from read() when no data is present | |
1452 | * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is | |
1453 | * not defined, then you can't distinguish between no data and EOF by | |
1454 | * issuing a read(). You'll have to find another way to tell for sure! | |
1455 | */ | |
1456 | /* EOF_NONBLOCK: | |
1457 | * This symbol, if defined, indicates to the C program that a read() on | |
1458 | * a non-blocking file descriptor will return 0 on EOF, and not the value | |
1459 | * held in RD_NODATA (-1 usually, in that case!). | |
1460 | */ | |
1461 | #define VAL_O_NONBLOCK O_NONBLOCK | |
1462 | #define VAL_EAGAIN EAGAIN | |
1463 | #define RD_NODATA -1 | |
1464 | #define EOF_NONBLOCK | |
1465 | ||
4633a7c4 LW |
1466 | /* OLDARCHLIB_EXP: |
1467 | * This symbol contains the ~name expanded version of OLDARCHLIB, to be | |
1468 | * used in programs that are not prepared to deal with ~ expansion at | |
1469 | * run-time. | |
1470 | */ | |
1471 | /*#define OLDARCHLIB_EXP "" /**/ | |
1472 | ||
1473 | /* PRIVLIB_EXP: | |
1474 | * This symbol contains the ~name expanded version of PRIVLIB, to be used | |
16d20bd9 AD |
1475 | * in programs that are not prepared to deal with ~ expansion at run-time. |
1476 | */ | |
fbfd4aab | 1477 | #define PRIVLIB_EXP "/usr/local/lib/perl5" /**/ |
4633a7c4 LW |
1478 | |
1479 | /* SIG_NAME: | |
1480 | * This symbol contains a list of signal names in order of | |
1481 | * signal number. This is intended | |
1482 | * to be used as a static array initialization, like this: | |
1483 | * char *sig_name[] = { SIG_NAME }; | |
1484 | * The signals in the list are separated with commas, and each signal | |
1485 | * is surrounded by double quotes. There is no leading SIG in the signal | |
1486 | * name, i.e. SIGQUIT is known as "QUIT". | |
1487 | * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn, | |
1488 | * etc., where nn is the actual signal number (e.g. NUM37). | |
1489 | * The signal number for sig_name[i] is stored in sig_num[i]. | |
1490 | * The last element is 0 to terminate the list with a NULL. This | |
1491 | * corresponds to the 0 at the end of the sig_num list. | |
1492 | */ | |
1493 | /* SIG_NUM: | |
1494 | * This symbol contains a list of signal numbers, in the same order as the | |
1495 | * SIG_NAME list. It is suitable for static array initialization, as in: | |
1496 | * int sig_num[] = { SIG_NUM }; | |
1497 | * The signals in the list are separated with commas, and the indices | |
1498 | * within that list and the SIG_NAME list match, so it's easy to compute | |
1499 | * the signal name from a number or vice versa at the price of a small | |
1500 | * dynamic linear lookup. | |
1501 | * Duplicates are allowed, but are moved to the end of the list. | |
1502 | * The signal number corresponding to sig_name[i] is sig_number[i]. | |
1503 | * if (i < NSIG) then sig_number[i] == i. | |
1504 | * The last element is 0, corresponding to the 0 at the end of | |
1505 | * the sig_name list. | |
1506 | */ | |
1507 | #define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","ABRT","EMT","FPE","KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM","USR1","USR2","CHLD","PWR","WINCH","URG","IO","STOP","TSTP","CONT","TTIN","TTOU","VTALRM","PROF","XCPU","XFSZ","WAITING","LWP","FREEZE","THAW","RTMIN","NUM37","NUM38","NUM39","NUM40","NUM41","NUM42","RTMAX","IOT","CLD","POLL",0 /**/ | |
1508 | #define SIG_NUM 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,6,18,22,0 /**/ | |
1509 | ||
1510 | /* SITEARCH_EXP: | |
1511 | * This symbol contains the ~name expanded version of SITEARCH, to be used | |
1512 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1513 | */ | |
fbfd4aab | 1514 | #define SITEARCH_EXP "/usr/local/lib/perl5/site_perl/i86pc-solaris" /**/ |
1515 | ||
1516 | /* SITELIB_EXP: | |
1517 | * This symbol contains the ~name expanded version of SITELIB, to be used | |
1518 | * in programs that are not prepared to deal with ~ expansion at run-time. | |
1519 | */ | |
1520 | #define SITELIB_EXP "/usr/local/lib/perl5/site_perl" /**/ | |
1521 | ||
1522 | /* STARTPERL: | |
1523 | * This variable contains the string to put in front of a perl | |
1524 | * script to make sure (one hopes) that it runs with perl and not | |
1525 | * some shell. | |
1526 | */ | |
1527 | #define STARTPERL "#!/usr/local/bin/perl" /**/ | |
4633a7c4 LW |
1528 | |
1529 | /* VOIDFLAGS: | |
1530 | * This symbol indicates how much support of the void type is given by this | |
1531 | * compiler. What various bits mean: | |
1532 | * | |
1533 | * 1 = supports declaration of void | |
1534 | * 2 = supports arrays of pointers to functions returning void | |
1535 | * 4 = supports comparisons between pointers to void functions and | |
1536 | * addresses of void functions | |
1537 | * 8 = suports declaration of generic void pointers | |
1538 | * | |
1539 | * The package designer should define VOIDUSED to indicate the requirements | |
1540 | * of the package. This can be done either by #defining VOIDUSED before | |
1541 | * including config.h, or by defining defvoidused in Myinit.U. If the | |
1542 | * latter approach is taken, only those flags will be tested. If the | |
1543 | * level of void support necessary is not present, defines void to int. | |
1544 | */ | |
1545 | #ifndef VOIDUSED | |
1546 | #define VOIDUSED 15 | |
1547 | #endif | |
1548 | #define VOIDFLAGS 15 | |
1549 | #if (VOIDFLAGS & VOIDUSED) != VOIDUSED | |
1550 | #define void int /* is void to be avoided? */ | |
1551 | #define M_VOID /* Xenix strikes again */ | |
1552 | #endif | |
16d20bd9 | 1553 | |
fe14fcc3 | 1554 | #endif |