]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 27 Nov 2002 19:58:24 +0000 (19:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 27 Nov 2002 19:58:24 +0000 (19:58 +0000)
* sysdeps/x86_64/pthread_sigmask.c: New file.

* sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
value in case of an error.

nptl/ChangeLog
nptl/sysdeps/i386/pthread_sigmask.c
nptl/sysdeps/x86_64/pthread_sigmask.c [new file with mode: 0644]
nptl/sysdeps/x86_64/tls.h

index c8caf217a5e312ff431e01603ca0b9a7a798f55d..530d6f49ebe7952b9ea43d42705e7d9be19f1309 100644 (file)
@@ -1,5 +1,10 @@
 2002-11-27  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/x86_64/pthread_sigmask.c: New file.
+
+       * sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
+       value in case of an error.
+
        * sysdeps/x86_64/tls.h: New file.
 
 2002-11-26  Ulrich Drepper  <drepper@redhat.com>
index 2ae9198c02542bab228fdfa2cae2f1575ba636a0..aa071841db4d9fd5c2617100ec92762fda8b3914 100644 (file)
@@ -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);
 }
diff --git a/nptl/sysdeps/x86_64/pthread_sigmask.c b/nptl/sysdeps/x86_64/pthread_sigmask.c
new file mode 100644 (file)
index 0000000..802d61f
--- /dev/null
@@ -0,0 +1 @@
+#include "../i386/pthread_sigmask.c"
index 2daf0328d59f6dd9511f56eb6902036477450290..8a4b718cf004ba143d3ce526d7de47b64b87175c 100644 (file)
@@ -119,17 +119,6 @@ union user_desc_init
   (((tcbhead_t *) (descr))->dtv)
 
 
-/* Macros to load from and store into segment registers.  */
-# ifndef TLS_GET_GS
-#  define TLS_GET_GS() \
-  ({ int __seg; __asm ("movw %%gs, %w0" : "=q" (__seg)); __seg & 0xffff; })
-# endif
-# ifndef TLS_SET_GS
-#  define TLS_SET_GS(val) \
-  __asm ("movw %w0, %%gs" :: "q" (val))
-# endif
-
-
 # ifndef __NR_set_thread_area
 #  define __NR_set_thread_area 243
 # endif
This page took 0.046454 seconds and 5 git commands to generate.