+/* Helper for functions which need either an absolute path in the
+ * mounted filesystem, OR a /dev/ device which exists.
+ * NB. Cannot be used for FileIn functions.
+ */
+#define NEED_ROOT_OR_IS_DEVICE(path,errcode) \
+ do { \
+ if (strncmp ((path), "/dev/", 5) == 0) \
+ IS_DEVICE ((path),(errcode)); \
+ else { \
+ NEED_ROOT ((errcode)); \
+ ABS_PATH ((path),(errcode)); \
+ } \
+ } while (0)
+