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 ๐Ÿ”ฅ

  • exec
  • pthread_sigmask()
  • sigaddset()
  • sigdelset()
  • sigemptyset()
  • sigfillset()
  • sigismember()

The Base Definitions volume of POSIX.1โ€2017, <signal.h>

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