2002-10-16  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
	Use __libc_errno only for libc itself.
This commit is contained in:
Ulrich Drepper 2002-10-16 08:57:50 +00:00
parent 885bc0246b
commit ac2dc59886
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-16 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
Use __libc_errno only for libc itself.
2002-10-15 Roland McGrath <roland@redhat.com> 2002-10-15 Roland McGrath <roland@redhat.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>

View File

@ -111,10 +111,15 @@ __i686.get_pc_thunk.reg: \
# elif defined _LIBC_REENTRANT # elif defined _LIBC_REENTRANT
# if USE___THREAD # if USE___THREAD
# ifndef NOT_IN_libc
# define SYSCALL_ERROR_ERRNO __libc_errno
# else
# define SYSCALL_ERROR_ERRNO errno
# endif
# define SYSCALL_ERROR_HANDLER \ # define SYSCALL_ERROR_HANDLER \
0:SETUP_PIC_REG (cx); \ 0:SETUP_PIC_REG (cx); \
addl $_GLOBAL_OFFSET_TABLE_, %ecx; \ addl $_GLOBAL_OFFSET_TABLE_, %ecx; \
movl __libc_errno@GOTNTPOFF(%ecx), %ecx; \ movl SYSCALL_ERROR_ERRNO@GOTNTPOFF(%ecx), %ecx; \
xorl %edx, %edx; \ xorl %edx, %edx; \
subl %eax, %edx; \ subl %eax, %edx; \
movl %edx, %gs:0(%ecx); \ movl %edx, %gs:0(%ecx); \