std.signal [core] std.signal.reload pub fn reload() -> int — Re-read configuration (SIGHUP). std.signal.terminate pub fn terminate() -> int — Shut down now (SIGTERM). std.signal.quit pub fn quit() -> int — Shut down after draining (SIGQUIT; the terminal's Ctrl-\). std.signal.upgrade pub fn upgrade() -> int — Swap in a new binary (SIGUSR2). std.signal.interrupt pub fn interrupt() -> int — The terminal's interrupt character, Ctrl-C (SIGINT). std.signal.suspend pub fn suspend() -> int — The terminal's suspend character, Ctrl-Z (SIGTSTP). std.signal.bg_read pub fn bg_read() -> int — A background process group read the terminal (SIGTTIN). std.signal.bg_write pub fn bg_write() -> int — A background process group wrote to, or set, the terminal (SIGTTOU). std.signal.child pub fn child() -> int — A child stopped or ended (SIGCHLD). std.signal.user pub fn user() -> int — Another program's own signal (SIGUSR1; upgrade() is SIGUSR2). std.signal.alarm pub fn alarm() -> int — A timer ran out (SIGALRM). std.signal.broken_pipe pub fn broken_pipe() -> int — A write to a pipe or socket nobody reads (SIGPIPE). std.signal.abort pub fn abort() -> int — The process was asked to abort (SIGABRT). std.signal.continued pub fn continued() -> int — The process was continued after a stop (SIGCONT). std.signal.resize pub fn resize() -> int — The terminal's window changed size (SIGWINCH). std.signal.urgent pub fn urgent() -> int — Out-of-band data arrived on a socket (SIGURG). std.signal.virtual_alarm pub fn virtual_alarm() -> int — A user-time timer ran out (SIGVTALRM). std.signal.profile_alarm pub fn profile_alarm() -> int — A profiling timer ran out (SIGPROF). std.signal.cpu_limit pub fn cpu_limit() -> int — The CPU-time limit was passed (SIGXCPU). std.signal.file_limit pub fn file_limit() -> int — The file-size limit was passed (SIGXFSZ). std.signal.kill pub fn kill() -> int — End the process now; it cannot be caught or ignored (SIGKILL). std.signal.stop pub fn stop() -> int — Stop the process; it cannot be caught or ignored (SIGSTOP). std.signal.segment_fault pub fn segment_fault() -> int — An invalid memory reference (SIGSEGV). std.signal.bus_error pub fn bus_error() -> int — An access to an undefined part of a memory object (SIGBUS). std.signal.arithmetic pub fn arithmetic() -> int — An erroneous arithmetic operation (SIGFPE). std.signal.illegal pub fn illegal() -> int — An illegal instruction (SIGILL). std.signal.breakpoint pub fn breakpoint() -> int — A trace or breakpoint trap (SIGTRAP). std.signal.bad_syscall pub fn bad_syscall() -> int — A bad system call (SIGSYS). std.signal.listen pub fn listen(set: int) -> () ! {io} — Hear every meaning in set as an event (os_signal_listen); ends an ignore of them. std.signal.wait pub fn wait(set: int) -> int ! {io} — Park until a meaning in set arrives; that meaning. std.signal.wait_fd pub fn wait_fd(f: fs.File, set: int) -> int ! {unsupported, io} — Wait until the file f names has something to read or a meaning in set is delivered ([os.signal.wait.fd]): the meaning, taken off the queue as wait takes it, or 0 when f is ready — a byte, the end of input or a hang-up — with nothing read, so the read that follows says which. std.signal.WAIT_WRITE pub const WAIT_WRITE: int = 4611686018427387904 — s254 ([os.signal.wait.write], wolf 0.2.35): bit 62, the mark of a wait_fds element that waits for a WRITE. A file whose fd has it added — fs.File { fd: w.fd + signal.WAIT_WRITE } — asks whether w can take a write now instead of whether it has something to read (poll(2)'s POLLOUT): a pipe with room, a regular file always, and a pipe whose reader has gone (the write then answers its error). std.signal.Wake pub struct Wake { meaning: int, ready: int, } — What ended one wait_fds ([os.signal.wait.fds]): meaning, the meaning taken off the queue (0 when none was), and ready, the index in the list of the LOWEST file with something to read (-1 when none was). std.signal.wait_fds pub fn wait_fds(files: List[fs.File], set: int, deadline_ms: int) -> Wake ! { invalid, io, unsupported, } — s248 ([os.signal.wait.fds], ruling #93 R2 A): one wait over several files, a set of meanings and a deadline — what an editor's loop is: the terminal, its jobs' pipes and its signals, with a timer (the 25 ms that tells a lone ESC from an escape sequence, the 50 ms of a capability probe). std.signal.poll pub fn poll(set: int) -> int ! {io} — The oldest meaning in set that has arrived, taken; 0 when none has. std.signal.ignore pub fn ignore(set: int) -> () ! {unsupported, io} — Every meaning in set does nothing to this process — and to every child it starts ([os.signal.disp]). std.signal.reset pub fn reset(set: int) -> () ! {unsupported, io} — Every meaning in set does what the host does by default. std.signal.ignore_one pub fn ignore_one(meaning: int) -> () ! {invalid, io, unsupported} — s246 ([os.signal.disp.one], ruling #88 R1): ONE meaning does nothing to this process — and to every child it starts — named in the SENDING shape: one meaning of the table, any of the twenty-eight but kill() and stop(), or a host number host(n) (a real-time signal is host(realtime()?.first + k)). std.signal.reset_one pub fn reset_one(meaning: int) -> () ! {invalid, io, unsupported} — s246 ([os.signal.disp.one], ruling #88 R1): ONE meaning does what the host does by default — the undo of ignore_one, in the same sending shape (one meaning of the table but kill() and stop(), or host(n)). std.signal.raise pub fn raise(meaning: int) -> () ! {io} — Send meaning to this process (os_signal_raise). std.signal.send pub fn send(pid: int, meaning: int) -> () ! {unsupported, invalid, not_found, denied, io} — s232 ([os.signal.send]): send meaning's signal to the process pid — kill(2) for one process. std.signal.send_group pub fn send_group(g: process.Group, meaning: int) -> () ! { unsupported, invalid, not_found, denied, io, } — s241 ([os.signal.send.group], ruling #79 R1): send meaning's signal to every member of the process group g that this process may signal — kill(-pgid), what kill %1, fg, bg and kill -- -N do to a job. std.signal.send_all pub fn send_all(meaning: int) -> () ! {unsupported, invalid, not_found, denied, io} — s241 ([os.signal.send.all], ruling #79 R1): send meaning's signal to every process this one may signal, itself excepted — kill(-1), XCU kill -1. std.signal.number pub fn number(meaning: int) -> int ! {invalid, unsupported} — s232 ([os.signal.number]): the number THIS host gives meaning — what kill -l prints, what trap … 13 names and what a shell's 128 + N decodes. std.signal.last pub fn last() -> int ! {unsupported} — s241 ([os.signal.host], ruling #79 R4): this host's last signal number — the C library's SIGRTMAX on linux (64 under glibc and musl), 31 on macOS. std.signal.Realtime pub struct Realtime { first: int, last: int, } — The C library's real-time signal range ([os.signal.host]): host numbers first to last, both included, or first and last both 0 on a host that has none (macOS). std.signal.realtime pub fn realtime() -> Realtime ! {unsupported} — s241 ([os.signal.host]): the real-time range, as Realtime. std.signal.text pub fn text(meaning: int) -> str ! {invalid, unsupported} — s241 ([os.signal.text], ruling #79 R5): the host C library's words for meaning's signal, or for host signal N given host(N) — strsignal(3), what GNU kill -t prints and what a shell says of a job a signal ended. std.signal.host pub fn host(n: int) -> int — The meaning value that names host signal n ([os.signal.host], ruling #79 R4): -n, os_wait_status's spelling of "ended by signal n", so a program re-sends what it saw. std.signal.ignored pub fn ignored() -> int ! {unsupported} — s232 ([os.signal.ignored]): the set of listenable meanings this process ignores NOW. It changes nothing.