glibc/socket
Joseph Myers 0595c98494 Fix mq_notify socket, recv namespace (bug 18546).
mq_notify (in the 1996 edition of POSIX) brings in references to recv
and socket (not in POSIX until the 2001 edition).  This patch fixes
this by using __recv and __socket, exporting them from libc at version
GLIBC_PRIVATE.

Tested for x86_64 and x86 (testsuite and comparison of installed
stripped shared libraries; PLT / dynamic symbol table changes render
the comparison not particularly useful for libc).

	[BZ #18546]
	* socket/recv.c (__recv): Use libc_hidden_def.
	* socket/socket.c (__socket): Likewise.
	* sysdeps/mach/hurd/recv.c (__recv): Likewise.
	* sysdeps/mach/hurd/socket.c (__socket): Likewise.
	* sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
	* sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
	* sysdeps/unix/sysv/linux/socket.c (__socket): Use
	libc_hidden_def.
	* sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
	libc_hidden_weak.
	* include/sys/socket.h (__socket): Do not use attribute_hidden.
	Use libc_hidden_proto.
	(__recv): Likewise.
	* socket/Versions (libc): Export __recv and __socket at version
	GLIBC_PRIVATE.
	* sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
	instead of recv.
	(init_mq_netlink): Call __socket instead of socket.
	* conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
	Remove variable.
2015-06-17 20:20:08 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
accept4.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
accept.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bind.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
connect.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getpeername.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsockname.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getsockopt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
have_sock_cloexec.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
isfdtype.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
listen.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
opensock.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
recv.c Fix mq_notify socket, recv namespace (bug 18546). 2015-06-17 20:20:08 +00:00
recvfrom.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
recvmmsg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
recvmsg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sa_len.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
send.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sendmmsg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sendmsg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sendto.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
setsockopt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
shutdown.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sockatmark.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
socket.c Fix mq_notify socket, recv namespace (bug 18546). 2015-06-17 20:20:08 +00:00
socketpair.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions Fix mq_notify socket, recv namespace (bug 18546). 2015-06-17 20:20:08 +00:00