| Crates.io | tg-signal-defs |
| lib.rs | tg-signal-defs |
| version | 0.1.0-preview.1 |
| created_at | 2026-01-22 05:40:28.236296+00 |
| updated_at | 2026-01-22 05:40:28.236296+00 |
| description | Signal definitions for rCore tutorial OS. |
| homepage | |
| repository | https://github.com/rcore-os/rCore-Tutorial-in-single-workspace |
| max_upload_size | |
| id | 2060831 |
| size | 6,055 |
Signal definitions for the rCore tutorial operating system.
This crate provides the fundamental signal definitions used throughout the rCore tutorial kernel, including signal numbers and signal action structures compatible with POSIX-like systems.
Standard signals (1-31):
SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRTSIGBUS, SIGFPE, SIGKILL, SIGUSR1, SIGSEGV, SIGUSR2SIGPIPE, SIGALRM, SIGTERM, SIGSTKFLT, SIGCHLD, SIGCONTSIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGXCPUSIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH, SIGIO, SIGPWR, SIGSYSReal-time signals (32-63):
SIGRTMIN through SIGRT31use tg_signal_defs::{SignalNo, SignalAction, MAX_SIG};
// Create a signal action
let action = SignalAction {
handler: handler_address,
mask: 0,
};
// Use signal numbers
let sig = SignalNo::SIGINT;
Licensed under either of MIT license or Apache License, Version 2.0 at your option.