home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / k / ksh48.zip / sh / config.h < prev    next >
C/C++ Source or Header  |  1993-01-12  |  2KB  |  71 lines

  1. /*
  2.  * Configuration file for the PD ksh
  3.  *
  4.  * RCSid: $Id: config.h,v 1.6 1992/12/05 13:15:15 sjg Exp $
  5.  */
  6.  
  7. #ifndef    _CONFIG_H
  8. #define    _CONFIG_H
  9.  
  10. /*
  11.  * Builtin edit modes
  12.  */
  13.  
  14. #define    EMACS                /* EMACS-like mode */
  15. #define    VI                /* vi-like mode */
  16. /* #define    JOBS                /* job control */
  17.  
  18. #ifndef SIGINT
  19. #include <signal.h>
  20. #endif
  21.  
  22. /*
  23.  * leave USE_SIGACT defined.
  24.  * if you don't have sigaction(2) and the
  25.  * implementation in sigact.c doesn't work for your system,
  26.  * fix it.
  27.  * 
  28.  * Of course if your system has a real sigaction() 
  29.  * implementation that is faulty! undef JOBS and add USE_SIGNAL
  30.  * or whatever does work.  You may find it necessary to undef
  31.  * USE_SIGACT, if so please report it.
  32.  */
  33. #ifndef OS2
  34. #define USE_SIGACT            /* POSIX signal handling */
  35. #endif
  36.  
  37. /* 
  38.  * These control how sigact.c implements sigaction()
  39.  * If you don't define any of them it will try and work it out 
  40.  * for itself.  The are listed in order of preference (usefulness).
  41.  */
  42. /* #define USE_SIGMASK            /* BSD4.2 ? signal handling */
  43. /* #define USE_SIGSET            /* BSD4.1 ? signal handling */
  44. /* #define USE_SIGNAL            /* plain old signal(2) */
  45.  
  46. #if defined(JOBS) && (!defined(SIGCONT) || (defined(_SYSV) && defined(USE_SIGNAL)))
  47. #undef JOBS
  48. #endif
  49.  
  50. /* #define    FASCIST            /* Fascist getopts */
  51. #define    SHARPBANG            /* Hack to handle #! */
  52. #define    SILLY            /* Game of life in EMACS mode */
  53. /* #define    SWTCH            /* Handle SWTCH for shl(1) */
  54.  
  55.  
  56. /*
  57.  * ALTERNATIONS is csh not ksh, but it is such a nice feature...
  58.  */
  59. #define ALTERNATIONS            /* csh {a,b,c} arg expansion */
  60.  
  61. /* #define COMPLEX_HISTORY            /* Peter Collinson's history */
  62. /*
  63.  * if you don't have mmap() you can't use Peter Collinson's history
  64.  * mechanism.  If that is the case, then define EASY_HISTORY
  65.  */
  66. #if !defined(COMPLEX_HISTORY) || defined(NO_MMAP)
  67. # define EASY_HISTORY            /* sjg's trivial history file */
  68. #endif
  69.   
  70. #endif    /* _CONFIG_H */
  71.