summaryrefslogtreecommitdiff
path: root/src/env/__reset_tls.c
AgeCommit message (Collapse)AuthorLines
2015-04-22remove useless visibility application from static-linking-only codeRich Felker-2/+1
part of the goal here is to eliminate use of the ATTR_LIBC_VISIBILITY macro outside of libc.h, since it was never intended to be 'public'.
2013-08-03add system for resetting TLS to initial valuesRich Felker-0/+22
this is needed for reused threads in the SIGEV_THREAD timer notification system, and could be reused elsewhere in the future if needed, though it should be refactored for such use. for static linking, __init_tls.c is simply modified to export the TLS info in a structure with external linkage, rather than using statics. this perhaps makes the code more clear, since the statics were poorly named for statics. the new __reset_tls.c is only linked if it is used. for dynamic linking, the code is in dynlink.c. sharing code with __copy_tls is not practical since __reset_tls must also re-zero thread-local bss.