Feat: POSIX signal

This commit is contained in:
2025-05-04 20:38:25 +08:00
parent 8d1045f20d
commit d31f5e02fe
9 changed files with 171 additions and 33 deletions

11
kernel/include/signal.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
#include <stddef.h>
#define SIGNAL_NUM 32
#define SIGKILL 9
typedef void (*signal_handler_t)();
void run_signal(int32_t SIGNAL);