xref: /freebsd/usr.bin/less/defines.h (revision dafba19e42e78cd3d7c9264ece49ddd3d7d70da5)
1 /* defines.h.  Generated from defines.h.in 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  * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
28  * (This is possible only if your system supplies the system() function.)
29  */
30 #define SHELL_ESCAPE    (!SECURE)
31 
32 /*
33  * EXAMINE is 1 if you wish to allow examining files by name from within less.
34  */
35 #define EXAMINE         (!SECURE)
36 
37 /*
38  * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
39  * to complete filenames at prompts.
40  */
41 #define TAB_COMPLETE_FILENAME (!SECURE)
42 
43 /*
44  * CMD_HISTORY is 1 if you wish to allow keys to cycle through
45  * previous commands at prompts.
46  */
47 #define CMD_HISTORY     1
48 
49 /*
50  * HILITE_SEARCH is 1 if you wish to have search targets to be
51  * displayed in standout mode.
52  */
53 #define HILITE_SEARCH   1
54 
55 /*
56  * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
57  * (This is possible only if your system supplies the system() function.)
58  * EDIT_PGM is the name of the (default) editor to be invoked.
59  */
60 #define EDITOR          (!SECURE)
61 
62 /*
63  * TAGS is 1 if you wish to support tag files.
64  */
65 #define TAGS            (!SECURE)
66 
67 /*
68  * USERFILE is 1 if you wish to allow a .lesskey or .less file to specify
69  * user-defined key bindings.
70  */
71 #define USERFILE        (!SECURE)
72 
73 /*
74  * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
75  * This will generally work if your system provides the "popen" function
76  * and the "echo" shell command.
77  */
78 #define GLOB            (!SECURE)
79 
80 /*
81  * PIPEC is 1 if you wish to have the "|" command
82  * which allows the user to pipe data into a shell command.
83  */
84 #define PIPEC           (!SECURE && HAVE_POPEN)
85 
86 /*
87  * LOGFILE is 1 if you wish to allow the -o option (to create log files).
88  */
89 #define LOGFILE         (!SECURE)
90 
91 /*
92  * OSC8_LINK is 1 if you wish to allow the ^O^O and related commands
93  * (to open OSC8 hyperlinks).
94  */
95 #define OSC8_LINK       1
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     1
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 /* FreeBSD */
120 #define	SYSDIR			"/etc"
121 
122 #define LESSKEYFILE             ".less"
123 #define LESSKEYFILE_SYS         SYSDIR "/sysless"
124 #define DEF_LESSKEYINFILE       ".lesskey"
125 #define LESSKEYINFILE_SYS       SYSDIR "/syslesskey"
126 #define LESSHISTFILE            ".lesshst"
127 
128 /* Autodetect mingw */
129 #if defined(__MINGW32__)
130 /*
131  * Define MSDOS_COMPILER if compiling under Microsoft C.
132  */
133 #define MSDOS_COMPILER  WIN32C
134 
135 /*
136  * Pathname separator character.
137  */
138 #define PATHNAME_SEP    "\\"
139 #else
140 /*
141  * Define MSDOS_COMPILER if compiling under Microsoft C.
142  */
143 #define MSDOS_COMPILER  0
144 
145 /*
146  * Pathname separator character.
147  */
148 #define PATHNAME_SEP    "/"
149 #endif
150 
151 /* Settings always true on Unix.  */
152 
153 /*
154  * The value returned from tgetent on success.
155  * Some HP-UX systems return 0 on success.
156  */
157 #define TGETENT_OK  1
158 
159 /*
160  * HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes.
161  */
162 #define HAVE_ANSI_PROTOS 1
163 
164 /*
165  * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
166  */
167 #define HAVE_SYS_TYPES_H 1
168 
169 /*
170  * Define if you have the <sgstat.h> header file.
171  */
172 /* #undef HAVE_SGSTAT_H */
173 
174 /*
175  * HAVE_PERROR is 1 if your system has the perror() call.
176  * (Actually, if it has sys_errlist, sys_nerr and errno.)
177  */
178 #define HAVE_PERROR     1
179 
180 /*
181  * HAVE_TIME is 1 if your system has the time() call.
182  */
183 #define HAVE_TIME       1
184 
185 /*
186  * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
187  */
188 #define HAVE_SHELL      1
189 
190 /*
191  * Default shell metacharacters and meta-escape character.
192  */
193 #define DEF_METACHARS   "; *?\t\n'\"()<>[]|&^`#\\$%=~{},"
194 #define DEF_METAESCAPE  "\\"
195 
196 /*
197  * HAVE_DUP is 1 if your system has the dup() call.
198  */
199 #define HAVE_DUP        1
200 
201 /* Define to 1 if you have the memcpy() function. */
202 #define HAVE_MEMCPY 1
203 
204 /* Define to 1 if you have the strchr() function. */
205 #define HAVE_STRCHR 1
206 
207 /* Define to 1 if you have the strstr() function. */
208 #define HAVE_STRSTR 1
209 
210 /* Define to 1 to support reading lesskey source files (not just binary). */
211 #define HAVE_LESSKEYSRC 1
212 
213 /*
214  * Sizes of various buffers.
215  */
216 #if 0 /* old sizes for small memory machines */
217 #define CMDBUF_SIZE     512     /* Buffer for multichar commands */
218 #define UNGOT_SIZE      100     /* Max chars to unget() */
219 #define LINEBUF_SIZE    1024    /* Max size of line in input file */
220 #define OUTBUF_SIZE     1024    /* Output buffer */
221 #define PROMPT_SIZE     200     /* Max size of prompt string */
222 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
223 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
224 #define TAGLINE_SIZE    512     /* Max size of line in tags file */
225 #define TABSTOP_MAX     32      /* Max number of custom tab stops */
226 #define LINENUM_POOL    200     /* Size of line number pool */
227 #else /* more reasonable sizes for modern machines */
228 #define CMDBUF_SIZE     2048    /* Buffer for multichar commands */
229 #define UNGOT_SIZE      200     /* Max chars to unget() */
230 #define LINEBUF_SIZE    1024    /* Initial max size of line in input file */
231 #define OUTBUF_SIZE     1024    /* Output buffer */
232 #define PROMPT_SIZE     2048    /* Max size of prompt string */
233 #define TERMBUF_SIZE    2048    /* Termcap buffer for tgetent */
234 #define TERMSBUF_SIZE   1024    /* Buffer to hold termcap strings */
235 #define TAGLINE_SIZE    1024    /* Max size of line in tags file */
236 #define TABSTOP_MAX     128     /* Max number of custom tab stops */
237 #define LINENUM_POOL    1024    /* Size of line number pool */
238 #endif
239 
240 /* Define as the return type of signal handlers (int or void).  */
241 #define RETSIGTYPE void
242 
243 /* Settings automatically determined by configure.  */
244 
245 
246 /* Define EDIT_PGM to your editor. */
247 #define EDIT_PGM "vi"
248 
249 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
250 #define HAVE_CONST 1
251 
252 /* Define to 1 if you have the <ctype.h> header file. */
253 #define HAVE_CTYPE_H 1
254 
255 /* Define HAVE_ERRNO if you have the errno variable. */
256 #define HAVE_ERRNO 1
257 
258 /* Define to 1 if you have the <errno.h> header file. */
259 #define HAVE_ERRNO_H 1
260 
261 /* Define to 1 if you have the 'fchmod' function. */
262 #define HAVE_FCHMOD 1
263 
264 /* Define to 1 if you have the <fcntl.h> header file. */
265 #define HAVE_FCNTL_H 1
266 
267 /* Define HAVE_FILENO if you have the fileno() macro. */
268 #define HAVE_FILENO 1
269 
270 /* Define to 1 if you have the 'fsync' function. */
271 #define HAVE_FSYNC 1
272 
273 /* GNU regex library */
274 /* #undef HAVE_GNU_REGEX */
275 
276 /* Define to 1 if you have the <inttypes.h> header file. */
277 #define HAVE_INTTYPES_H 1
278 
279 /* Define to 1 if you have the <limits.h> header file. */
280 #define HAVE_LIMITS_H 1
281 
282 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
283 #define HAVE_LOCALE 1
284 
285 /* Define to 1 if you have the 'nanosleep' function. */
286 #define HAVE_NANOSLEEP 1
287 
288 /* Define to 1 if you have the <ncursesw/termcap.h> header file. */
289 /* #undef HAVE_NCURSESW_TERMCAP_H */
290 
291 /* Define to 1 if you have the <ncurses/termcap.h> header file. */
292 /* #undef HAVE_NCURSES_TERMCAP_H */
293 
294 /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
295 #define HAVE_OSPEED 1
296 
297 /* PCRE (Perl-compatible regular expression) library */
298 /* #undef HAVE_PCRE */
299 
300 /* PCRE2 (Perl-compatible regular expression) library */
301 /* #undef HAVE_PCRE2 */
302 
303 /* Define to 1 if you have the 'poll' function. */
304 #define HAVE_POLL 1
305 
306 /* Define to 1 if you have the 'popen' function. */
307 #define HAVE_POPEN 1
308 
309 /* POSIX regcomp() and regex.h */
310 #define HAVE_POSIX_REGCOMP 1
311 
312 /* Define to 1 if you have the 'realpath' function. */
313 #define HAVE_REALPATH 1
314 
315 /* System V regcmp() */
316 /* #undef HAVE_REGCMP */
317 
318 /* */
319 /* #undef HAVE_REGEXEC2 */
320 
321 /* BSD re_comp() */
322 /* #undef HAVE_RE_COMP */
323 
324 /* Define HAVE_SETTABLE_ERRNO if the errno variable can be assigned to. */
325 #define HAVE_SETTABLE_ERRNO 1
326 
327 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
328 #define HAVE_SIGEMPTYSET 1
329 
330 /* Define to 1 if you have the 'sigprocmask' function. */
331 #define HAVE_SIGPROCMASK 1
332 
333 /* Define HAVE_SIGSETJMP if you have sigsetjmp and siglongjmp. */
334 #define HAVE_SIGSETJMP 1
335 
336 /* Define to 1 if you have the 'sigsetmask' function. */
337 #define HAVE_SIGSETMASK 1
338 
339 /* Define to 1 if the system has the type 'sigset_t'. */
340 #define HAVE_SIGSET_T 1
341 
342 /* Define to 1 if you have the 'snprintf' function. */
343 #define HAVE_SNPRINTF 1
344 
345 /* Define to 1 if you have the 'stat' function. */
346 #define HAVE_STAT 1
347 
348 /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
349 #define HAVE_STAT_INO 1
350 
351 /* Define to 1 if you have the <stdckdint.h> header file. */
352 #define HAVE_STDCKDINT_H 1
353 
354 /* Define to 1 if you have the <stdint.h> header file. */
355 #define HAVE_STDINT_H 1
356 
357 /* Define to 1 if you have the <stdio.h> header file. */
358 #define HAVE_STDIO_H 1
359 
360 /* Define to 1 if you have the <stdlib.h> header file. */
361 #define HAVE_STDLIB_H 1
362 
363 /* Define HAVE_STRERROR if you have the strerror() function. */
364 #define HAVE_STRERROR 1
365 
366 /* Define to 1 if you have the <strings.h> header file. */
367 #define HAVE_STRINGS_H 1
368 
369 /* Define to 1 if you have the <string.h> header file. */
370 #define HAVE_STRING_H 1
371 
372 /* Define to 1 if you have the 'strsignal' function. */
373 #define HAVE_STRSIGNAL 1
374 
375 /* Define to 1 if you have the 'system' function. */
376 #define HAVE_SYSTEM 1
377 
378 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
379 #define HAVE_SYS_ERRLIST 1
380 
381 /* Define to 1 if you have the <sys/ioctl.h> header file. */
382 #define HAVE_SYS_IOCTL_H 1
383 
384 /* Define to 1 if you have the <sys/stat.h> header file. */
385 #define HAVE_SYS_STAT_H 1
386 
387 /* Define to 1 if you have the <sys/stream.h> header file. */
388 /* #undef HAVE_SYS_STREAM_H */
389 
390 /* Define to 1 if you have the <sys/types.h> header file. */
391 #define HAVE_SYS_TYPES_H 1
392 
393 /* Define to 1 if you have the <sys/wait.h> header file. */
394 #define HAVE_SYS_WAIT_H 1
395 
396 /* Define to 1 if you have the <termcap.h> header file. */
397 #define HAVE_TERMCAP_H 1
398 
399 /* Define HAVE_TERMINFO if you have the terminfo library. */
400 #define HAVE_TERMINFO 1
401 
402 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
403 #define HAVE_TERMIOS_FUNCS 1
404 
405 /* Define to 1 if you have the <termios.h> header file. */
406 #define HAVE_TERMIOS_H 1
407 
408 /* Define to 1 if you have the <termio.h> header file. */
409 /* #undef HAVE_TERMIO_H */
410 
411 /* Define to 1 if you have the <time.h> header file. */
412 #define HAVE_TIME_H 1
413 
414 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
415 #define HAVE_TIME_T 1
416 
417 /* Define to 1 if you have the 'ttyname' function. */
418 #define HAVE_TTYNAME 1
419 
420 /* Define to 1 if you have the <unistd.h> header file. */
421 #define HAVE_UNISTD_H 1
422 
423 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
424 #define HAVE_UPPER_LOWER 1
425 
426 /* Define to 1 if you have the 'usleep' function. */
427 #define HAVE_USLEEP 1
428 
429 /* Henry Spencer V8 regcomp() and regexp.h */
430 /* #undef HAVE_V8_REGCOMP */
431 
432 /* Define to 1 if you have the <values.h> header file. */
433 /* #undef HAVE_VALUES_H */
434 
435 /* Define HAVE_VOID if your compiler supports the "void" type. */
436 #define HAVE_VOID 1
437 
438 /* Define to 1 if you have the '_setjmp' function. */
439 #define HAVE__SETJMP 1
440 
441 /* Define MUST_DEFINE_ERRNO if you have errno but it is not defined in
442    errno.h. */
443 /* #undef MUST_DEFINE_ERRNO */
444 
445 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
446    termcap.h. */
447 /* #undef MUST_DEFINE_OSPEED */
448 
449 /* pattern matching is supported, but without metacharacters. */
450 /* #undef NO_REGEX */
451 
452 /* Define to the address where bug reports for this package should be sent. */
453 #define PACKAGE_BUGREPORT ""
454 
455 /* Define to the full name of this package. */
456 #define PACKAGE_NAME "less"
457 
458 /* Define to the full name and version of this package. */
459 #define PACKAGE_STRING "less 1"
460 
461 /* Define to the one symbol short name of this package. */
462 #define PACKAGE_TARNAME "less"
463 
464 /* Define to the home page for this package. */
465 #define PACKAGE_URL ""
466 
467 /* Define to the version of this package. */
468 #define PACKAGE_VERSION "1"
469 
470 /* Define SECURE_COMPILE=1 to build a secure version of less. */
471 #define SECURE_COMPILE 0
472 
473 /* Define to 1 if the 'S_IS*' macros in <sys/stat.h> do not work properly. */
474 /* #undef STAT_MACROS_BROKEN */
475 
476 /* Define to 1 if all of the C89 standard headers exist (not just the ones
477    required in a freestanding environment). This macro is provided for
478    backward compatibility; new code need not use it. */
479 #define STDC_HEADERS 1
480 
481 /* Number of bits in a file offset, on hosts where this is settable. */
482 /* #undef _FILE_OFFSET_BITS */
483 
484 /* Define to 1 on platforms where this makes off_t a 64-bit type. */
485 /* #undef _LARGE_FILES */
486 
487 /* Number of bits in time_t, on hosts where this is settable. */
488 /* #undef _TIME_BITS */
489 
490 /* Define to 1 on platforms where this makes time_t a 64-bit type. */
491 /* #undef __MINGW_USE_VC2005_COMPAT */
492 
493 /* Define to empty if 'const' does not conform to ANSI C. */
494 /* #undef const */
495 
496 /* Define to 'long int' if <sys/types.h> does not define. */
497 /* #undef off_t */
498 
499 /* Define as 'unsigned int' if <stddef.h> doesn't define. */
500 /* #undef size_t */
501