mlibc icon indicating copy to clipboard operation
mlibc copied to clipboard

posix: Review ABI of siginfo_t

Open avdgrinten opened this issue 4 years ago • 1 comments

siginfo_t has lots of additional members on Linux, review whether we need them.

avdgrinten avatar Apr 16 '21 15:04 avdgrinten

Not all of the fields in this struct are relevant for every signal, and so it's usually implemented as a union. For ABI purposes what we can do is make a union which includes a padding member that we can expand into if future additions are needed. That's also what musl does, bringing the struct to 128 bytes.

64 avatar Jun 27 '22 01:06 64