Source-Changes-HG archive

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

[src/trunk]: src/lib/libc weak alias for pw_dup



details:   https://anonhg.NetBSD.org/src/rev/efdf746f7cab
branches:  trunk
changeset: 551908:efdf746f7cab
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sat Sep 13 22:28:12 2003 +0000

description:
weak alias for pw_dup

diffstat:

 lib/libc/gen/pw_dup.c        |  10 ++++++++--
 lib/libc/include/namespace.h |   5 +++--
 2 files changed, 11 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r 8a2b515a34ae -r efdf746f7cab lib/libc/gen/pw_dup.c
--- a/lib/libc/gen/pw_dup.c     Sat Sep 13 22:25:47 2003 +0000
+++ b/lib/libc/gen/pw_dup.c     Sat Sep 13 22:28:12 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pw_dup.c,v 1.1 2003/09/09 22:01:56 itojun Exp $        */
+/*     $NetBSD: pw_dup.c,v 1.2 2003/09/13 22:28:12 itojun Exp $        */
 /*     $OpenBSD: pw_dup.c,v 1.5 2003/06/17 21:56:23 millert Exp $      */
 
 /*
@@ -26,10 +26,12 @@
 #if 0
 static const char rcsid[] = "$OpenBSD: pw_dup.c,v 1.5 2003/06/17 21:56:23 millert Exp $";
 #else
-__RCSID("$NetBSD: pw_dup.c,v 1.1 2003/09/09 22:01:56 itojun Exp $");
+__RCSID("$NetBSD: pw_dup.c,v 1.2 2003/09/13 22:28:12 itojun Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
+#include "namespace.h"
+
 #include <sys/types.h>
 
 #include <pwd.h>
@@ -37,6 +39,10 @@
 #include <stdio.h>
 #include <string.h>
 
+#ifdef __weak_alias
+__weak_alias(pw_dup,_pw_dup)
+#endif
+
 struct passwd *
 pw_dup(const struct passwd *pw)
 {
diff -r 8a2b515a34ae -r efdf746f7cab lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h      Sat Sep 13 22:25:47 2003 +0000
+++ b/lib/libc/include/namespace.h      Sat Sep 13 22:28:12 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: namespace.h,v 1.80 2003/09/13 21:27:45 itojun Exp $    */
+/*     $NetBSD: namespace.h,v 1.81 2003/09/13 22:28:13 itojun Exp $    */
 
 /*-
  * Copyright (c) 1997-2002 The NetBSD Foundation, Inc.
@@ -371,8 +371,9 @@
 #define psignal                        _psignal
 #define pthread_atfork         _pthread_atfork
 #define putenv                 _putenv
+#define pw_dup                 _pw_dup
+#define pwcache_groupdb                _pwcache_groupdb
 #define pwcache_userdb         _pwcache_userdb
-#define pwcache_groupdb                _pwcache_groupdb
 #define pwrite                 _pwrite
 #define qabs                   _qabs
 #define qdiv                   _qdiv



Home | Main Index | Thread Index | Old Index