SIG(3)
π SIG(3) β Library Functions Manual π
okay bestie, welcome to the Library Functions Manual page for SIG(3) β it's shorter than my attention span but lowkey iconic. Let's get into it. β¨
πΈ NAME πΈ
sig β signal interface routines. That's the whole name, no cap. π
β¨ SYNOPSIS β¨
#include <ast.h> #include <sig.h>
int sigunblock(int sig); int sigcritical(int op);
π¦ DESCRIPTION π¦
So sigunblock is the lil rescue move: you call it to unblock the signal sig from inside a handler that's currently servicing sig. Basically it's saying "okay bestie, you can come through now" while you're already handling that exact signal. π
sigcritical is the bouncer for a critical region covering SIGINT, SIGQUIT, and SIGHUP. The op value changes what it does:
op > 0β pushes the region. Critical region goes brrr. π₯op == 0β pops the region. Bye, region. πop < 0β returns non-zero if any signals are being held in the current critical region. It's giving "are we holding signals rn?" energy. π
Signal critical regions may be nested, so you can stack them like cute lil bracelets. π The current critical region level is returned, and -1 comes back on error. Periodt.
π SEE ALSO π
signal(2)β go read that one next, bestie. π«Ά
mwah π β that's the whole SIG(3) page from the Library Functions Manual. No version or date is listed on this copy, so the footer vibes are just "Library Functions Manual, SIG(3), and nothing else." fr fr. π¦
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms