summaryrefslogtreecommitdiffstats
path: root/lib/librthread/arch/sparc/cerror.S (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-071-51/+0
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
* Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-threadguenther2011-10-171-0/+51
errno. The ASM bits for _cerror are sketchy or missing for some archs but that can be corrected in-tree.