chiark / gitweb /
switch some strlcpy's to memcpy
[elogind.git] / udev_libc_wrapper.h
index 4d6d332c691255e7e1ae001c67d3933f83e47bb7..a12af64c24ff34f72ff63987ed6b9d7ee8ae81fa 100644 (file)
 #define __FD_ZERO(set) ((void) memset ((void*) (set), 0, sizeof (fd_set)))
 #endif
 
+#ifndef NETLINK_KOBJECT_UEVENT
+#define NETLINK_KOBJECT_UEVENT 15
+#endif
+
 #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_ */