1 /* $MirOS: src/usr.bin/less/defines.h,v 1.1 2005/03/13 18:56:32 tg Exp $ */ 2 3 /* fine-tuned. */ 4 /* defines.h. Generated by configure. */ 5 /* defines.h.in. Generated from configure.ac by autoheader. */ 6 7 8 /* Unix definition file for less. -*- C -*- 9 * 10 * This file has 3 sections: 11 * User preferences. 12 * Settings always true on Unix. 13 * Settings automatically determined by configure. 14 * 15 * * * * * * WARNING * * * * * * 16 * If you edit defines.h by hand, do "touch stamp-h" before you run make 17 * so config.status doesn't overwrite your changes. 18 */ 19 20 /* User preferences. */ 21 22 /* 23 * SECURE is 1 if you wish to disable a bunch of features in order to 24 * be safe to run by unprivileged users. 25 */ 26 #define SECURE 0 27 28 /* 29 * SMALL is 1 if you wish to disable a bunch of features in order to 30 * build a smaller less binary. 31 */ 32 #ifndef SMALL 33 #define SMALL 0 34 #endif 35 36 /* 37 * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 38 * (This is possible only if your system supplies the system() function.) 39 */ 40 #define SHELL_ESCAPE (!SECURE && !SMALL) 41 42 /* 43 * EXAMINE is 1 if you wish to allow examining files by name from within less. 44 */ 45 #define EXAMINE (!SECURE && !SMALL) 46 47 /* 48 * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 49 * to complete filenames at prompts. 50 */ 51 #define TAB_COMPLETE_FILENAME (!SECURE && !SMALL) 52 53 /* 54 * CMD_HISTORY is 1 if you wish to allow keys to cycle through 55 * previous commands at prompts. 56 */ 57 #define CMD_HISTORY (!SMALL) 58 59 /* 60 * HILITE_SEARCH is 1 if you wish to have search targets to be 61 * displayed in standout mode. 62 */ 63 #define HILITE_SEARCH 1 64 65 /* 66 * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 67 * (This is possible only if your system supplies the system() function.) 68 * EDIT_PGM is the name of the (default) editor to be invoked. 69 */ 70 #define EDITOR (!SECURE && !SMALL) 71 72 /* 73 * TAGS is 1 if you wish to support tag files. 74 */ 75 #define TAGS (!SECURE && !SMALL) 76 77 /* 78 * USERFILE is 1 if you wish to allow a .less file to specify 79 * user-defined key bindings. 80 */ 81 #define USERFILE (!SECURE && !SMALL) 82 83 /* 84 * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 85 * This will generally work if your system provides the "popen" function 86 * and the "echo" shell command. 87 */ 88 #define GLOB (!SECURE && !SMALL) 89 90 /* 91 * PIPEC is 1 if you wish to have the "|" command 92 * which allows the user to pipe data into a shell command. 93 */ 94 #define PIPEC (!SECURE && !SMALL) 95 96 /* 97 * LOGFILE is 1 if you wish to allow the -l option (to create log files). 98 */ 99 #define LOGFILE (!SECURE && !SMALL) 100 101 /* 102 * GNU_OPTIONS is 1 if you wish to support the GNU-style command 103 * line options --help and --version. 104 */ 105 #define GNU_OPTIONS (!SMALL) 106 107 /* 108 * ONLY_RETURN is 1 if you want RETURN to be the only input which 109 * will continue past an error message. 110 * Otherwise, any key will continue past an error message. 111 */ 112 #define ONLY_RETURN 0 113 114 /* 115 * LESSKEYFILE is the filename of the default lesskey output file 116 * (in the HOME directory). 117 * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 118 * DEF_LESSKEYINFILE is the filename of the default lesskey input 119 * (in the HOME directory). 120 */ 121 #define LESSKEYFILE ".etc/less" 122 #define LESSKEYFILE_SYS SYSDIR "/sysless" 123 #define DEF_LESSKEYINFILE ".etc/lesskey" 124 125 126 /* Settings always true on Unix. */ 127 128 /* 129 * Define MSDOS_COMPILER if compiling under Microsoft C. 130 */ 131 #define MSDOS_COMPILER 0 132 133 /* 134 * Pathname separator character. 135 */ 136 #define PATHNAME_SEP "/" 137 138 /* 139 * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 140 */ 141 #define HAVE_SYS_TYPES_H 1 142 143 /* 144 * Define if you have the <sgstat.h> header file. 145 */ 146 /* #undef HAVE_SGSTAT_H */ 147 148 /* 149 * HAVE_PERROR is 1 if your system has the perror() call. 150 * (Actually, if it has sys_errlist, sys_nerr and errno.) 151 */ 152 #define HAVE_PERROR 1 153 154 /* 155 * HAVE_TIME is 1 if your system has the time() call. 156 */ 157 #define HAVE_TIME 1 158 159 /* 160 * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 161 */ 162 #define HAVE_SHELL 1 163 164 /* 165 * Default shell metacharacters and meta-escape character. 166 */ 167 #define DEF_METACHARS "; *?\t\n'\"()<>|&^`#\\" 168 #define DEF_METAESCAPE "\\" 169 170 /* 171 * HAVE_DUP is 1 if your system has the dup() call. 172 */ 173 #define HAVE_DUP 1 174 175 /* 176 * Sizes of various buffers. 177 */ 178 #define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 179 #define UNGOT_SIZE 100 /* Max chars to unget() */ 180 #define LINEBUF_SIZE 1024 /* Max size of line in input file */ 181 #define OUTBUF_SIZE 1024 /* Output buffer */ 182 #define PROMPT_SIZE 200 /* Max size of prompt string */ 183 #define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 184 #define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 185 #define TAGLINE_SIZE 512 /* Max size of line in tags file */ 186 #define TABSTOP_MAX 32 /* Max number of custom tab stops */ 187 188 /* Settings automatically determined by configure. */ 189 190 191 /* Define EDIT_PGM to your editor. */ 192 #define EDIT_PGM "ed" 193 194 /* Define HAVE_CONST if your compiler supports the "const" modifier. */ 195 #define HAVE_CONST 1 196 197 /* Define to 1 if you have the <ctype.h> header file. */ 198 #define HAVE_CTYPE_H 1 199 200 /* Define HAVE_ERRNO if you have the errno variable. */ 201 #define HAVE_ERRNO 1 202 203 /* Define to 1 if you have the <errno.h> header file. */ 204 #define HAVE_ERRNO_H 1 205 206 /* Define to 1 if you have the <fcntl.h> header file. */ 207 #define HAVE_FCNTL_H 1 208 209 /* Define HAVE_FILENO if you have the fileno() macro. */ 210 #define HAVE_FILENO 1 211 212 /* Define to 1 if you have the `fsync' function. */ 213 #define HAVE_FSYNC 1 214 215 /* Define to 1 if you have the <inttypes.h> header file. */ 216 #define HAVE_INTTYPES_H 1 217 218 /* Define to 1 if you have the `gen' library (-lgen). */ 219 /* #undef HAVE_LIBGEN */ 220 221 /* Define to 1 if you have the `intl' library (-lintl). */ 222 /* #undef HAVE_LIBINTL */ 223 224 /* Define to 1 if you have the `PW' library (-lPW). */ 225 /* #undef HAVE_LIBPW */ 226 227 /* Define to 1 if you have the <limits.h> header file. */ 228 #define HAVE_LIMITS_H 1 229 230 /* Define HAVE_LOCALE if you have locale.h and setlocale. */ 231 /* #define HAVE_LOCALE 1 */ 232 233 /* Define to 1 if you have the `memcpy' function. */ 234 #define HAVE_MEMCPY 1 235 236 /* Define to 1 if you have the <memory.h> header file. */ 237 #define HAVE_MEMORY_H 1 238 239 /* Define HAVE_OSPEED if your termcap library has the ospeed variable. */ 240 #define HAVE_OSPEED 1 241 242 /* PCRE (Perl-compatible regular expression) library */ 243 /* #undef HAVE_PCRE */ 244 245 /* Define to 1 if you have the `popen' function. */ 246 #define HAVE_POPEN 1 247 248 /* POSIX regcomp() and regex.h */ 249 #define HAVE_POSIX_REGCOMP 1 250 251 /* System V regcmp() */ 252 /* #undef HAVE_REGCMP */ 253 254 /* */ 255 /* #undef HAVE_REGEXEC2 */ 256 257 /* BSD re_comp() */ 258 /* #undef HAVE_RE_COMP */ 259 260 /* Define HAVE_SIGEMPTYSET if you have the sigemptyset macro. */ 261 #define HAVE_SIGEMPTYSET 1 262 263 /* Define to 1 if you have the `sigprocmask' function. */ 264 #define HAVE_SIGPROCMASK 1 265 266 /* Define to 1 if you have the `sigsetmask' function. */ 267 #define HAVE_SIGSETMASK 1 268 269 /* Define HAVE_SIGSET_T you have the sigset_t type. */ 270 #define HAVE_SIGSET_T 1 271 272 /* Define to 1 if you have the `stat' function. */ 273 #define HAVE_STAT 1 274 275 /* Define to 1 if you have the <stdint.h> header file. */ 276 #define HAVE_STDINT_H 1 277 278 /* Define to 1 if you have the <stdio.h> header file. */ 279 #define HAVE_STDIO_H 1 280 281 /* Define to 1 if you have the <stdlib.h> header file. */ 282 #define HAVE_STDLIB_H 1 283 284 /* Define to 1 if you have the `strchr' function. */ 285 #define HAVE_STRCHR 1 286 287 /* Define HAVE_STRERROR if you have the strerror() function. */ 288 #define HAVE_STRERROR 1 289 290 /* Define to 1 if you have the <strings.h> header file. */ 291 #define HAVE_STRINGS_H 1 292 293 /* Define to 1 if you have the <string.h> header file. */ 294 #define HAVE_STRING_H 1 295 296 /* Define to 1 if you have the `strstr' function. */ 297 #define HAVE_STRSTR 1 298 299 /* Define to 1 if you have the `system' function. */ 300 #define HAVE_SYSTEM 1 301 302 /* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable. */ 303 #define HAVE_SYS_ERRLIST 1 304 305 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 306 #define HAVE_SYS_IOCTL_H 1 307 308 /* Define to 1 if you have the <sys/ptem.h> header file. */ 309 /* #undef HAVE_SYS_PTEM_H */ 310 311 /* Define to 1 if you have the <sys/stat.h> header file. */ 312 #define HAVE_SYS_STAT_H 1 313 314 /* Define to 1 if you have the <sys/stream.h> header file. */ 315 /* #undef HAVE_SYS_STREAM_H */ 316 317 /* Define to 1 if you have the <sys/types.h> header file. */ 318 #define HAVE_SYS_TYPES_H 1 319 320 /* Define to 1 if you have the <termcap.h> header file. */ 321 #define HAVE_TERMCAP_H 1 322 323 /* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr. */ 324 #define HAVE_TERMIOS_FUNCS 1 325 326 /* Define to 1 if you have the <termios.h> header file. */ 327 #define HAVE_TERMIOS_H 1 328 329 /* Define to 1 if you have the <termio.h> header file. */ 330 /* #undef HAVE_TERMIO_H */ 331 332 /* Define to 1 if you have the <time.h> header file. */ 333 #define HAVE_TIME_H 1 334 335 /* Define HAVE_TIME_T if your system supports the "time_t" type. */ 336 #define HAVE_TIME_T 1 337 338 /* Define to 1 if you have the <unistd.h> header file. */ 339 #define HAVE_UNISTD_H 1 340 341 /* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower. */ 342 #define HAVE_UPPER_LOWER 1 343 344 /* Henry Spencer V8 regcomp() and regexp.h */ 345 /* #undef HAVE_V8_REGCOMP */ 346 347 /* Define to 1 if you have the <values.h> header file. */ 348 /* #undef HAVE_VALUES_H */ 349 350 /* Define HAVE_VOID if your compiler supports the "void" type. */ 351 #define HAVE_VOID 1 352 353 /* Define to 1 if you have the `_setjmp' function. */ 354 #define HAVE__SETJMP 1 355 356 /* Define MUST_DEFINE_ERRNO if you have errno but it is not define in errno.h. 357 */ 358 /* #undef MUST_DEFINE_ERRNO */ 359 360 /* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined in 361 termcap.h. */ 362 /* #undef MUST_DEFINE_OSPEED */ 363 364 /* pattern matching is supported, but without metacharacters. */ 365 /* #undef NO_REGEX */ 366 367 /* Define to the address where bug reports for this package should be sent. */ 368 #define PACKAGE_BUGREPORT "" 369 370 /* Define to the full name of this package. */ 371 #define PACKAGE_NAME "less" 372 373 /* Define to the full name and version of this package. */ 374 #define PACKAGE_STRING "less 1" 375 376 /* Define to the one symbol short name of this package. */ 377 #define PACKAGE_TARNAME "less" 378 379 /* Define to the version of this package. */ 380 #define PACKAGE_VERSION "1" 381 382 /* Define as the return type of signal handlers (`int' or `void'). */ 383 #define RETSIGTYPE void 384 385 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */ 386 /* #undef STAT_MACROS_BROKEN */ 387 388 /* Define to 1 if you have the ANSI C header files. */ 389 #define STDC_HEADERS 1 390 391 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ 392 #define TIME_WITH_SYS_TIME 1 393 394 /* Number of bits in a file offset, on hosts where this is settable. */ 395 /* #undef _FILE_OFFSET_BITS */ 396 397 /* Define for large files, on AIX-style hosts. */ 398 /* #undef _LARGE_FILES */ 399 400 /* Define to empty if `const' does not conform to ANSI C. */ 401 /* #undef const */ 402 403 /* Define to `long' if <sys/types.h> does not define. */ 404 /* #undef off_t */ 405 406 /* Define to `unsigned' if <sys/types.h> does not define. */ 407 /* #undef size_t */ 408