summaryrefslogtreecommitdiffstats
path: root/include/pathnames.h
diff options
context:
space:
mode:
authorKarel Zak2009-06-30 01:13:42 +0200
committerKarel Zak2009-06-30 01:13:42 +0200
commitc74c0daffffbecf1299055fb35908721bcc853b2 (patch)
treecdeb71fbc09387caadca13cda7860b18b3f4e49f /include/pathnames.h
parentlosetup: fix return codes of functions arounf is_associated() (diff)
downloadkernel-qcow2-util-linux-c74c0daffffbecf1299055fb35908721bcc853b2.tar.gz
kernel-qcow2-util-linux-c74c0daffffbecf1299055fb35908721bcc853b2.tar.xz
kernel-qcow2-util-linux-c74c0daffffbecf1299055fb35908721bcc853b2.zip
include: clean up _PATH_DEV_* macros
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/pathnames.h')
-rw-r--r--include/pathnames.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/pathnames.h b/include/pathnames.h
index 0060a756f..12170f9df 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -19,7 +19,6 @@
#undef _PATH_DEFPATH_ROOT
#define _PATH_DEFPATH_ROOT "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
-#define _PATH_TTY "/dev/tty"
#define _PATH_SECURETTY "/etc/securetty"
#define _PATH_WTMPLOCK "/etc/wtmplock"
@@ -94,6 +93,13 @@
#define _PATH_MOUNTED_LOCK _PATH_MOUNTED "~"
#define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp"
+#ifndef _PATH_DEV
+# define _PATH_DEV "/dev"
+#endif
+
+#define _PATH_DEV_LOOP "/dev/loop"
+#define _PATH_DEV_TTY "/dev/tty"
+
/* udev paths */
#define _PATH_DEV_BYLABEL "/dev/disk/by-label"
#define _PATH_DEV_BYUUID "/dev/disk/by-uuid"