From f106775df14dbd1af2f1e0d3b1b3c67c167f8ce0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 16 Aug 2002 04:49:08 +0000 Subject: Replace all instances of _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__ -Erik --- libc/sysdeps/linux/common/bits/errno.h | 2 +- libc/sysdeps/linux/i386/syscall.S | 8 ++++---- libc/sysdeps/linux/i386/vfork.S | 8 ++++---- libc/sysdeps/linux/mips/bits/errno.h | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h index ac59d4c9d..97e4320f5 100644 --- a/libc/sysdeps/linux/common/bits/errno.h +++ b/libc/sysdeps/linux/common/bits/errno.h @@ -43,7 +43,7 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__)); # define __set_errno(val) (*__errno_location ()) = (val) # endif /* _LIBC */ -# if !defined _LIBC || defined _LIBC_REENTRANT +# if !defined _LIBC || defined __UCLIBC_HAS_THREADS__ /* When using threads, errno is a per-thread value. */ # define errno (*__errno_location ()) # endif diff --git a/libc/sysdeps/linux/i386/syscall.S b/libc/sysdeps/linux/i386/syscall.S index c67b39ece..a70a99701 100644 --- a/libc/sysdeps/linux/i386/syscall.S +++ b/libc/sysdeps/linux/i386/syscall.S @@ -47,21 +47,21 @@ Lhere: addl $_GLOBAL_OFFSET_TABLE_+[.-Lhere],%ebx negl %eax movl %eax,%ecx -#ifdef _LIBC_REENTRANT +#ifdef __UCLIBC_HAS_THREADS__ call __errno_location@PLT #else movl errno@GOT(%ebx),%eax -#endif /* _LIBC_REENTRANT */ +#endif /* __UCLIBC_HAS_THREADS__ */ movl %ecx,(%eax) #else negl %eax -#ifdef _LIBC_REENTRANT +#ifdef __UCLIBC_HAS_THREADS__ movl %eax,%ecx call __errno_location movl %ecx,(%eax) #else movl %eax,errno -#endif /* _LIBC_REENTRANT */ +#endif /* __UCLIBC_HAS_THREADS__ */ #endif /* PIC */ diff --git a/libc/sysdeps/linux/i386/vfork.S b/libc/sysdeps/linux/i386/vfork.S index 10e95b170..176f25cc3 100644 --- a/libc/sysdeps/linux/i386/vfork.S +++ b/libc/sysdeps/linux/i386/vfork.S @@ -36,22 +36,22 @@ vfork: addl $_GLOBAL_OFFSET_TABLE_+[.-.Lhere],%ebx negl %eax movl %eax,%ecx -#ifdef _LIBC_REENTRANT +#ifdef __UCLIBC_HAS_THREADS__ call __errno_location@PLT #else movl errno@GOT(%ebx),%eax -#endif /* _LIBC_REENTRANT */ +#endif /* __UCLIBC_HAS_THREADS__ */ movl %ecx,(%eax) popl %ebx #else negl %eax -#ifdef _LIBC_REENTRANT +#ifdef __UCLIBC_HAS_THREADS__ movl %eax,%ecx call __errno_location movl %ecx,(%eax) #else movl %eax,errno -#endif /* _LIBC_REENTRANT */ +#endif /* __UCLIBC_HAS_THREADS__ */ #endif /* PIC */ diff --git a/libc/sysdeps/linux/mips/bits/errno.h b/libc/sysdeps/linux/mips/bits/errno.h index 29ba9807a..ca9c32fed 100644 --- a/libc/sysdeps/linux/mips/bits/errno.h +++ b/libc/sysdeps/linux/mips/bits/errno.h @@ -39,7 +39,7 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__)); # define __set_errno(val) (*__errno_location ()) = (val) # endif /* _LIBC */ -# if !defined _LIBC || defined _LIBC_REENTRANT +# if !defined _LIBC || defined __UCLIBC_HAS_THREADS__ /* When using threads, errno is a per-thread value. */ # define errno (*__errno_location ()) # endif -- cgit v1.2.3