]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bsd/pathnames.h
Imported from util-linux-2.7.1 tarball.
[thirdparty/util-linux.git] / 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 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
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
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
43 #define SBINDIR "/sbin"
44 #endif
45
46 #ifndef USRSBINDIR
47 #define USRSBINDIR "/usr/sbin"
48 #endif
49
50 #ifndef LOGDIR
51 #define LOGDIR "/var/log"
52 #endif
53
54 #ifndef VARPATH
55 #define VARPATH "/var"
56 #endif
57
58 #ifndef UT_NAMESIZE
59 #define UT_NAMESIZE 8
60 #endif
61
62 #define _PATH_BSHELL "/bin/sh"
63 #define _PATH_CSHELL "/bin/csh"
64 #define _PATH_TTY "/dev/tty"
65 #define TTYTYPES "/etc/ttytype"
66 #define SECURETTY "/etc/securetty"
67 #define _PATH_UTMP "/var/run/utmp"
68 #define _PATH_WTMP LOGDIR "/wtmp"
69 #define _PATH_WTMPLOCK "/etc/wtmplock"
70
71 #define _PATH_DEFPATH "/usr/local/bin:/bin:/usr/bin:."
72 #define _PATH_DEFPATH_ROOT SBINDIR ":/bin:" USRSBINDIR ":/usr/bin"
73 #define _PATH_HUSHLOGIN ".hushlogin"
74 #define _PATH_LASTLOG LOGDIR "/lastlog"
75 #define _PATH_MAILDIR VARPATH "/spool/mail"
76 #define _PATH_MOTDFILE "/etc/motd"
77 #define _PATH_NOLOGIN "/etc/nologin"
78
79 #define _PATH_LOGIN "/bin/login"
80 #define _PATH_INITTAB "/etc/inittab"
81 #define _PATH_RC "/etc/rc"
82 #define _PATH_REBOOT SBINDIR "/reboot"
83 #define _PATH_SINGLE "/etc/singleboot"
84 #define _PATH_SECURE "/etc/securesingle"
85 #define _PATH_USERTTY "/etc/usertty"
86
87 #define _PATH_MTAB "/etc/mtab"
88 #define _PATH_UMOUNT "/bin/umount"
89 #define UMOUNT_ARGS "umount", "-a"
90 #define SWAPOFF_ARGS "swapoff", "-a"
91
92 #define _PATH_PASSWD "/etc/passwd"
93 #define _PATH_PTMP "/etc/ptmp"
94 #define _PATH_PTMPTMP "/etc/ptmptmp"
95
96 #define _PATH_GROUP "/etc/group"
97 #define _PATH_GTMP "/etc/gtmp"
98 #define _PATH_GTMPTMP "/etc/gtmptmp"
99
100 #define _PATH_WORDS "/usr/dict/words"
101 #define _PATH_WORDS_ALT "/usr/dict/web2"