[BACK]Return to defines.h.in CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Annotation of src/usr.bin/less/defines.h.in, Revision 1.1.1.2

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