Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[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  * $DragonFly: src/crypto/kerberosIV/appl/bsd/Attic/pathnames.h_,v 1.2 2003/06/17 04:24:36 dillon Exp $
37  */
38
39 /******* First fix default path, we stick to _PATH_DEFPATH everywhere */
40
41 #if !defined(_PATH_DEFPATH) && defined(_PATH_USERPATH)
42 #define _PATH_DEFPATH _PATH_USERPATH
43 #endif
44
45 #if defined(_PATH_DEFPATH) && !defined(_DEF_PATH)
46 #define _DEF_PATH _PATH_DEFPATH
47 #endif
48
49 #if !defined(_PATH_DEFPATH) && defined(_DEF_PATH)
50 #define _PATH_DEFPATH _DEF_PATH
51 #endif
52
53 #ifndef _PATH_DEFPATH
54 #define _PATH_DEFPATH "/usr/ucb:/usr/bin:/bin"
55 #define _DEF_PATH _PATH_DEFPATH
56 #endif /* !_PATH_DEFPATH */
57
58 #ifndef _PATH_DEFSUPATH
59 #define _PATH_DEFSUPATH "/usr/sbin:"  _DEF_PATH
60 #endif /* _PATH_DEFSUPATH */
61
62 /******* Default PATH fixed! */
63
64 #undef  _PATH_RLOGIN            /* Redifine rlogin */
65 #define _PATH_RLOGIN    BINDIR  "/rlogin"
66
67 #undef _PATH_RSH                /* Redifine rsh */
68 #define _PATH_RSH       BINDIR  "/rsh"
69
70 #undef _PATH_RCP                /* Redifine rcp */
71 #define _PATH_RCP       BINDIR  "/rcp"
72
73 #undef _PATH_LOGIN
74 #define _PATH_LOGIN     BINDIR "/login"
75
76 /******* The rest is fallback defaults */
77
78 #ifndef _PATH_DEV
79 #define _PATH_DEV "/dev/"
80 #endif
81
82 #ifndef _PATH_CP
83 #define _PATH_CP "/bin/cp"
84 #endif /* _PATH_CP */
85
86 #ifndef _PATH_SHELLS
87 #define _PATH_SHELLS "/etc/shells"
88 #endif /* _PATH_SHELLS */
89
90 #ifndef _PATH_BSHELL
91 #define _PATH_BSHELL "/bin/sh"
92 #endif /* _PATH_BSHELL */
93
94 #ifndef _PATH_CSHELL
95 #define _PATH_CSHELL "/bin/csh"
96 #endif /* _PATH_CSHELL */
97
98 #ifndef _PATH_NOLOGIN
99 #define _PATH_NOLOGIN "/etc/nologin"
100 #endif /* _PATH_NOLOGIN */
101
102 #ifndef _PATH_TTY
103 #define _PATH_TTY "/dev/tty"
104 #endif /* _PATH_TTY */
105
106 #ifndef _PATH_HUSHLOGIN
107 #define _PATH_HUSHLOGIN ".hushlogin"
108 #endif /* _PATH_HUSHLOGIN */
109
110 #ifndef _PATH_NOMAILCHECK
111 #define _PATH_NOMAILCHECK ".nomailcheck"
112 #endif /* _PATH_NOMAILCHECK */
113
114 #ifndef _PATH_MOTDFILE
115 #define _PATH_MOTDFILE "/etc/motd"
116 #endif /* _PATH_MOTDFILE */
117
118 #ifndef _PATH_LOGACCESS
119 #define _PATH_LOGACCESS "/etc/login.access"
120 #endif /* _PATH_LOGACCESS */
121
122 #ifndef _PATH_HEQUIV
123 #define _PATH_HEQUIV "/etc/hosts.equiv"
124 #endif
125
126 #ifndef _PATH_FBTAB
127 #define _PATH_FBTAB "/etc/fbtab"
128 #endif /* _PATH_FBTAB */
129
130 #ifndef _PATH_LOGINDEVPERM
131 #define _PATH_LOGINDEVPERM "/etc/logindevperm"
132 #endif /* _PATH_LOGINDEVPERM */
133
134 #ifndef _PATH_CHPASS
135 #define _PATH_CHPASS "/usr/bin/passwd"
136 #endif /* _PATH_CHPASS */
137
138 #if defined(__hpux)
139 #define __FALLBACK_MAILDIR__ "/usr/mail"
140 #else
141 #define __FALLBACK_MAILDIR__ "/usr/spool/mail"
142 #endif
143
144 #ifndef KRB4_MAILDIR
145 #ifndef _PATH_MAILDIR
146 #ifdef MAILDIR
147 #define _PATH_MAILDIR MAILDIR
148 #else
149 #define _PATH_MAILDIR __FALLBACK_MAILDIR__
150 #endif
151 #endif /* _PATH_MAILDIR */
152 #define KRB4_MAILDIR _PATH_MAILDIR
153 #endif
154
155 #ifndef _PATH_LASTLOG
156 #define _PATH_LASTLOG           "/var/adm/lastlog"
157 #endif
158
159 #if defined(UTMP_FILE) && !defined(_PATH_UTMP)
160 #define _PATH_UTMP UTMP_FILE
161 #endif
162
163 #ifndef _PATH_UTMP
164 #define _PATH_UTMP   "/etc/utmp"
165 #endif
166
167 #if defined(WTMP_FILE) && !defined(_PATH_WTMP)
168 #define _PATH_WTMP WTMP_FILE
169 #endif
170
171 #ifndef _PATH_WTMP
172 #define _PATH_WTMP   "/usr/adm/wtmp"
173 #endif
174
175 #ifndef _PATH_ETC_DEFAULT_LOGIN
176 #define _PATH_ETC_DEFAULT_LOGIN "/etc/default/login"
177 #endif
178
179 #ifndef _PATH_ETC_ENVIRONMENT
180 #define _PATH_ETC_ENVIRONMENT "/etc/environment"
181 #endif
182
183 #ifndef _PATH_ETC_SECURETTY
184 #define _PATH_ETC_SECURETTY "/etc/securetty"
185 #endif
186
187 /*
188  * NeXT KLUDGE ALERT!!!!!!!!!!!!!!!!!!
189  * Some sort of bug in the NEXTSTEP cpp.
190  */
191 #ifdef NeXT
192 #undef  _PATH_DEFSUPATH
193 #define _PATH_DEFSUPATH "/usr/sbin:/usr/ucb:/usr/bin:/bin"
194 #undef  _PATH_RLOGIN
195 #define _PATH_RLOGIN    "/usr/athena/bin/rlogin"
196 #undef  _PATH_RSH
197 #define _PATH_RSH       "/usr/athena/bin/rsh"
198 #undef  _PATH_RCP
199 #define _PATH_RCP       "/usr/athena/bin/rcp"
200 #undef  _PATH_LOGIN
201 #define _PATH_LOGIN     "/usr/athena/bin/login"
202 #endif