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.20-382-g74eb826
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 Dec 2014 22:10:38 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.20-382-g74eb826
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 74eb826cff5e4277d2d866a92058f27a837f8ff7 (commit)
from c9ce306b9cb3b13dada64ac0e9dd86d955e8f881 (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=74eb826cff5e4277d2d866a92058f27a837f8ff7
commit 74eb826cff5e4277d2d866a92058f27a837f8ff7
Author: Roland McGrath <roland@hack.frob.com>
Date: Wed Dec 17 14:07:18 2014 -0800
NPTL: Remove gratuitous Linuxisms from gai_misc.h.
diff --git a/ChangeLog b/ChangeLog
index a3e9020..216b2c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2014-12-17 Roland McGrath <roland@hack.frob.com>
+ * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
+ Use pthread_sigmask rather than INTERNAL_SYSCALL.
+ Use assert_perror to check its return value.
+ (__gai_create_helper_thread): Likewise.
+
* inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
* malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
diff --git a/sysdeps/nptl/gai_misc.h b/sysdeps/nptl/gai_misc.h
index 942f2b1..49be366 100644
--- a/sysdeps/nptl/gai_misc.h
+++ b/sysdeps/nptl/gai_misc.h
@@ -81,8 +81,8 @@ __gai_start_notify_thread (void)
{
sigset_t ss;
sigemptyset (&ss);
- INTERNAL_SYSCALL_DECL (err);
- INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);
+ int sigerr = pthread_sigmask (SIG_SETMASK, &ss, NULL);
+ assert_perror (sigerr);
}
extern inline int
@@ -105,14 +105,14 @@ __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
sigset_t ss;
sigset_t oss;
sigfillset (&ss);
- INTERNAL_SYSCALL_DECL (err);
- INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
+ int sigerr = pthread_sigmask (SIG_SETMASK, &ss, &oss);
+ assert_perror (sigerr);
int ret = pthread_create (threadp, &attr, tf, arg);
/* Restore the signal mask. */
- INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &oss, NULL,
- _NSIG / 8);
+ sigerr = pthread_sigmask (SIG_SETMASK, &oss, NULL);
+ assert_perror (sigerr);
(void) pthread_attr_destroy (&attr);
return ret;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/nptl/gai_misc.h | 12 ++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU C Library master sources