]>
Commit | Line | Data |
---|---|---|
6dbe3af9 KZ |
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 are permitted | |
6 | * provided that the above copyright notice and this paragraph are | |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
16 | * | |
17 | * @(#)pathnames.h 5.3 (Berkeley) 5/9/89 | |
18 | * | |
19 | * Changed: Sun Nov 21 12:30:54 1993 by faith@cs.unc.edu | |
20 | * Changed: Wed Jun 22 20:47:27 1994 by faith@cs.unc.edu, based on changes | |
21 | * from poe@daimi.aau.dk | |
22 | * Changed: Wed Jun 22 22:50:13 1994 by faith@cs.unc.edu | |
23 | * Changed: Sat Feb 4 16:02:10 1995 by faith@cs.unc.edu | |
fd6b7a7f KZ |
24 | * Changed: Tue Jul 2 09:37:36 1996 by janl@math.uio.no, axp patches |
25 | * Changed: Thu Nov 9 21:58:36 1995 by joey@infodrom.north.de | |
6dbe3af9 KZ |
26 | */ |
27 | ||
28 | #ifndef __STDC__ | |
29 | # error "we need an ANSI compiler" | |
30 | #endif | |
31 | ||
32 | /* The paths for some of these are wrong in /usr/include/paths.h, but we | |
33 | re-define them here. */ | |
34 | ||
35 | #undef _PATH_UTMP | |
36 | #undef _PATH_WTMP | |
37 | #undef _PATH_DEFPATH | |
38 | #undef _PATH_DEFPATH_ROOT | |
39 | #undef _PATH_LASTLOG | |
40 | #undef _PATH_MAILDIR | |
41 | ||
42 | #ifndef SBINDIR | |
726f69e2 | 43 | #define SBINDIR "/sbin" |
6dbe3af9 KZ |
44 | #endif |
45 | ||
46 | #ifndef USRSBINDIR | |
726f69e2 | 47 | #define USRSBINDIR "/usr/sbin" |
6dbe3af9 KZ |
48 | #endif |
49 | ||
50 | #ifndef LOGDIR | |
726f69e2 | 51 | #define LOGDIR "/var/log" |
6dbe3af9 KZ |
52 | #endif |
53 | ||
54 | #ifndef VARPATH | |
726f69e2 | 55 | #define VARPATH "/var" |
6dbe3af9 KZ |
56 | #endif |
57 | ||
fd6b7a7f KZ |
58 | #ifndef UT_NAMESIZE |
59 | #define UT_NAMESIZE 8 | |
60 | #endif | |
61 | ||
6dbe3af9 KZ |
62 | #define _PATH_BSHELL "/bin/sh" |
63 | #define _PATH_CSHELL "/bin/csh" | |
6dbe3af9 KZ |
64 | #define _PATH_TTY "/dev/tty" |
65 | #define TTYTYPES "/etc/ttytype" | |
66 | #define SECURETTY "/etc/securetty" | |
726f69e2 | 67 | #define _PATH_UTMP "/var/run/utmp" |
6dbe3af9 | 68 | #define _PATH_WTMP LOGDIR "/wtmp" |
fd6b7a7f | 69 | #define _PATH_WTMPLOCK "/etc/wtmplock" |
6dbe3af9 | 70 | |
5c36a0eb KZ |
71 | /* no more . in DEFPATH */ |
72 | #define _PATH_DEFPATH "/usr/local/bin:/bin:/usr/bin" | |
6dbe3af9 KZ |
73 | #define _PATH_DEFPATH_ROOT SBINDIR ":/bin:" USRSBINDIR ":/usr/bin" |
74 | #define _PATH_HUSHLOGIN ".hushlogin" | |
75 | #define _PATH_LASTLOG LOGDIR "/lastlog" | |
76 | #define _PATH_MAILDIR VARPATH "/spool/mail" | |
77 | #define _PATH_MOTDFILE "/etc/motd" | |
78 | #define _PATH_NOLOGIN "/etc/nologin" | |
79 | ||
80 | #define _PATH_LOGIN "/bin/login" | |
81 | #define _PATH_INITTAB "/etc/inittab" | |
82 | #define _PATH_RC "/etc/rc" | |
83 | #define _PATH_REBOOT SBINDIR "/reboot" | |
84 | #define _PATH_SINGLE "/etc/singleboot" | |
5c36a0eb KZ |
85 | #define _PATH_SHUTDOWN_CONF "/etc/shutdown.conf" |
86 | ||
6dbe3af9 KZ |
87 | #define _PATH_SECURE "/etc/securesingle" |
88 | #define _PATH_USERTTY "/etc/usertty" | |
89 | ||
90 | #define _PATH_MTAB "/etc/mtab" | |
91 | #define _PATH_UMOUNT "/bin/umount" | |
92 | #define UMOUNT_ARGS "umount", "-a" | |
726f69e2 | 93 | #define SWAPOFF_ARGS "swapoff", "-a" |
6dbe3af9 KZ |
94 | |
95 | #define _PATH_PASSWD "/etc/passwd" | |
96 | #define _PATH_PTMP "/etc/ptmp" | |
97 | #define _PATH_PTMPTMP "/etc/ptmptmp" | |
98 | ||
fd6b7a7f KZ |
99 | #define _PATH_GROUP "/etc/group" |
100 | #define _PATH_GTMP "/etc/gtmp" | |
101 | #define _PATH_GTMPTMP "/etc/gtmptmp" | |
102 | ||
6dbe3af9 KZ |
103 | #define _PATH_WORDS "/usr/dict/words" |
104 | #define _PATH_WORDS_ALT "/usr/dict/web2" |