#include <signal.h>
#include <stdint.h>
#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
|
volatile uint8_t | TIMEOUT = 0 |
|
volatile uint8_t | USR = 0 |
|
◆ SIGHDL_ALRM
◆ SIGHDL_USR1
◆ SIGHDL_USR2
◆ SIGHDL_XCPU
◆ sighdl()
void sighdl |
( |
int |
sig_code | ) |
|
Generic signal handler
Definition at line 52 of file sighdl.c.
◆ sighdl_set_timeout()
int sighdl_set_timeout |
( |
int * |
sec | ) |
|
Set a timer
Definition at line 89 of file sighdl.c.
◆ sighdl_timeout()
int8_t sighdl_timeout |
( |
| ) |
|
Check if a timeout has occurred
Definition at line 74 of file sighdl.c.
◆ sighdl_trap_cpulimit()
int sighdl_trap_cpulimit |
( |
| ) |
|
Trap CPU time limit (SIGXCPU)
Definition at line 110 of file sighdl.c.
◆ sighdl_trap_usr()
Trap user signals (SIGUSR1, SIGUSR2)
Definition at line 123 of file sighdl.c.
◆ sighdl_usr()
Check if a user signal has been raised
Definition at line 81 of file sighdl.c.
◆ TIMEOUT
volatile uint8_t TIMEOUT = 0 |
◆ USR