cosmopolitan/test/libc
Justine Tunney 5546559034 Improve pledge() usability and consistency
- We now kill the program on violations like OpenBSD
- We now print a message explaining which promise is needed
- This change also fixes a linkage bug with thread local storage
- Your sigaction() handlers should now be more thread safe

A new `__pledge_mode` global has been introduced to make pledge() more
customizable on Linux. For example:

    __attribute__((__constructor__)) static void init(void) {
      __pledge_mode = SECCOMP_RET_ERRNO | EPERM;
    }

Can be used to restore our old permissive pledge() behavior.
2022-08-07 16:18:33 -07:00
..
alg Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
bits Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
calls Improve pledge() usability and consistency 2022-08-07 16:18:33 -07:00
dns Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
fmt Make improvements 2022-07-21 03:36:42 -07:00
intrin Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
log Remove trailing whitespace from all files (#497) 2022-07-20 20:31:16 -07:00
mem Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
nexgen32e Fix MODE=tiny build 2022-07-14 05:42:24 -07:00
rand Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
release Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
runtime Improve pledge() usability and consistency 2022-08-07 16:18:33 -07:00
sock Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
stdio Make more libc improvements 2022-08-06 17:18:40 -07:00
str Make more libc improvements 2022-08-06 17:18:40 -07:00
thread Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
time Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
tinymath Import more Musl math 2022-07-12 15:55:12 -07:00
unicode Add Deflate() / Inflate() to redbean and fix bugs 2022-07-08 09:47:04 -07:00
x Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
xed Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
test.mk Fix bugs and make improvements 2022-04-20 10:05:34 -07:00