musl/src/env
Rich Felker 7c6c290695 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.
2013-08-03 16:27:30 -04:00
..
__environ.c remove unused #undef environ now that libc.h no longer #defines it 2013-02-17 14:30:19 -05:00
__init_security.c clean up and refactor program initialization 2012-10-07 21:43:46 -04:00
__init_tls.c add system for resetting TLS to initial values 2013-08-03 16:27:30 -04:00
__libc_start_main.c add support for init/fini array in main program, and greatly simplify 2013-07-21 03:00:54 -04:00
__reset_tls.c add system for resetting TLS to initial values 2013-08-03 16:27:30 -04:00
__stack_chk_fail.c fix unused variable warnings 2012-11-01 22:58:17 -04:00
clearenv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getenv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
putenv.c as an extension, have putenv("VAR") behave as unsetenv("VAR") 2012-10-21 18:37:15 -04:00
setenv.c fix for setenv bogus var argument handling 2011-07-28 20:43:40 -04:00
unsetenv.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00