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