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