Source-Changes-HG archive

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

[src/netbsd-3]: src/distrib/utils/libhack Pull up revision 1.9 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/2314c4803f99
branches:  netbsd-3
changeset: 575311:2314c4803f99
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Apr 08 13:40:24 2005 +0000

description:
Pull up revision 1.9 (requested by bouyer in ticket #126):
Provide weak aliases for the newly added getpwuid_r() and getpwnam_r()
functions in order to fix link-time conflicts with the C library.

diffstat:

 distrib/utils/libhack/getpwent.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r e44e552b8467 -r 2314c4803f99 distrib/utils/libhack/getpwent.c
--- a/distrib/utils/libhack/getpwent.c  Fri Apr 08 13:38:11 2005 +0000
+++ b/distrib/utils/libhack/getpwent.c  Fri Apr 08 13:40:24 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getpwent.c,v 1.7.6.1 2005/04/04 18:03:10 tron Exp $    */
+/*     $NetBSD: getpwent.c,v 1.7.6.2 2005/04/08 13:40:24 tron Exp $    */
 
 /*
  * Copyright (c) 1987, 1988, 1989, 1993, 1994, 1995
@@ -44,6 +44,8 @@
 #define getpwnam               _getpwnam
 #define setpwent               _setpwent
 #define setpassent             _setpassent
+#define getpwuid_r             _getpwuid_r
+#define getpwnam_r             _getpwnam_r
 
 __weak_alias(endpwent,_endpwent)
 __weak_alias(getpwent,_getpwent)
@@ -51,6 +53,8 @@
 __weak_alias(getpwnam,_getpwnam)
 __weak_alias(setpwent,_setpwent)
 __weak_alias(setpassent,_setpassent)
+__weak_alias(getpwuid_r,_getpwuid_r)
+__weak_alias(getpwnam_r,_getpwnam_r)
 #endif
 
 #include <sys/param.h>



Home | Main Index | Thread Index | Old Index