2005-09-15 09:58:31 -04:00
|
|
|
/* Signals handling. */
|
|
|
|
|
|
|
|
#ifndef EL__OSDEP_SIGNALS_H
|
|
|
|
#define EL__OSDEP_SIGNALS_H
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
struct terminal;
|
|
|
|
|
|
|
|
#define NUM_SIGNALS 32
|
|
|
|
|
|
|
|
extern volatile int critical_section;
|
|
|
|
|
|
|
|
void install_signal_handler(int, void (*)(void *), void *, int);
|
|
|
|
void set_sigcld(void);
|
|
|
|
void sig_ctrl_c(struct terminal *term);
|
|
|
|
void clear_signal_mask_and_handlers(void);
|
|
|
|
void uninstall_alarm(void);
|
|
|
|
void handle_basic_signals(struct terminal *term);
|
|
|
|
void unhandle_terminal_signals(struct terminal *term);
|
|
|
|
int check_signals(void);
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif /* EL__LOWLEVEL_SIGNALS_H */
|