aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-28 00:19:18 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-28 01:05:18 +0200
commit4009ddc69225d571772aaea597615a0c032e14ab (patch)
tree5b82cda9a1e05c472d5f008437117588cbaca6bb /include
parent64a4af28a62e9f305c82bc9649bbe065fffdeb0d (diff)
downloadglibc-4009ddc69225d571772aaea597615a0c032e14ab.zip
glibc-4009ddc69225d571772aaea597615a0c032e14ab.tar.gz
glibc-4009ddc69225d571772aaea597615a0c032e14ab.tar.bz2
hurd: Fix `getifaddrs' and `freeifaddrs' symbol exposition
from `freeaddrinfo'. `getifaddrs' and `freeifaddrs' are not in POSIX, they should not be exposed along `freeaddrinfo' (through `__check_pf') which is POSIX. * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations, and use libc_hidden_def on them. * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on them. * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise. * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs instead of getifaddrs and freeifaddrs.
Diffstat (limited to 'include')
-rw-r--r--include/ifaddrs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
index 54f4b7a..416118f 100644
--- a/include/ifaddrs.h
+++ b/include/ifaddrs.h
@@ -9,6 +9,11 @@
libc_hidden_proto (getifaddrs)
libc_hidden_proto (freeifaddrs)
+extern int __getifaddrs (struct ifaddrs **__ifap);
+libc_hidden_proto (__getifaddrs)
+extern void __freeifaddrs (struct ifaddrs *__ifa);
+libc_hidden_proto (__freeifaddrs)
+
struct in6addrinfo
{
enum {