xref: /freebsd/bin/csh/config_p.h (revision c8a8eb16)
190d5800dSMark Peek /* $FreeBSD$ */
2325c70b7SDavid E. O'Brien /*
3325c70b7SDavid E. O'Brien  * config.h -- configure various defines for tcsh
4325c70b7SDavid E. O'Brien  *
5325c70b7SDavid E. O'Brien  * All source files should #include this FIRST.
6325c70b7SDavid E. O'Brien  *
7325c70b7SDavid E. O'Brien  * Edit this to match your system type.
8325c70b7SDavid E. O'Brien  */
9325c70b7SDavid E. O'Brien 
10325c70b7SDavid E. O'Brien #ifndef _h_config
11325c70b7SDavid E. O'Brien #define _h_config
12463a577bSEitan Adler /****************** System dependent compilation flags ****************/
13325c70b7SDavid E. O'Brien /*
14325c70b7SDavid E. O'Brien  * POSIX	This system supports IEEE Std 1003.1-1988 (POSIX).
15325c70b7SDavid E. O'Brien  */
16325c70b7SDavid E. O'Brien #define POSIX
17325c70b7SDavid E. O'Brien 
18325c70b7SDavid E. O'Brien /*
19325c70b7SDavid E. O'Brien  * POSIXJOBS	This system supports the optional IEEE Std 1003.1-1988 (POSIX)
20325c70b7SDavid E. O'Brien  *		job control facilities.
21325c70b7SDavid E. O'Brien  */
22325c70b7SDavid E. O'Brien #define POSIXJOBS
23325c70b7SDavid E. O'Brien 
24325c70b7SDavid E. O'Brien /*
25325c70b7SDavid E. O'Brien  * VFORK	This machine has a vfork().
26325c70b7SDavid E. O'Brien  *		It used to be that for job control to work, this define
27325c70b7SDavid E. O'Brien  *		was mandatory. This is not the case any more.
28325c70b7SDavid E. O'Brien  *		If you think you still need it, but you don't have vfork,
29325c70b7SDavid E. O'Brien  *		define this anyway and then do #define vfork fork.
30325c70b7SDavid E. O'Brien  *		I do this anyway on a Sun because of yellow pages brain damage,
31325c70b7SDavid E. O'Brien  *		[should not be needed under 4.1]
32325c70b7SDavid E. O'Brien  *		and on the iris4d cause	SGI's fork is sufficiently "virtual"
33325c70b7SDavid E. O'Brien  *		that vfork isn't necessary.  (Besides, SGI's vfork is weird).
34325c70b7SDavid E. O'Brien  *		Note that some machines eg. rs6000 have a vfork, but not
35325c70b7SDavid E. O'Brien  *		with the berkeley semantics, so we cannot use it there either.
36325c70b7SDavid E. O'Brien  */
37c8a8eb16SMark Peek /* #define VFORK */
38c8a8eb16SMark Peek #define	vfork fork
39325c70b7SDavid E. O'Brien 
40325c70b7SDavid E. O'Brien /*
41325c70b7SDavid E. O'Brien  * BSDJOBS	You have BSD-style job control (both process groups and
42325c70b7SDavid E. O'Brien  *		a tty that deals correctly
43325c70b7SDavid E. O'Brien  */
44325c70b7SDavid E. O'Brien #define BSDJOBS
45325c70b7SDavid E. O'Brien 
46325c70b7SDavid E. O'Brien /*
47325c70b7SDavid E. O'Brien  * BSDTIMES	You have BSD-style process time stuff (like rusage)
48325c70b7SDavid E. O'Brien  *		This may or may not be true.  For example, Apple Unix
4915aaece8SMark Peek  *		(OREO) has BSDJOBS but not BSDTIMES.
50325c70b7SDavid E. O'Brien  */
51325c70b7SDavid E. O'Brien #define BSDTIMES
52325c70b7SDavid E. O'Brien 
53325c70b7SDavid E. O'Brien /*
54325c70b7SDavid E. O'Brien  * BSDLIMIT	You have BSD-style resource limit stuff (getrlimit/setrlimit)
55325c70b7SDavid E. O'Brien  */
56325c70b7SDavid E. O'Brien #define BSDLIMIT
57325c70b7SDavid E. O'Brien 
58325c70b7SDavid E. O'Brien /*
59325c70b7SDavid E. O'Brien  * TERMIO	You have struct termio instead of struct sgttyb.
60325c70b7SDavid E. O'Brien  * 		This is usually the case for SYSV systems, where
61325c70b7SDavid E. O'Brien  *		BSD uses sgttyb. POSIX systems should define this
62325c70b7SDavid E. O'Brien  *		anyway, even though they use struct termios.
63325c70b7SDavid E. O'Brien  */
64325c70b7SDavid E. O'Brien #define TERMIO
65325c70b7SDavid E. O'Brien 
66325c70b7SDavid E. O'Brien /*
67325c70b7SDavid E. O'Brien  * SYSVREL	Your machine is SYSV based (HPUX, A/UX)
68325c70b7SDavid E. O'Brien  *		NOTE: don't do this if you are on a Pyramid -- tcsh is
69325c70b7SDavid E. O'Brien  *		built in a BSD universe.
70325c70b7SDavid E. O'Brien  *		Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
71325c70b7SDavid E. O'Brien  *		you are running. Or set it to 0 if you are not SYSV based
72325c70b7SDavid E. O'Brien  */
73325c70b7SDavid E. O'Brien #define SYSVREL	0
74325c70b7SDavid E. O'Brien 
75325c70b7SDavid E. O'Brien /*
76325c70b7SDavid E. O'Brien  * YPBUGS	Work around Sun YP bugs that cause expansion of ~username
77325c70b7SDavid E. O'Brien  *		to send command output to /dev/null
78325c70b7SDavid E. O'Brien  */
7990d5800dSMark Peek #undef YPBUGS
80325c70b7SDavid E. O'Brien 
81325c70b7SDavid E. O'Brien /****************** local defines *********************/
82325c70b7SDavid E. O'Brien 
83325c70b7SDavid E. O'Brien #if defined(__FreeBSD__)
84325c70b7SDavid E. O'Brien #define NLS_BUGS
8590d5800dSMark Peek #define BSD_STYLE_COLORLS
86bed60216SAlexey Zelkin /* Use LC_MESSAGES locale category to open the message catalog */
872b40ba25SAlexey Zelkin #define MCLoadBySet NL_CAT_LOCALE
884a9ddcdcSMark Peek #define BUFSIZE 8192
89d0632ec9SEd Schouten #define UTMPX_FILE "/var/run/utx.active"
90325c70b7SDavid E. O'Brien #endif
91325c70b7SDavid E. O'Brien 
92325c70b7SDavid E. O'Brien #if defined(__bsdi__)
93325c70b7SDavid E. O'Brien /*
94325c70b7SDavid E. O'Brien  * _PATH_TCSHELL      if you've change the installation location (vix)
95325c70b7SDavid E. O'Brien  */
96e62468e4SMark Peek #include <sys/param.h>
97e62468e4SMark Peek # ifdef _BSDI_VERSION >= 199701
98325c70b7SDavid E. O'Brien #  define _PATH_TCSHELL "/bin/tcsh"
9990d5800dSMark Peek #  undef SYSMALLOC
100325c70b7SDavid E. O'Brien #  define SYSMALLOC
101325c70b7SDavid E. O'Brien # else
102325c70b7SDavid E. O'Brien #  define _PATH_TCSHELL "/usr/contrib/bin/tcsh"
103325c70b7SDavid E. O'Brien # endif
104325c70b7SDavid E. O'Brien 
10590d5800dSMark Peek # undef NLS
10690d5800dSMark Peek # undef NLS_CATALOGS
107325c70b7SDavid E. O'Brien 
108325c70b7SDavid E. O'Brien #elif defined(__APPLE__)
109325c70b7SDavid E. O'Brien # define SYSMALLOC
110325c70b7SDavid E. O'Brien #endif
111325c70b7SDavid E. O'Brien 
112325c70b7SDavid E. O'Brien #endif /* _h_config */
113