Source-Changes-HG archive

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

[src/trunk]: src Include several libc functions in rump.ping6



details:   https://anonhg.NetBSD.org/src/rev/80be80255915
branches:  trunk
changeset: 340507:80be80255915
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Sep 09 10:06:05 2015 +0000

description:
Include several libc functions in rump.ping6

We need getaddrinfo, getifaddrs, if_indextoname and if_nametoindex
in addition to getnameinfo.

diffstat:

 lib/libc/net/getaddrinfo.c |  8 ++++++--
 sbin/ping6/Makefile        |  5 +++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (56 lines):

diff -r 93964f8122a1 -r 80be80255915 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c        Wed Sep 09 08:09:28 2015 +0000
+++ b/lib/libc/net/getaddrinfo.c        Wed Sep 09 10:06:05 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getaddrinfo.c,v 1.106 2013/12/22 02:40:48 christos Exp $       */
+/*     $NetBSD: getaddrinfo.c,v 1.107 2015/09/09 10:06:05 ozaki-r Exp $        */
 /*     $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $    */
 
 /*
@@ -55,10 +55,12 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getaddrinfo.c,v 1.106 2013/12/22 02:40:48 christos Exp $");
+__RCSID("$NetBSD: getaddrinfo.c,v 1.107 2015/09/09 10:06:05 ozaki-r Exp $");
 #endif /* LIBC_SCCS and not lint */
 
+#ifndef RUMP_ACTION
 #include "namespace.h"
+#endif
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
@@ -90,11 +92,13 @@
 
 #include "servent.h"
 
+#ifndef RUMP_ACTION
 #ifdef __weak_alias
 __weak_alias(getaddrinfo,_getaddrinfo)
 __weak_alias(freeaddrinfo,_freeaddrinfo)
 __weak_alias(gai_strerror,_gai_strerror)
 #endif
+#endif
 
 #define SUCCESS 0
 #define ANY 0
diff -r 93964f8122a1 -r 80be80255915 sbin/ping6/Makefile
--- a/sbin/ping6/Makefile       Wed Sep 09 08:09:28 2015 +0000
+++ b/sbin/ping6/Makefile       Wed Sep 09 10:06:05 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2015/08/06 14:45:54 ozaki-r Exp $
+# $NetBSD: Makefile,v 1.16 2015/09/09 10:06:05 ozaki-r Exp $
 
 .include <bsd.own.mk>
 
@@ -16,7 +16,8 @@
 DPADD+=                ${LIBIPSEC} ${LIBM}
 
 .PATH:         ${.CURDIR}/../../lib/libc/net
-RUMPSRCS=      getnameinfo.c
+RUMPSRCS=      getaddrinfo.c getifaddrs.c getnameinfo.c
+RUMPSRCS+=     if_indextoname.c if_nametoindex.c
 .if (${MKRUMP} != "no")
 CPPFLAGS+=     -DRUMP_ACTION
 .endif



Home | Main Index | Thread Index | Old Index