about summary refs log tree commit diff
path: root/include/dirent.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-03 16:27:30 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-03 16:27:30 -0400
commit7c6c290695cb8726e876ff4fb8413913f661fc0b (patch)
tree9bba80c02f293fcf759bd9b2fe0004f99ac96fae /include/dirent.h
parent7356c2554e33cf16768616e8e3ae4a4f5a5aac17 (diff)
downloadmusl-7c6c290695cb8726e876ff4fb8413913f661fc0b.tar.gz
musl-7c6c290695cb8726e876ff4fb8413913f661fc0b.tar.xz
musl-7c6c290695cb8726e876ff4fb8413913f661fc0b.zip
add system for resetting TLS to initial values
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.
Diffstat (limited to 'include/dirent.h')
0 files changed, 0 insertions, 0 deletions