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