Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc namespace protect allocaddrinfo
details: https://anonhg.NetBSD.org/src/rev/b1999f452315
branches: trunk
changeset: 340521:b1999f452315
user: christos <christos%NetBSD.org@localhost>
date: Thu Sep 10 14:05:06 2015 +0000
description:
namespace protect allocaddrinfo
diffstat:
lib/libc/include/namespace.h | 3 ++-
lib/libc/net/getaddrinfo.c | 7 ++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r 8bb0113022f4 -r b1999f452315 lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h Thu Sep 10 13:11:39 2015 +0000
+++ b/lib/libc/include/namespace.h Thu Sep 10 14:05:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.178 2015/05/01 14:17:56 christos Exp $ */
+/* $NetBSD: namespace.h,v 1.179 2015/09/10 14:05:06 christos Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -170,6 +170,7 @@
#define a64l _a64l
#define adjtime _adjtime
#define alarm _alarm
+#define allocaddrinfo _allocaddrinfo
#define alphasort _alphasort
#define arc4random _arc4random
#define arc4random_addrandom _arc4random_addrandom
diff -r 8bb0113022f4 -r b1999f452315 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c Thu Sep 10 13:11:39 2015 +0000
+++ b/lib/libc/net/getaddrinfo.c Thu Sep 10 14:05:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getaddrinfo.c,v 1.108 2015/09/10 11:33:27 christos Exp $ */
+/* $NetBSD: getaddrinfo.c,v 1.109 2015/09/10 14:05:06 christos Exp $ */
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
/*
@@ -55,7 +55,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: getaddrinfo.c,v 1.108 2015/09/10 11:33:27 christos Exp $");
+__RCSID("$NetBSD: getaddrinfo.c,v 1.109 2015/09/10 14:05:06 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#ifndef RUMP_ACTION
@@ -95,6 +95,7 @@
#ifndef RUMP_ACTION
#ifdef __weak_alias
__weak_alias(getaddrinfo,_getaddrinfo)
+__weak_alias(allocaddrinfo,_allocaddrinfo)
__weak_alias(freeaddrinfo,_freeaddrinfo)
__weak_alias(gai_strerror,_gai_strerror)
#endif
@@ -935,7 +936,7 @@
return 0;
}
-static struct addrinfo *
+struct addrinfo *
allocaddrinfo(socklen_t addrlen)
{
struct addrinfo *ai;
Home |
Main Index |
Thread Index |
Old Index