mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Rework signal handling code
This commit is contained in:
@ -170,6 +170,8 @@
|
||||
#define LINUX_REBOOT_CMD_SW_SUSPEND 0xD000FCE2
|
||||
#define LINUX_REBOOT_CMD_KEXEC 0x45584543
|
||||
|
||||
#define SA_IMMUTABLE 0x00800000
|
||||
|
||||
typedef long __kernel_old_time_t;
|
||||
typedef long __kernel_suseconds_t;
|
||||
typedef int clockid_t;
|
||||
|
@ -20,6 +20,8 @@
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#define linux_NSIG 64
|
||||
|
||||
#define linux_SIGHUP 1
|
||||
#define linux_SIGINT 2
|
||||
#define linux_SIGQUIT 3
|
||||
@ -53,4 +55,14 @@
|
||||
#define linux_SIGSYS 31
|
||||
#define linux_SIGUNUSED linux_SIGSYS
|
||||
|
||||
#define linux_SIGRTMIN 32
|
||||
#define linux_SIGRTMAX linux_NSIG
|
||||
struct k_sigaction
|
||||
{
|
||||
void (*handler)(int);
|
||||
unsigned long flags;
|
||||
void (*restorer)(void);
|
||||
unsigned mask[2];
|
||||
};
|
||||
|
||||
#endif // !__FENNIX_KERNEL_LINUX_SIGNALS_H__
|
||||
|
Reference in New Issue
Block a user