This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/18546] mq_notify socket, recv namespace


https://sourceware.org/bugzilla/show_bug.cgi?id=18546

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  0595c98494c25f8eaa1a3298e8fa032ad5e4405e (commit)
      from  dfa2d21450f44b3ea7129858764c1508d87ae27a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0595c98494c25f8eaa1a3298e8fa032ad5e4405e

commit 0595c98494c25f8eaa1a3298e8fa032ad5e4405e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Jun 17 20:20:08 2015 +0000

    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.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                              |   22 ++++++++++++++++++++++
 NEWS                                   |    2 +-
 conform/Makefile                       |    1 -
 include/sys/socket.h                   |    7 ++++---
 socket/Versions                        |    1 +
 socket/recv.c                          |    1 +
 socket/socket.c                        |    1 +
 sysdeps/mach/hurd/recv.c               |    1 +
 sysdeps/mach/hurd/socket.c             |    1 +
 sysdeps/unix/sysv/linux/generic/recv.c |    1 +
 sysdeps/unix/sysv/linux/mq_notify.c    |    6 +++---
 sysdeps/unix/sysv/linux/recv.c         |    1 +
 sysdeps/unix/sysv/linux/socket.c       |    1 +
 sysdeps/unix/sysv/linux/x86_64/recv.c  |    1 +
 14 files changed, 39 insertions(+), 8 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]