about summary refs log tree commit diff
path: root/nptl/sysdeps/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-11-27 19:58:24 +0000
committerUlrich Drepper <drepper@redhat.com>2002-11-27 19:58:24 +0000
commitb54e18ebb31d856711e2f096a23d85753fbe57d7 (patch)
tree0f71d4323bd69655232d92bbc3804e54766d4deb /nptl/sysdeps/i386
parenta39313366a59d118ef9553f3b635e6230385329f (diff)
downloadglibc-b54e18ebb31d856711e2f096a23d85753fbe57d7.tar.gz
glibc-b54e18ebb31d856711e2f096a23d85753fbe57d7.tar.xz
glibc-b54e18ebb31d856711e2f096a23d85753fbe57d7.zip
Update.
	* sysdeps/x86_64/pthread_sigmask.c: New file.

	* sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
	value in case of an error.
Diffstat (limited to 'nptl/sysdeps/i386')
-rw-r--r--nptl/sysdeps/i386/pthread_sigmask.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl/sysdeps/i386/pthread_sigmask.c b/nptl/sysdeps/i386/pthread_sigmask.c
index 2ae9198c02..aa071841db 100644
--- a/nptl/sysdeps/i386/pthread_sigmask.c
+++ b/nptl/sysdeps/i386/pthread_sigmask.c
@@ -30,5 +30,9 @@ pthread_sigmask (how, newmask, oldmask)
      const sigset_t *newmask;
      sigset_t *oldmask;
 {
-  return INLINE_SYSCALL (sigprocmask, 3, how, newmask, oldmask);
+  int result = INTERNAL_SYSCALL (sigprocmask, 3, how, newmask, oldmask);
+
+  return (INTERNAL_SYSCALL_ERROR_P (result)
+	  ? INTERNAL_SYSCALL_ERRNO (result)
+	  : 0);
 }