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