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/18534] syslog dprintf namespace


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

--- 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  be7dc2b77e368daad6f81e272fc41f1b86166240 (commit)
      from  a97e5e25576cb5e207b1e49f1eb4e52e6354daa7 (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=be7dc2b77e368daad6f81e272fc41f1b86166240

commit be7dc2b77e368daad6f81e272fc41f1b86166240
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Jun 17 20:10:50 2015 +0000

    Fix syslog dprintf namespace (bug 18534).

    syslog functions bring in references to dprintf, which wasn't added to
    POSIX until the 2008 edition and so isn't in various standards
    containing the syslog functions.  This patch fixes this by making
    dprintf into a weak alias of __dprintf and using __dprintf as
    appropriate.

    Tested for x86_64 and x86 (testsuite, and that installed stripped
    shared libraries are unchanged by the patch).

        [BZ #18534]
        * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
        (dprintf): Define as a weak alias of __dprintf, not a strong
        alias.
        * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
        * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
        dprintf.
        * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
        Remove variable.
        (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
        (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.

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

Summary of changes:
 ChangeLog              |   12 ++++++++++++
 NEWS                   |    2 +-
 conform/Makefile       |    3 ---
 include/stdio.h        |    3 +++
 misc/syslog.c          |    2 +-
 stdio-common/dprintf.c |    3 ++-
 6 files changed, 19 insertions(+), 6 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]