160786Sps/* 2240121Sdelphij * Copyright (C) 1984-2012 Mark Nudelman 360786Sps * 460786Sps * You may distribute under the terms of either the GNU General Public 560786Sps * License or the Less License, as specified in the README file. 660786Sps * 7240121Sdelphij * For more information, see the README file. 860786Sps */ 960786Sps 1060786Sps 1160786Sps/* OS/2 definition file for less. */ 1260786Sps/* 1360786Sps * This file has 2 sections: 1460786Sps * User preferences. 1560786Sps * Settings always true for the emx compiler for OS/2 systems. 1660786Sps */ 1760786Sps 1860786Sps 1960786Sps/* User preferences. */ 2060786Sps 2160786Sps/* 2260786Sps * SECURE is 1 if you wish to disable a bunch of features in order to 2360786Sps * be safe to run by unprivileged users. 2460786Sps */ 2560786Sps#define SECURE 0 2660786Sps 2760786Sps/* 2860786Sps * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 2960786Sps * (This is possible only if your system supplies the system() function.) 3060786Sps */ 3160786Sps#define SHELL_ESCAPE (!SECURE) 3260786Sps 3360786Sps/* 3460786Sps * EXAMINE is 1 if you wish to allow examining files by name from within less. 3560786Sps */ 3660786Sps#define EXAMINE (!SECURE) 3760786Sps 3860786Sps/* 3960786Sps * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 4060786Sps * to complete filenames at prompts. 4160786Sps */ 4260786Sps#define TAB_COMPLETE_FILENAME (!SECURE) 4360786Sps 4460786Sps/* 4560786Sps * CMD_HISTORY is 1 if you wish to allow keys to cycle through 4660786Sps * previous commands at prompts. 4760786Sps */ 4860786Sps#define CMD_HISTORY 1 4960786Sps 5060786Sps/* 5160786Sps * HILITE_SEARCH is 1 if you wish to have search targets to be 5260786Sps * displayed in standout mode. 5360786Sps */ 5460786Sps#define HILITE_SEARCH 1 5560786Sps 5660786Sps/* 5760786Sps * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 5860786Sps * (This is possible only if your system supplies the system() function.) 5960786Sps * EDIT_PGM is the name of the (default) editor to be invoked. 6060786Sps */ 6160786Sps#define EDITOR (!SECURE) 6289019Sps#define EDIT_PGM "vi" 6360786Sps 6460786Sps/* 6560786Sps * TAGS is 1 if you wish to support tag files. 6660786Sps */ 6760786Sps#define TAGS (!SECURE) 6860786Sps 6960786Sps/* 7060786Sps * USERFILE is 1 if you wish to allow a .less file to specify 7160786Sps * user-defined key bindings. 7260786Sps */ 7360786Sps#define USERFILE (!SECURE) 7460786Sps 7560786Sps/* 7660786Sps * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 7760786Sps * This will generally work if your system provides the "popen" function 7860786Sps * and the "echo" shell command. 7960786Sps */ 8060786Sps#define GLOB (!SECURE) 8160786Sps 8260786Sps/* 8360786Sps * PIPEC is 1 if you wish to have the "|" command 8460786Sps * which allows the user to pipe data into a shell command. 8560786Sps */ 8660786Sps#define PIPEC (!SECURE) 8760786Sps 8860786Sps/* 8960786Sps * LOGFILE is 1 if you wish to allow the -l option (to create log files). 9060786Sps */ 9160786Sps#define LOGFILE (!SECURE) 9260786Sps 9360786Sps/* 9460786Sps * GNU_OPTIONS is 1 if you wish to support the GNU-style command 9560786Sps * line options --help and --version. 9660786Sps */ 9760786Sps#define GNU_OPTIONS 1 9860786Sps 9960786Sps/* 10060786Sps * ONLY_RETURN is 1 if you want RETURN to be the only input which 10160786Sps * will continue past an error message. 10260786Sps * Otherwise, any key will continue past an error message. 10360786Sps */ 10460786Sps#define ONLY_RETURN 0 10560786Sps 10660786Sps/* 10760786Sps * LESSKEYFILE is the filename of the default lesskey output file 10860786Sps * (in the HOME directory). 10960786Sps * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 11060786Sps * DEF_LESSKEYINFILE is the filename of the default lesskey input 11160786Sps * (in the HOME directory). 112161475Sdelphij * LESSHISTFILE is the filename of the history file 113161475Sdelphij * (in the HOME directory). 11460786Sps */ 11560786Sps#define LESSKEYFILE "less.ini" 11689019Sps#define LESSKEYFILE_SYS "C:\\sysless.ini" 11760786Sps#define DEF_LESSKEYINFILE "lesskey.ini" 118161475Sdelphij#define LESSHISTFILE "lesshst.ini" 11960786Sps 12060786Sps 12160786Sps/* Settings always true for the emx compiler for OS/2 systems. */ 12260786Sps#define OS2 1 12360786Sps 12460786Sps/* 12560786Sps * Pathname separator character. 12660786Sps */ 12760786Sps#define PATHNAME_SEP "\\" 12860786Sps 12960786Sps/* 13060786Sps * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 13160786Sps */ 13260786Sps#define HAVE_SYS_TYPES_H 1 13360786Sps 13460786Sps/* 13560786Sps * Define if you have the <sgstat.h> header file. 13660786Sps */ 13760786Sps#define HAVE_SGSTAT_H 0 13860786Sps 13960786Sps/* 14060786Sps * HAVE_PERROR is 1 if your system has the perror() call. 14160786Sps * (Actually, if it has sys_errlist, sys_nerr and errno.) 14260786Sps */ 14360786Sps#define HAVE_PERROR 1 14460786Sps 14560786Sps/* 14660786Sps * HAVE_TIME is 1 if your system has the time() call. 14760786Sps */ 14860786Sps#define HAVE_TIME 1 14960786Sps 15060786Sps/* 15160786Sps * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 15260786Sps */ 15360786Sps#define HAVE_SHELL 0 15460786Sps 155128345Stjr/* 156128345Stjr * Default shell metacharacters and meta-escape character. 157128345Stjr */ 158128345Stjr#define DEF_METACHARS "; *?\t\n'\"()<>|&" 159128345Stjr#define DEF_METAESCAPE "" 160128345Stjr 16160786Sps/* 16260786Sps * HAVE_DUP is 1 if your system has the dup() call. 16360786Sps */ 16460786Sps#define HAVE_DUP 1 16560786Sps 16660786Sps/* 16760786Sps * Sizes of various buffers. 16860786Sps */ 169251154Sdelphij#if 0 /* old sizes for small memory machines 17060786Sps#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 17160786Sps#define UNGOT_SIZE 100 /* Max chars to unget() */ 17260786Sps#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 17360786Sps#define OUTBUF_SIZE 1024 /* Output buffer */ 17460786Sps#define PROMPT_SIZE 200 /* Max size of prompt string */ 17560786Sps#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 17660786Sps#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 17760786Sps#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 17889019Sps#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 179251154Sdelphij#else /* more reasonable sizes for modern machines */ 180251154Sdelphij#define CMDBUF_SIZE 2048 /* Buffer for multichar commands */ 181251154Sdelphij#define UNGOT_SIZE 200 /* Max chars to unget() */ 182251154Sdelphij#define LINEBUF_SIZE 1024 /* Initial max size of line in input file */ 183251154Sdelphij#define OUTBUF_SIZE 1024 /* Output buffer */ 184251154Sdelphij#define PROMPT_SIZE 2048 /* Max size of prompt string */ 185251154Sdelphij#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 186251154Sdelphij#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 187251154Sdelphij#define TAGLINE_SIZE 1024 /* Max size of line in tags file */ 188251154Sdelphij#define TABSTOP_MAX 128 /* Max number of custom tab stops */ 189251154Sdelphij#endif 19060786Sps 19160786Sps/* Define to `long' if <sys/types.h> doesn't define. */ 19260786Sps/* #define off_t long */ 19360786Sps 19460786Sps/* Define if you need to in order for stat and other things to work. */ 19560786Sps/* #undef _POSIX_SOURCE */ 19660786Sps 19760786Sps/* Define as the return type of signal handlers (int or void). */ 19860786Sps#define RETSIGTYPE void 19960786Sps 20060786Sps 20160786Sps/* 20260786Sps * Regular expression library. 20360786Sps * Define exactly one of the following to be 1: 20460786Sps * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h 20560786Sps * HAVE_RE_COMP: BSD re_comp() 20660786Sps * HAVE_REGCMP: System V regcmp() 20760786Sps * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h 20860786Sps * NO_REGEX: pattern matching is supported, but without metacharacters. 20960786Sps */ 21060786Sps/* #undef HAVE_POSIX_REGCOMP */ 21160786Sps/* #undef HAVE_RE_COMP */ 21260786Sps/* #undef HAVE_REGCMP */ 21360786Sps#define HAVE_V8_REGCOMP 1 21460786Sps/* #undef NO_REGEX */ 21560786Sps#define HAVE_REGEXEC2 1 21660786Sps 21760786Sps/* Define HAVE_VOID if your compiler supports the "void" type. */ 21860786Sps#define HAVE_VOID 1 21960786Sps 22060786Sps/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 22160786Sps#define HAVE_CONST 1 22260786Sps 22360786Sps/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 22489019Sps#define HAVE_TIME_T 1 22560786Sps 22660786Sps/* Define HAVE_STRERROR if you have the strerror() function. */ 22760786Sps#define HAVE_STRERROR 1 22860786Sps 22960786Sps/* Define HAVE_FILENO if you have the fileno() macro. */ 23060786Sps#define HAVE_FILENO 1 23160786Sps 23260786Sps/* Define HAVE_ERRNO if you have the errno variable */ 23360786Sps/* Define MUST_DEFINE_ERRNO if you have errno but it is not define 23460786Sps * in errno.h */ 23560786Sps#define HAVE_ERRNO 1 23689019Sps/* #undef MUST_DEFINE_ERRNO */ 23760786Sps 23860786Sps/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */ 23960786Sps#define HAVE_SYS_ERRLIST 1 24060786Sps 24160786Sps/* Define HAVE_OSPEED if your termcap library has the ospeed variable */ 24289019Sps#define HAVE_OSPEED 1 24360786Sps/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined 24460786Sps * in termcap.h. */ 24560786Sps#define MUST_DEFINE_OSPEED 0 24660786Sps 24760786Sps/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 24889019Sps#define HAVE_LOCALE 1 24960786Sps 25060786Sps/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */ 25189019Sps#define HAVE_TERMIOS_FUNCS 1 25260786Sps 25360786Sps/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */ 25460786Sps#define HAVE_UPPER_LOWER 1 25560786Sps 25660786Sps/* Define if you have the _setjmp function. */ 25760786Sps#define HAVE__SETJMP 0 25860786Sps 25960786Sps/* Define if you have the memcpy function. */ 26060786Sps#define HAVE_MEMCPY 1 26160786Sps 26260786Sps/* Define if you have the popen function. */ 26389019Sps#define HAVE_POPEN 1 26460786Sps 26560786Sps/* Define if you have the sigsetmask function. */ 26660786Sps#define HAVE_SIGSETMASK 0 26760786Sps 26863128Sps/* Define if you have the sigprocmask function. */ 26989019Sps#define HAVE_SIGPROCMASK 1 27063128Sps 27163128Sps/* Define if you have the sigset_t type and sigemptyset macro */ 27289019Sps#define HAVE_SIGSET_T 1 27389019Sps#define HAVE_SIGEMPTYSET 1 27463128Sps 27560786Sps/* Define if you have the stat function. */ 27660786Sps#define HAVE_STAT 1 27760786Sps 27860786Sps/* Define if you have the strchr function. */ 27960786Sps#define HAVE_STRCHR 1 28060786Sps 28189019Sps/* Define if you have the strstr function. */ 28289019Sps#define HAVE_STRSTR 1 28389019Sps 28460786Sps/* Define if you have the system function. */ 28560786Sps#define HAVE_SYSTEM 1 28660786Sps 287161475Sdelphij/* Define if you have the snprintf function. */ 288161475Sdelphij#define HAVE_SNPRINTF 0 289161475Sdelphij 29060786Sps/* Define if you have the <ctype.h> header file. */ 29160786Sps#define HAVE_CTYPE_H 1 29260786Sps 293173682Sdelphij/* Define if you have the <wctype.h> header file. */ 294173682Sdelphij#define HAVE_WCTYPE_H 0 295173682Sdelphij 29660786Sps/* Define if you have the <errno.h> header file. */ 29789019Sps#define HAVE_ERRNO_H 1 29860786Sps 29960786Sps/* Define if you have the <fcntl.h> header file. */ 30060786Sps#define HAVE_FCNTL_H 1 30160786Sps 30260786Sps/* Define if you have the <limits.h> header file. */ 30389019Sps#define HAVE_LIMITS_H 1 30460786Sps 30560786Sps/* Define if you have the <stdio.h> header file. */ 30660786Sps#define HAVE_STDIO_H 1 30760786Sps 30860786Sps/* Define if you have the <stdlib> header file. */ 30960786Sps#define HAVE_STDLIB_H 1 31060786Sps 31160786Sps/* Define if you have the <string.h> header file. */ 31260786Sps#define HAVE_STRING_H 1 31360786Sps 31460786Sps/* Define if you have the <sys/ioctl.h> header file. */ 31589019Sps#define HAVE_SYS_IOCTL_H 1 31660786Sps 31760786Sps/* Define if you have the <sys/ptem.h> header file. */ 31860786Sps#define HAVE_SYS_PTEM_H 0 31960786Sps 32060786Sps/* Define if you have the <sys/stream.h> header file. */ 32160786Sps#define HAVE_SYS_STREAM_H 0 32260786Sps 32360786Sps/* Define if you have the <termcap.h> header file. */ 32489019Sps#define HAVE_TERMCAP_H 1 32560786Sps 32660786Sps/* Define if you have the <termio.h> header file. */ 32789019Sps#define HAVE_TERMIO_H 1 32860786Sps 32960786Sps/* Define if you have the <termios.h> header file. */ 33089019Sps#define HAVE_TERMIOS_H 1 33160786Sps 33260786Sps/* Define if you have the <time.h> header file. */ 33360786Sps#define HAVE_TIME_H 1 33460786Sps 33560786Sps/* Define if you have the <unistd.h> header file. */ 33660786Sps#define HAVE_UNISTD_H 1 33760786Sps 33860786Sps/* Define if you have the <values.h> header file. */ 33960786Sps#define HAVE_VALUES_H 0 340