4 ms·
> Long story short, while Rust’s libc bindings give one access to the si_code field, it doesn’t export the actual constants to know what that value means. While
by jart 5y ago
> Long story short, while Rust’s libc bindings give one access to the si_code field, it doesn’t export the actual constants to know what that value means. While the maintainers are generally open to adding these constants, I don’t have access to all the large number of platforms to figure out what values the constants have on each (yes, they are not the same) and what constants are even available on each of them
https://github.com/jart/cosmopolitan/blob/7cbc2bc0838a88ff46a256696e38b48cb2718782/libc/sysv/consts.sh#L506-L557 https://github.com/jart/cosmopolitan/blob/7cbc2bc0838a88ff46...