From: Ulrich Drepper Date: Thu, 28 Nov 2002 00:56:18 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.30~20652 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dca99d27b7b39c3df67768c4b2ed057f70902f92;p=external%2Fglibc.git Update. * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if possible since gettid cannot fail. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 842dede..9113c26 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,8 @@ 2002-11-27 Ulrich Drepper + * sysdeps/unix/sysv/linux/raise.c (raise): Use INTERNAL_SYSCALL if + possible since gettid cannot fail. + * sysdeps/x86_64/pthreaddef.h: New file. * sysdeps/i386/pthreaddef.h (gettid): Removed. diff --git a/nptl/sysdeps/unix/sysv/linux/raise.c b/nptl/sysdeps/unix/sysv/linux/raise.c index 009f32a..2a09d18 100644 --- a/nptl/sysdeps/unix/sysv/linux/raise.c +++ b/nptl/sysdeps/unix/sysv/linux/raise.c @@ -31,7 +31,12 @@ raise (sig) pid_t selftid = pd->tid; if (selftid == 0) { + /* This system call is not supposed to fail. */ +#ifdef INTERNAL_SYSCALL + selftid = INTERNAL_SYSCALL (gettid, 0); +#else selftid = INLINE_SYSCALL (gettid, 0); +#endif THREAD_SETMEM (pd, tid, selftid); }