From d0233a4f17c6d9bd423691e33cfe8a55b533e044 Mon Sep 17 00:00:00 2001 From: jb Date: Tue, 5 May 1998 22:07:02 +0000 Subject: Use the thread-aware errno definition all the time. --- lib/libc/i386/sys/Ovfork.S | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'lib/libc/i386/sys/Ovfork.S') diff --git a/lib/libc/i386/sys/Ovfork.S b/lib/libc/i386/sys/Ovfork.S index e4ed257..1da2673 100644 --- a/lib/libc/i386/sys/Ovfork.S +++ b/lib/libc/i386/sys/Ovfork.S @@ -33,12 +33,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: Ovfork.S,v 1.6 1997/02/22 14:59:28 peter Exp $ */ #if defined(SYSLIBC_RCS) && !defined(lint) .text - .asciz "$Id$" + .asciz "$Id: Ovfork.S,v 1.6 1997/02/22 14:59:28 peter Exp $" #endif /* SYSLIBC_RCS and not lint */ #include "DEFS.h" @@ -61,10 +61,7 @@ vforkok: cmpl $0,%edx /* child process? */ jne child /* yes */ jmp parent -#ifdef _THREAD_SAFE - /* - * Threaded version using __error(). - */ + .globl CNAME(__error) .type CNAME(__error),@function verror: @@ -78,22 +75,6 @@ verror: movl %ecx,(%eax) movl $-1,%eax movl $-1,%edx -#else /* !_THREAD_SAFE */ - /* - * Non-threaded version using global errno. - */ - .globl CNAME(errno) -verror: -#ifdef PIC - PIC_PROLOGUE - movl PIC_GOT(CNAME(errno)), %edx - movl %eax,(%edx) - PIC_EPILOGUE -#else - movl %eax,CNAME(errno) -#endif - movl $-1,%eax -#endif /* !_THREAD_SAFE */ jmp %ecx child: movl $0,%eax -- cgit v1.1