Tue Mar 17 23:42:45 2009 UTC ()
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.
(he)
diff -r1.2 -r1.3 src/common/lib/libc/string/bcmp.c
diff -r1.6 -r1.7 src/common/lib/libc/string/memset.c
--- src/common/lib/libc/string/bcmp.c 2007/06/04 18:19:26 1.2
+++ src/common/lib/libc/string/bcmp.c 2009/03/17 23:42:45 1.3
@@ -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 */
@@ -45,6 +45,8 @@
#else
#include <lib/libkern/libkern.h>
#endif
+
+int bcmp(const void *, const void *, size_t);
/*
* bcmp -- vax cmpc3 instruction
--- src/common/lib/libc/string/memset.c 2008/03/29 14:03:22 1.6
+++ src/common/lib/libc/string/memset.c 2009/03/17 23:42:45 1.7
@@ -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 */
@@ -65,6 +65,8 @@
#define RETURN return
#define VAL 0
#define WIDEVAL 0
+
+void bzero(void *, size_t);
void
bzero(void *dst0, size_t length)