cosmopolitan/test/libc/stdio
Justine Tunney 69f4152f38 Always initialize thread local storage
We had previously not enabled TLS in MODE=tiny in order to keep the
smallest example programs (e.g. life.com) just 16kb in size. But it
was error prone doing that, so now we just always enable it because
this change uses hacks to ensure it won't increase life.com's size.

This change also fixes a bug on NetBSD, where signal handlers would
break thread local storage if SA_SIGINFO was being used. This looks
like it might be a bug in NetBSD, but it's got a simple workaround.
2022-07-19 00:21:46 -07:00
..
dirstream_test.c Do code cleanup use duff device linenoise i/o 2022-04-22 18:56:52 -07:00
dtoa_test.c Simplify TLS and reduce startup latency 2022-07-18 04:10:54 -07:00
dumphexc_test.c Make more fixes and improvements 2022-06-13 11:02:13 -07:00
fgetln_test.c Fix some issues and do some code cleanup 2022-05-23 10:15:53 -07:00
fgets_test.c Improve memory safety 2021-10-13 17:27:13 -07:00
fgetwc_test.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fmemopen_test.c Improve memory safety 2021-10-13 17:27:13 -07:00
fputc_test.c Always initialize thread local storage 2022-07-19 00:21:46 -07:00
fputs_test.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
freopen_test.c Fix freopen so it resets stream buffer (#61) 2021-03-07 12:12:02 -08:00
ftell_test.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fwrite_test.c Improve synchronization 2022-04-15 15:31:55 -07:00
getdelim_test.c Make improvements 2022-03-16 13:40:10 -07:00
gz_test.c Add zlib gzip functions 2022-05-12 12:17:40 -07:00
memory_test.c Use futexes on OpenBSD and improve threading 2022-07-17 19:59:49 -07:00
mkostempsm_test.c Fix some win32 definitions 2022-03-22 19:54:36 -07:00
popen_test.c Make more fixes and improvements 2022-06-13 11:02:13 -07:00
spawn_test.c Fix bugs with recent change 2022-04-16 10:40:23 -07:00
strlist_test.c Make redbean serialization deterministic 2022-07-09 04:09:51 -07:00
system_test.c Change license 2020-12-27 17:18:44 -08:00
test.mk Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
tmpfile_test.c Polyfill SIGCHLD on the New Technology 2022-03-22 21:31:12 -07:00
ungetc_test.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
vappendf_test.c Make more fixes and improvements 2022-06-13 11:02:13 -07:00