5#include <cosmos/formatting.hxx>
6#include <cosmos/proc/signal.hxx>
7#include <cosmos/proc/SigSet.hxx>
8#include <cosmos/proc/types.hxx>
9#include <cosmos/utils.hxx>
17 return strsignal(to_integral(
m_sig));
21static_assert(
sizeof(
SigSet) ==
sizeof(sigset_t),
"bad SigSet size");
26 o << sig.
name() <<
" (" << sig.
raw() <<
")";
A bit set of signal numbers for use in system calls.
Represents a POSIX signal number and offers a minimal API around it.
std::string name() const
Returns a human readable label for the currently stored signal number.
SignalNr raw() const
Returns the primitive signal number stored in this object.
SignalNr m_sig
The raw signal number.