[PATCH] Store errno value before using __set_errno()

Mike Frysinger vapier at gentoo.org
Fri Jul 3 19:21:39 UTC 2009


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.
-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/9693260f/attachment.pgp>


More information about the uClibc mailing list