xref: /freebsd/usr.bin/less/defines.h (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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 .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  * GNU_OPTIONS is 1 if you wish to support the GNU-style command
93  * line options --help and --version.
94  */
95 #define	GNU_OPTIONS	1
96 
97 /*
98  * ONLY_RETURN is 1 if you want RETURN to be the only input which
99  * will continue past an error message.
100  * Otherwise, any key will continue past an error message.
101  */
102 #define	ONLY_RETURN	0
103 
104 /*
105  * LESSKEYFILE is the filename of the default lesskey output file
106  * (in the HOME directory).
107  * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
108  * DEF_LESSKEYINFILE is the filename of the default lesskey input
109  * (in the HOME directory).
110  * LESSHISTFILE is the filename of the history file
111  * (in the HOME directory).
112  */
113 #define	LESSKEYFILE		".less"
114 #define	LESSKEYFILE_SYS		"/etc/lesskey"
115 #define	DEF_LESSKEYINFILE	".lesskey"
116 #define	LESSKEYINFILE_SYS	"/etc/syslesskey"
117 #define LESSHISTFILE		".lesshst"
118 
119 
120 /* Settings always true on Unix.  */
121 
122 /*
123  * Define MSDOS_COMPILER if compiling under Microsoft C.
124  */
125 #define	MSDOS_COMPILER	0
126 
127 /*
128  * Pathname separator character.
129  */
130 #define	PATHNAME_SEP	"/"
131 
132 /*
133  * The value returned from tgetent on success.
134  * Some HP-UX systems return 0 on success.
135  */
136 #define TGETENT_OK  1
137 
138 /*
139  * HAVE_ANSI_PROTOS	is 1 if your compiler supports ANSI function prototypes.
140  */
141 #define HAVE_ANSI_PROTOS	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 /* Define to 1 to support reading lesskey source files (not just binary). */
190 #define HAVE_LESSKEYSRC 1
191 
192 /*
193  * Sizes of various buffers.
194  */
195 #if 0 /* old sizes for small memory machines */
196 #define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
197 #define	UNGOT_SIZE	100	/* Max chars to unget() */
198 #define	LINEBUF_SIZE	1024	/* Max size of line in input file */
199 #define	OUTBUF_SIZE	1024	/* Output buffer */
200 #define	PROMPT_SIZE	200	/* Max size of prompt string */
201 #define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
202 #define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
203 #define	TAGLINE_SIZE	512	/* Max size of line in tags file */
204 #define	TABSTOP_MAX	32	/* Max number of custom tab stops */
205 #else /* more reasonable sizes for modern machines */
206 #define	CMDBUF_SIZE	2048	/* Buffer for multichar commands */
207 #define	UNGOT_SIZE	200	/* Max chars to unget() */
208 #define	LINEBUF_SIZE	1024	/* Initial max size of line in input file */
209 #define	OUTBUF_SIZE	1024	/* Output buffer */
210 #define	PROMPT_SIZE	2048	/* Max size of prompt string */
211 #define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
212 #define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
213 #define	TAGLINE_SIZE	1024	/* Max size of line in tags file */
214 #define	TABSTOP_MAX	128	/* Max number of custom tab stops */
215 #endif
216 
217 /* Define as the return type of signal handlers (int or void).  */
218 #define RETSIGTYPE void
219 
220 /* Settings automatically determined by configure.  */
221 
222 
223 /* Define EDIT_PGM to your editor. */
224 #define EDIT_PGM "vi"
225 
226 /* Define HAVE_CONST if your compiler supports the "const" modifier. */
227 #define HAVE_CONST 1
228 
229 /* Define to 1 if you have the <ctype.h> header file. */
230 #define HAVE_CTYPE_H 1
231 
232 /* Define HAVE_ERRNO if you have the errno variable. */
233 #define HAVE_ERRNO 1
234 
235 /* Define to 1 if you have the <errno.h> header file. */
236 #define HAVE_ERRNO_H 1
237 
238 /* Define to 1 if you have the `fchmod' function. */
239 #define HAVE_FCHMOD 1
240 
241 /* Define to 1 if you have the <fcntl.h> header file. */
242 #define HAVE_FCNTL_H 1
243 
244 /* Define HAVE_FILENO if you have the fileno() macro. */
245 #define HAVE_FILENO 1
246 
247 /* Define to 1 if you have the `fsync' function. */
248 #define HAVE_FSYNC 1
249 
250 /* GNU regex library */
251 /* #undef HAVE_GNU_REGEX */
252 
253 /* Define to 1 if you have the <inttypes.h> header file. */
254 #define HAVE_INTTYPES_H 1
255 
256 /* Define to 1 if you have the <limits.h> header file. */
257 #define HAVE_LIMITS_H 1
258 
259 /* Define to 1 if you have the <linux/magic.h> header file. */
260 /* #undef HAVE_LINUX_MAGIC_H */
261 
262 /* Define HAVE_LOCALE if you have locale.h and setlocale. */
263 #define HAVE_LOCALE 1
264 
265 /* Define to 1 if you have the <memory.h> header file. */
266 #define HAVE_MEMORY_H 1
267 
268 /* Define to 1 if you have the `nanosleep' function. */
269 #define HAVE_NANOSLEEP 1
270 
271 /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */
272 #define HAVE_OSPEED 1
273 
274 /* PCRE (Perl-compatible regular expression) library */
275 /* #undef HAVE_PCRE */
276 
277 /* PCRE2 (Perl-compatible regular expression) library */
278 /* #undef HAVE_PCRE2 */
279 
280 /* Define to 1 if you have the `poll' function. */
281 #define HAVE_POLL 1
282 
283 /* Define to 1 if you have the `popen' function. */
284 #define HAVE_POPEN 1
285 
286 /* POSIX regcomp() and regex.h */
287 #define HAVE_POSIX_REGCOMP 1
288 
289 /* Define HAVE_PROCFS if have have fstatfs with f_type and PROC_SUPER_MAGIC.
290    */
291 /* #undef HAVE_PROCFS */
292 
293 /* Define to 1 if you have the `realpath' function. */
294 #define HAVE_REALPATH 1
295 
296 /* System V regcmp() */
297 /* #undef HAVE_REGCMP */
298 
299 /* */
300 /* #undef HAVE_REGEXEC2 */
301 
302 /* BSD re_comp() */
303 /* #undef HAVE_RE_COMP */
304 
305 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */
306 #define HAVE_SIGEMPTYSET 1
307 
308 /* Define to 1 if you have the `sigprocmask' function. */
309 #define HAVE_SIGPROCMASK 1
310 
311 /* Define to 1 if you have the `sigsetmask' function. */
312 #define HAVE_SIGSETMASK 1
313 
314 /* Define to 1 if the system has the type `sigset_t'. */
315 #define HAVE_SIGSET_T 1
316 
317 /* Define to 1 if you have the `snprintf' function. */
318 #define HAVE_SNPRINTF 1
319 
320 /* Define to 1 if you have the `stat' function. */
321 #define HAVE_STAT 1
322 
323 /* Define HAVE_STAT_INO if your struct stat has st_ino and st_dev. */
324 #define HAVE_STAT_INO 1
325 
326 /* Define to 1 if you have the <stdckdint.h> header file. */
327 /* #undef HAVE_STDCKDINT_H */
328 
329 /* Define to 1 if you have the <stdint.h> header file. */
330 #define HAVE_STDINT_H 1
331 
332 /* Define to 1 if you have the <stdio.h> header file. */
333 #define HAVE_STDIO_H 1
334 
335 /* Define to 1 if you have the <stdlib.h> header file. */
336 #define HAVE_STDLIB_H 1
337 
338 /* Define HAVE_STRERROR if you have the strerror() function. */
339 #define HAVE_STRERROR 1
340 
341 /* Define to 1 if you have the <strings.h> header file. */
342 #define HAVE_STRINGS_H 1
343 
344 /* Define to 1 if you have the <string.h> header file. */
345 #define HAVE_STRING_H 1
346 
347 /* Define to 1 if you have the `strsignal' function. */
348 #define HAVE_STRSIGNAL 1
349 
350 /* Define to 1 if you have the `system' function. */
351 #define HAVE_SYSTEM 1
352 
353 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */
354 #define HAVE_SYS_ERRLIST 1
355 
356 /* Define to 1 if you have the <sys/ioctl.h> header file. */
357 #define HAVE_SYS_IOCTL_H 1
358 
359 /* Define to 1 if you have the <sys/stat.h> header file. */
360 #define HAVE_SYS_STAT_H 1
361 
362 /* Define to 1 if you have the <sys/stream.h> header file. */
363 /* #undef HAVE_SYS_STREAM_H */
364 
365 /* Define to 1 if you have the <sys/types.h> header file. */
366 #define HAVE_SYS_TYPES_H 1
367 
368 /* Define to 1 if you have the <sys/wait.h> header file. */
369 #define HAVE_SYS_WAIT_H 1
370 
371 /* Define to 1 if you have the <termcap.h> header file. */
372 #define HAVE_TERMCAP_H 1
373 
374 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */
375 #define HAVE_TERMIOS_FUNCS 1
376 
377 /* Define to 1 if you have the <termios.h> header file. */
378 #define HAVE_TERMIOS_H 1
379 
380 /* Define to 1 if you have the <termio.h> header file. */
381 /* #undef HAVE_TERMIO_H */
382 
383 /* Define to 1 if you have the <time.h> header file. */
384 #define HAVE_TIME_H 1
385 
386 /* Define HAVE_TIME_T if your system supports the "time_t" type. */
387 #define HAVE_TIME_T 1
388 
389 /* Define to 1 if you have the `ttyname' function. */
390 #define HAVE_TTYNAME 1
391 
392 /* Define to 1 if you have the <unistd.h> header file. */
393 #define HAVE_UNISTD_H 1
394 
395 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */
396 #define HAVE_UPPER_LOWER 1
397 
398 /* Define to 1 if you have the `usleep' function. */
399 #define HAVE_USLEEP 1
400 
401 /* Henry Spencer V8 regcomp() and regexp.h */
402 /* #undef HAVE_V8_REGCOMP */
403 
404 /* Define to 1 if you have the <values.h> header file. */
405 /* #undef HAVE_VALUES_H */
406 
407 /* Define HAVE_VOID if your compiler supports the "void" type. */
408 #define HAVE_VOID 1
409 
410 /* Define HAVE_WCTYPE if you have iswupper, iswlower, towupper, towlower. */
411 #define HAVE_WCTYPE 1
412 
413 /* Define to 1 if you have the <wctype.h> header file. */
414 #define HAVE_WCTYPE_H 1
415 
416 /* Define to 1 if you have the `_setjmp' function. */
417 #define HAVE__SETJMP 1
418 
419 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h.
420    */
421 /* #undef MUST_DEFINE_ERRNO */
422 
423 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in
424    termcap.h. */
425 /* #undef MUST_DEFINE_OSPEED */
426 
427 /* pattern matching is supported, but without metacharacters. */
428 /* #undef NO_REGEX */
429 
430 /* Define to the address where bug reports for this package should be sent. */
431 #define PACKAGE_BUGREPORT ""
432 
433 /* Define to the full name of this package. */
434 #define PACKAGE_NAME "less"
435 
436 /* Define to the full name and version of this package. */
437 #define PACKAGE_STRING "less 1"
438 
439 /* Define to the one symbol short name of this package. */
440 #define PACKAGE_TARNAME "less"
441 
442 /* Define to the home page for this package. */
443 #define PACKAGE_URL ""
444 
445 /* Define to the version of this package. */
446 #define PACKAGE_VERSION "1"
447 
448 /* Define SECURE_COMPILE=1 to build a secure version of less. */
449 #define SECURE_COMPILE 0
450 
451 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
452 /* #undef STAT_MACROS_BROKEN */
453 
454 /* Define to 1 if you have the ANSI C header files. */
455 #define STDC_HEADERS 1
456 
457 /* Enable large inode numbers on Mac OS X 10.5.  */
458 #ifndef _DARWIN_USE_64_BIT_INODE
459 # define _DARWIN_USE_64_BIT_INODE 1
460 #endif
461 
462 /* Number of bits in a file offset, on hosts where this is settable. */
463 /* #undef _FILE_OFFSET_BITS */
464 
465 /* Define for large files, on AIX-style hosts. */
466 /* #undef _LARGE_FILES */
467 
468 /* Define to empty if `const' does not conform to ANSI C. */
469 /* #undef const */
470 
471 /* Define to `long int' if <sys/types.h> does not define. */
472 /* #undef off_t */
473 
474 /* Define to `unsigned int' if <sys/types.h> does not define. */
475 /* #undef size_t */
476