sys_sigprocmask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… sys_sigprocmask(9) β€” the Kernel API Manual, section 9, bestie ✨

Okay so bestie, pull up a chair, because this one is literally the "look at your blocked signals and/or change them" syscall πŸ’–. It lives in the Kernel API Manual, section 9, and no cap, it's giving classic signal-mask energy.


🌸 NAME 🌸

sys_sigprocmask β€” examine and change blocked signals πŸŽ€


✨ SYNOPSIS ✨

long sys_sigprocmask (int how , old_sigset_t __user * nset ,
old_sigset_t __user * oset );

Yes queen, three arguments, all spelled out exactly like that β€” how, nset, oset πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • how β€” tells the kernel whether we're adding signals, removing signals, or setting the whole mask outright. Basically the vibe of the operation πŸ”₯
  • nset β€” the signals to add or remove β€” but only if it's non-null, bestie πŸ™ˆ
  • oset β€” the previous value of the signal mask, handed back to you if it's non-null πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

So here's the tea πŸ“: some platforms have their own version of this bad boy with special arguments, and others only support sys_rt_sigprocmask. That's it, that's the whole description β€” no extra lore, I'm not gonna invent any 😭


🌈 SEE ALSO 🌈

The kernel file ./kernel/signal.c is the main character here, and it comes with a whole friend group of signal/jobctl/trap icons ✨:

All 27 of them, exactly as listed, no skipping, no cap 🫢


Heads up, bestie: the man page doesn't promise anything beyond what's written above β€” so don't go reading extra behaviour into it, mwah πŸ’œ

And that's a wrap, babes πŸŽ€ β€” this page came straight out of ./kernel and it's dated October 2026, so go forth and signal-mask responsibly, iykyk πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from