XenevaOS
Loading...
Searching...
No Matches
_kesignal.h
Go to the documentation of this file.
1
30#ifndef __KE_SIGNAL_H__
31#define __KE_SIGNAL_H__
32
33#ifdef ARCH_X64
34#define SIGHUP 1
35#define SIGINT 2
36#define SIGQUIT 3
37#define SIGILL 4
38#define SIGTRAP 5
39#define SIGABRT 6
40#define SIGEMT 7
41#define SIGFPE 8
42#define SIGKILL 9
43#define SIGBUS 10
44#define SIGSEGV 11
45#define SIGSYS 12
46#define SIGPIPE 13
47#define SIGALRM 14
48#define SIGTERM 15
49#define SIGUSR1 16
50#define SIGUSR2 17
51#define SIGCHLD 18
52#define SIGPWR 19
53#define SIGWINCH 20
54#define SIGURG 21
55#define SIGPOLL 22
56#define SIGSTOP 23
57#define SIGTSTP 24
58#define SIGCONT 25
59#define SIGTTIN 26
60#define SIGTTOUT 27
61#define SIGVTALRM 28
62#define SIGPROF 29
63#define SIGXCPU 30
64#define SIGXFSZ 31
65#define SIGWAITING 32
66#define SIGDIAF 33
67#define SIGHATE 34
68#define SIGWINEVENT 35
69#define SIGCAT 36
70#define SIGTTOU 37
71#elif ARCH_ARM64
73#define SIGHUP 1 /* Terminal closed or hangup*/
74#define SIGINT 2 /* Interrupt (CTRL+C) */
75#define SIGQUIT 3 /* Quit (CTRL+), generate core dump */
76#define SIGILL 4 /* Illegal instruction*/
77#define SIGTRAP 5 /* Breakpoint or trace trap */
78#define SIGABRT 6 /* Abort a process */
79#define SIGBUS 7 /* Bus error */
80#define SIGFPE 8 /* Floating-point exception */
81#define SIGKILL 9 /* Forcefully terminate */
82#define SIGUSR1 10 /* User-defined signal 1*/
83#define SIGSEGV 11 /* Invalid memory access (segmentation fault) */
84#define SIGUSR2 12 /* user-defined signal 2*/
85#define SIGPIPE 13 /* Write to a broken pipe */
86#define SIGALRM 14 /* Alarm timer expired */
87#define SIGTERM 15 /* Graceful termination request */
88#define SIGCHLD 17 /*Child process stopped or exited */
89#define SIGCONT 18 /* Continue a stopped process */
90#define SIGSTOP 19 /* Stop process */
91#define SIGTSTP 20 /* Terminal stop */
92#define SIGTTIN 21 /* Background process attempted terminal input */
93#define SIGTTOU 22 /* Background process attempted terminal output */
94
95#endif
96
97#ifdef ARCH_X64
98#define NUMSIGNALS 38
99#elif ARCH_ARM64
100#define NUMSIGNALS 23
101#endif
102
103#define NSIG NUMSIGNALS
104
105
106typedef void(*XESigHandler)(int signum);
107
108
109#endif
void(* XESigHandler)(int signum)
Definition _kesignal.h:106