120006a0bStron/* 2*e4a6e799Ssimonb * Copyright (C) 1984-2023 Mark Nudelman 320006a0bStron * 420006a0bStron * You may distribute under the terms of either the GNU General Public 520006a0bStron * License or the Less License, as specified in the README file. 620006a0bStron * 7749ad2faStron * For more information, see the README file. 820006a0bStron */ 920006a0bStron 1020006a0bStron 1120006a0bStron/* OS/2 definition file for less. */ 1220006a0bStron/* 1320006a0bStron * This file has 2 sections: 1420006a0bStron * User preferences. 1520006a0bStron * Settings always true for the emx compiler for OS/2 systems. 1620006a0bStron */ 1720006a0bStron 1820006a0bStron 1920006a0bStron/* User preferences. */ 2020006a0bStron 2120006a0bStron/* 2220006a0bStron * SECURE is 1 if you wish to disable a bunch of features in order to 2320006a0bStron * be safe to run by unprivileged users. 2420006a0bStron */ 2520006a0bStron#define SECURE 0 2620006a0bStron 2720006a0bStron/* 2820006a0bStron * SHELL_ESCAPE is 1 if you wish to allow shell escapes. 2920006a0bStron * (This is possible only if your system supplies the system() function.) 3020006a0bStron */ 3120006a0bStron#define SHELL_ESCAPE (!SECURE) 3220006a0bStron 3320006a0bStron/* 3420006a0bStron * EXAMINE is 1 if you wish to allow examining files by name from within less. 3520006a0bStron */ 3620006a0bStron#define EXAMINE (!SECURE) 3720006a0bStron 3820006a0bStron/* 3920006a0bStron * TAB_COMPLETE_FILENAME is 1 if you wish to allow the TAB key 4020006a0bStron * to complete filenames at prompts. 4120006a0bStron */ 4220006a0bStron#define TAB_COMPLETE_FILENAME (!SECURE) 4320006a0bStron 4420006a0bStron/* 4520006a0bStron * CMD_HISTORY is 1 if you wish to allow keys to cycle through 4620006a0bStron * previous commands at prompts. 4720006a0bStron */ 4820006a0bStron#define CMD_HISTORY 1 4920006a0bStron 5020006a0bStron/* 5120006a0bStron * HILITE_SEARCH is 1 if you wish to have search targets to be 5220006a0bStron * displayed in standout mode. 5320006a0bStron */ 5420006a0bStron#define HILITE_SEARCH 1 5520006a0bStron 5620006a0bStron/* 5720006a0bStron * EDITOR is 1 if you wish to allow editor invocation (the "v" command). 5820006a0bStron * (This is possible only if your system supplies the system() function.) 5920006a0bStron * EDIT_PGM is the name of the (default) editor to be invoked. 6020006a0bStron */ 6120006a0bStron#define EDITOR (!SECURE) 6220006a0bStron#define EDIT_PGM "vi" 6320006a0bStron 6420006a0bStron/* 6520006a0bStron * TAGS is 1 if you wish to support tag files. 6620006a0bStron */ 6720006a0bStron#define TAGS (!SECURE) 6820006a0bStron 6920006a0bStron/* 7020006a0bStron * USERFILE is 1 if you wish to allow a .less file to specify 7120006a0bStron * user-defined key bindings. 7220006a0bStron */ 7320006a0bStron#define USERFILE (!SECURE) 7420006a0bStron 7520006a0bStron/* 7620006a0bStron * GLOB is 1 if you wish to have shell metacharacters expanded in filenames. 7720006a0bStron * This will generally work if your system provides the "popen" function 7820006a0bStron * and the "echo" shell command. 7920006a0bStron */ 8020006a0bStron#define GLOB (!SECURE) 8120006a0bStron 8220006a0bStron/* 8320006a0bStron * PIPEC is 1 if you wish to have the "|" command 8420006a0bStron * which allows the user to pipe data into a shell command. 8520006a0bStron */ 8620006a0bStron#define PIPEC (!SECURE) 8720006a0bStron 8820006a0bStron/* 89*e4a6e799Ssimonb * LOGFILE is 1 if you wish to allow the -o option (to create log files). 9020006a0bStron */ 9120006a0bStron#define LOGFILE (!SECURE) 9220006a0bStron 9320006a0bStron/* 9420006a0bStron * GNU_OPTIONS is 1 if you wish to support the GNU-style command 9520006a0bStron * line options --help and --version. 9620006a0bStron */ 9720006a0bStron#define GNU_OPTIONS 1 9820006a0bStron 9920006a0bStron/* 10020006a0bStron * ONLY_RETURN is 1 if you want RETURN to be the only input which 10120006a0bStron * will continue past an error message. 10220006a0bStron * Otherwise, any key will continue past an error message. 10320006a0bStron */ 10420006a0bStron#define ONLY_RETURN 0 10520006a0bStron 10620006a0bStron/* 10720006a0bStron * LESSKEYFILE is the filename of the default lesskey output file 10820006a0bStron * (in the HOME directory). 10920006a0bStron * LESSKEYFILE_SYS is the filename of the system-wide lesskey output file. 11020006a0bStron * DEF_LESSKEYINFILE is the filename of the default lesskey input 11120006a0bStron * (in the HOME directory). 11220006a0bStron * LESSHISTFILE is the filename of the history file 11320006a0bStron * (in the HOME directory). 11420006a0bStron */ 11520006a0bStron#define LESSKEYFILE "less.ini" 11620006a0bStron#define LESSKEYFILE_SYS "C:\\sysless.ini" 11720006a0bStron#define DEF_LESSKEYINFILE "lesskey.ini" 118*e4a6e799Ssimonb#define LESSKEYINFILE_SYS "C:\\syslesskey.ini" 11920006a0bStron#define LESSHISTFILE "lesshst.ini" 12020006a0bStron 12120006a0bStron 12220006a0bStron/* Settings always true for the emx compiler for OS/2 systems. */ 12320006a0bStron#define OS2 1 12420006a0bStron 12520006a0bStron/* 12620006a0bStron * Pathname separator character. 12720006a0bStron */ 12820006a0bStron#define PATHNAME_SEP "\\" 12920006a0bStron 13020006a0bStron/* 131*e4a6e799Ssimonb * HAVE_ANSI_PROTOS is 1 if your compiler supports ANSI function prototypes. 132*e4a6e799Ssimonb */ 133*e4a6e799Ssimonb#define HAVE_ANSI_PROTOS 1 134*e4a6e799Ssimonb 135*e4a6e799Ssimonb/* 13620006a0bStron * HAVE_SYS_TYPES_H is 1 if your system has <sys/types.h>. 13720006a0bStron */ 13820006a0bStron#define HAVE_SYS_TYPES_H 1 13920006a0bStron 14020006a0bStron/* 14120006a0bStron * Define if you have the <sgstat.h> header file. 14220006a0bStron */ 14320006a0bStron#define HAVE_SGSTAT_H 0 14420006a0bStron 14520006a0bStron/* 14620006a0bStron * HAVE_PERROR is 1 if your system has the perror() call. 14720006a0bStron * (Actually, if it has sys_errlist, sys_nerr and errno.) 14820006a0bStron */ 14920006a0bStron#define HAVE_PERROR 1 15020006a0bStron 15120006a0bStron/* 15220006a0bStron * HAVE_TIME is 1 if your system has the time() call. 15320006a0bStron */ 15420006a0bStron#define HAVE_TIME 1 15520006a0bStron 15620006a0bStron/* 15720006a0bStron * HAVE_SHELL is 1 if your system supports a SHELL command interpreter. 15820006a0bStron */ 15920006a0bStron#define HAVE_SHELL 0 16020006a0bStron 16120006a0bStron/* 16220006a0bStron * Default shell metacharacters and meta-escape character. 16320006a0bStron */ 16420006a0bStron#define DEF_METACHARS "; *?\t\n'\"()<>|&" 16520006a0bStron#define DEF_METAESCAPE "" 16620006a0bStron 16720006a0bStron/* 16820006a0bStron * HAVE_DUP is 1 if your system has the dup() call. 16920006a0bStron */ 17020006a0bStron#define HAVE_DUP 1 17120006a0bStron 172*e4a6e799Ssimonb/* Define to 1 to support reading lesskey source files (not just binary). */ 173*e4a6e799Ssimonb#define HAVE_LESSKEYSRC 1 174*e4a6e799Ssimonb 17520006a0bStron/* 17620006a0bStron * Sizes of various buffers. 17720006a0bStron */ 178749ad2faStron#if 0 /* old sizes for small memory machines 17920006a0bStron#define CMDBUF_SIZE 512 /* Buffer for multichar commands */ 18020006a0bStron#define UNGOT_SIZE 100 /* Max chars to unget() */ 18120006a0bStron#define LINEBUF_SIZE 1024 /* Max size of line in input file */ 18220006a0bStron#define OUTBUF_SIZE 1024 /* Output buffer */ 18320006a0bStron#define PROMPT_SIZE 200 /* Max size of prompt string */ 18420006a0bStron#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 18520006a0bStron#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 18620006a0bStron#define TAGLINE_SIZE 512 /* Max size of line in tags file */ 18720006a0bStron#define TABSTOP_MAX 32 /* Max number of custom tab stops */ 188749ad2faStron#else /* more reasonable sizes for modern machines */ 189749ad2faStron#define CMDBUF_SIZE 2048 /* Buffer for multichar commands */ 190749ad2faStron#define UNGOT_SIZE 200 /* Max chars to unget() */ 191749ad2faStron#define LINEBUF_SIZE 1024 /* Initial max size of line in input file */ 192749ad2faStron#define OUTBUF_SIZE 1024 /* Output buffer */ 193749ad2faStron#define PROMPT_SIZE 2048 /* Max size of prompt string */ 194749ad2faStron#define TERMBUF_SIZE 2048 /* Termcap buffer for tgetent */ 195749ad2faStron#define TERMSBUF_SIZE 1024 /* Buffer to hold termcap strings */ 196749ad2faStron#define TAGLINE_SIZE 1024 /* Max size of line in tags file */ 197749ad2faStron#define TABSTOP_MAX 128 /* Max number of custom tab stops */ 198749ad2faStron#endif 19920006a0bStron 20020006a0bStron/* Define to `long' if <sys/types.h> doesn't define. */ 20120006a0bStron/* #define off_t long */ 20220006a0bStron 20320006a0bStron/* Define if you need to in order for stat and other things to work. */ 20420006a0bStron/* #undef _POSIX_SOURCE */ 20520006a0bStron 20620006a0bStron/* Define as the return type of signal handlers (int or void). */ 20720006a0bStron#define RETSIGTYPE void 20820006a0bStron 20920006a0bStron 21020006a0bStron/* 21120006a0bStron * Regular expression library. 21220006a0bStron * Define exactly one of the following to be 1: 21320006a0bStron * HAVE_POSIX_REGCOMP: POSIX regcomp() and regex.h 21420006a0bStron * HAVE_RE_COMP: BSD re_comp() 21520006a0bStron * HAVE_REGCMP: System V regcmp() 21620006a0bStron * HAVE_V8_REGCOMP: Henry Spencer V8 regcomp() and regexp.h 21720006a0bStron * NO_REGEX: pattern matching is supported, but without metacharacters. 21820006a0bStron */ 21920006a0bStron/* #undef HAVE_POSIX_REGCOMP */ 22020006a0bStron/* #undef HAVE_RE_COMP */ 22120006a0bStron/* #undef HAVE_REGCMP */ 22220006a0bStron#define HAVE_V8_REGCOMP 1 22320006a0bStron/* #undef NO_REGEX */ 22420006a0bStron#define HAVE_REGEXEC2 1 22520006a0bStron 22620006a0bStron/* Define HAVE_VOID if your compiler supports the "void" type. */ 22720006a0bStron#define HAVE_VOID 1 22820006a0bStron 22920006a0bStron/* Define HAVE_CONST if your compiler supports the "const" modifier. */ 23020006a0bStron#define HAVE_CONST 1 23120006a0bStron 23220006a0bStron/* Define HAVE_TIME_T if your system supports the "time_t" type. */ 23320006a0bStron#define HAVE_TIME_T 1 23420006a0bStron 23520006a0bStron/* Define HAVE_STRERROR if you have the strerror() function. */ 23620006a0bStron#define HAVE_STRERROR 1 23720006a0bStron 23820006a0bStron/* Define HAVE_FILENO if you have the fileno() macro. */ 23920006a0bStron#define HAVE_FILENO 1 24020006a0bStron 24120006a0bStron/* Define HAVE_ERRNO if you have the errno variable */ 24220006a0bStron/* Define MUST_DEFINE_ERRNO if you have errno but it is not define 24320006a0bStron * in errno.h */ 24420006a0bStron#define HAVE_ERRNO 1 24520006a0bStron/* #undef MUST_DEFINE_ERRNO */ 24620006a0bStron 24720006a0bStron/* Define HAVE_SYS_ERRLIST if you have the sys_errlist[] variable */ 24820006a0bStron#define HAVE_SYS_ERRLIST 1 24920006a0bStron 25020006a0bStron/* Define HAVE_OSPEED if your termcap library has the ospeed variable */ 25120006a0bStron#define HAVE_OSPEED 1 25220006a0bStron/* Define MUST_DEFINE_OSPEED if you have ospeed but it is not defined 25320006a0bStron * in termcap.h. */ 25420006a0bStron#define MUST_DEFINE_OSPEED 0 25520006a0bStron 25620006a0bStron/* Define HAVE_LOCALE if you have locale.h and setlocale. */ 25720006a0bStron#define HAVE_LOCALE 1 25820006a0bStron 25920006a0bStron/* Define HAVE_TERMIOS_FUNCS if you have tcgetattr/tcsetattr */ 26020006a0bStron#define HAVE_TERMIOS_FUNCS 1 26120006a0bStron 26220006a0bStron/* Define HAVE_UPPER_LOWER if you have isupper, islower, toupper, tolower */ 26320006a0bStron#define HAVE_UPPER_LOWER 1 26420006a0bStron 26520006a0bStron/* Define if you have the _setjmp function. */ 26620006a0bStron#define HAVE__SETJMP 0 26720006a0bStron 26820006a0bStron/* Define if you have the memcpy function. */ 26920006a0bStron#define HAVE_MEMCPY 1 27020006a0bStron 27120006a0bStron/* Define if you have the popen function. */ 27220006a0bStron#define HAVE_POPEN 1 27320006a0bStron 27420006a0bStron/* Define if you have the sigsetmask function. */ 27520006a0bStron#define HAVE_SIGSETMASK 0 27620006a0bStron 27720006a0bStron/* Define if you have the sigprocmask function. */ 27820006a0bStron#define HAVE_SIGPROCMASK 1 27920006a0bStron 28020006a0bStron/* Define if you have the sigset_t type and sigemptyset macro */ 28120006a0bStron#define HAVE_SIGSET_T 1 28220006a0bStron#define HAVE_SIGEMPTYSET 1 28320006a0bStron 28420006a0bStron/* Define if you have the stat function. */ 28520006a0bStron#define HAVE_STAT 1 28620006a0bStron 28720006a0bStron/* Define if you have the strchr function. */ 28820006a0bStron#define HAVE_STRCHR 1 28920006a0bStron 29020006a0bStron/* Define if you have the strstr function. */ 29120006a0bStron#define HAVE_STRSTR 1 29220006a0bStron 29320006a0bStron/* Define if you have the system function. */ 29420006a0bStron#define HAVE_SYSTEM 1 29520006a0bStron 29620006a0bStron/* Define if you have the snprintf function. */ 29720006a0bStron#define HAVE_SNPRINTF 0 29820006a0bStron 29920006a0bStron/* Define if you have the <ctype.h> header file. */ 30020006a0bStron#define HAVE_CTYPE_H 1 30120006a0bStron 30220006a0bStron/* Define if you have the <wctype.h> header file. */ 30320006a0bStron#define HAVE_WCTYPE_H 0 30420006a0bStron 30520006a0bStron/* Define if you have the <errno.h> header file. */ 30620006a0bStron#define HAVE_ERRNO_H 1 30720006a0bStron 30820006a0bStron/* Define if you have the <fcntl.h> header file. */ 30920006a0bStron#define HAVE_FCNTL_H 1 31020006a0bStron 31120006a0bStron/* Define if you have the <limits.h> header file. */ 31220006a0bStron#define HAVE_LIMITS_H 1 31320006a0bStron 31420006a0bStron/* Define if you have the <stdio.h> header file. */ 31520006a0bStron#define HAVE_STDIO_H 1 31620006a0bStron 31720006a0bStron/* Define if you have the <stdlib> header file. */ 31820006a0bStron#define HAVE_STDLIB_H 1 31920006a0bStron 32020006a0bStron/* Define if you have the <string.h> header file. */ 32120006a0bStron#define HAVE_STRING_H 1 32220006a0bStron 32320006a0bStron/* Define if you have the <sys/ioctl.h> header file. */ 32420006a0bStron#define HAVE_SYS_IOCTL_H 1 32520006a0bStron 32620006a0bStron/* Define if you have the <sys/ptem.h> header file. */ 32720006a0bStron#define HAVE_SYS_PTEM_H 0 32820006a0bStron 32920006a0bStron/* Define if you have the <sys/stream.h> header file. */ 33020006a0bStron#define HAVE_SYS_STREAM_H 0 33120006a0bStron 33220006a0bStron/* Define if you have the <termcap.h> header file. */ 33320006a0bStron#define HAVE_TERMCAP_H 1 33420006a0bStron 33520006a0bStron/* Define if you have the <termio.h> header file. */ 33620006a0bStron#define HAVE_TERMIO_H 1 33720006a0bStron 33820006a0bStron/* Define if you have the <termios.h> header file. */ 33920006a0bStron#define HAVE_TERMIOS_H 1 34020006a0bStron 34120006a0bStron/* Define if you have the <time.h> header file. */ 34220006a0bStron#define HAVE_TIME_H 1 34320006a0bStron 34420006a0bStron/* Define if you have the <unistd.h> header file. */ 34520006a0bStron#define HAVE_UNISTD_H 1 34620006a0bStron 34720006a0bStron/* Define if you have the <values.h> header file. */ 34820006a0bStron#define HAVE_VALUES_H 0 349