This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Fix errno on Alpha
- From: Jakub Jelinek <jakub at redhat dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Wed, 8 Jan 2003 16:37:02 +0100
- Subject: Re: Fix errno on Alpha
- References: <20030108153012.GA7569@nevyn.them.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, Jan 08, 2003 at 10:30:12AM -0500, Daniel Jacobowitz wrote:
> Right now, Alpha uses a !samegp optimized branch to call
> __errno_location. This tells the linker that we always want the copy
> of __errno_location in this shared object; so syscalls never find the
> copy in libpthread.so, and set the main thread's errno instead of the
> current thread's errno. Easily fixed, like so; please apply.
?? Both __errno_location in libc.so and __errno_location in libpthread.so
do exactly the same, it doesn't matter which one do you use.
libc.so's is in linuxthreads/sysdeps/pthread/errno-loc.c,
libpthread.so's is in linuxthreads/errno.c.
Jakub