SIGPENDING(3POSIX)
โจ PROLOG โจ
ok bestie before we even start, real talk: this page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface might not even be implemented on Linux at all. ๐
๐ NAME ๐
sigpending โ examine pending signals
๐ฆ SYNOPSIS ๐ฆ
#include <signal.h>
int sigpending(sigset_t *set);
๐ DESCRIPTION ๐
So the sigpending() function is gonna store, in the location referenced by the set argument, the set of signals that are blocked from delivery to the calling thread and that are pending on the process or the calling thread. Like it's giving you the receipts on which signals are stuck waiting in line. ๐
๐ธ RETURN VALUE ๐ธ
Upon successful completion, sigpending() shall return 0. Otherwise, -1 shall be returned and errno set to indicate the error. Slay if it works, sad girl hours if it doesn't. ๐ญ
๐ ERRORS ๐
No errors are defined. Not a single one. Iconic, honestly.
The following sections are informative.
โญ EXAMPLES โญ
None. Nada. Nothing to see here. ๐
๐ APPLICATION USAGE ๐
None. โจ
๐ง RATIONALE ๐ง
None. ๐ซถ
๐ FUTURE DIRECTIONS ๐
None. The future is unknowable and also empty. ๐ฎ
๐ฅ SEE ALSO ๐ฅ
execpthread_sigmask()sigaddset()sigdelset()sigemptyset()sigfillset()sigismember()
The Base Definitions volume of POSIX.1โ2017, <signal.h>
๐ COPYRIGHT ๐
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page bestie, written by IEEE/The Open Group back in 2017 โ SIGPENDING(3POSIX), periodt ๐
โจ
๐ฆ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 ยท Other
- debian trixie: manpages-posix-dev 2017a-2 ยท Other
- ubuntu jammy: manpages-posix-dev 2017a-2 ยท Other
- ubuntu noble: manpages-posix-dev 2017a-2 ยท Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 ยท Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 ยท Other
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms