* sysdeps/x86_64/pthread_sigmask.c: New file.

	* sysdeps/i386/pthread_sigmask.c (pthread_sigmask): Return correct
	value in case of an error.
This commit is contained in:
Ulrich Drepper 2002-11-27 19:58:24 +00:00
parent a39313366a
commit b54e18ebb3
4 changed files with 11 additions and 12 deletions

View 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>

View 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);
}

View file

@ -0,0 +1 @@
#include "../i386/pthread_sigmask.c"

View 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