summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/i386/__syscall_error.c
AgeCommit message (Collapse)Author
2009-07-03i386: store errno value before using __set_errno()Ingo van Lil
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. Signed-off-by: Ingo van Lil <inguin@gmx.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2006-01-26Get rid of missing prototype warningsPeter S. Mazinger
2006-01-24- use keywords __asm__ and __inline__ c99.Bernhard Reutner-Fischer
2006-01-23Make i386 build w/ -std=c99 (almost)Peter S. Mazinger
2006-01-14fix broken commentingMike Frysinger
2006-01-14make DODEBUG=y happy, update sysdeps/common/* copyrightPeter S. Mazinger
2005-07-28the errno settings was fixed but the return value was still being clobbered ↵Mike Frysinger
... fix that too
2005-07-27add some asm magic to fix setting errno/ret values in the .S functionsMike Frysinger
2005-07-06Peter S. Mazinger writes: use the __syscall_error.c trick to handle setting ↵Mike Frysinger
errno