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(strlcat, _strlcat)
44 #include <lib/libkern/libkern.h>
56 strlcat(
char *dst,
const char *src,
size_t siz)
63 _DIAGASSERT(dst != NULL);
64 _DIAGASSERT(src != NULL);
67 while (n-- != 0 && *d !=
'\0')
73 return(dlen + strlen(s));
83 return(dlen + (s - src));