SIGPENDING(2)
β¨ NAME β¨
omg bestie, you found the sigpending(2) page β yes, the System Calls Manual one. It's all about getting those pending signals. π
sigpending β get pending signals, periodt.
π LIBRARY π
It lives in the Standard C Library (libc, -lc), no cap. π
π SYNOPSIS π
#include <signal.h>
int
sigpending(sigset_t *set);
π DESCRIPTION π
Okay so sigpending() is the system call that returns a mask of the signals pending for delivery to the calling thread or the calling process in the location indicated by set. It literally puts that mask where set points. β¨
Why are signals pending? Maybe because they are currently masked, or just transiently before delivery β although that latter case is not normally detectable, so it's giving sneaky. π
π RETURN VALUES π
The sigpending() function returns the value 0 if successful. Otherwise, the value -1 is returned and the global variable errno is set to indicate the error. So yeah: 0 = slay, -1 = check errno, bestie. π
π ERRORS π
The sigpending() system call will fail if:
[EFAULT]β thesetargument specified an invalid address.
π SEE ALSO π
π STANDARDS π
The sigpending() system call is expected to conform to ISO/IEC 9945-1:1990 (βPOSIX.1β). Iconic behavior, honestly. β
This page is from Debian, dated September 6, 2013 β SIGPENDING(2), and that's the whole vibe. Byeee π
π«Ά
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms