20 #if !defined(_KERNEL) && !defined(_STANDALONE)
21 #if HAVE_NBTOOL_CONFIG_H
22 #include "nbtool_config.h"
27 #if defined(LIBC_SCCS) && !defined(lint)
31 #include "namespace.h"
33 #include <sys/types.h>
39 __weak_alias(strlcpy, _strlcpy)
43 #include <lib/libkern/libkern.h>
54 strlcpy(
char *dst,
const char *src,
size_t siz)
60 _DIAGASSERT(dst != NULL);
61 _DIAGASSERT(src != NULL);
64 if (n != 0 && --n != 0) {
66 if ((*d++ = *s++) == 0)