Annotation of src/usr.bin/less/defines.h, Revision 1.2
1.1 shadchin 1: /* defines.h. Generated by configure. */
2: /* defines.h.in. Generated from configure.ac by autoheader. */
3:
4:
5: /* Unix definition file for less. -*- C -*-
6: *
7: * This file has 3 sections:
8: * User preferences.
9: * Settings always true on Unix.
10: * Settings automatically determined by configure.
11: *
12: * * * * * * WARNING * * * * * *
13: * If you edit defines.h by hand, do "touch stamp-h" before you run make
14: * so config.status doesn't overwrite your changes.
15: */
16:
17: /* User preferences. */
18:
19: /*
20: * SECURE is 1 if you wish to disable a bunch of features in order to
21: * be safe to run by unprivileged users.
22: * SECURE_COMPILE is set by the --with-secure configure option.
23: */
24: #define SECURE SECURE_COMPILE
25:
26: /*
27: * SMALL is 1 if you wish to disable a bunch of features in order to
28: * build a smaller less binary.
29: */
30: #define SMALL 0
31:
32: /*
33: * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
34: * (This is possible only if your system supplies the system() function.)
35: */
36: #define SHELL_ESCAPE (!SECURE && !SMALL)
37:
38: /*
39: * EXAMINE is 1 if you wish to allow examining files by name from within less.
40: */
41: #define EXAMINE (!SECURE && !SMALL)
42:
43: /*
44: * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
45: * to complete filenames at prompts.
46: */
47: #define TAB_COMPLETE_FILENAME (!SECURE && !SMALL)
48:
49: /*
50: * CMD_HISTORY is 1 if you wish to allow keys to cycle through
51: * previous commands at prompts.
52: */
53: #define CMD_HISTORY (!SMALL)
54:
55: /*
56: * HILITE_SEARCH is 1 if you wish to have search targets to be
57: * displayed in standout mode.
58: */
59: #define HILITE_SEARCH 1
60:
61: /*
62: * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
63: * (This is possible only if your system supplies the system() function.)
64: * EDIT_PGM is the name of the (default) editor to be invoked.
65: */
66: #define EDITOR (!SECURE && !SMALL)
67:
68: /*
69: * TAGS is 1 if you wish to support tag files.
70: */
71: #define TAGS (!SECURE && !SMALL)
72:
73: /*
74: * USERFILE is 1 if you wish to allow a .less file to specify
75: * user-defined key bindings.
76: */
77: #define USERFILE (!SECURE && !SMALL)
78:
79: /*
80: * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
81: * This will generally work if your system provides the "popen" function
82: * and the "echo" shell command.
83: */
84: #define GLOB (!SECURE && !SMALL)
85:
86: /*
87: * PIPEC is 1 if you wish to have the "|" command
88: * which allows the user to pipe data into a shell command.
89: */
90: #define PIPEC (!SECURE && !SMALL)
91:
92: /*
93: * LOGFILE is 1 if you wish to allow the -l option (to create log files).
94: */
95: #define LOGFILE (!SECURE && !SMALL)
96:
97: /*
98: * GNU_OPTIONS is 1 if you wish to support the GNU-style command
99: * line options --help and --version.
100: */
101: #define GNU_OPTIONS (!SMALL)
102:
103: /*
104: * ONLY_RETURN is 1 if you want RETURN to be the only input which
105: * will continue past an error message.
106: * Otherwise, any key will continue past an error message.
107: */
108: #define ONLY_RETURN 0
109:
110: /*
111: * LESSKEYFILE is the filename of the default lesskey output file
112: * (in the HOME directory).
113: * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
114: * DEF_LESSKEYINFILE is the filename of the default lesskey input
115: * (in the HOME directory).
116: * LESSHISTFILE is the filename of the history file
117: * (in the HOME directory).
118: */
119: #define LESSKEYFILE ".less"
120: #define LESSKEYFILE_SYS SYSDIR "/sysless"
121: #define DEF_LESSKEYINFILE ".lesskey"
1.2 ! nicm 122: #define LESSHISTFILE "-"
1.1 shadchin 123:
124:
125: /* Settings always true on Unix. */
126:
127: /*
128: * Define MSDOS_COMPILER if compiling under Microsoft C.
129: */
130: #define MSDOS_COMPILER 0
131:
132: /*
133: * Pathname separator character.
134: */
135: #define PATHNAME_SEP "/"
136:
137: /*
138: * The value returned from tgetent on success.
139: * Some HP-UX systems return 0 on success.
140: */
141: #define TGETENT_OK 1
142:
143: /*
144: * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
145: */
146: #define HAVE_SYS_TYPES_H 1
147:
148: /*
149: * Define if you have the <sgstat.h> header file.
150: */
151: /* #undef HAVE_SGSTAT_H */
152:
153: /*
154: * HAVE_PERROR is 1 if your system has the perror() call.
155: * (Actually, if it has sys_errlist, sys_nerr and errno.)
156: */
157: #define HAVE_PERROR 1
158:
159: /*
160: * HAVE_TIME is 1 if your system has the time() call.
161: */
162: #define HAVE_TIME 1
163:
164: /*
165: * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
166: */
167: #define HAVE_SHELL 1
168:
169: /*
170: * Default shell metacharacters and meta-escape character.
171: */
172: #define DEF_METACHARS "; *?\t\n'\"()<>[]|&^`#\\$%=~"
173: #define DEF_METAESCAPE "\\"
174:
175: /*
176: * HAVE_DUP is 1 if your system has the dup() call.
177: */
178: #define HAVE_DUP 1
179:
180: /* Define to 1 if you have the memcpy() function. */
181: #define HAVE_MEMCPY 1
182:
183: /* Define to 1 if you have the strchr() function. */
184: #define HAVE_STRCHR 1
185:
186: /* Define to 1 if you have the strstr() function. */
187: #define HAVE_STRSTR 1
188:
189: /*
190: * Sizes of various buffers.
191: */
192: #define CMDBUF_SIZE 512 /* Buffer for multichar commands */
193: #define UNGOT_SIZE 100 /* Max chars to unget() */
194: #define LINEBUF_SIZE 1024 /* Max size of line in input file */
195: #define OUTBUF_SIZE 1024 /* Output buffer */
196: #define PROMPT_SIZE 200 /* Max size of prompt string */
197: #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */
198: #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */
199: #define TAGLINE_SIZE 512 /* Max size of line in tags file */
200: #define TABSTOP_MAX 32 /* Max number of custom tab stops */
201:
202: /* Settings automatically determined by configure. */
203:
204:
205: /* Define EDIT_PGM to your editor. */
206: #define EDIT_PGM "vi"
207:
208: /* Define HAVE_CONST if your compiler supports the "const" modifier. */
209: #define HAVE_CONST 1
210:
211: /* Define to 1 if you have the <ctype.h> header file. */
212: #define HAVE_CTYPE_H 1
213:
214: /* Define HAVE_ERRNO if you have the errno variable. */
215: #define HAVE_ERRNO 1
216:
217: /* Define to 1 if you have the <errno.h> header file. */
218: #define HAVE_ERRNO_H 1
219:
220: /* Define to 1 if you have the `fchmod' function. */
221: #define HAVE_FCHMOD 1
222:
223: /* Define to 1 if you have the <fcntl.h> header file. */
224: #define HAVE_FCNTL_H 1
225:
226: /* Define HAVE_FILENO if you have the fileno() macro. */
227: #define HAVE_FILENO 1
228:
229: /* Define HAVE_FLOAT if your compiler supports the "double" type. */
230: #define HAVE_FLOAT 1
231:
232: /* Define to 1 if you have the `fsync' function. */
233: #define HAVE_FSYNC 1
234:
235: /* Define to 1 if you have the <inttypes.h> header file. */
236: #define HAVE_INTTYPES_H 1
237:
238: /* Define to 1 if you have the `gen' library (-lgen). */
239: /* #undef HAVE_LIBGEN */
240:
241: /* Define to 1 if you have the `intl' library (-lintl). */
242: /* #undef HAVE_LIBINTL */
243:
244: /* Define to 1 if you have the `PW' library (-lPW). */
245: /* #undef HAVE_LIBPW */
246:
247: /* Define to 1 if you have the <limits.h> header file. */
248: #define HAVE_LIMITS_H 1
249:
250: /* Define HAVE_LOCALE if you have locale.h and setlocale. */
251: #define HAVE_LOCALE 1
252:
253: /* Define to 1 if you have the <memory.h> header file. */
254: #define HAVE_MEMORY_H 1
255:
256: /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
257: #define HAVE_OSPEED 1
258:
259: /* PCRE (Perl-compatible regular expression) library */
260: /* #undef HAVE_PCRE */
261:
262: /* Define to 1 if you have the `popen' function. */
263: #define HAVE_POPEN 1
264:
265: /* POSIX regcomp() and regex.h */
266: #define HAVE_POSIX_REGCOMP 1
267:
268: /* System V regcmp() */
269: /* #undef HAVE_REGCMP */
270:
271: /* */
272: /* #undef HAVE_REGEXEC2 */
273:
274: /* BSD re_comp() */
275: /* #undef HAVE_RE_COMP */
276:
277: /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
278: #define HAVE_SIGEMPTYSET 1
279:
280: /* Define to 1 if you have the `sigprocmask' function. */
281: #define HAVE_SIGPROCMASK 1
282:
283: /* Define to 1 if you have the `sigsetmask' function. */
284: #define HAVE_SIGSETMASK 1
285:
286: /* Define to 1 if the system has the type `sigset_t'. */
287: #define HAVE_SIGSET_T 1
288:
289: /* Define to 1 if you have the `snprintf' function. */
290: #define HAVE_SNPRINTF 1
291:
292: /* Define to 1 if you have the `stat' function. */
293: #define HAVE_STAT 1
294:
295: /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
296: #define HAVE_STAT_INO 1
297:
298: /* Define to 1 if you have the <stdint.h> header file. */
299: #define HAVE_STDINT_H 1
300:
301: /* Define to 1 if you have the <stdio.h> header file. */
302: #define HAVE_STDIO_H 1
303:
304: /* Define to 1 if you have the <stdlib.h> header file. */
305: #define HAVE_STDLIB_H 1
306:
307: /* Define HAVE_STRERROR if you have the strerror() function. */
308: #define HAVE_STRERROR 1
309:
310: /* Define to 1 if you have the <strings.h> header file. */
311: #define HAVE_STRINGS_H 1
312:
313: /* Define to 1 if you have the <string.h> header file. */
314: #define HAVE_STRING_H 1
315:
316: /* Define to 1 if you have the `system' function. */
317: #define HAVE_SYSTEM 1
318:
319: /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
320: #define HAVE_SYS_ERRLIST 1
321:
322: /* Define to 1 if you have the <sys/ioctl.h> header file. */
323: #define HAVE_SYS_IOCTL_H 1
324:
325: /* Define to 1 if you have the <sys/stat.h> header file. */
326: #define HAVE_SYS_STAT_H 1
327:
328: /* Define to 1 if you have the <sys/stream.h> header file. */
329: /* #undef HAVE_SYS_STREAM_H */
330:
331: /* Define to 1 if you have the <sys/types.h> header file. */
332: #define HAVE_SYS_TYPES_H 1
333:
334: /* Define to 1 if you have the <termcap.h> header file. */
335: #define HAVE_TERMCAP_H 1
336:
337: /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
338: #define HAVE_TERMIOS_FUNCS 1
339:
340: /* Define to 1 if you have the <termios.h> header file. */
341: #define HAVE_TERMIOS_H 1
342:
343: /* Define to 1 if you have the <termio.h> header file. */
344: /* #undef HAVE_TERMIO_H */
345:
346: /* Define to 1 if you have the <time.h> header file. */
347: #define HAVE_TIME_H 1
348:
349: /* Define HAVE_TIME_T if your system supports the "time_t" type. */
350: #define HAVE_TIME_T 1
351:
352: /* Define to 1 if you have the <unistd.h> header file. */
353: #define HAVE_UNISTD_H 1
354:
355: /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
356: #define HAVE_UPPER_LOWER 1
357:
358: /* Henry Spencer V8 regcomp() and regexp.h */
359: /* #undef HAVE_V8_REGCOMP */
360:
361: /* Define to 1 if you have the <values.h> header file. */
362: /* #undef HAVE_VALUES_H */
363:
364: /* Define HAVE_VOID if your compiler supports the "void" type. */
365: #define HAVE_VOID 1
366:
367: /* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
368: #define HAVE_WCTYPE 1
369:
370: /* Define to 1 if you have the <wctype.h> header file. */
371: #define HAVE_WCTYPE_H 1
372:
373: /* Define to 1 if you have the `_setjmp' function. */
374: #define HAVE__SETJMP 1
375:
376: /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
377: */
378: /* #undef MUST_DEFINE_ERRNO */
379:
380: /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
381: termcap.h. */
382: /* #undef MUST_DEFINE_OSPEED */
383:
384: /* pattern matching is supported, but without metacharacters. */
385: /* #undef NO_REGEX */
386:
387: /* Define to the address where bug reports for this package should be sent. */
388: #define PACKAGE_BUGREPORT ""
389:
390: /* Define to the full name of this package. */
391: #define PACKAGE_NAME "less"
392:
393: /* Define to the full name and version of this package. */
394: #define PACKAGE_STRING "less 1"
395:
396: /* Define to the one symbol short name of this package. */
397: #define PACKAGE_TARNAME "less"
398:
399: /* Define to the home page for this package. */
400: #define PACKAGE_URL ""
401:
402: /* Define to the version of this package. */
403: #define PACKAGE_VERSION "1"
404:
405: /* Define as the return type of signal handlers (`int' or `void'). */
406: #define RETSIGTYPE void
407:
408: /* Define SECURE_COMPILE=1 to build a secure version of less. */
409: #define SECURE_COMPILE 0
410:
411: /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
412: /* #undef STAT_MACROS_BROKEN */
413:
414: /* Define to 1 if you have the ANSI C header files. */
415: #define STDC_HEADERS 1
416:
417: /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
418: #define TIME_WITH_SYS_TIME 1
419:
420: /* Number of bits in a file offset, on hosts where this is settable. */
421: /* #undef _FILE_OFFSET_BITS */
422:
423: /* Define for large files, on AIX-style hosts. */
424: /* #undef _LARGE_FILES */
425:
426: /* Define to empty if `const' does not conform to ANSI C. */
427: /* #undef const */
428:
429: /* Define to `long int' if <sys/types.h> does not define. */
430: /* #undef off_t */
431:
432: /* Define to `unsigned int' if <sys/types.h> does not define. */
433: /* #undef size_t */