21 lines
499 B
C
21 lines
499 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
#include <kernel/arch/x86_64/regs.h>
|
|
|
|
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);
|
|
|