SIGWAITINFO(3P)

πŸ’– SIGWAITINFO(3P) πŸ’–

ok bestie, welcome to sigwaitinfo from the POSIX Programmer's Manual ✨ (yes, the 3P one, we love a section-3P moment). Grab a boba, this one's short but it's important πŸ§‹


🌸 PROLOG 🌸

okay so real talk before we get into it: this manual page is part of the POSIX Programmer's Manual 🫢

  • the Linux implementation of this interface may differ β€” so like, go consult the corresponding Linux manual page for the deets on Linux behavior, fr fr
  • or honestly? the interface may not be implemented on Linux at all πŸ’€

so yeah, vibe check accordingly before you go writing code that assumes things 😭


✨ NAME ✨

sigwaitinfo β€” wait for queued signals πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <signal.h>

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

look at that signature, so clean, so iconic πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, the actual description lives over at sigtimedwait() β€” go refer to that one πŸ’–

no cap, that's literally what it says. sigwaitinfo is the sibling, sigtimedwait() is where the lore is πŸ“–

okay legal era, but we gotta be thorough 🌈

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 β€” like, that's the main character, this page is just the vibe πŸ“šβœ¨

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 . πŸ›


🧚 sign-off 🧚

that's the whole page bestie, IEEE/The Open Group, 2017, SIGWAITINFO(3P) β€” stay queued, stay slay, and go read sigtimedwait() if you want the full tea πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from