SIGWAITINFO(3POSIX)

πŸ’– sigwaitinfo β€” the "bestie, just wait for your signals" page πŸ’–

okay so real talk, this one comes straight out of the POSIX Programmer's Manual β€” that's the SIGWAITINFO(3POSIX) situation, if you're keeping track of the header, which I know you are bestie πŸ’…


🚨 PROLOG (read this first, no skipping) 🚨

okay so before literally anything else: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β€” so if you're on Linux, go consult the corresponding Linux manual page for the details of Linux behavior, fr fr. and like… the interface might not even be implemented on Linux at all. imagine πŸ’€

not me warning you about portability before you've even read the function name. but that's the vibe. 🫢

✨ NAME ✨

sigwaitinfo β€” wait for queued signals 🌸

it's giving "chill, your signals will get here when they get here." iconic behavior honestly.


πŸŽ€ SYNOPSIS πŸŽ€

#include <signal.h>

int sigwaitinfo(const sigset_t *restrict set, siginfo_t *restrict info);

yes bestie, two restrict pointers, the compiler is watching. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: refer to sigtimedwait(). that's it. that's the whole description. this page is a little forwarding address, and honestly? respect. 😭


okay so legally I have to say all of this and I'm gonna say it with love πŸ’œ

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.

and listen β€” 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. so if there's beef, the original wins, no cap. 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 . πŸ› (not me being the one to tell you to report bugs, we love accountability)


aaaand that's the whole page bestie!! brought to you by IEEE/The Open Group, dated 2017 β€” mwah, stay signal-safe, drink water, and go read sigtimedwait() πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«ΆπŸ‘‘πŸŒˆβ­