previous: >>107868194
#define __NR_rt_sigaction 13
https://man7.org/linux/man-pages/man2/sigaction.2.html
you can tell, just by looking at the length of the man page, that this is a complicated one. go ahead and read https://man7.org/linux/man-pages/man7/signal.7.html as well, to get yourself up to speed, if you're not already familiar. god, this topic is so complex, i'm really not even sure what to put in this blurb. there is certainly a lot of room for discussion of signals in general, so maybe we'll go with that.
oh, i guess this part is also interesting
>The new system call takes a fourth argument, size_t sigsetsize, which specifies the size in bytes of the signal sets in act.sa_mask and oldact.sa_mask
because they kept fucking themselves over by hardcoding things, over time the linux kernel developers started making more of their syscalls take a variable input (often via a pointer to a struct) alongside its expected size. clever optimization on their end
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
Comment too long. Click here to view the full text.