2004-10-04 Roland McGrath <roland@redhat.com>

* include/errno.h [RTLD_PRIVATE_ERRNO] (errno): Rename the real symbol
	to rtld_errno.
	* sysdeps/generic/errno.c [RTLD_PRIVATE_ERRNO] (rtld_errno): Define it,
	and don't define any other errno names.
	* sysdeps/unix/alpha/sysdep.h [RTLD_PRIVATE_ERRNO]: Use rtld_errno in
	place of errno.
	* sysdeps/unix/i386/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
	* sysdeps/unix/x86_64/sysdep.S: Likewise.
This commit is contained in:
Roland McGrath 2004-10-04 20:59:38 +00:00
parent 3e08e73f58
commit 94645659a4
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@
#if RTLD_PRIVATE_ERRNO #if RTLD_PRIVATE_ERRNO
# define SYSCALL_ERROR_LABEL $syscall_error # define SYSCALL_ERROR_LABEL $syscall_error
# define SYSCALL_ERROR_HANDLER \ # define SYSCALL_ERROR_HANDLER \
stl v0, errno(gp) !gprel; \ stl v0, rtld_errno(gp) !gprel; \
lda v0, -1; \ lda v0, -1; \
ret ret
#elif defined(PIC) #elif defined(PIC)

View File

@ -98,7 +98,7 @@
# if RTLD_PRIVATE_ERRNO # if RTLD_PRIVATE_ERRNO
# define SYSCALL_ERROR_HANDLER \ # define SYSCALL_ERROR_HANDLER \
SYSCALL_ERROR_LABEL: \ SYSCALL_ERROR_LABEL: \
lea (errno, %pc), %a0; \ lea (rtld_errno, %pc), %a0; \
neg.l %d0; \ neg.l %d0; \
move.l %d0, (%a0); \ move.l %d0, (%a0); \
move.l &-1, %d0; \ move.l &-1, %d0; \