summaryrefslogtreecommitdiff
path: root/common/lib/libc/string
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2009-03-17 23:42:45 +0000
committerhe <he@NetBSD.org>2009-03-17 23:42:45 +0000
commit245ee9af71726b350bdcf02ad18892a88f68a5da (patch)
treeae918373563b8b3cda47a2bd86327c7460267ca2 /common/lib/libc/string
parent83969672bad12764dc0879beedcb866d9b1d77a1 (diff)
Add local declarations of bcmp() and bzero() because libkern.h no longer
provides those declarations. It's possible that these can be removed later when we find out whether these functions are actually needed in the kernel, but meanwhile, this allows alpha, hp700 and the powerpc ports (who all build these as part of libkern) to complete their builds.
Diffstat (limited to 'common/lib/libc/string')
-rw-r--r--common/lib/libc/string/bcmp.c6
-rw-r--r--common/lib/libc/string/memset.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/common/lib/libc/string/bcmp.c b/common/lib/libc/string/bcmp.c
index e781969894f..d9109b57190 100644
--- a/common/lib/libc/string/bcmp.c
+++ b/common/lib/libc/string/bcmp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bcmp.c,v 1.2 2007/06/04 18:19:26 christos Exp $ */
+/* $NetBSD: bcmp.c,v 1.3 2009/03/17 23:42:45 he Exp $ */
/*
* Copyright (c) 1987, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)bcmp.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: bcmp.c,v 1.2 2007/06/04 18:19:26 christos Exp $");
+__RCSID("$NetBSD: bcmp.c,v 1.3 2009/03/17 23:42:45 he Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -46,6 +46,8 @@ __RCSID("$NetBSD: bcmp.c,v 1.2 2007/06/04 18:19:26 christos Exp $");
#include <lib/libkern/libkern.h>
#endif
+int bcmp(const void *, const void *, size_t);
+
/*
* bcmp -- vax cmpc3 instruction
*/
diff --git a/common/lib/libc/string/memset.c b/common/lib/libc/string/memset.c
index 27ed4cf47f7..c1a2ba31bbf 100644
--- a/common/lib/libc/string/memset.c
+++ b/common/lib/libc/string/memset.c
@@ -1,4 +1,4 @@
-/* $NetBSD: memset.c,v 1.6 2008/03/29 14:03:22 he Exp $ */
+/* $NetBSD: memset.c,v 1.7 2009/03/17 23:42:45 he Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: memset.c,v 1.6 2008/03/29 14:03:22 he Exp $");
+__RCSID("$NetBSD: memset.c,v 1.7 2009/03/17 23:42:45 he Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -66,6 +66,8 @@ __RCSID("$NetBSD: memset.c,v 1.6 2008/03/29 14:03:22 he Exp $");
#define VAL 0
#define WIDEVAL 0
+void bzero(void *, size_t);
+
void
bzero(void *dst0, size_t length)
#else