summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-27 05:47:48 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-27 05:47:48 +0200
commit5c0532d1cc989d2f78d2cd4a18058daa58143705 (patch)
tree9bdd6af7a17d9ddb8931a551992d77a61c65c4ed /src/util.h
parentc4dcdb9f4785937f2b73700e66b8cafa452f60a7 (diff)
mounts: automatically create /dev/stderr and friends early on boot so that they are around when we run shell scripts before udevd
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index ddf089cfe7..3256fbaafc 100644
--- a/src/util.h
+++ b/src/util.h
@@ -373,6 +373,9 @@ void dual_timestamp_deserialize(FILE *f, const char *line, dual_timestamp *t);
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)
+#define NULSTR_FOREACH_PAIR(i, j, l) \
+ for ((i) = (l), (j) = strchr((i), 0)+1; (i) && *(i); (i) = strchr((j), 0)+1, (j) = *(i) ? strchr((i), 0)+1 : (i))
+
const char *ioprio_class_to_string(int i);
int ioprio_class_from_string(const char *s);