File:  [ELWIX - Embedded LightWeight unIX -] / elwix / files / csh / config_p.h
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Fri Jul 16 18:35:50 2021 UTC (3 years ago) by misho
Branches: MAIN
CVS tags: elwix2_8, HEAD, ELWIX2_7
ver 2.7

    1: /* $FreeBSD$ */
    2: /*
    3:  * config.h -- configure various defines for tcsh
    4:  *
    5:  * All source files should #include this FIRST.
    6:  *
    7:  * Edit this to match your system type.
    8:  */
    9: 
   10: #ifndef _h_config
   11: #define _h_config
   12: /****************** System dependent compilation flags ****************/
   13: /*
   14:  * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
   15:  */
   16: #define POSIX
   17: 
   18: /*
   19:  * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
   20:  *		job control facilities.
   21:  */
   22: #define POSIXJOBS
   23: 
   24: /*
   25:  * VFORK	This machine has a vfork().  
   26:  *		It used to be that for job control to work, this define
   27:  *		was mandatory. This is not the case any more.
   28:  *		If you think you still need it, but you don't have vfork, 
   29:  *		define this anyway and then do #define vfork fork.  
   30:  *		I do this anyway on a Sun because of yellow pages brain damage,
   31:  *		[should not be needed under 4.1]
   32:  *		and on the iris4d cause	SGI's fork is sufficiently "virtual" 
   33:  *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
   34:  *		Note that some machines eg. rs6000 have a vfork, but not
   35:  *		with the berkeley semantics, so we cannot use it there either.
   36:  */
   37: /* #define VFORK */
   38: #define	vfork fork
   39: 
   40: /*
   41:  * BSDJOBS	You have BSD-style job control (both process groups and
   42:  *		a tty that deals correctly
   43:  */
   44: #define BSDJOBS
   45: 
   46: /*
   47:  * BSDTIMES	You have BSD-style process time stuff (like rusage)
   48:  *		This may or may not be true.  For example, Apple Unix
   49:  *		(OREO) has BSDJOBS but not BSDTIMES.
   50:  */
   51: #define BSDTIMES
   52: 
   53: /*
   54:  * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
   55:  */
   56: #define BSDLIMIT
   57: 
   58: /*
   59:  * TERMIO	You have struct termio instead of struct sgttyb.
   60:  * 		This is usually the case for SYSV systems, where
   61:  *		BSD uses sgttyb. POSIX systems should define this
   62:  *		anyway, even though they use struct termios.
   63:  */
   64: #define TERMIO
   65: 
   66: /*
   67:  * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
   68:  *		NOTE: don't do this if you are on a Pyramid -- tcsh is
   69:  *		built in a BSD universe.
   70:  *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
   71:  *		you are running. Or set it to 0 if you are not SYSV based
   72:  */
   73: #define SYSVREL	0
   74: 
   75: /*
   76:  * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
   77:  *		to send command output to /dev/null
   78:  */
   79: #undef YPBUGS
   80: 
   81: /****************** local defines *********************/
   82: 
   83: #if defined(__FreeBSD__)
   84: #define NLS_BUGS
   85: #define BSD_STYLE_COLORLS
   86: /* Use LC_MESSAGES locale category to open the message catalog */
   87: #define MCLoadBySet NL_CAT_LOCALE
   88: #define BUFSIZE 8192
   89: #define UTMPX_FILE "/var/run/utx.active"
   90: #endif
   91: 
   92: #if defined(__bsdi__)
   93: /*
   94:  * _PATH_TCSHELL      if you've change the installation location (vix)
   95:  */
   96: #include <sys/param.h>
   97: # ifdef _BSDI_VERSION >= 199701
   98: #  define _PATH_TCSHELL "/bin/tcsh"
   99: #  undef SYSMALLOC
  100: #  define SYSMALLOC
  101: # else
  102: #  define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
  103: # endif
  104: 
  105: # undef NLS
  106: # undef NLS_CATALOGS
  107: 
  108: #elif defined(__APPLE__)
  109: # define SYSMALLOC
  110: #endif
  111: 
  112: #endif /* _h_config */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>