Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/libhack Fix the weak aliases to match the libc...
details: https://anonhg.NetBSD.org/src/rev/9e0b84f24be0
branches: trunk
changeset: 760777:9e0b84f24be0
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Jan 12 23:34:00 2011 +0000
description:
Fix the weak aliases to match the libc version and not leave unresolved
symbols around.
diffstat:
distrib/utils/libhack/getpwent.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
diffs (37 lines):
diff -r c0e1d50950d9 -r 9e0b84f24be0 distrib/utils/libhack/getpwent.c
--- a/distrib/utils/libhack/getpwent.c Wed Jan 12 23:12:10 2011 +0000
+++ b/distrib/utils/libhack/getpwent.c Wed Jan 12 23:34:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getpwent.c,v 1.11 2009/01/16 14:48:04 he Exp $ */
+/* $NetBSD: getpwent.c,v 1.12 2011/01/12 23:34:00 joerg Exp $ */
/*
* Copyright (c) 1987, 1988, 1989, 1993, 1994, 1995
@@ -49,21 +49,15 @@
#define getpwnam_r _getpwnam_r
__weak_alias(endpwent,_endpwent)
-__weak_alias(getpwent,_getpwent)
-__weak_alias(getpwent_r,_getpwent_r)
-__weak_alias(getpwuid,_getpwuid)
-__weak_alias(getpwnam,_getpwnam)
__weak_alias(setpwent,_setpwent)
__weak_alias(setpassent,_setpassent)
-__weak_alias(getpwuid_r,_getpwuid_r)
-__weak_alias(getpwnam_r,_getpwnam_r)
-__weak_alias(__getpwent50,_getpwent)
-__weak_alias(__getpwent_r50,_getpwent_r)
-__weak_alias(__getpwuid50,_getpwuid)
-__weak_alias(__getpwnam50,_getpwnam)
-__weak_alias(__getpwuid_r50,_getpwuid_r)
-__weak_alias(__getpwnam_r50,_getpwnam_r)
+__weak_alias(getpwent,__getpwent50)
+__weak_alias(getpwent_r,__getpwent_r50)
+__weak_alias(getpwuid,__getpwuid50)
+__weak_alias(getpwnam,__getpwnam50)
+__weak_alias(getpwuid_r,__getpwuid_r50)
+__weak_alias(getpwnam_r,__getpwnam_r50)
#endif
#include <sys/param.h>
Home |
Main Index |
Thread Index |
Old Index