generated from LearningOS/oscomp-kernel-training
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
田凯夫
committed
Mar 11, 2023
1 parent
e3687b7
commit 31c864d
Showing
16 changed files
with
255 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,64 @@ | ||
numeric_enum_macro::numeric_enum! { | ||
#[repr(usize)] | ||
#[derive(Eq, PartialEq, Debug, Copy, Clone)] | ||
pub enum SignalNo { | ||
ERR = 0, | ||
|
||
/// The HUP signal is sent to a process when its controlling terminal is | ||
/// closed. It was originally designed to notify a serial line drop (HUP | ||
/// stands for "Hang Up"). In modern systems, this signal usually indicates | ||
/// the controlling pseudo or virtual terminal is closed. | ||
SIGHUP = 1, | ||
SIGINT = 2, | ||
SIGQUIT = 3, | ||
SIGILL = 4, | ||
SIGTRAP = 5, | ||
SIGABRT = 6, | ||
SIGBUS = 7, | ||
SIGFPE = 8, | ||
SIGKILL = 9, | ||
SIGUSR1 = 10, | ||
SIGSEGV = 11, | ||
SIGUSR2 = 12, | ||
SIGPIPE = 13, | ||
SIGALRM = 14, | ||
SIGTERM = 15, | ||
SIGSTKFLT = 16, | ||
SIGCHLD = 17, | ||
SIGCONT = 18, | ||
SIGSTOP = 19, | ||
SIGTSTP = 20, | ||
SIGTTIN = 21, | ||
SIGTTOU = 22, | ||
SIGURG = 23, | ||
SIGXCPU = 24, | ||
SIGXFSZ = 25, | ||
SIGVTALRM = 26, | ||
SIGPROF = 27, | ||
SIGWINCH = 28, | ||
SIGIO = 29, | ||
SIGPWR = 30, | ||
SIGSYS = 31, | ||
SIGRTMIN = 32, | ||
SIGRT1 = 33, | ||
SIGRT2 = 34, | ||
SIGRT3 = 35, | ||
SIGRT4 = 36, | ||
SIGRT5 = 37, | ||
SIGRT6 = 38, | ||
SIGRT7 = 39, | ||
SIGRT8 = 40, | ||
SIGRT9 = 41, | ||
SIGRT10 = 42, | ||
SIGRT11 = 43, | ||
SIGRT12 = 44, | ||
SIGRT13 = 45, | ||
SIGRT14 = 46, | ||
SIGRT15 = 47, | ||
SIGRT16 = 48, | ||
SIGRT17 = 49, | ||
SIGRT18 = 50, | ||
SIGRT19 = 51, | ||
SIGRT20 = 52, | ||
SIGRT21 = 53, | ||
SIGRT22 = 54, | ||
SIGRT23 = 55, | ||
SIGRT24 = 56, | ||
SIGRT25 = 57, | ||
SIGRT26 = 58, | ||
SIGRT27 = 59, | ||
SIGRT28 = 60, | ||
SIGRT29 = 61, | ||
SIGRT30 = 62, | ||
SIGRT31 = 63, | ||
} | ||
} | ||
pub const SIGNONE: usize = 0; | ||
pub const SIGHUP: usize = 1; | ||
pub const SIGINT: usize = 2; | ||
pub const SIGQUIT: usize = 3; | ||
pub const SIGILL: usize = 4; | ||
pub const SIGTRAP: usize = 5; | ||
pub const SIGABRT: usize = 6; | ||
pub const SIGBUS: usize = 7; | ||
pub const SIGFPE: usize = 8; | ||
pub const SIGKILL: usize = 9; | ||
pub const SIGUSR1: usize = 10; | ||
pub const SIGSEGV: usize = 11; | ||
pub const SIGUSR2: usize = 12; | ||
pub const SIGPIPE: usize = 13; | ||
pub const SIGALRM: usize = 14; | ||
pub const SIGTERM: usize = 15; | ||
pub const SIGSTKFLT: usize = 16; | ||
pub const SIGCHLD: usize = 17; | ||
pub const SIGCONT: usize = 18; | ||
pub const SIGSTOP: usize = 19; | ||
pub const SIGTSTP: usize = 20; | ||
pub const SIGTTIN: usize = 21; | ||
pub const SIGTTOU: usize = 22; | ||
pub const SIGURG: usize = 23; | ||
pub const SIGXCPU: usize = 24; | ||
pub const SIGXFSZ: usize = 25; | ||
pub const SIGVTALRM: usize = 26; | ||
pub const SIGPROF: usize = 27; | ||
pub const SIGWINCH: usize = 28; | ||
pub const SIGIO: usize = 29; | ||
pub const SIGPWR: usize = 30; | ||
pub const SIGSYS: usize = 31; | ||
pub const SIGRTMIN: usize = 32; | ||
pub const SIGRT1: usize = 33; | ||
pub const SIGRT2: usize = 34; | ||
pub const SIGRT3: usize = 35; | ||
pub const SIGRT4: usize = 36; | ||
pub const SIGRT5: usize = 37; | ||
pub const SIGRT6: usize = 38; | ||
pub const SIGRT7: usize = 39; | ||
pub const SIGRT8: usize = 40; | ||
pub const SIGRT9: usize = 41; | ||
pub const SIGRT10: usize = 42; | ||
pub const SIGRT11: usize = 43; | ||
pub const SIGRT12: usize = 44; | ||
pub const SIGRT13: usize = 45; | ||
pub const SIGRT14: usize = 46; | ||
pub const SIGRT15: usize = 47; | ||
pub const SIGRT16: usize = 48; | ||
pub const SIGRT17: usize = 49; | ||
pub const SIGRT18: usize = 50; | ||
pub const SIGRT19: usize = 51; | ||
pub const SIGRT20: usize = 52; | ||
pub const SIGRT21: usize = 53; | ||
pub const SIGRT22: usize = 54; | ||
pub const SIGRT23: usize = 55; | ||
pub const SIGRT24: usize = 56; | ||
pub const SIGRT25: usize = 57; | ||
pub const SIGRT26: usize = 58; | ||
pub const SIGRT27: usize = 59; | ||
pub const SIGRT28: usize = 60; | ||
pub const SIGRT29: usize = 61; | ||
pub const SIGRT30: usize = 62; | ||
pub const SIGRT31: usize = 63; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.