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/21899] XPG4.2 sigaction namespace


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

--- 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  cd65836b5fba2d34a4c04c15b47723ab9237b66a (commit)
      from  d9fee042e252b229f8f967bf36492c97ec112fa8 (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=cd65836b5fba2d34a4c04c15b47723ab9237b66a

commit cd65836b5fba2d34a4c04c15b47723ab9237b66a
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Aug 7 23:41:32 2017 +0000

    Fix XPG4.2 bits/sigaction.h namespace (bug 21899).

    For XPG4.2, sa_sigaction, SA_ONSTACK, SA_RESETHAND, SA_RESTART and
    SA_NODEFER should be defined in signal.h, but they are only defined
    for other standards at present.

    This patch fixes the various bits/sigaction.h headers accordingly.
    All the fixes are essentially the same, except those for SPARC and
    Tile.

    For SPARC, the header (a) spuriously defined various nonstandard
    macros for __USE_UNIX98 || defined __USE_XOPEN2K8 and (b) defined some
    standard macros as aliases of nonstandard ones instead of the other
    way round.  This patch fixes the SPARC header to handle these macros
    the same way and with the same conditions as those for other
    architectures, so the standard macros are the primary ones and the
    other ones are defined only for __USE_MISC and are aliases of the
    standard ones where applicable.

    For Tile, the header spuriously defined the nonstandard macro
    SA_NOPTRACE for __USE_UNIX98 || defined __USE_XOPEN2K8; this is moved
    to __USE_MISC.

    (Those nonstandard macros are in a reserved namespace, but it seems
    desirable to be consistent between architectures as far as possible,
    and so not define them in standard modes anywhere.)

    Tested for x86_64, and with build-many-glibcs.py.

        [BZ #21899]
        * bits/sigaction.h (struct sigaction): Define sa_handler and
        sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.  Define directly rather than as alias.
        (SA_RESETHAND): Likewise.
        (SA_INTERRUPT): Define only for [__USE_MISC].
        (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
        (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
        [__USE_MISC].
        (SA_STACK): Define only for [__USE_MISC].
        * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
        (struct sigaction): Define sa_handler and sa_sigaction using union
        also for [__USE_XOPEN_EXTENDED].
        (SA_ONSTACK): Change [__USE_UNIX98] condition to
        [__USE_XOPEN_EXTENDED].
        (SA_RESTART): Likewise.
        (SA_NODEFER): Likewise.
        (SA_RESETHAND): Likewise.
        (SA_NOPTRACE): Define only for [__USE_MISC].

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

Summary of changes:
 ChangeLog                                      |   79 ++++++++++++++++++++++++
 bits/sigaction.h                               |    6 +-
 sysdeps/unix/sysv/linux/alpha/bits/sigaction.h |    6 +-
 sysdeps/unix/sysv/linux/bits/sigaction.h       |    6 +-
 sysdeps/unix/sysv/linux/hppa/bits/sigaction.h  |    6 +-
 sysdeps/unix/sysv/linux/ia64/bits/sigaction.h  |    6 +-
 sysdeps/unix/sysv/linux/mips/bits/sigaction.h  |    6 +-
 sysdeps/unix/sysv/linux/s390/bits/sigaction.h  |    8 +-
 sysdeps/unix/sysv/linux/sparc/bits/sigaction.h |   18 +++---
 sysdeps/unix/sysv/linux/tile/bits/sigaction.h  |    8 +-
 10 files changed, 115 insertions(+), 34 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]