7#ifndef CRYPTOPP_OS_SIGNAL_H
8#define CRYPTOPP_OS_SIGNAL_H
12#if defined(UNIX_SIGNALS_AVAILABLE)
20#if defined(UNIX_SIGNALS_AVAILABLE) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
57template <
int S,
bool O=false>
81 struct sigaction new_handler;
87 ret = sigaction (S, 0, &m_old);
91 if (m_old.sa_handler != 0 && !O)
break;
94 ret = sigemptyset (&new_handler.sa_mask);
98 new_handler.sa_flags = (pfn ? flags : 0);
101 ret = sigaction (S, &new_handler, 0);
112 sigaction (S, &m_old, 0);
116 struct sigaction m_old;
Library configuration file.
Crypto++ library namespace.
void(* SignalHandlerFn)(int)
Signal handler function pointer.
void NullSignalHandler(int unused)
Null signal handler function.
Signal handler for Linux and Unix compatibles.
SignalHandler(SignalHandlerFn pfn=NULL, int flags=0)
Construct a signal handler.