Defines | |
#define | MAX_SIGNALS 65 |
Maximum number of signals to handle. | |
Typedefs | |
typedef void(* | sb_signal_handler_t )(int signum) |
Typedef signal handler callback function prototype. | |
Functions | |
int | sb_signal_init (void) |
Initialize signal module. | |
int | sb_signal_is_initialized (void) |
Function to check, if signal modul was already initialized. | |
int | sb_signal_set_handler (int signum, sb_signal_handler_t handler) |
Install specific signal handler. | |
int | sb_signal_restore_handler (int signum) |
Restore specified signal handler. | |
int | sb_signal_restore_all_handlers (void) |
Restore all signal handlers. |
This module provides functions for handling signals.
|
Initialize signal module.
Definition at line 43 of file sig.c. Referenced by sb_signal_is_initialized(). |
|
Function to check, if signal modul was already initialized.
Definition at line 57 of file sig.c. References sb_signal_init(). Referenced by sb_signal_restore_all_handlers(), sb_signal_restore_handler(), and sb_signal_set_handler(). |
|
Restore all signal handlers.
Definition at line 113 of file sig.c. References sb_signal_is_initialized(), and sb_signal_restore_handler(). Referenced by main(). |
|
Restore specified signal handler.
Definition at line 95 of file sig.c. References sb_signal_is_initialized(). Referenced by sb_signal_restore_all_handlers(). |
|
Install specific signal handler.
Definition at line 73 of file sig.c. References sb_signal_handler_t, and sb_signal_is_initialized(). Referenced by main(). |