glibc/sysdeps/gnu
Joseph Myers 7f994279e9 Fix getifaddrs, freeifaddrs namespace (bug 17668).
Various objects in glibc bring in ifaddrs.o (via references to
__netlink_*) and thereby getifaddrs and freeifaddrs, which are not
part of any standard supported by glibc.  These should be weak aliases
of __getifaddrs and __freeifaddrs; this patch makes them so.

(The path by which these functions are brought in is Linux-specific,
but it seems less confusing to make all versions of these functions
weak aliases rather than only the Linux-specific versions that
definitely need it.)

Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by this patch).

	[BZ #17668]
	* inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
	as weak alias of __getifaddrs.  Use libc_hidden_weak.
	(freeifaddrs): Rename to __freeifaddrs and define as weak alias of
	__freeifaddrs.  Use libc_hidden_weak.
	* sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
	define as weak alias of __getifaddrs.  Use libc_hidden_weak.
	(freeifaddrs): Rename to __freeifaddrs and define as weak alias of
	__freeifaddrs.  Use libc_hidden_weak.
	* sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
	__getifaddrs and define as weak alias of __getifaddrs.  Use
	libc_hidden_weak.
	(freeifaddrs): Rename to __freeifaddrs and define as weak alias of
	__freeifaddrs.  Use libc_hidden_weak.
	* conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
	Remove variable.
	(test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
	(test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
2014-12-02 23:11:09 +00:00
..
bits Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
net Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
netinet Add new Linux 3.16 constants to netinet/udp.h. 2014-09-12 12:13:08 +00:00
sys Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
configure Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac. 2014-07-17 14:35:48 +00:00
configure.ac Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac. 2014-07-17 14:35:48 +00:00
errlist-compat.awk Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
errlist.awk Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
errlist.c Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
getutmp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
getutmpx.c
glob64.c * sysdeps/alpha/fpu/s_cacosf.c: Don't use sysdeps/generic/. 2005-12-15 21:13:14 +00:00
ifaddrs.c Fix getifaddrs, freeifaddrs namespace (bug 17668). 2014-12-02 23:11:09 +00:00
ldsodefs.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
Makefile Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
rt-unwind-resume.c Move unwind-resume code from NPTL to sysdeps/gnu. 2010-04-05 20:07:39 -07:00
siglist.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
unwind-resume.c Silence a missing-noreturn warning for _Unwind_Resume. 2014-05-09 10:06:20 -07:00
updwtmp.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
utmp_file.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
utmpx.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00