Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/arm/string Add weak alias for strlcpy



details:   https://anonhg.NetBSD.org/src/rev/b4e4f7efe333
branches:  trunk
changeset: 783829:b4e4f7efe333
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jan 10 02:08:22 2013 +0000

description:
Add weak alias for strlcpy

diffstat:

 common/lib/libc/arch/arm/string/strcpy_naive.S |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r feb61424f11d -r b4e4f7efe333 common/lib/libc/arch/arm/string/strcpy_naive.S
--- a/common/lib/libc/arch/arm/string/strcpy_naive.S    Wed Jan 09 23:58:40 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strcpy_naive.S    Thu Jan 10 02:08:22 2013 +0000
@@ -28,7 +28,14 @@
  */
 #include <machine/asm.h>
 
-RCSID("$NetBSD: strcpy_naive.S,v 1.1 2013/01/08 13:14:54 matt Exp $")
+RCSID("$NetBSD: strcpy_naive.S,v 1.2 2013/01/10 02:08:22 matt Exp $")
+
+#ifdef _LIBC
+#ifdef STRLCPY
+WEAK_ALIAS(strlcpy, _strlcpy)           
+#endif
+#include "namespace.h"
+#endif
 
 /*
  * These are "naive" versions of the str*cpy routines designed to be simple



Home | Main Index | Thread Index | Old Index