Annotation of src/usr.bin/less/defines.os2, Revision 1.2
1.2 ! niklas 1: /* $OpenBSD$ */
! 2:
1.1 etheisen 3: /*
4: * Copyright (c) 1984,1985,1989,1994 Mark Nudelman
5: * All rights reserved.
6: *
7: * Redistribution and use in source and binary forms, with or without
8: * modification, are permitted provided that the following conditions
9: * are met:
10: * 1. Redistributions of source code must retain the above copyright
11: * notice, this list of conditions and the following disclaimer.
12: * 2. Redistributions in binary form must reproduce the above copyright
13: * notice in the documentation and/or other materials provided with
14: * the distribution.
15: *
16: * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY
17: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
20: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
22: * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23: * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24: * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25: * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26: * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27: */
28:
29: /* OS/2 definition file for less. */
30: /*
31: * This file has 2 sections:
32: * User preferences.
33: * Settings always true for the emx compiler for OS/2 systems.
34: */
35:
36:
37: /* User preferences. */
38:
39: /*
40: * SECURE is 1 if you wish to disable a bunch of features in order to
41: * be safe to run by unprivileged users.
42: */
43: #define SECURE 0
44:
45: /*
46: * SHELL_ESCAPE is 1 if you wish to allow shell escapes.
47: * (This is possible only if your system supplies the system() function.)
48: */
49: #define SHELL_ESCAPE (!SECURE)
50:
51: /*
52: * EXAMINE is 1 if you wish to allow examining files by name from within less.
53: */
54: #define EXAMINE (!SECURE)
55:
56: /*
57: * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key
58: * to complete filenames at prompts.
59: */
60: #define TAB_COMPLETE_FILENAME (!SECURE)
61:
62: /*
63: * CMD_HISTORY is 1 if you wish to allow keys to cycle through
64: * previous commands at prompts.
65: */
66: #define CMD_HISTORY 1
67:
68: /*
69: * HILITE_SEARCH is 1 if you wish to have search targets to be
70: * displayed in standout mode.
71: */
72: #define HILITE_SEARCH 1
73:
74: /*
75: * EDITOR is 1 if you wish to allow editor invocation (the "v" command).
76: * (This is possible only if your system supplies the system() function.)
77: * EDIT_PGM is the name of the (default) editor to be invoked.
78: */
79: #define EDITOR (!SECURE)
80: #define EDIT_PGM "me"
81:
82: /*
83: * TAGS is 1 if you wish to support tag files.
84: */
85: #define TAGS (!SECURE)
86:
87: /*
88: * USERFILE is 1 if you wish to allow a .less file to specify
89: * user-defined key bindings.
90: */
91: #define USERFILE (!SECURE)
92:
93: /*
94: * GLOB is 1 if you wish to have shell metacharacters expanded in filenames.
95: * This will generally work if your system provides the "popen" function
96: * and the "echo" shell command.
97: */
98: #define GLOB (!SECURE)
99:
100: /*
101: * PIPEC is 1 if you wish to have the "|" command
102: * which allows the user to pipe data into a shell command.
103: */
104: #define PIPEC (!SECURE)
105:
106: /*
107: * LOGFILE is 1 if you wish to allow the -l option (to create log files).
108: */
109: #define LOGFILE (!SECURE)
110:
111: /*
112: * GNU_OPTIONS is 1 if you wish to support the GNU-style command
113: * line options --help and --version.
114: */
115: #define GNU_OPTIONS 1
116:
117: /*
118: * ONLY_RETURN is 1 if you want RETURN to be the only input which
119: * will continue past an error message.
120: * Otherwise, any key will continue past an error message.
121: */
122: #define ONLY_RETURN 0
123:
124: /*
125: * LESSKEYFILE is the filename of the default lesskey output file
126: * (in the HOME directory).
127: * DEF_LESSKEYINFILE is the filename of the default lesskey input
128: * (in the HOME directory).
129: */
130: #define LESSKEYFILE "less.ini"
131: #define DEF_LESSKEYINFILE "lesskey.ini"
132:
133:
134: /*
135: * HELPFILE is the full pathname of the help file.
136: */
137: #define HELPFILE "less.hlp"
138:
139: /* Settings always true for the emx compiler for OS/2 systems. */
140: #define OS2 1
141:
142: /*
143: * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>.
144: */
145: #define HAVE_SYS_TYPES_H 1
146:
147: /*
148: * HAVE_STAT is 1 if your system has the stat() call.
149: */
150: #define HAVE_STAT 1
151:
152: /*
153: * HAVE_PERROR is 1 if your system has the perror() call.
154: * (Actually, if it has sys_errlist, sys_nerr and errno.)
155: */
156: #define HAVE_PERROR 1
157:
158: /*
159: * HAVE_TIME is 1 if your system has the time() call.
160: */
161: #define HAVE_TIME 1
162:
163: /*
164: * HAVE_SHELL is 1 if your system supports a SHELL command interpreter.
165: */
166: #define HAVE_SHELL 0
167:
168: /* Define to `long' if <sys/types.h> doesn't define. */
169: /* #define off_t long */
170:
171: /* Define as the return type of signal handlers (int or void). */
172: #define RETSIGTYPE void
173:
174: /* Define if you have the ANSI C header files. */
175: #define STDC_HEADERS 1
176:
177: /*
178: * Regular expression library.
179: * Define exactly one of the following to be 1:
180: * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h
181: * HAVE_RE_COMP: BSD re_comp()
182: * HAVE_REGCMP: System V regcmp()
183: * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h
184: * NO_REGEX: pattern matching is supported, but without metacharacters.
185: */
186: /* #undef HAVE_POSIX_REGCOMP */
187: /* #undef HAVE_RE_COMP */
188: /* #undef HAVE_REGCMP */
189: #define HAVE_V8_REGCOMP 1
190: /* #undef NO_REGEX */
191:
192: /* Define HAVE_VOID if your compiler supports the "void" type. */
193: #define HAVE_VOID 1
194:
195: /* Define HAVE_TIME_T if your system supports the "time_t" type. */
196: #define HAVE_TIME_T 0
197:
198: /* Define HAVE_STRERROR if you have the strerror() function. */
199: #define HAVE_STRERROR 1
200:
201: /* Define HAVE_FILENO if you have the fileno() macro. */
202: #define HAVE_FILENO 1
203:
204: /* Define HAVE_ERRNO if you have the errno variable */
205: #define HAVE_ERRNO 1
206:
207: /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */
208: #define HAVE_SYS_ERRLIST 1
209:
210: /* Define HAVE_OSPEED if your termcap library has the ospeed variable */
211: #define HAVE_OSPEED 0
212: /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined
213: * in termcap.h. */
214: #define MUST_DEFINE_OSPEED 0
215:
216: /* Define HAVE_LOCALE if you have locale.h and setlocale. */
217: #define HAVE_LOCALE 0
218:
219: /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */
220: #define HAVE_TERMIOS_FUNCS 0
221:
222: /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */
223: #define HAVE_UPPER_LOWER 1
224:
225: /* Define if you have the _setjmp function. */
226: #define HAVE__SETJMP 0
227:
228: /* Define if you have the memcpy function. */
229: #define HAVE_MEMCPY 1
230:
231: /* Define if you have the sigsetmask function. */
232: #define HAVE_SIGSETMASK 0
233:
234: /* Define if you have the strchr function. */
235: #define HAVE_STRCHR 1
236:
237: /* Define if you have the system function. */
238: #define HAVE_SYSTEM 1
239:
240: /* Define if you have the <ctype.h> header file. */
241: #define HAVE_CTYPE_H 1
242:
243: /* Define if you have the <errno.h> header file. */
244: #define HAVE_ERRNO_H 0
245:
246: /* Define if you have the <fcntl.h> header file. */
247: #define HAVE_FCNTL_H 1
248:
249: /* Define if you have the <stdio.h> header file. */
250: #define HAVE_STDIO_H 1
251:
252: /* Define if you have the <sys/ioctl.h> header file. */
253: #define HAVE_SYS_IOCTL_H 0
254:
255: /* Define if you have the <sys/ptem.h> header file. */
256: #define HAVE_SYS_PTEM_H 0
257:
258: /* Define if you have the <sys/stream.h> header file. */
259: #define HAVE_SYS_STREAM_H 0
260:
261: /* Define if you have the <termcap.h> header file. */
262: #define HAVE_TERMCAP_H 0
263:
264: /* Define if you have the <termio.h> header file. */
265: #define HAVE_TERMIO_H 0
266:
267: /* Define if you have the <termios.h> header file. */
268: #define HAVE_TERMIOS_H 0
269:
270: /* Define if you have the <time.h> header file. */
271: #define HAVE_TIME_H 1
272:
273: /* Define if you have the <unistd.h> header file. */
274: #define HAVE_UNISTD_H 1
275:
276: /* Define if you have the <values.h> header file. */
277: #define HAVE_VALUES_H 0