Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc I'm fairly sure the libc rules require that arc4ran...
details: https://anonhg.NetBSD.org/src/rev/441fd319523d
branches: trunk
changeset: 781125:441fd319523d
user: dsl <dsl%NetBSD.org@localhost>
date: Mon Aug 20 21:38:09 2012 +0000
description:
I'm fairly sure the libc rules require that arc4random_addrandom,
arc4random_buf, arc4random_stir and arc4random_uniform be weak.
diffstat:
lib/libc/gen/arc4random.c | 8 ++++++--
lib/libc/include/namespace.h | 6 +++++-
2 files changed, 11 insertions(+), 3 deletions(-)
diffs (49 lines):
diff -r 14e9a96ba5fb -r 441fd319523d lib/libc/gen/arc4random.c
--- a/lib/libc/gen/arc4random.c Mon Aug 20 21:20:19 2012 +0000
+++ b/lib/libc/gen/arc4random.c Mon Aug 20 21:38:09 2012 +0000
@@ -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 @@
#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 {
diff -r 14e9a96ba5fb -r 441fd319523d lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h Mon Aug 20 21:20:19 2012 +0000
+++ b/lib/libc/include/namespace.h Mon Aug 20 21:38:09 2012 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index