#include #include #include "sig.h" void register_signal(int signal, void (*handler)(int)) { sigset_t block_mask; struct sigaction saction; sigfillset(&block_mask); saction.sa_handler = handler; saction.sa_mask = block_mask; saction.sa_flags = SA_RESTART; sigaction(signal, &saction, NULL); } void register_signal_f(int signal, void (*handler)(int), int flags) { sigset_t block_mask; struct sigaction saction; sigfillset(&block_mask); saction.sa_handler = handler; saction.sa_mask = block_mask; saction.sa_flags = flags; sigaction(signal, &saction, NULL); } ry'/>
summaryrefslogtreecommitdiff
ModeNameSize
-rw-r--r--callback.h3542logplain
-rw-r--r--elfnote.h6249logplain
-rw-r--r--event_channel.h7613logplain
-rw-r--r--features.h1988logplain
-rw-r--r--grant_table.h20945logplain
d---------hvm72logplain
d---------io429logplain
-rw-r--r--memory.h8664logplain
-rw-r--r--nmi.h1507logplain