#pragma once #include #include #include typedef struct { int signum; uintptr_t handler; struct regs registers_before; } signal_t; extern void fix_signal_stacks(void); extern int send_signal(pid_t process, int signal, int force_root); extern int group_send_signal(pid_t group, int signal, int force_root); extern void handle_signal(process_t * proc, signal_t * sig); __attribute__((noreturn)) extern void return_from_signal_handler(void);