about summary refs log tree commit diff
path: root/inet/ifaddrs.c
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 /inet/ifaddrs.c
parent64a4af28a62e9f305c82bc9649bbe065fffdeb0d (diff)
downloadglibc-4009ddc69225d571772aaea597615a0c032e14ab.tar.gz
glibc-4009ddc69225d571772aaea597615a0c032e14ab.tar.xz
glibc-4009ddc69225d571772aaea597615a0c032e14ab.zip
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 'inet/ifaddrs.c')
-rw-r--r--inet/ifaddrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inet/ifaddrs.c b/inet/ifaddrs.c
index 35cc277225..0a5c71c059 100644
--- a/inet/ifaddrs.c
+++ b/inet/ifaddrs.c
@@ -30,6 +30,7 @@ __getifaddrs (struct ifaddrs **ifap)
   return -1;
 }
 weak_alias (__getifaddrs, getifaddrs)
+libc_hidden_def (__getifaddrs)
 libc_hidden_weak (getifaddrs)
 stub_warning (getifaddrs)
 
@@ -43,5 +44,6 @@ __freeifaddrs (struct ifaddrs *ifa)
   abort ();
 }
 weak_alias (__freeifaddrs, freeifaddrs)
+libc_hidden_def (__freeifaddrs)
 libc_hidden_weak (freeifaddrs)
 stub_warning (freeifaddrs)