This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.23-305-g46c1ffa
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 10 May 2016 14:58:21 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.23-305-g46c1ffa
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 46c1ffa4d50ec6a11fb845708a94f107fdb765d2 (commit)
from b9eca49e378d183ddf418f5deae1f389cd31dc28 (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=46c1ffa4d50ec6a11fb845708a94f107fdb765d2
commit 46c1ffa4d50ec6a11fb845708a94f107fdb765d2
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue May 10 14:57:58 2016 +0000
Declare pthread_atfork in unistd.h for UNIX98 (bug 20044).
For UNIX98 (only), unistd.h should declare pthread_atfork, but that
declaration is missing. This patch adds it.
Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).
[BZ #20044]
* posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
(pthread_atfork): New prototype.
* conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
variable.
diff --git a/ChangeLog b/ChangeLog
index 55319d8..93db66f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2016-05-10 Joseph Myers <joseph@codesourcery.com>
+ [BZ #20044]
+ * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
+ (pthread_atfork): New prototype.
+ * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
+ variable.
+
[BZ #20043]
* posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
prototype.
diff --git a/conform/Makefile b/conform/Makefile
index 32714e7..c4412ef 100644
--- a/conform/Makefile
+++ b/conform/Makefile
@@ -195,7 +195,6 @@ test-xfail-UNIX98/signal.h/conform = yes
test-xfail-UNIX98/stdlib.h/conform = yes
test-xfail-UNIX98/sys/wait.h/conform = yes
test-xfail-UNIX98/ucontext.h/conform = yes
-test-xfail-UNIX98/unistd.h/conform = yes
test-xfail-XOPEN2K/semaphore.h/conform = yes
test-xfail-XOPEN2K/signal.h/conform = yes
test-xfail-XOPEN2K/sys/wait.h/conform = yes
diff --git a/posix/unistd.h b/posix/unistd.h
index 4722f7f..7486ecf 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -1150,6 +1150,15 @@ extern char *cuserid (char *__s);
#endif
+/* Unix98 requires this function to be declared here. In other
+ standards it is in <pthread.h>. */
+#if defined __USE_UNIX98 && !defined __USE_XOPEN2K
+extern int pthread_atfork (void (*__prepare) (void),
+ void (*__parent) (void),
+ void (*__child) (void)) __THROW;
+#endif
+
+
/* Define some macros helping to catch buffer overflows. */
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
# include <bits/unistd.h>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
conform/Makefile | 1 -
posix/unistd.h | 9 +++++++++
3 files changed, 15 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources