summaryrefslogtreecommitdiff
path: root/udev_libc_wrapper.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-06-26 18:55:24 +0200
committerKay Sievers <kay.sievers@suse.de>2005-06-26 18:55:24 +0200
commitb8476286d62c82a1a0bd8de318aa3f7d835222a0 (patch)
tree37d3071c2767f819440083e34c5e68efde584b60 /udev_libc_wrapper.h
parent208f6aba21199ff4f93002eeb948d564f76843e6 (diff)
store the imported device information in the udevdb
Any program can query with udevinfo for persistent device attributes evaluated on device discovery now. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_libc_wrapper.h')
-rw-r--r--udev_libc_wrapper.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/udev_libc_wrapper.h b/udev_libc_wrapper.h
index 4d6d332c69..4bb68913a9 100644
--- a/udev_libc_wrapper.h
+++ b/udev_libc_wrapper.h
@@ -44,15 +44,18 @@
#include <string.h>
+#ifdef __KLIBC__
+static inline int clearenv(void)
+{
+ environ[0] = NULL;
+ return 0;
+}
+#endif
+
extern uid_t lookup_user(const char *user);
extern gid_t lookup_group(const char *group);
-#ifndef strlcat
extern size_t strlcpy(char *dst, const char *src, size_t size);
-#endif
-
-#ifndef strlcat
extern size_t strlcat(char *dst, const char *src, size_t size);
-#endif
#endif /* _UDEV_LIBC_WRAPPER_H_ */