1100894Srwatson/*
2168955Srwatson * pathnames.h: Location of things to find
3172930Srwatson */
4189503Srwatson/*-
5100894Srwatson * Copyright (c) 1980, 1991 The Regents of the University of California.
6100894Srwatson * All rights reserved.
7106392Srwatson *
8106392Srwatson * Redistribution and use in source and binary forms, with or without
9106392Srwatson * modification, are permitted provided that the following conditions
10106392Srwatson * are met:
11100894Srwatson * 1. Redistributions of source code must retain the above copyright
12168951Srwatson *    notice, this list of conditions and the following disclaimer.
13168951Srwatson * 2. Redistributions in binary form must reproduce the above copyright
14168951Srwatson *    notice, this list of conditions and the following disclaimer in the
15172930Srwatson *    documentation and/or other materials provided with the distribution.
16172930Srwatson * 3. Neither the name of the University nor the names of its contributors
17172930Srwatson *    may be used to endorse or promote products derived from this software
18189503Srwatson *    without specific prior written permission.
19189503Srwatson *
20189503Srwatson * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21100894Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22100894Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23100894Srwatson * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24100894Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25100894Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26100894Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27100894Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28100894Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29100894Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30100894Srwatson * SUCH DAMAGE.
31100894Srwatson */
32100894Srwatson#ifndef _h_pathnames
33100894Srwatson#define _h_pathnames
34100894Srwatson
35100894Srwatson#ifdef HAVE_PATHS_H
36100894Srwatson# include <paths.h>
37100894Srwatson#endif
38100894Srwatson
39100894Srwatson#if defined(CMUCS) && !defined(_PATH_LOCAL)
40100894Srwatson# define _PATH_LOCAL		"/usr/cs/bin"
41100894Srwatson#endif /* CMUCS && !_PATH_LOCAL */
42116182Sobrien
43168951Srwatson#if defined(convex) || defined(stellar) || defined(INTEL)
44168951Srwatson# ifndef _PATH_DOTLOGIN
45168951Srwatson#  define _PATH_DOTLOGIN	"/etc/login"
46168951Srwatson# endif /* !_PATH_DOTLOGIN */
47168951Srwatson# ifndef _PATH_DOTLOGOUT
48168951Srwatson#  define _PATH_DOTLOGOUT	"/etc/logout"
49168951Srwatson# endif /* !_PATH_DOTLOGOUT */
50168951Srwatson# ifndef _PATH_DOTCSHRC
51168951Srwatson#  define _PATH_DOTCSHRC	"/etc/cshrc"
52168951Srwatson# endif /* !_PATH_DOTCSHRC */
53116182Sobrien#endif /* convex || stellar || INTEL */
54116182Sobrien
55116182Sobrien#ifdef NeXT
56100894Srwatson# ifndef _PATH_DOTLOGIN
57101173Srwatson#  define _PATH_DOTLOGIN	"/etc/login.std"
58100894Srwatson# endif /* !_PATH_DOTLOGIN */
59100979Srwatson# ifndef _PATH_DOTLOGOUT
60100979Srwatson#  define _PATH_DOTLOGOUT	"/etc/logout.std"
61102949Sbde# endif /* !_PATH_DOTLOGOUT */
62129880Sphk# ifndef _PATH_DOTCSHRC
63100979Srwatson#  define _PATH_DOTCSHRC	"/etc/cshrc.std"
64189503Srwatson# endif /* !_PATH_DOTCSHRC */
65100979Srwatson#endif /* NeXT */
66100979Srwatson
67100979Srwatson/* for sunos5.  */
68100894Srwatson#if ((defined(sun) || defined(__sun__)) && (SYSVREL == 4))
69163606Srwatson# ifndef _PATH_DOTLOGIN
70121362Srwatson#  define _PATH_DOTLOGIN	"/etc/.login"
71165469Srwatson# endif /* !_PATH_DOTLOGIN */
72100979Srwatson# ifndef _PATH_DOTLOGOUT
73189503Srwatson#  define _PATH_DOTLOGOUT	"/etc/.logout"
74189503Srwatson# endif /* !_PATH_DOTLOGOUT */
75100894Srwatson# ifndef _PATH_DOTCSHRC
76172930Srwatson#  define _PATH_DOTCSHRC	"/etc/.cshrc"
77106308Srwatson# endif /* !_PATH_DOTCSHRC */
78106308Srwatson#endif /* sun & SVR4 */
79106308Srwatson
80191731Srwatson#if defined(sgi) || defined(OREO) || defined(cray) || defined(AMIX) || defined(CDC)
81189503Srwatson# ifndef _PATH_DOTLOGIN
82106308Srwatson#  define _PATH_DOTLOGIN	"/etc/cshrc"
83106308Srwatson# endif /* !_PATH_DOTLOGIN */
84106308Srwatson#endif /* sgi || OREO || cray || AMIX || CDC */
85106308Srwatson
86189503Srwatson#if (defined(_CRAYCOM) || defined(Lynx)) && !defined(_PATH_TCSHELL)
87189503Srwatson# define _PATH_TCSHELL		"/bin/tcsh"		/* 1st class shell */
88106308Srwatson#endif /* _CRAYCOM && !_PATH_TCSHELL */
89172930Srwatson
90106308Srwatson#if defined(_MINIX) && !defined(_PATH_TCSHELL)
91106308Srwatson# define _PATH_TCSHELL		"/local/bin/tcsh"	/* use ram disk */
92106308Srwatson#endif /* _MINIX && !_PATH_TCSHELL */
93191731Srwatson
94189503Srwatson#if defined(__linux__) && !defined(_PATH_TCSHELL)
95106308Srwatson# define _PATH_TCSHELL		"/bin/tcsh"
96106308Srwatson#endif /* __linux__ && !_PATH_TCSHELL */
97106308Srwatson
98106308Srwatson#if defined(__EMX__) && !defined(_PATH_DEVNULL)
99189503Srwatson# define _PATH_DEVNULL		"nul"
100189503Srwatson#endif /* __EMX__ && !_PATH_DEVNULL */
101189503Srwatson
102106308Srwatson#ifndef _PATH_LOCAL
103172930Srwatson# define _PATH_LOCAL		"/usr/local/bin"
104106308Srwatson#endif /* !_PATH_LOCAL */
105106308Srwatson
106106308Srwatson#ifndef _PATH_USRBIN
107191731Srwatson# define _PATH_USRBIN		"/usr/bin"
108189503Srwatson#endif /* !_PATH_USRBIN */
109106308Srwatson
110106308Srwatson#ifndef _PATH_USRUCB
111106308Srwatson# define _PATH_USRUCB		"/usr/ucb"
112106308Srwatson#endif /* !_PATH_USRUCB */
113189503Srwatson
114189503Srwatson#ifndef _PATH_USRBSD
115106308Srwatson# define _PATH_USRBSD		"/usr/bsd"
116172930Srwatson#endif /* !_PATH_USRBSD */
117106308Srwatson
118106308Srwatson#ifndef _PATH_BIN
119106308Srwatson# define _PATH_BIN		"/bin"
120191731Srwatson#endif /* !_PATH_BIN */
121189503Srwatson
122106308Srwatson#ifndef _PATH_DOTCSHRC
123106308Srwatson# define _PATH_DOTCSHRC		"/etc/csh.cshrc"
124106308Srwatson#endif /* !_PATH_DOTCSHRC */
125106308Srwatson
126189503Srwatson#ifndef _PATH_DOTLOGIN
127189503Srwatson# define _PATH_DOTLOGIN		"/etc/csh.login"
128106308Srwatson#endif /* !_PATH_DOTLOGIN */
129172930Srwatson
130107089Srwatson#ifndef _PATH_DOTLOGOUT
131107089Srwatson# define _PATH_DOTLOGOUT	"/etc/csh.logout"
132107089Srwatson#endif /* !_PATH_DOTLOGOUT */
133172930Srwatson
134107089Srwatson#ifndef _PATH_DEVNULL
135191731Srwatson# define _PATH_DEVNULL		"/dev/null"
136189503Srwatson#endif /* !_PATH_DEVNULL */
137107089Srwatson
138107089Srwatson#ifndef _PATH_BSHELL
139107089Srwatson# define _PATH_BSHELL		"/bin/sh"
140107089Srwatson#endif /* !_PATH_BSHELL */
141189503Srwatson
142189503Srwatson#ifndef _PATH_CSHELL
143107089Srwatson# define _PATH_CSHELL 		"/bin/csh"
144172930Srwatson#endif /* !_PATH_CSHELL */
145107089Srwatson
146107089Srwatson#ifndef _PATH_TCSHELL
147107089Srwatson# define _PATH_TCSHELL		"/usr/local/bin/tcsh"
148191731Srwatson#endif /* !_PATH_TCSHELL */
149189503Srwatson
150107089Srwatson#ifndef _PATH_BIN_LOGIN
151107089Srwatson# define _PATH_BIN_LOGIN	"/bin/login"
152107089Srwatson#endif /* !_PATH_BIN_LOGIN */
153107089Srwatson
154189503Srwatson#ifndef _PATH_USRBIN_LOGIN
155189503Srwatson# define _PATH_USRBIN_LOGIN	"/usr/bin/login"
156189503Srwatson#endif /* !_PATH_USRBIN_LOGIN */
157107089Srwatson
158172930Srwatson#ifndef _PATH_BIN_NEWGRP
159106412Srwatson# define _PATH_BIN_NEWGRP	"/bin/newgrp"
160106412Srwatson#endif /* _PATH_BIN_NEWGRP */
161106412Srwatson
162106412Srwatson#ifndef _PATH_USRBIN_NEWGRP
163172930Srwatson# define _PATH_USRBIN_NEWGRP	"/usr/bin/newgrp"
164106412Srwatson#endif /* _PATH_USRBIN_NEWGRP */
165106412Srwatson
166191731Srwatson
167122524Srwatson
168189503Srwatson#endif /* _h_pathnames */
169106412Srwatson