summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2007-11-28 14:08:33 +0100
committerKarel Zak <kzak@redhat.com>2007-11-28 14:08:33 +0100
commit4d43977ffcd294e58b9594ce479448fd91f88129 (patch)
tree2d179b1b868472498941e113ea25b049705c8654 /include
parente6590f06adeacdd4d1dcaf25cd1132e314978f62 (diff)
downloadutil-linux-old-4d43977ffcd294e58b9594ce479448fd91f88129.tar.gz
include: add mount paths to pathnames.h
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/pathnames.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index 49a1715d..e171d936 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -42,8 +42,6 @@
#define _PATH_USERTTY "/etc/usertty"
/* used in login-utils/shutdown.c */
-#define _PATH_MTAB "/etc/mtab"
-#define _PATH_UMOUNT "/bin/umount"
/* used in login-utils/setpwnam.h and login-utils/islocal.c */
#define _PATH_PASSWD "/etc/passwd"
@@ -68,5 +66,36 @@
#define _PATH_WORDS "/usr/share/dict/words"
#define _PATH_WORDS_ALT "/usr/share/dict/web2"
+/* mount paths */
+#define _PATH_UMOUNT "/bin/umount"
+
+#define _PATH_FILESYSTEMS "/etc/filesystems"
+#define _PATH_PROC_SWAPS "/proc/swaps"
+#define _PATH_PROC_FILESYSTEMS "/proc/filesystems"
+#define _PATH_PROC_MOUNTS "/proc/mounts"
+
+#ifndef _PATH_MOUNTED
+# ifdef MOUNTED /* deprecated */
+# define _PATH_MOUNTED MOUNTED
+# else
+# define _PATH_MOUNTED "/etc/mtab"
+# endif
+#endif
+
+#ifndef _PATH_MNTTAB
+# ifdef MNTTAB /* deprecated */
+# define _PATH_MNTTAB MNTTAB
+# else
+# define _PATH_MNTTAB "/etc/fstab"
+# endif
+#endif
+
+#define _PATH_MOUNTED_LOCK _PATH_MOUNTED "~"
+#define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp"
+
+/* udev paths */
+#define _PATH_DEV_BYLABEL "/dev/disk/by-label"
+#define _PATH_DEV_BYUUID "/dev/disk/by-uuid"
+
#endif /* PATHNAMES_H */