Initial import from FreeBSD RELENG_4:
[dragonfly.git] / crypto / kerberosIV / appl / bsd / pathnames.h_
1 /*
2  * Copyright (c) 1989 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. All advertising materials mentioning features or use of this software
14  *    must display the following acknowledgement:
15  *      This product includes software developed by the University of
16  *      California, Berkeley and its contributors.
17  * 4. Neither the name of the University nor the names of its contributors
18  *    may be used to endorse or promote products derived from this software
19  *    without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31  * SUCH DAMAGE.
32  *
33  *      from: @(#)pathnames.h   5.2 (Berkeley) 4/9/90
34  *      $Id: pathnames.h,v 1.25 1998/02/03 23:29:30 assar Exp $
35  * $FreeBSD: src/crypto/kerberosIV/appl/bsd/pathnames.h_,v 1.1 1999/09/19 21:55:58 markm Exp $
36  */
37
38 /******* First fix default path, we stick to _PATH_DEFPATH everywhere */
39
40 #if !defined(_PATH_DEFPATH) && defined(_PATH_USERPATH)
41 #define _PATH_DEFPATH _PATH_USERPATH
42 #endif
43
44 #if defined(_PATH_DEFPATH) && !defined(_DEF_PATH)
45 #define _DEF_PATH _PATH_DEFPATH
46 #endif
47
48 #if !defined(_PATH_DEFPATH) && defined(_DEF_PATH)
49 #define _PATH_DEFPATH _DEF_PATH
50 #endif
51
52 #ifndef _PATH_DEFPATH
53 #define _PATH_DEFPATH "/usr/ucb:/usr/bin:/bin"
54 #define _DEF_PATH _PATH_DEFPATH
55 #endif /* !_PATH_DEFPATH */
56
57 #ifndef _PATH_DEFSUPATH
58 #define _PATH_DEFSUPATH "/usr/sbin:"  _DEF_PATH
59 #endif /* _PATH_DEFSUPATH */
60
61 /******* Default PATH fixed! */
62
63 #undef  _PATH_RLOGIN            /* Redifine rlogin */
64 #define _PATH_RLOGIN    BINDIR  "/rlogin"
65
66 #undef _PATH_RSH                /* Redifine rsh */
67 #define _PATH_RSH       BINDIR  "/rsh"
68
69 #undef _PATH_RCP                /* Redifine rcp */
70 #define _PATH_RCP       BINDIR  "/rcp"
71
72 #undef _PATH_LOGIN
73 #define _PATH_LOGIN     BINDIR "/login"
74
75 /******* The rest is fallback defaults */
76
77 #ifndef _PATH_DEV
78 #define _PATH_DEV "/dev/"
79 #endif
80
81 #ifndef _PATH_CP
82 #define _PATH_CP "/bin/cp"
83 #endif /* _PATH_CP */
84
85 #ifndef _PATH_SHELLS
86 #define _PATH_SHELLS "/etc/shells"
87 #endif /* _PATH_SHELLS */
88
89 #ifndef _PATH_BSHELL
90 #define _PATH_BSHELL "/bin/sh"
91 #endif /* _PATH_BSHELL */
92
93 #ifndef _PATH_CSHELL
94 #define _PATH_CSHELL "/bin/csh"
95 #endif /* _PATH_CSHELL */
96
97 #ifndef _PATH_NOLOGIN
98 #define _PATH_NOLOGIN "/etc/nologin"
99 #endif /* _PATH_NOLOGIN */
100
101 #ifndef _PATH_TTY
102 #define _PATH_TTY "/dev/tty"
103 #endif /* _PATH_TTY */
104
105 #ifndef _PATH_HUSHLOGIN
106 #define _PATH_HUSHLOGIN ".hushlogin"
107 #endif /* _PATH_HUSHLOGIN */
108
109 #ifndef _PATH_NOMAILCHECK
110 #define _PATH_NOMAILCHECK ".nomailcheck"
111 #endif /* _PATH_NOMAILCHECK */
112
113 #ifndef _PATH_MOTDFILE
114 #define _PATH_MOTDFILE "/etc/motd"
115 #endif /* _PATH_MOTDFILE */
116
117 #ifndef _PATH_LOGACCESS
118 #define _PATH_LOGACCESS "/etc/login.access"
119 #endif /* _PATH_LOGACCESS */
120
121 #ifndef _PATH_HEQUIV
122 #define _PATH_HEQUIV "/etc/hosts.equiv"
123 #endif
124
125 #ifndef _PATH_FBTAB
126 #define _PATH_FBTAB "/etc/fbtab"
127 #endif /* _PATH_FBTAB */
128
129 #ifndef _PATH_LOGINDEVPERM
130 #define _PATH_LOGINDEVPERM "/etc/logindevperm"
131 #endif /* _PATH_LOGINDEVPERM */
132
133 #ifndef _PATH_CHPASS
134 #define _PATH_CHPASS "/usr/bin/passwd"
135 #endif /* _PATH_CHPASS */
136
137 #if defined(__hpux)
138 #define __FALLBACK_MAILDIR__ "/usr/mail"
139 #else
140 #define __FALLBACK_MAILDIR__ "/usr/spool/mail"
141 #endif
142
143 #ifndef KRB4_MAILDIR
144 #ifndef _PATH_MAILDIR
145 #ifdef MAILDIR
146 #define _PATH_MAILDIR MAILDIR
147 #else
148 #define _PATH_MAILDIR __FALLBACK_MAILDIR__
149 #endif
150 #endif /* _PATH_MAILDIR */
151 #define KRB4_MAILDIR _PATH_MAILDIR
152 #endif
153
154 #ifndef _PATH_LASTLOG
155 #define _PATH_LASTLOG           "/var/adm/lastlog"
156 #endif
157
158 #if defined(UTMP_FILE) && !defined(_PATH_UTMP)
159 #define _PATH_UTMP UTMP_FILE
160 #endif
161
162 #ifndef _PATH_UTMP
163 #define _PATH_UTMP   "/etc/utmp"
164 #endif
165
166 #if defined(WTMP_FILE) && !defined(_PATH_WTMP)
167 #define _PATH_WTMP WTMP_FILE
168 #endif
169
170 #ifndef _PATH_WTMP
171 #define _PATH_WTMP   "/usr/adm/wtmp"
172 #endif
173
174 #ifndef _PATH_ETC_DEFAULT_LOGIN
175 #define _PATH_ETC_DEFAULT_LOGIN "/etc/default/login"
176 #endif
177
178 #ifndef _PATH_ETC_ENVIRONMENT
179 #define _PATH_ETC_ENVIRONMENT "/etc/environment"
180 #endif
181
182 #ifndef _PATH_ETC_SECURETTY
183 #define _PATH_ETC_SECURETTY "/etc/securetty"
184 #endif
185
186 /*
187  * NeXT KLUDGE ALERT!!!!!!!!!!!!!!!!!!
188  * Some sort of bug in the NEXTSTEP cpp.
189  */
190 #ifdef NeXT
191 #undef  _PATH_DEFSUPATH
192 #define _PATH_DEFSUPATH "/usr/sbin:/usr/ucb:/usr/bin:/bin"
193 #undef  _PATH_RLOGIN
194 #define _PATH_RLOGIN    "/usr/athena/bin/rlogin"
195 #undef  _PATH_RSH
196 #define _PATH_RSH       "/usr/athena/bin/rsh"
197 #undef  _PATH_RCP
198 #define _PATH_RCP       "/usr/athena/bin/rcp"
199 #undef  _PATH_LOGIN
200 #define _PATH_LOGIN     "/usr/athena/bin/login"
201 #endif