xref: /freebsd/contrib/tcsh/pathnames.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1 /*
2  * pathnames.h: Location of things to find
3  */
4 /*-
5  * Copyright (c) 1980, 1991 The Regents of the University of California.
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  * 3. Neither the name of the University nor the names of its contributors
17  *    may be used to endorse or promote products derived from this software
18  *    without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30  * SUCH DAMAGE.
31  */
32 #ifndef _h_pathnames
33 #define _h_pathnames
34 
35 #ifdef HAVE_PATHS_H
36 # include <paths.h>
37 #endif
38 
39 #if defined(CMUCS) && !defined(_PATH_LOCAL)
40 # define _PATH_LOCAL		"/usr/cs/bin"
41 #endif /* CMUCS && !_PATH_LOCAL */
42 
43 #if defined(convex) || defined(stellar) || defined(INTEL)
44 # ifndef _PATH_DOTLOGIN
45 #  define _PATH_DOTLOGIN	"/etc/login"
46 # endif /* !_PATH_DOTLOGIN */
47 # ifndef _PATH_DOTLOGOUT
48 #  define _PATH_DOTLOGOUT	"/etc/logout"
49 # endif /* !_PATH_DOTLOGOUT */
50 # ifndef _PATH_DOTCSHRC
51 #  define _PATH_DOTCSHRC	"/etc/cshrc"
52 # endif /* !_PATH_DOTCSHRC */
53 #endif /* convex || stellar || INTEL */
54 
55 #ifdef NeXT
56 # ifndef _PATH_DOTLOGIN
57 #  define _PATH_DOTLOGIN	"/etc/login.std"
58 # endif /* !_PATH_DOTLOGIN */
59 # ifndef _PATH_DOTLOGOUT
60 #  define _PATH_DOTLOGOUT	"/etc/logout.std"
61 # endif /* !_PATH_DOTLOGOUT */
62 # ifndef _PATH_DOTCSHRC
63 #  define _PATH_DOTCSHRC	"/etc/cshrc.std"
64 # endif /* !_PATH_DOTCSHRC */
65 #endif /* NeXT */
66 
67 /* for sunos5.  */
68 #if ((defined(sun) || defined(__sun__)) && (SYSVREL == 4))
69 # ifndef _PATH_DOTLOGIN
70 #  define _PATH_DOTLOGIN	"/etc/.login"
71 # endif /* !_PATH_DOTLOGIN */
72 # ifndef _PATH_DOTLOGOUT
73 #  define _PATH_DOTLOGOUT	"/etc/.logout"
74 # endif /* !_PATH_DOTLOGOUT */
75 # ifndef _PATH_DOTCSHRC
76 #  define _PATH_DOTCSHRC	"/etc/.cshrc"
77 # endif /* !_PATH_DOTCSHRC */
78 #endif /* sun & SVR4 */
79 
80 #if defined(sgi) || defined(OREO) || defined(cray) || defined(AMIX) || defined(CDC)
81 # ifndef _PATH_DOTLOGIN
82 #  define _PATH_DOTLOGIN	"/etc/cshrc"
83 # endif /* !_PATH_DOTLOGIN */
84 #endif /* sgi || OREO || cray || AMIX || CDC */
85 
86 #if (defined(_CRAYCOM) || defined(Lynx)) && !defined(_PATH_TCSHELL)
87 # define _PATH_TCSHELL		"/bin/tcsh"		/* 1st class shell */
88 #endif /* _CRAYCOM && !_PATH_TCSHELL */
89 
90 #if defined(_MINIX) && !defined(_PATH_TCSHELL)
91 # define _PATH_TCSHELL		"/local/bin/tcsh"	/* use ram disk */
92 #endif /* _MINIX && !_PATH_TCSHELL */
93 
94 #if defined(__linux__) && !defined(_PATH_TCSHELL)
95 # define _PATH_TCSHELL		"/bin/tcsh"
96 #endif /* __linux__ && !_PATH_TCSHELL */
97 
98 #if defined(__EMX__) && !defined(_PATH_DEVNULL)
99 # define _PATH_DEVNULL		"nul"
100 #endif /* __EMX__ && !_PATH_DEVNULL */
101 
102 #ifndef _PATH_LOCAL
103 # define _PATH_LOCAL		"/usr/local/bin"
104 #endif /* !_PATH_LOCAL */
105 
106 #ifndef _PATH_USRBIN
107 # define _PATH_USRBIN		"/usr/bin"
108 #endif /* !_PATH_USRBIN */
109 
110 #ifndef _PATH_USRUCB
111 # define _PATH_USRUCB		"/usr/ucb"
112 #endif /* !_PATH_USRUCB */
113 
114 #ifndef _PATH_USRBSD
115 # define _PATH_USRBSD		"/usr/bsd"
116 #endif /* !_PATH_USRBSD */
117 
118 #ifndef _PATH_BIN
119 # define _PATH_BIN		"/bin"
120 #endif /* !_PATH_BIN */
121 
122 #ifndef _PATH_DOTCSHRC
123 # define _PATH_DOTCSHRC		"/etc/csh.cshrc"
124 #endif /* !_PATH_DOTCSHRC */
125 
126 #ifndef _PATH_DOTLOGIN
127 # define _PATH_DOTLOGIN		"/etc/csh.login"
128 #endif /* !_PATH_DOTLOGIN */
129 
130 #ifndef _PATH_DOTLOGOUT
131 # define _PATH_DOTLOGOUT	"/etc/csh.logout"
132 #endif /* !_PATH_DOTLOGOUT */
133 
134 #ifndef _PATH_DEVNULL
135 # define _PATH_DEVNULL		"/dev/null"
136 #endif /* !_PATH_DEVNULL */
137 
138 #ifndef _PATH_BSHELL
139 # define _PATH_BSHELL		"/bin/sh"
140 #endif /* !_PATH_BSHELL */
141 
142 #ifndef _PATH_CSHELL
143 # define _PATH_CSHELL 		"/bin/csh"
144 #endif /* !_PATH_CSHELL */
145 
146 #ifndef _PATH_TCSHELL
147 # define _PATH_TCSHELL		"/usr/local/bin/tcsh"
148 #endif /* !_PATH_TCSHELL */
149 
150 #ifndef _PATH_BIN_LOGIN
151 # define _PATH_BIN_LOGIN	"/bin/login"
152 #endif /* !_PATH_BIN_LOGIN */
153 
154 #ifndef _PATH_USRBIN_LOGIN
155 # define _PATH_USRBIN_LOGIN	"/usr/bin/login"
156 #endif /* !_PATH_USRBIN_LOGIN */
157 
158 #ifndef _PATH_BIN_NEWGRP
159 # define _PATH_BIN_NEWGRP	"/bin/newgrp"
160 #endif /* _PATH_BIN_NEWGRP */
161 
162 #ifndef _PATH_USRBIN_NEWGRP
163 # define _PATH_USRBIN_NEWGRP	"/usr/bin/newgrp"
164 #endif /* _PATH_USRBIN_NEWGRP */
165 
166 
167 
168 #endif /* _h_pathnames */
169