sig_alarm.c (252B)
1 #include <signal.h> 2 #include "sig.h" 3 4 void sig_alarmblock() { sig_block(SIGALRM); } 5 void sig_alarmunblock() { sig_unblock(SIGALRM); } 6 void sig_alarmcatch(f) void (*f)(); { sig_catch(SIGALRM,f); } 7 void sig_alarmdefault() { sig_catch(SIGALRM,SIG_DFL); }