[PATCH] Store errno value before using __set_errno()

Mike Frysinger vapier at gentoo.org
Fri Jul 3 22:30:23 UTC 2009


On Friday 03 July 2009 17:29:23 Cristi Magherusan wrote:
> On Fri, 2009-07-03 at 15:21 -0400, Mike Frysinger wrote:
> > On Thursday 04 June 2009 08:33:34 Ingo van Lil wrote:
> > > The __syscall_error() function stores the errno value in the edx
> > > register before invoking the __set_errno() macro. When using the
> > > pthread library this macro calls thread_self() to determine the errno
> > > location, which might clobber the edx register. The errno value must
> > > be stored in a "real" variable so the compiler can take care of
> > > saving/restoring it if necessary.
> >
> > looks fine to me, merged.  thanks.
>
> Wouldn't this worth being merged in the nptl branch, and your new
> syscall-common patch too?

i dont maintain the nptl branch, and i dont want to go merging things that'll 
inadvertently break it.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090703/eba35f95/attachment.pgp>


More information about the uClibc mailing list