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.10 (via patch, reque...



details:   https://anonhg.NetBSD.org/src/rev/2432893c858f
branches:  netbsd-1-5
changeset: 493078:2432893c858f
user:      he <he%NetBSD.org@localhost>
date:      Mon Apr 22 22:04:07 2002 +0000

description:
Pull up revision 1.10 (via patch, requested by kleink):
  Use internal names for strlcat() and strlcpy().

diffstat:

 lib/libc/string/strlcpy.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 95e7ef99378f -r 2432893c858f lib/libc/string/strlcpy.c
--- a/lib/libc/string/strlcpy.c Mon Apr 22 22:03:41 2002 +0000
+++ b/lib/libc/string/strlcpy.c Mon Apr 22 22:04:07 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strlcpy.c,v 1.5 1999/09/20 04:39:47 lukem Exp $        */
+/*     $NetBSD: strlcpy.c,v 1.5.8.1 2002/04/22 22:04:07 he Exp $       */
 /*     from OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp   */
 
 /*
@@ -30,20 +30,25 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strlcpy.c,v 1.5 1999/09/20 04:39:47 lukem Exp $");
+__RCSID("$NetBSD: strlcpy.c,v 1.5.8.1 2002/04/22 22:04:07 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(strlcpy, _strlcpy)
+#endif
+
 /*
  * Copy src to string dst of size siz.  At most siz-1 characters
  * will be copied.  Always NUL terminates (unless siz == 0).
  * Returns strlen(src); if retval >= siz, truncation occurred.
  */
 size_t
-strlcpy(dst, src, siz)
+_strlcpy(dst, src, siz)
        char *dst;
        const char *src;
        size_t siz;



Home | Main Index | Thread Index | Old Index