Source-Changes-HG archive

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

[src/trunk]: src/lib/libc Argh. Use __weak_alias on the RMD160 functions.



details:   https://anonhg.NetBSD.org/src/rev/2d398172b8f8
branches:  trunk
changeset: 500419:2d398172b8f8
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Dec 11 19:12:35 2000 +0000

description:
Argh. Use __weak_alias on the RMD160 functions.

diffstat:

 lib/libc/hash/rmd160.c   |  11 +++++++++--
 lib/libc/hash/rmd160hl.c |  10 ++++++++--
 lib/libc/shlib_version   |   4 ++--
 3 files changed, 19 insertions(+), 6 deletions(-)

diffs (78 lines):

diff -r dbbd6879d25f -r 2d398172b8f8 lib/libc/hash/rmd160.c
--- a/lib/libc/hash/rmd160.c    Mon Dec 11 18:57:46 2000 +0000
+++ b/lib/libc/hash/rmd160.c    Mon Dec 11 19:12:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rmd160.c,v 1.3 2000/07/06 02:50:22 christos Exp $      */
+/*     $NetBSD: rmd160.c,v 1.4 2000/12/11 19:12:35 ad Exp $    */
 
 /********************************************************************\
  *
@@ -20,7 +20,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rmd160.c,v 1.3 2000/07/06 02:50:22 christos Exp $");
+__RCSID("$NetBSD: rmd160.c,v 1.4 2000/12/11 19:12:35 ad Exp $");
 #endif /* not lint */
 
 /* header files */
@@ -34,6 +34,13 @@
 #include <string.h>
 #include <rmd160.h>
 
+#if !defined(_KERNEL) && defined(__weak_alias)
+__weak_alias(RMD160Transform,_RMD160Transform)
+__weak_alias(RMD160Init,_RMD160Init)
+__weak_alias(RMD160Update,_RMD160Update)
+__weak_alias(RMD160Final,_RMD160Final)
+#endif
+
 /********************************************************************/
 
 /* macro definitions */
diff -r dbbd6879d25f -r 2d398172b8f8 lib/libc/hash/rmd160hl.c
--- a/lib/libc/hash/rmd160hl.c  Mon Dec 11 18:57:46 2000 +0000
+++ b/lib/libc/hash/rmd160hl.c  Mon Dec 11 19:12:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rmd160hl.c,v 1.3 2000/07/06 02:50:35 christos Exp $    */
+/*     $NetBSD: rmd160hl.c,v 1.4 2000/12/11 19:12:35 ad Exp $  */
 
 /* rmd160hl.c
  * ----------------------------------------------------------------------------
@@ -13,7 +13,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rmd160hl.c,v 1.3 2000/07/06 02:50:35 christos Exp $");
+__RCSID("$NetBSD: rmd160hl.c,v 1.4 2000/12/11 19:12:35 ad Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -27,6 +27,12 @@
 #include <unistd.h>
 #include <rmd160.h>
 
+#if defined(__weak_alias)
+__weak_alias(RMD160End,_RMD160End)
+__weak_alias(RMD160File,_RMD160File)
+__weak_alias(RMD160Data,_RMD160Data)
+#endif
+
 char *
 RMD160End(RMD160_CTX *ctx, char *buf)
 {
diff -r dbbd6879d25f -r 2d398172b8f8 lib/libc/shlib_version
--- a/lib/libc/shlib_version    Mon Dec 11 18:57:46 2000 +0000
+++ b/lib/libc/shlib_version    Mon Dec 11 19:12:35 2000 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: shlib_version,v 1.95 2000/10/20 18:46:05 briggs Exp $
+#      $NetBSD: shlib_version,v 1.96 2000/12/11 19:12:35 ad Exp $
 #      Remember to update distrib/sets/lists/base/shl.* when changing
 #
 # things we wish to do on next major version bump:
@@ -6,4 +6,4 @@
 # - libc/net: resolver update to BIND8/9?
 #
 major=12
-minor=66
+minor=67



Home | Main Index | Thread Index | Old Index