Upload Tizen:Base source
[framework/base/util-linux-ng.git] / include / pathnames.h
1 /*
2  * Vaguely based on
3  *      @(#)pathnames.h 5.3 (Berkeley) 5/9/89
4  * This code is in the public domain.
5  */
6 #ifndef PATHNAMES_H
7 #define PATHNAMES_H
8
9 #include <paths.h>
10
11 #ifndef __STDC__
12 # error "we need an ANSI compiler"
13 #endif
14
15 /* DEFPATHs from <paths.h> don't include /usr/local */
16 #undef _PATH_DEFPATH
17 #define _PATH_DEFPATH           "/usr/local/bin:/bin:/usr/bin"
18
19 #undef _PATH_DEFPATH_ROOT
20 #define _PATH_DEFPATH_ROOT      "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
21
22 #define _PATH_SECURETTY         "/etc/securetty"
23 #define _PATH_WTMPLOCK          "/etc/wtmplock"
24
25 #define _PATH_HUSHLOGIN         ".hushlogin"
26
27 #ifndef _PATH_MAILDIR
28 #define _PATH_MAILDIR           "/var/spool/mail"
29 #endif
30 #define _PATH_MOTDFILE          "/etc/motd"
31 #define _PATH_NOLOGIN           "/etc/nologin"
32
33 #define _PATH_LOGIN             "/bin/login"
34 #define _PATH_INITTAB           "/etc/inittab"
35 #define _PATH_RC                "/etc/rc"
36 #define _PATH_REBOOT            "/sbin/reboot"
37 #define _PATH_SINGLE            "/etc/singleboot"
38 #define _PATH_SHUTDOWN_CONF     "/etc/shutdown.conf"
39
40 #define _PATH_SECURE            "/etc/securesingle"
41 #define _PATH_USERTTY           "/etc/usertty"
42
43 /* used in login-utils/shutdown.c */
44
45 /* used in login-utils/setpwnam.h and login-utils/islocal.c */
46 #define _PATH_PASSWD            "/etc/passwd"
47
48 /* used in login-utils/newgrp */
49 #define _PATH_GSHADOW           "/etc/gshadow"
50
51 /* used in login-utils/setpwnam.h */
52 #define _PATH_PTMP              "/etc/ptmp"
53 #define _PATH_PTMPTMP           "/etc/ptmptmp"
54 #define _PATH_GROUP             "/etc/group"
55 #define _PATH_GTMP              "/etc/gtmp"
56 #define _PATH_GTMPTMP           "/etc/gtmptmp"
57 #define _PATH_SHADOW_PASSWD     "/etc/shadow"
58 #define _PATH_SHADOW_PTMP       "/etc/sptmp"
59 #define _PATH_SHADOW_PTMPTMP    "/etc/sptmptmp"
60 #define _PATH_SHADOW_GROUP      "/etc/gshadow"
61 #define _PATH_SHADOW_GTMP       "/etc/sgtmp"
62 #define _PATH_SHADOW_GTMPTMP    "/etc/sgtmptmp"
63
64 /* used in misc-utils/look.c */
65 #define _PATH_WORDS             "/usr/share/dict/words"
66 #define _PATH_WORDS_ALT         "/usr/share/dict/web2"
67
68 /* mount paths */
69 #define _PATH_UMOUNT            "/bin/umount"
70
71 #define _PATH_FILESYSTEMS       "/etc/filesystems"
72 #define _PATH_PROC_SWAPS        "/proc/swaps"
73 #define _PATH_PROC_FILESYSTEMS  "/proc/filesystems"
74 #define _PATH_PROC_MOUNTS       "/proc/mounts"
75 #define _PATH_PROC_PARTITIONS   "/proc/partitions"
76
77 #ifndef _PATH_MOUNTED
78 # ifdef MOUNTED                                 /* deprecated */
79 #  define _PATH_MOUNTED         MOUNTED
80 # else
81 #  define _PATH_MOUNTED         "/etc/mtab"
82 # endif
83 #endif
84
85 #ifndef _PATH_MNTTAB
86 # ifdef MNTTAB                                  /* deprecated */
87 #  define _PATH_MNTTAB          MNTTAB
88 # else
89 #  define _PATH_MNTTAB          "/etc/fstab"
90 # endif
91 #endif
92
93 #define _PATH_MOUNTED_LOCK      _PATH_MOUNTED "~"
94 #define _PATH_MOUNTED_TMP       _PATH_MOUNTED ".tmp"
95
96 #ifndef _PATH_DEV
97 # define _PATH_DEV              "/dev/"
98 #endif
99
100 #define _PATH_DEV_LOOP          "/dev/loop"
101 #define _PATH_DEV_TTY           "/dev/tty"
102
103 /* udev paths */
104 #define _PATH_DEV_BYLABEL       "/dev/disk/by-label"
105 #define _PATH_DEV_BYUUID        "/dev/disk/by-uuid"
106 #define _PATH_DEV_BYID          "/dev/disk/by-id"
107 #define _PATH_DEV_BYPATH        "/dev/disk/by-path"
108
109 #endif /* PATHNAMES_H */
110