Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/lib/libc/string Pull up revision 1.12 (via patch, reque...
details: https://anonhg.NetBSD.org/src/rev/95e7ef99378f
branches: netbsd-1-5
changeset: 493077:95e7ef99378f
user: he <he%NetBSD.org@localhost>
date: Mon Apr 22 22:03:41 2002 +0000
description:
Pull up revision 1.12 (via patch, requested by kleink):
Use internal names for strlcat() and strlcpy().
diffstat:
lib/libc/string/strlcat.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 80c9d4843aa5 -r 95e7ef99378f lib/libc/string/strlcat.c
--- a/lib/libc/string/strlcat.c Mon Apr 22 22:02:42 2002 +0000
+++ b/lib/libc/string/strlcat.c Mon Apr 22 22:03:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strlcat.c,v 1.5 1999/09/20 04:39:47 lukem Exp $ */
+/* $NetBSD: strlcat.c,v 1.5.8.1 2002/04/22 22:03:41 he Exp $ */
/* from OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp */
/*
@@ -30,13 +30,18 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strlcat.c,v 1.5 1999/09/20 04:39:47 lukem Exp $");
+__RCSID("$NetBSD: strlcat.c,v 1.5.8.1 2002/04/22 22:03:41 he Exp $");
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <assert.h>
#include <string.h>
+#ifdef __weak_alias
+__weak_alias(strlcat, _strlcat)
+#endif
+
/*
* Appends src to string dst of size siz (unlike strncat, siz is the
* full size of dst, not space left). At most siz-1 characters
@@ -44,7 +49,7 @@
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
size_t
-strlcat(dst, src, siz)
+_strlcat(dst, src, siz)
char *dst;
const char *src;
size_t siz;
Home |
Main Index |
Thread Index |
Old Index