Module Name: src
Committed By: dsl
Date: Mon Aug 20 21:38:10 UTC 2012
Modified Files:
src/lib/libc/gen: arc4random.c
src/lib/libc/include: namespace.h
Log Message:
I'm fairly sure the libc rules require that arc4random_addrandom,
arc4random_buf, arc4random_stir and arc4random_uniform be weak.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/gen/arc4random.c
cvs rdiff -u -r1.155 -r1.156 src/lib/libc/include/namespace.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/arc4random.c
diff -u src/lib/libc/gen/arc4random.c:1.19 src/lib/libc/gen/arc4random.c:1.20
--- src/lib/libc/gen/arc4random.c:1.19 Mon Aug 20 20:32:09 2012
+++ src/lib/libc/gen/arc4random.c Mon Aug 20 21:38:09 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: arc4random.c,v 1.19 2012/08/20 20:32:09 dsl Exp $ */
+/* $NetBSD: arc4random.c,v 1.20 2012/08/20 21:38:09 dsl Exp $ */
/* $OpenBSD: arc4random.c,v 1.6 2001/06/05 05:05:38 pvalchev Exp $ */
/*
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: arc4random.c,v 1.19 2012/08/20 20:32:09 dsl Exp $");
+__RCSID("$NetBSD: arc4random.c,v 1.20 2012/08/20 21:38:09 dsl Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -42,6 +42,10 @@ __RCSID("$NetBSD: arc4random.c,v 1.19 20
#ifdef __weak_alias
__weak_alias(arc4random,_arc4random)
+__weak_alias(arc4random_addrandom,_arc4random_addrandom)
+__weak_alias(arc4random_buf,_arc4random_buf)
+__weak_alias(arc4random_stir,_arc4random_stir)
+__weak_alias(arc4random_uniform,_arc4random_uniform)
#endif
struct arc4_stream {
Index: src/lib/libc/include/namespace.h
diff -u src/lib/libc/include/namespace.h:1.155 src/lib/libc/include/namespace.h:1.156
--- src/lib/libc/include/namespace.h:1.155 Mon Jul 9 21:25:46 2012
+++ src/lib/libc/include/namespace.h Mon Aug 20 21:38:10 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.155 2012/07/09 21:25:46 rmind Exp $ */
+/* $NetBSD: namespace.h,v 1.156 2012/08/20 21:38:10 dsl Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -155,6 +155,10 @@
#define alarm _alarm
#define alphasort _alphasort
#define arc4random _arc4random
+#define arc4random_addrandom _arc4random_addrandom
+#define arc4random_buf _arc4random_buf
+#define arc4random_stir _arc4random_stir
+#define arc4random_uniform _arc4random_uniform
#define asctime_r _asctime_r
#define asprintf _asprintf
#define atoll _atoll