summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_init.3
diff options
context:
space:
mode:
authorguenther <>2016-05-07 19:05:22 +0000
committerguenther <>2016-05-07 19:05:22 +0000
commit68e76f55be2ed227ee7e29661e23ed40ec883b46 (patch)
treede4cc654271dece5f2ef0ce9a271e9cafcb14570 /src/lib/libtls/tls_init.3
parent14ce935972dfee67affb9dbef7b76c66fc35423b (diff)
downloadopenbsd-68e76f55be2ed227ee7e29661e23ed40ec883b46.tar.gz
openbsd-68e76f55be2ed227ee7e29661e23ed40ec883b46.tar.bz2
openbsd-68e76f55be2ed227ee7e29661e23ed40ec883b46.zip
Use a Thread Information Block in both single and multi-threaded programs.
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@
Diffstat (limited to 'src/lib/libtls/tls_init.3')
0 files changed, 0 insertions, 0 deletions