14 #define SIG_HANDLER(fn) void (fn)(int sigNo)
15 #define SIG_ACTION(fn) void (fn)(int sigNo, siginfo_t* sigInfo, void* arg)
38 Signal(
int sigNo, SIG_HANDLER(*handler));
43 Signal(
int sigNo, SIG_HANDLER(*handler), sigset_t* sigSet);
48 Signal(
int sigNo, SIG_ACTION(*action));
53 Signal(
int sigNo, SIG_ACTION(*action), sigset_t* sigSet);
99 static SIG_ACTION(action_);
114 SIG_HANDLER(*userhandler_);
116 SIG_ACTION(*useraction_);
138 void privateConstructor(
int sigNo, SIG_HANDLER(*handler),
139 SIG_ACTION(*action), sigset_t* sigSet);
144 void setUpSigAction();
151 #endif // End #ifndef
Signal(int sigNo)
Constructor with no sigset or handler.
Class to encapsulate signal handling.
void installHandler(void(*handler)(int sigNo))
Install a handler, in case we want to declare a global Signal type before the handler is declared...