This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch master updated. glibc-2.25-275-g4c3992f


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  4c3992fc459322a7c712700ba3244fcb125163d7 (commit)
      from  fd9f30f6f9b266405d88eb11b1f8793451629125 (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 -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4c3992fc459322a7c712700ba3244fcb125163d7

commit 4c3992fc459322a7c712700ba3244fcb125163d7
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu May 4 17:38:05 2017 +0000

    Fix signal.h bsd_signal namespace (bug 21445).
    
    signal.h declares bsd_signal for __USE_XOPEN.  But this function was
    obsoleted in the 2001 edition of POSIX and removed in the 2008
    edition, so it should not be declared when the 2008 edition is in use.
    This patch fixes the conditionals accordingly.  (This does not fix any
    conform/ test failures because of other namespace issues in signal.h.)
    
    Tested for x86_64.
    
    	[BZ #21445]
    	* signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.

diff --git a/ChangeLog b/ChangeLog
index f5d749b..7d023fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #21445]
+	* signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.
+
 	[BZ #21457]
 	* sysdeps/unix/sysv/linux/mips/sys/ucontext.h
 	[_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to
diff --git a/signal/signal.h b/signal/signal.h
index 84f2a1f..6db2d2f 100644
--- a/signal/signal.h
+++ b/signal/signal.h
@@ -108,7 +108,7 @@ extern __sighandler_t __REDIRECT_NTH (signal,
 # endif
 #endif
 
-#ifdef __USE_XOPEN
+#if defined __USE_XOPEN && !defined __USE_XOPEN2K8
 /* The X/Open definition of `signal' conflicts with the BSD version.
    So they defined another function `bsd_signal'.  */
 extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)

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

Summary of changes:
 ChangeLog       |    3 +++
 signal/signal.h |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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