toaruos/base/usr/include/kernel/signal.h

21 lines
499 B
C
Raw Normal View History

2018-03-16 15:56:19 +03:00
#pragma once
2021-05-31 04:47:02 +03:00
#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);
2018-03-16 15:56:19 +03:00
2021-05-31 04:47:02 +03:00
__attribute__((noreturn))
extern void return_from_signal_handler(void);
2018-03-16 15:56:19 +03:00