diff options
author | jb <jb@FreeBSD.org> | 1998-05-05 22:07:02 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-05 22:07:02 +0000 |
commit | d0233a4f17c6d9bd423691e33cfe8a55b533e044 (patch) | |
tree | b2cfa52e46d029e1de37824fae8ac2efb3d5ebb7 /lib/libc/i386/sys | |
parent | 87e29f1d789b217edd1b179bca04e34774f9339f (diff) | |
download | FreeBSD-src-d0233a4f17c6d9bd423691e33cfe8a55b533e044.zip FreeBSD-src-d0233a4f17c6d9bd423691e33cfe8a55b533e044.tar.gz |
Use the thread-aware errno definition all the time.
Diffstat (limited to 'lib/libc/i386/sys')
-rw-r--r-- | lib/libc/i386/sys/Ovfork.S | 25 |
1 files changed, 3 insertions, 22 deletions
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 |