xref: /minix3/external/bsd/less/dist/defines.o2 (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1f7cf2976SLionel Sambuc/*
2*84d9c625SLionel Sambuc * Copyright (C) 1984-2012  Mark Nudelman
3f7cf2976SLionel Sambuc *
4f7cf2976SLionel Sambuc * You may distribute under the terms of either the GNU General Public
5f7cf2976SLionel Sambuc * License or the Less License, as specified in the README file.
6f7cf2976SLionel Sambuc *
7*84d9c625SLionel Sambuc * For more information, see the README file.
8f7cf2976SLionel Sambuc */
9f7cf2976SLionel Sambuc
10f7cf2976SLionel Sambuc
11f7cf2976SLionel Sambuc/* OS/2 definition file for less.  */
12f7cf2976SLionel Sambuc/*
13f7cf2976SLionel Sambuc * This file has 2 sections:
14f7cf2976SLionel Sambuc * User preferences.
15f7cf2976SLionel Sambuc * Settings always true for the emx compiler for OS/2 systems.
16f7cf2976SLionel Sambuc */
17f7cf2976SLionel Sambuc
18f7cf2976SLionel Sambuc
19f7cf2976SLionel Sambuc/* User preferences.  */
20f7cf2976SLionel Sambuc
21f7cf2976SLionel Sambuc/*
22f7cf2976SLionel Sambuc * SECURE is 1 if you wish to disable a bunch of features in order to
23f7cf2976SLionel Sambuc * be safe to run by unprivileged users.
24f7cf2976SLionel Sambuc */
25f7cf2976SLionel Sambuc#define	SECURE		0
26f7cf2976SLionel Sambuc
27f7cf2976SLionel Sambuc/*
28f7cf2976SLionel Sambuc * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
29f7cf2976SLionel Sambuc * (This is possible only if your system supplies the system() function.)
30f7cf2976SLionel Sambuc */
31f7cf2976SLionel Sambuc#define	SHELL_ESCAPE	(!SECURE)
32f7cf2976SLionel Sambuc
33f7cf2976SLionel Sambuc/*
34f7cf2976SLionel Sambuc * EXAMINE is 1 if you wish to allow examining files by name from within less.
35f7cf2976SLionel Sambuc */
36f7cf2976SLionel Sambuc#define	EXAMINE		(!SECURE)
37f7cf2976SLionel Sambuc
38f7cf2976SLionel Sambuc/*
39f7cf2976SLionel Sambuc * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
40f7cf2976SLionel Sambuc * to complete filenames at prompts.
41f7cf2976SLionel Sambuc */
42f7cf2976SLionel Sambuc#define	TAB_COMPLETE_FILENAME	(!SECURE)
43f7cf2976SLionel Sambuc
44f7cf2976SLionel Sambuc/*
45f7cf2976SLionel Sambuc * CMD_HISTORY is 1 if you wish to allow keys to cycle through
46f7cf2976SLionel Sambuc * previous commands at prompts.
47f7cf2976SLionel Sambuc */
48f7cf2976SLionel Sambuc#define	CMD_HISTORY	1
49f7cf2976SLionel Sambuc
50f7cf2976SLionel Sambuc/*
51f7cf2976SLionel Sambuc * HILITE_SEARCH is 1 if you wish to have search targets to be
52f7cf2976SLionel Sambuc * displayed in standout mode.
53f7cf2976SLionel Sambuc */
54f7cf2976SLionel Sambuc#define	HILITE_SEARCH	1
55f7cf2976SLionel Sambuc
56f7cf2976SLionel Sambuc/*
57f7cf2976SLionel Sambuc * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
58f7cf2976SLionel Sambuc * (This is possible only if your system supplies the system() function.)
59f7cf2976SLionel Sambuc * EDIT_PGM is the name of the (default) editor to be invoked.
60f7cf2976SLionel Sambuc */
61f7cf2976SLionel Sambuc#define	EDITOR		(!SECURE)
62f7cf2976SLionel Sambuc#define	EDIT_PGM	"vi"
63f7cf2976SLionel Sambuc
64f7cf2976SLionel Sambuc/*
65f7cf2976SLionel Sambuc * TAGS is 1 if you wish to support tag files.
66f7cf2976SLionel Sambuc */
67f7cf2976SLionel Sambuc#define	TAGS		(!SECURE)
68f7cf2976SLionel Sambuc
69f7cf2976SLionel Sambuc/*
70f7cf2976SLionel Sambuc * USERFILE is 1 if you wish to allow a .less file to specify
71f7cf2976SLionel Sambuc * user-defined key bindings.
72f7cf2976SLionel Sambuc */
73f7cf2976SLionel Sambuc#define	USERFILE	(!SECURE)
74f7cf2976SLionel Sambuc
75f7cf2976SLionel Sambuc/*
76f7cf2976SLionel Sambuc * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
77f7cf2976SLionel Sambuc * This will generally work if your system provides the "popen" function
78f7cf2976SLionel Sambuc * and the "echo" shell command.
79f7cf2976SLionel Sambuc */
80f7cf2976SLionel Sambuc#define	GLOB		(!SECURE)
81f7cf2976SLionel Sambuc
82f7cf2976SLionel Sambuc/*
83f7cf2976SLionel Sambuc * PIPEC is 1 if you wish to have the "|" command
84f7cf2976SLionel Sambuc * which allows the user to pipe data into a shell command.
85f7cf2976SLionel Sambuc */
86f7cf2976SLionel Sambuc#define	PIPEC		(!SECURE)
87f7cf2976SLionel Sambuc
88f7cf2976SLionel Sambuc/*
89f7cf2976SLionel Sambuc * LOGFILE is 1 if you wish to allow the -l option (to create log files).
90f7cf2976SLionel Sambuc */
91f7cf2976SLionel Sambuc#define	LOGFILE		(!SECURE)
92f7cf2976SLionel Sambuc
93f7cf2976SLionel Sambuc/*
94f7cf2976SLionel Sambuc * GNU_OPTIONS is 1 if you wish to support the GNU-style command
95f7cf2976SLionel Sambuc * line options --help and --version.
96f7cf2976SLionel Sambuc */
97f7cf2976SLionel Sambuc#define	GNU_OPTIONS	1
98f7cf2976SLionel Sambuc
99f7cf2976SLionel Sambuc/*
100f7cf2976SLionel Sambuc * ONLY_RETURN is 1 if you want RETURN to be the only input which
101f7cf2976SLionel Sambuc * will continue past an error message.
102f7cf2976SLionel Sambuc * Otherwise, any key will continue past an error message.
103f7cf2976SLionel Sambuc */
104f7cf2976SLionel Sambuc#define	ONLY_RETURN	0
105f7cf2976SLionel Sambuc
106f7cf2976SLionel Sambuc/*
107f7cf2976SLionel Sambuc * LESSKEYFILE is the filename of the default lesskey output file
108f7cf2976SLionel Sambuc * (in the HOME directory).
109f7cf2976SLionel Sambuc * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file.
110f7cf2976SLionel Sambuc * DEF_LESSKEYINFILE is the filename of the default lesskey input
111f7cf2976SLionel Sambuc * (in the HOME directory).
112f7cf2976SLionel Sambuc * LESSHISTFILE is the filename of the history file
113f7cf2976SLionel Sambuc * (in the HOME directory).
114f7cf2976SLionel Sambuc */
115f7cf2976SLionel Sambuc#define	LESSKEYFILE		"less.ini"
116f7cf2976SLionel Sambuc#define	LESSKEYFILE_SYS		"C:\\sysless.ini"
117f7cf2976SLionel Sambuc#define	DEF_LESSKEYINFILE	"lesskey.ini"
118f7cf2976SLionel Sambuc#define LESSHISTFILE		"lesshst.ini"
119f7cf2976SLionel Sambuc
120f7cf2976SLionel Sambuc
121f7cf2976SLionel Sambuc/* Settings always true for the emx compiler for OS/2 systems.  */
122f7cf2976SLionel Sambuc#define OS2 1
123f7cf2976SLionel Sambuc
124f7cf2976SLionel Sambuc/*
125f7cf2976SLionel Sambuc * Pathname separator character.
126f7cf2976SLionel Sambuc */
127f7cf2976SLionel Sambuc#define	PATHNAME_SEP	"\\"
128f7cf2976SLionel Sambuc
129f7cf2976SLionel Sambuc/*
130f7cf2976SLionel Sambuc * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
131f7cf2976SLionel Sambuc */
132f7cf2976SLionel Sambuc#define HAVE_SYS_TYPES_H	1
133f7cf2976SLionel Sambuc
134f7cf2976SLionel Sambuc/*
135f7cf2976SLionel Sambuc * Define if you have the <sgstat.h> header file.
136f7cf2976SLionel Sambuc */
137f7cf2976SLionel Sambuc#define HAVE_SGSTAT_H	0
138f7cf2976SLionel Sambuc
139f7cf2976SLionel Sambuc/*
140f7cf2976SLionel Sambuc * HAVE_PERROR is 1 if your system has the perror() call.
141f7cf2976SLionel Sambuc * (Actually, if it has sys_errlist, sys_nerr and errno.)
142f7cf2976SLionel Sambuc */
143f7cf2976SLionel Sambuc#define	HAVE_PERROR	1
144f7cf2976SLionel Sambuc
145f7cf2976SLionel Sambuc/*
146f7cf2976SLionel Sambuc * HAVE_TIME is 1 if your system has the time() call.
147f7cf2976SLionel Sambuc */
148f7cf2976SLionel Sambuc#define	HAVE_TIME	1
149f7cf2976SLionel Sambuc
150f7cf2976SLionel Sambuc/*
151f7cf2976SLionel Sambuc * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
152f7cf2976SLionel Sambuc */
153f7cf2976SLionel Sambuc#define	HAVE_SHELL	0
154f7cf2976SLionel Sambuc
155f7cf2976SLionel Sambuc/*
156f7cf2976SLionel Sambuc * Default shell metacharacters and meta-escape character.
157f7cf2976SLionel Sambuc */
158f7cf2976SLionel Sambuc#define	DEF_METACHARS	"; *?\t\n'\"()<>|&"
159f7cf2976SLionel Sambuc#define	DEF_METAESCAPE	""
160f7cf2976SLionel Sambuc
161f7cf2976SLionel Sambuc/*
162f7cf2976SLionel Sambuc * HAVE_DUP is 1 if your system has the dup() call.
163f7cf2976SLionel Sambuc */
164f7cf2976SLionel Sambuc#define	HAVE_DUP	1
165f7cf2976SLionel Sambuc
166f7cf2976SLionel Sambuc/*
167f7cf2976SLionel Sambuc * Sizes of various buffers.
168f7cf2976SLionel Sambuc */
169*84d9c625SLionel Sambuc#if 0 /* old sizes for small memory machines
170f7cf2976SLionel Sambuc#define	CMDBUF_SIZE	512	/* Buffer for multichar commands */
171f7cf2976SLionel Sambuc#define	UNGOT_SIZE	100	/* Max chars to unget() */
172f7cf2976SLionel Sambuc#define	LINEBUF_SIZE	1024	/* Max size of line in input file */
173f7cf2976SLionel Sambuc#define	OUTBUF_SIZE	1024	/* Output buffer */
174f7cf2976SLionel Sambuc#define	PROMPT_SIZE	200	/* Max size of prompt string */
175f7cf2976SLionel Sambuc#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
176f7cf2976SLionel Sambuc#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
177f7cf2976SLionel Sambuc#define	TAGLINE_SIZE	512	/* Max size of line in tags file */
178f7cf2976SLionel Sambuc#define	TABSTOP_MAX	32	/* Max number of custom tab stops */
179*84d9c625SLionel Sambuc#else /* more reasonable sizes for modern machines */
180*84d9c625SLionel Sambuc#define	CMDBUF_SIZE	2048	/* Buffer for multichar commands */
181*84d9c625SLionel Sambuc#define	UNGOT_SIZE	200	/* Max chars to unget() */
182*84d9c625SLionel Sambuc#define	LINEBUF_SIZE	1024	/* Initial max size of line in input file */
183*84d9c625SLionel Sambuc#define	OUTBUF_SIZE	1024	/* Output buffer */
184*84d9c625SLionel Sambuc#define	PROMPT_SIZE	2048	/* Max size of prompt string */
185*84d9c625SLionel Sambuc#define	TERMBUF_SIZE	2048	/* Termcap buffer for tgetent */
186*84d9c625SLionel Sambuc#define	TERMSBUF_SIZE	1024	/* Buffer to hold termcap strings */
187*84d9c625SLionel Sambuc#define	TAGLINE_SIZE	1024	/* Max size of line in tags file */
188*84d9c625SLionel Sambuc#define	TABSTOP_MAX	128	/* Max number of custom tab stops */
189*84d9c625SLionel Sambuc#endif
190f7cf2976SLionel Sambuc
191f7cf2976SLionel Sambuc/* Define to `long' if <sys/types.h> doesn't define.  */
192f7cf2976SLionel Sambuc/* #define	off_t	long */
193f7cf2976SLionel Sambuc
194f7cf2976SLionel Sambuc/* Define if you need to in order for stat and other things to work.  */
195f7cf2976SLionel Sambuc/* #undef _POSIX_SOURCE */
196f7cf2976SLionel Sambuc
197f7cf2976SLionel Sambuc/* Define as the return type of signal handlers (int or void).  */
198f7cf2976SLionel Sambuc#define RETSIGTYPE void
199f7cf2976SLionel Sambuc
200f7cf2976SLionel Sambuc
201f7cf2976SLionel Sambuc/*
202f7cf2976SLionel Sambuc * Regular expression library.
203f7cf2976SLionel Sambuc * Define exactly one of the following to be 1:
204f7cf2976SLionel Sambuc * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
205f7cf2976SLionel Sambuc * HAVE_RE_COMP: BSD re_comp()
206f7cf2976SLionel Sambuc * HAVE_REGCMP: System V regcmp()
207f7cf2976SLionel Sambuc * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
208f7cf2976SLionel Sambuc * NO_REGEX: pattern matching is supported, but without metacharacters.
209f7cf2976SLionel Sambuc */
210f7cf2976SLionel Sambuc/* #undef HAVE_POSIX_REGCOMP */
211f7cf2976SLionel Sambuc/* #undef HAVE_RE_COMP */
212f7cf2976SLionel Sambuc/* #undef HAVE_REGCMP */
213f7cf2976SLionel Sambuc#define HAVE_V8_REGCOMP 1
214f7cf2976SLionel Sambuc/* #undef NO_REGEX */
215f7cf2976SLionel Sambuc#define HAVE_REGEXEC2 1
216f7cf2976SLionel Sambuc
217f7cf2976SLionel Sambuc/* Define HAVE_VOID if your compiler supports the "void" type. */
218f7cf2976SLionel Sambuc#define HAVE_VOID 1
219f7cf2976SLionel Sambuc
220f7cf2976SLionel Sambuc/* Define HAVE_CONST if your compiler supports the "const" modifier. */
221f7cf2976SLionel Sambuc#define HAVE_CONST 1
222f7cf2976SLionel Sambuc
223f7cf2976SLionel Sambuc/* Define HAVE_TIME_T if your system supports the "time_t" type. */
224f7cf2976SLionel Sambuc#define HAVE_TIME_T 1
225f7cf2976SLionel Sambuc
226f7cf2976SLionel Sambuc/* Define HAVE_STRERROR if you have the strerror() function. */
227f7cf2976SLionel Sambuc#define HAVE_STRERROR 1
228f7cf2976SLionel Sambuc
229f7cf2976SLionel Sambuc/* Define HAVE_FILENO if you have the fileno() macro. */
230f7cf2976SLionel Sambuc#define HAVE_FILENO 1
231f7cf2976SLionel Sambuc
232f7cf2976SLionel Sambuc/* Define HAVE_ERRNO if you have the errno variable */
233f7cf2976SLionel Sambuc/* Define MUST_DEFINE_ERRNO if you have errno but it is not define
234f7cf2976SLionel Sambuc * in errno.h */
235f7cf2976SLionel Sambuc#define HAVE_ERRNO 1
236f7cf2976SLionel Sambuc/* #undef MUST_DEFINE_ERRNO */
237f7cf2976SLionel Sambuc
238f7cf2976SLionel Sambuc/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
239f7cf2976SLionel Sambuc#define HAVE_SYS_ERRLIST 1
240f7cf2976SLionel Sambuc
241f7cf2976SLionel Sambuc/* Define HAVE_OSPEED if your termcap library has the ospeed variable */
242f7cf2976SLionel Sambuc#define HAVE_OSPEED 1
243f7cf2976SLionel Sambuc/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
244f7cf2976SLionel Sambuc * in termcap.h. */
245f7cf2976SLionel Sambuc#define MUST_DEFINE_OSPEED 0
246f7cf2976SLionel Sambuc
247f7cf2976SLionel Sambuc/* Define HAVE_LOCALE if you have locale.h and setlocale. */
248f7cf2976SLionel Sambuc#define HAVE_LOCALE 1
249f7cf2976SLionel Sambuc
250f7cf2976SLionel Sambuc/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
251f7cf2976SLionel Sambuc#define HAVE_TERMIOS_FUNCS 1
252f7cf2976SLionel Sambuc
253f7cf2976SLionel Sambuc/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
254f7cf2976SLionel Sambuc#define HAVE_UPPER_LOWER 1
255f7cf2976SLionel Sambuc
256f7cf2976SLionel Sambuc/* Define if you have the _setjmp function.  */
257f7cf2976SLionel Sambuc#define HAVE__SETJMP	0
258f7cf2976SLionel Sambuc
259f7cf2976SLionel Sambuc/* Define if you have the memcpy function.  */
260f7cf2976SLionel Sambuc#define HAVE_MEMCPY 1
261f7cf2976SLionel Sambuc
262f7cf2976SLionel Sambuc/* Define if you have the popen function.  */
263f7cf2976SLionel Sambuc#define HAVE_POPEN 1
264f7cf2976SLionel Sambuc
265f7cf2976SLionel Sambuc/* Define if you have the sigsetmask function.  */
266f7cf2976SLionel Sambuc#define HAVE_SIGSETMASK	0
267f7cf2976SLionel Sambuc
268f7cf2976SLionel Sambuc/* Define if you have the sigprocmask function.  */
269f7cf2976SLionel Sambuc#define HAVE_SIGPROCMASK	1
270f7cf2976SLionel Sambuc
271f7cf2976SLionel Sambuc/* Define if you have the sigset_t type and sigemptyset macro */
272f7cf2976SLionel Sambuc#define HAVE_SIGSET_T	1
273f7cf2976SLionel Sambuc#define HAVE_SIGEMPTYSET	1
274f7cf2976SLionel Sambuc
275f7cf2976SLionel Sambuc/* Define if you have the stat function.  */
276f7cf2976SLionel Sambuc#define HAVE_STAT 1
277f7cf2976SLionel Sambuc
278f7cf2976SLionel Sambuc/* Define if you have the strchr function.  */
279f7cf2976SLionel Sambuc#define HAVE_STRCHR 1
280f7cf2976SLionel Sambuc
281f7cf2976SLionel Sambuc/* Define if you have the strstr function.  */
282f7cf2976SLionel Sambuc#define HAVE_STRSTR	1
283f7cf2976SLionel Sambuc
284f7cf2976SLionel Sambuc/* Define if you have the system function.  */
285f7cf2976SLionel Sambuc#define HAVE_SYSTEM	1
286f7cf2976SLionel Sambuc
287f7cf2976SLionel Sambuc/* Define if you have the snprintf function.  */
288f7cf2976SLionel Sambuc#define HAVE_SNPRINTF	0
289f7cf2976SLionel Sambuc
290f7cf2976SLionel Sambuc/* Define if you have the <ctype.h> header file.  */
291f7cf2976SLionel Sambuc#define HAVE_CTYPE_H 1
292f7cf2976SLionel Sambuc
293f7cf2976SLionel Sambuc/* Define if you have the <wctype.h> header file.  */
294f7cf2976SLionel Sambuc#define HAVE_WCTYPE_H 0
295f7cf2976SLionel Sambuc
296f7cf2976SLionel Sambuc/* Define if you have the <errno.h> header file.  */
297f7cf2976SLionel Sambuc#define HAVE_ERRNO_H 1
298f7cf2976SLionel Sambuc
299f7cf2976SLionel Sambuc/* Define if you have the <fcntl.h> header file.  */
300f7cf2976SLionel Sambuc#define HAVE_FCNTL_H 1
301f7cf2976SLionel Sambuc
302f7cf2976SLionel Sambuc/* Define if you have the <limits.h> header file.  */
303f7cf2976SLionel Sambuc#define HAVE_LIMITS_H 1
304f7cf2976SLionel Sambuc
305f7cf2976SLionel Sambuc/* Define if you have the <stdio.h> header file.  */
306f7cf2976SLionel Sambuc#define HAVE_STDIO_H 1
307f7cf2976SLionel Sambuc
308f7cf2976SLionel Sambuc/* Define if you have the <stdlib> header file. */
309f7cf2976SLionel Sambuc#define HAVE_STDLIB_H 1
310f7cf2976SLionel Sambuc
311f7cf2976SLionel Sambuc/* Define if you have the <string.h> header file.  */
312f7cf2976SLionel Sambuc#define HAVE_STRING_H 1
313f7cf2976SLionel Sambuc
314f7cf2976SLionel Sambuc/* Define if you have the <sys/ioctl.h> header file.  */
315f7cf2976SLionel Sambuc#define HAVE_SYS_IOCTL_H 1
316f7cf2976SLionel Sambuc
317f7cf2976SLionel Sambuc/* Define if you have the <sys/ptem.h> header file.  */
318f7cf2976SLionel Sambuc#define HAVE_SYS_PTEM_H	0
319f7cf2976SLionel Sambuc
320f7cf2976SLionel Sambuc/* Define if you have the <sys/stream.h> header file.  */
321f7cf2976SLionel Sambuc#define HAVE_SYS_STREAM_H	0
322f7cf2976SLionel Sambuc
323f7cf2976SLionel Sambuc/* Define if you have the <termcap.h> header file.  */
324f7cf2976SLionel Sambuc#define HAVE_TERMCAP_H 1
325f7cf2976SLionel Sambuc
326f7cf2976SLionel Sambuc/* Define if you have the <termio.h> header file.  */
327f7cf2976SLionel Sambuc#define HAVE_TERMIO_H	1
328f7cf2976SLionel Sambuc
329f7cf2976SLionel Sambuc/* Define if you have the <termios.h> header file.  */
330f7cf2976SLionel Sambuc#define HAVE_TERMIOS_H 1
331f7cf2976SLionel Sambuc
332f7cf2976SLionel Sambuc/* Define if you have the <time.h> header file.  */
333f7cf2976SLionel Sambuc#define HAVE_TIME_H 1
334f7cf2976SLionel Sambuc
335f7cf2976SLionel Sambuc/* Define if you have the <unistd.h> header file.  */
336f7cf2976SLionel Sambuc#define HAVE_UNISTD_H 1
337f7cf2976SLionel Sambuc
338f7cf2976SLionel Sambuc/* Define if you have the <values.h> header file.  */
339f7cf2976SLionel Sambuc#define HAVE_VALUES_H 0
340