about summary refs log tree commit diff
path: root/sysdeps/nptl
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-12-17 14:07:18 -0800
committerRoland McGrath <roland@hack.frob.com>2014-12-17 14:07:18 -0800
commit74eb826cff5e4277d2d866a92058f27a837f8ff7 (patch)
tree50be4a8814e02839aad69612a94a7b2bc02e16de /sysdeps/nptl
parentc9ce306b9cb3b13dada64ac0e9dd86d955e8f881 (diff)
downloadglibc-74eb826cff5e4277d2d866a92058f27a837f8ff7.tar.gz
glibc-74eb826cff5e4277d2d866a92058f27a837f8ff7.tar.xz
glibc-74eb826cff5e4277d2d866a92058f27a837f8ff7.zip
NPTL: Remove gratuitous Linuxisms from gai_misc.h.
Diffstat (limited to 'sysdeps/nptl')
-rw-r--r--sysdeps/nptl/gai_misc.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/nptl/gai_misc.h b/sysdeps/nptl/gai_misc.h
index 942f2b1b7e..49be36694a 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;