summaryrefslogtreecommitdiff
path: root/udev_lib.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-09-05 18:05:29 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 21:37:00 -0700
commit3169e8d1ee24c7d23d7e535eb22fced869104ff8 (patch)
tree15cf27879701e8173dcb94d3b4c0b8100f666058 /udev_lib.h
parent00d063985a209444d7252f622149351a5cff8939 (diff)
[PATCH] pass SEQNUM trough udevd
here we change udevd to pass the SEQNUM from the hotplug environment to udev and the dev.d/ scripts. We need this for HAL to match the hotplug event with the dev.d/ events. It also changes the type from int to long to match the kernel.
Diffstat (limited to 'udev_lib.h')
-rw-r--r--udev_lib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/udev_lib.h b/udev_lib.h
index 18ce25ccc7..53ad92d505 100644
--- a/udev_lib.h
+++ b/udev_lib.h
@@ -59,6 +59,12 @@ do { \
snprintf((to) + strlen(to), maxsize - strlen(to)-1, "%u", i); \
} while (0)
+#define strlongcat(to, i) \
+do { \
+ to[sizeof(to)-1] = '\0'; \
+ snprintf((to) + strlen(to), sizeof(to) - strlen(to)-1, "%li", i); \
+} while (0)
+
#define foreach_strpart(str, separator, pos, len) \
for(pos = str, len = 0; \
(pos) < ((str) + strlen(str)); \