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/18483] psignal, psiginfo should not be declared for 2001 edition of POSIX


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

--- 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  007f2dd1228a4b21b10756c696876babb8cf86cd (commit)
      from  9dd6b7799a0b04034f2d2266845c64a309b015a3 (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=007f2dd1228a4b21b10756c696876babb8cf86cd

commit 007f2dd1228a4b21b10756c696876babb8cf86cd
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Jun 5 21:14:16 2015 +0000

    Fix psignal, psiginfo declaration conditions (bug 18483).

    signal.h declares psignal and psiginfo if __USE_XOPEN2K - that is, for
    the 2001 edition of POSIX.  These functions were actually added in the
    2008 edition (as indicated in the header comments).  This patch fixes
    the header conditionals.  This fixes some linknamespace test failures
    because psiginfo uses fmemopen, which is also new in the 2008 edition,
    so before the header fix this appeared to the linknamespace tests as a
    2001 function bringing in references to a 2008 function.  The problem
    also appeared in conformtest header namespace test results (the
    conformtest data has correct conditionals for when these functions
    should be visible), but the affected headers still have other
    namespace problems so this doesn't fix any of those XFAILs.

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

        [BZ #18483]
        * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
        [__USE_XOPEN2K8].  Remove redundant #endif.
        [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
        Remove redundant #if.
        * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
        Remove variable.
        (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
        (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.

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

Summary of changes:
 ChangeLog        |   10 ++++++++++
 NEWS             |    2 +-
 conform/Makefile |    3 ---
 signal/signal.h  |    4 +---
 4 files changed, 12 insertions(+), 7 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]