Joseph Myers
9a44d530c4
Fix resolver if_* namespace (bug 17717).
...
Resolver code, brought in by pthreads (at least), uses if_* interfaces
that weren't in POSIX before 2001, resulting in linknamespace
failures. This patch changes those interfaces to be weak aliases of
__if_* and makes the resolver use __if_* directly.
Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by this patch).
[BZ #17717 ]
* inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
define as weak alias of __if_nametoindex. Use libc_hidden_weak.
(if_indextoname): Rename to __if_indextoname and define as weak
alias of __if_indextoname. Use libc_hidden_weak.
(if_freenameindex): Rename to __if_freenameindex and define as
weak alias of __if_freenameindex.
(if_nameindex): Rename to __if_nameindex and define as weak alias
of __if_nameindex.
* sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
__if_nametoindex and define as weak alias of __if_nametoindex.
Use libc_hidden_weak.
(if_freenameindex): Rename to __if_freenameindex and define as
weak alias of __if_freenameindex.
(if_nameindex): Rename to __if_nameindex and define as weak alias
of __if_nameindex.
(if_indextoname): Rename to __if_indextoname and define as weak
alias of __if_indextoname. Use libc_hidden_weak.
* sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
__if_nametoindex and define as weak alias of __if_nametoindex.
Use libc_hidden_weak.
(if_freenameindex): Rename to __if_freenameindex and define as
weak alias of __if_freenameindex. Use libc_hidden_weak.
(if_nameindex_netlink): Use __if_freenameindex instead of
if_freenameindex.
(if_nameindex): Rename to __if_nameindex and define as weak alias
of __if_nameindex. Use libc_hidden_weak.
(if_indextoname): Rename to __if_indextoname and define as weak
alias of __if_indextoname. Use libc_hidden_weak.
* include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
libc_hidden_proto.
[!_ISOMAC] (__if_freenameindex): Likewise.
* resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
if_nametoindex.
* conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
variable.
(test-xfail-XPG4/pwd.h/linknamespace): Likewise.
(test-xfail-UNIX98/aio.h/linknamespace): Likewise.
(test-xfail-UNIX98/grp.h/linknamespace): Likewise.
(test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
(test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
(test-xfail-UNIX98/sched.h/linknamespace): Likewise.
(test-xfail-UNIX98/time.h/linknamespace): Likewise.
2014-12-16 18:18:49 +00:00
..
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2014-11-26 15:13:27 +00:00
2014-11-24 17:28:41 +01:00
2014-10-30 19:44:31 +00:00
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2014-10-08 23:19:32 +00:00
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2014-12-10 18:50:07 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-12 23:41:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-24 15:03:45 +05:30
2014-12-15 10:52:12 +01:00
2014-01-01 22:00:23 +10:00
2014-12-12 08:07:35 +09:00
2014-11-24 15:03:45 +05:30
2014-09-20 14:05:49 +02:00
2014-11-24 15:03:45 +05:30
2014-10-30 19:44:31 +00:00
2014-12-11 12:44:27 +01:00
2014-11-24 15:03:45 +05:30
2014-01-01 22:00:23 +10:00
2012-10-18 18:50:43 +00:00
2013-06-05 20:44:03 +00:00
2014-02-20 17:50:31 +00:00
2014-10-08 23:19:32 +00:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-05-16 11:47:13 -07:00
2014-01-01 22:00:23 +10:00
2014-11-24 11:41:44 +05:30
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-16 17:45:03 +00:00
2014-09-16 17:45:03 +00:00
2014-11-18 11:03:20 -08:00
2014-11-20 10:56:20 -08:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 20:29:45 +00:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-07-02 11:10:08 -07:00
2014-02-06 08:46:20 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-20 14:05:49 +02:00
2014-05-13 09:49:20 -07:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-20 15:41:35 +00:00
2014-06-20 20:04:33 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-05-29 09:41:29 +05:30
2014-06-23 14:05:14 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 11:36:10 +00:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-20 15:41:35 +00:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-24 11:41:48 +05:30
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-11-24 15:03:45 +05:30
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-12 22:39:36 +00:00
2013-07-21 15:39:55 -04:00
2014-12-16 18:18:49 +00:00
2014-12-02 23:11:09 +00:00
2014-06-25 18:09:01 +00:00
2014-06-12 13:48:47 -07:00
2014-02-20 17:50:31 +00:00
2014-02-20 17:53:08 +00:00
2014-02-20 17:55:35 +00:00
2014-05-29 09:41:29 +05:30
2014-01-01 22:00:23 +10:00
2013-11-26 12:32:28 +01:00
2014-01-01 22:00:23 +10:00
2014-07-17 17:55:44 +00:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-02-08 06:39:10 -05:00
2014-01-01 22:00:23 +10:00
2014-11-24 15:03:45 +05:30
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-24 15:03:45 +05:30
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-11-24 15:03:45 +05:30
2014-07-31 11:37:48 -07:00
2014-01-01 22:00:23 +10:00
2014-10-08 23:19:32 +00:00
2014-10-08 23:19:32 +00:00
2014-01-01 22:00:23 +10:00
2013-05-03 16:33:26 -07:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-06-20 23:22:08 +00:00
2014-06-25 16:39:33 +00:00
2014-01-01 22:00:23 +10:00
2012-11-04 10:10:58 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-10-31 21:22:35 +00:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-06-12 13:48:47 -07:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-05-16 00:07:29 +02:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-20 13:53:44 +02:00
2013-08-27 10:34:16 -07:00
2014-07-31 14:00:33 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-20 17:55:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-09-12 12:28:47 +00:00
2014-12-12 15:01:30 -08:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-05-29 09:41:29 +05:30
2014-05-29 09:41:29 +05:30
2014-01-01 22:00:23 +10:00
2014-11-01 12:26:09 +00:00
2014-07-01 15:01:24 -07:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-02-10 15:07:12 +01:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-07-07 09:28:38 -07:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-04 08:34:01 -05:00
2014-07-07 09:28:38 -07:00
2014-06-25 18:09:01 +00:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2013-12-22 14:49:48 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-11-07 01:27:16 +00:00
2014-01-01 22:00:23 +10:00
2014-06-20 15:41:35 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-06-25 18:09:01 +00:00