Stdlib module kernel/signals.vitl

This page is a wiki-style reference for one concrete stdlib file. It explains what the file owns, where it fits in the family, and how to decide whether this is the right surface to depend on.

Visual portrait of kernel/signals.vitl
Wiki-style portrait for kernel/signals.vitl.

Family: kernel

Kind: public stdlib surface

Page style: this reference follows the same “encyclopedic card + portrait + usage contract” logic as the keyword pages, but for stdlib modules.

Summary

Overview

FieldValue
Pathkernel/signals.vitl
Familykernel
Kindpublic stdlib surface
Line count151
Declared procedures18
Declared forms/picks1

`kernel/signals.vitl` is a public stdlib surface inside the `kernel` family. It should be read as one focused slice of the broader family responsibility: System-facing runtime helpers such as process, scheduler, threads, sync, users, signals, network, device, and memory.

Purpose

This file should be chosen because of responsibility, not because its name “sounds close enough”. Inside the kernel family, it carries one focused part of the contract and keeps that responsibility separate from neighboring concerns.

  • A service manager may use scheduler, process, and signals while keeping policy in separate code.
  • A network-facing runtime should explain why it depends on kernel surfaces instead of lighter families.

Taxonomy

Think of this page as a generated encyclopedia entry rather than a hand-written tutorial. The goal is to show what kind of module this is, how dense it is, and what reading strategy makes sense before depending on it.

  • Medium procedure surface: this file groups several related operations behind one namespace.
  • Owns domain vocabulary: the module declares data shapes in addition to executable helpers, so its types are part of the contract.
  • Has tuning constants: part of the module behavior is controlled by named constants that document default precision, limits, or policy.
  • Minimal top-level dependencies: the module reads as mostly self-contained from its opening declarations.

Implementation profile

This profile is inferred directly from the source text. It does not replace reading the file, but it tells you quickly whether the module is mostly declarative, loop-heavy, branch-heavy, or organized around many small exits.

SignalCountWhat it suggests
if0Branching density and local decision-making.
while0Loop-heavy or iterative implementation style.
for0Collection-style traversal at source level.
match0Variant-driven branching or grammar-style decoding.
let0Local state and intermediate value density.
give18Number of explicit exit points and result shaping.

Top-level API inventory

SurfaceItems
Proceduressignal, signal_default, signal_ignore, sigaction, sigprocmask, pthread_sigmask, kill, raise, alarm, pause, sigsuspend, sigpending
FormsSignalSet
Picksnone declared at top level
ConstantsSIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGBUS, SIGFPE, SIGKILL, SIGUSR1, SIGSEGV, SIGUSR2
Exportsnone declared at top level

Imported surfaces

This file does not advertise a top-level `use` surface in its opening declarations. That often means it is either self-contained or an aggregation layer.

Position in family

This file is module 9 of 12 in the kernel family when ordered by path. By procedure count it ranks 6, and by line count it ranks 6. Those ranks are useful as rough signals of breadth, not as quality judgments.

Declaration map

The declaration map turns raw source into a scan-friendly catalog. It is useful when the file is large enough that a reader wants to orient by kinds of surfaces first.

LineNameKindRole
1vitte/stdlib_checked/kernel_signalsspaceDeclares the namespace that anchors this file in the stdlib tree.
9SIGHUPconstDefines a named constant reused across the module.
11SIGINTconstDefines a named constant reused across the module.
13SIGQUITconstDefines a named constant reused across the module.
15SIGILLconstDefines a named constant reused across the module.
17SIGTRAPconstDefines a named constant reused across the module.
19SIGABRTconstDefines a named constant reused across the module.
21SIGBUSconstDefines a named constant reused across the module.
23SIGFPEconstDefines a named constant reused across the module.
25SIGKILLconstDefines a named constant reused across the module.
27SIGUSR1constDefines a named constant reused across the module.
29SIGSEGVconstDefines a named constant reused across the module.
31SIGUSR2constDefines a named constant reused across the module.
33SIGPIPEconstDefines a named constant reused across the module.
35SIGALRMconstDefines a named constant reused across the module.
37SIGTERMconstDefines a named constant reused across the module.
39SIGCHLDconstDefines a named constant reused across the module.
41SIGCONTconstDefines a named constant reused across the module.
43SIGSTOPconstDefines a named constant reused across the module.
45SIGTSTPconstDefines a named constant reused across the module.
47SIGTTINconstDefines a named constant reused across the module.
49SIGTTOUconstDefines a named constant reused across the module.
51SIGPOLLconstDefines a named constant reused across the module.
53SIGPROFconstDefines a named constant reused across the module.
55SIGSYSconstDefines a named constant reused across the module.
57SA_NOCLDSTOPconstDefines a named constant reused across the module.
59SA_NOCLDWAITconstDefines a named constant reused across the module.
61SA_NODEFERconstDefines a named constant reused across the module.
63SA_ONSTACKconstDefines a named constant reused across the module.
65SA_RESETHANDconstDefines a named constant reused across the module.
67SA_RESTARTconstDefines a named constant reused across the module.
69SA_SIGINFOconstDefines a named constant reused across the module.
71SIG_BLOCKconstDefines a named constant reused across the module.
73SIG_UNBLOCKconstDefines a named constant reused across the module.
75SIG_SETMASKconstDefines a named constant reused across the module.
77SignalSetformIntroduces a structured data shape that other procedures can exchange.
81signalprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
85signal_defaultprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
89signal_ignoreprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
93sigactionprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
97sigprocmaskprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
101pthread_sigmaskprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
105killprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
109raiseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
113alarmprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
117pauseprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
121sigsuspendprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
125sigpendingprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
129sigwaitprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
133sigemptysetprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
137sigfillsetprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
141sigaddsetprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
145sigdelsetprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
149sigismemberprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.

The table is exhaustive for top-level declarations of the selected kinds. This file declares 54 matching surfaces.

Representative signatures

These signatures are shown in source order so the page keeps the feel of a reference manual, not just a keyword cloud.

  • const SIGHUP: int = 0 (line 9)
  • const SIGINT: int = 0 (line 11)
  • const SIGQUIT: int = 0 (line 13)
  • const SIGILL: int = 0 (line 15)
  • const SIGTRAP: int = 0 (line 17)
  • const SIGABRT: int = 0 (line 19)
  • const SIGBUS: int = 0 (line 21)
  • const SIGFPE: int = 0 (line 23)
  • const SIGKILL: int = 0 (line 25)
  • const SIGUSR1: int = 0 (line 27)
  • const SIGSEGV: int = 0 (line 29)
  • const SIGUSR2: int = 0 (line 31)
  • const SIGPIPE: int = 0 (line 33)
  • const SIGALRM: int = 0 (line 35)
  • const SIGTERM: int = 0 (line 37)
  • const SIGCHLD: int = 0 (line 39)
  • const SIGCONT: int = 0 (line 41)
  • const SIGSTOP: int = 0 (line 43)

The list is intentionally capped here; the source file declares 53 matching signatures in total.

How to use this module

Start by reading the file as an ownership boundary. Ask three questions: what enters this module, what stable types or procedures it exports, and what adjacent module should stay outside of it.

  1. Read space and top-level imports first so the ownership boundary of kernel/signals.vitl is explicit.
  2. Scan constants before procedures; they often encode precision, limits, or policy assumptions that explain later behavior.
  3. Read declared forms and picks before algorithms so the data vocabulary is stable in your head.
  4. Traverse procedures in source order; the early helpers usually explain the naming and numeric conventions used later.
  5. Only after that compare neighbor modules, because the right boundary choice matters more than memorizing one helper name.

User example

This example is generated from the actual stdlib module surface. Its job is not to be the smallest snippet possible; its job is to show a realistic consumer-shaped file that exercises the module and mirrors the language keywords the module itself relies on.

space demo/kernel_signals
const SAMPLE_LABEL: string = "demo"
form UserReport {
  label: string,
  ready: bool
}
proc run_example() -> UserReport {
    give UserReport { label: "ok", ready: ready }
}

Keyword coverage

This table makes the “all keywords of the module” requirement auditable. It compares the detected Vitte keywords in the source file with the generated consumer example above.

KeywordPresent in module sourceUsed in generated user example
spaceyesyes
constyesyes
formyesyes
procyesyes
giveyesyes

The generated snippet exercises every detected Vitte keyword used by this module.

Source shape

space vitte/stdlib_checked/kernel_signals
const SIGHUP: int = 0
const SIGINT: int = 0
const SIGQUIT: int = 0
const SIGILL: int = 0
const SIGTRAP: int = 0
const SIGABRT: int = 0
const SIGBUS: int = 0
const SIGFPE: int = 0
const SIGKILL: int = 0

The excerpt is not meant to replace the file. It exists to make the module recognizable at first glance, the same way a Wikipedia infobox helps the reader orient before reading the whole article.

Source landmarks

Large files are easier to retain when they have visible landmarks. When the source contains explicit section banners, they are surfaced here; otherwise the first major declarations are used as anchors.

  • Line 1: space vitte/stdlib_checked/kernel_signals
  • Line 9: const SIGHUP: int = 0
  • Line 11: const SIGINT: int = 0
  • Line 13: const SIGQUIT: int = 0
  • Line 15: const SIGILL: int = 0
  • Line 17: const SIGTRAP: int = 0
  • Line 19: const SIGABRT: int = 0
  • Line 21: const SIGBUS: int = 0

Source organization

When a file carries its own internal chaptering, those chapters usually reveal the intended reading order better than a flat symbol list. This section reconstructs that organization from the source itself.

File surfaces

Top-level items: 54. Procedures: 18. Data surfaces: 1. Constants: 34.

First visible names: vitte/stdlib_checked/kernel_signals, SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGBUS, SIGFPE, SIGKILL

Complete API catalog

This catalog is the exhaustive file-level index for the module. It is intentionally closer to a generated encyclopedia appendix than to a tutorial summary.

Constants

LineNameSignatureRole
9SIGHUPconst SIGHUP: int = 0Defines a named constant reused across the module.
11SIGINTconst SIGINT: int = 0Defines a named constant reused across the module.
13SIGQUITconst SIGQUIT: int = 0Defines a named constant reused across the module.
15SIGILLconst SIGILL: int = 0Defines a named constant reused across the module.
17SIGTRAPconst SIGTRAP: int = 0Defines a named constant reused across the module.
19SIGABRTconst SIGABRT: int = 0Defines a named constant reused across the module.
21SIGBUSconst SIGBUS: int = 0Defines a named constant reused across the module.
23SIGFPEconst SIGFPE: int = 0Defines a named constant reused across the module.
25SIGKILLconst SIGKILL: int = 0Defines a named constant reused across the module.
27SIGUSR1const SIGUSR1: int = 0Defines a named constant reused across the module.
29SIGSEGVconst SIGSEGV: int = 0Defines a named constant reused across the module.
31SIGUSR2const SIGUSR2: int = 0Defines a named constant reused across the module.
33SIGPIPEconst SIGPIPE: int = 0Defines a named constant reused across the module.
35SIGALRMconst SIGALRM: int = 0Defines a named constant reused across the module.
37SIGTERMconst SIGTERM: int = 0Defines a named constant reused across the module.
39SIGCHLDconst SIGCHLD: int = 0Defines a named constant reused across the module.
41SIGCONTconst SIGCONT: int = 0Defines a named constant reused across the module.
43SIGSTOPconst SIGSTOP: int = 0Defines a named constant reused across the module.
45SIGTSTPconst SIGTSTP: int = 0Defines a named constant reused across the module.
47SIGTTINconst SIGTTIN: int = 0Defines a named constant reused across the module.
49SIGTTOUconst SIGTTOU: int = 0Defines a named constant reused across the module.
51SIGPOLLconst SIGPOLL: int = 0Defines a named constant reused across the module.
53SIGPROFconst SIGPROF: int = 0Defines a named constant reused across the module.
55SIGSYSconst SIGSYS: int = 0Defines a named constant reused across the module.
57SA_NOCLDSTOPconst SA_NOCLDSTOP: i32 = 0Defines a named constant reused across the module.
59SA_NOCLDWAITconst SA_NOCLDWAIT: i32 = 0Defines a named constant reused across the module.
61SA_NODEFERconst SA_NODEFER: i32 = 0Defines a named constant reused across the module.
63SA_ONSTACKconst SA_ONSTACK: i32 = 0Defines a named constant reused across the module.
65SA_RESETHANDconst SA_RESETHAND: i32 = 0Defines a named constant reused across the module.
67SA_RESTARTconst SA_RESTART: i32 = 0Defines a named constant reused across the module.
69SA_SIGINFOconst SA_SIGINFO: i32 = 0Defines a named constant reused across the module.
71SIG_BLOCKconst SIG_BLOCK: int = 0Defines a named constant reused across the module.
73SIG_UNBLOCKconst SIG_UNBLOCK: int = 0Defines a named constant reused across the module.
75SIG_SETMASKconst SIG_SETMASK: int = 0Defines a named constant reused across the module.

Data surfaces

LineNameSignatureRole
77SignalSetform SignalSet {Introduces a structured data shape that other procedures can exchange.

Procedures

LineNameSignatureRole
81signalproc signal() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
85signal_defaultproc signal_default() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
89signal_ignoreproc signal_ignore() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
93sigactionproc sigaction() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
97sigprocmaskproc sigprocmask() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
101pthread_sigmaskproc pthread_sigmask() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
105killproc kill() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
109raiseproc raise() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
113alarmproc alarm() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
117pauseproc pause() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
121sigsuspendproc sigsuspend() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
125sigpendingproc sigpending() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
129sigwaitproc sigwait() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
133sigemptysetproc sigemptyset() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
137sigfillsetproc sigfillset() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
141sigaddsetproc sigaddset() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
145sigdelsetproc sigdelset() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.
149sigismemberproc sigismember() -> int {Represents one top-level surface in the file contract and should be read as part of the module boundary.

Integration boundaries

Within kernel, this file should remain focused. If a future helper changes the host boundary, scheduling boundary, or data-shape boundary, it probably belongs in a neighbor module instead of being added here by convenience.

  • Family responsibility: System-facing runtime helpers such as process, scheduler, threads, sync, users, signals, network, device, and memory.
  • Family architecture role: Use `kernel` when the program explicitly models system services, scheduling, process behavior, or device-facing coordination.

Composition guidance

Choose this module when

  • Choose kernel/signals.vitl when the main question is owned by this module rather than by transport, storage, orchestration, or user-interface code.
  • A service manager may use scheduler, process, and signals while keeping policy in separate code.
  • A network-facing runtime should explain why it depends on kernel surfaces instead of lighter families.

Pause before extending it when

  • Avoid extending this file when the new helper mostly changes the boundary to host I/O, runtime coordination, or foreign integration instead of staying inside kernel.
  • Check nearby modules such as kernel/device.vitl, kernel/fileio.vitl, kernel/interrupt.vitl before adding convenience wrappers here.

Relationship table

This table keeps the page closer to a real encyclopedia entry: a module is easier to understand when compared with its nearest alternatives in the same family.

NeighborProceduresData surfacesWhy compare it
kernel/device.vitl00Shares the same family boundary but carries a distinct slice of responsibility.
kernel/fileio.vitl442Shares the same family boundary but carries a distinct slice of responsibility.
kernel/interrupt.vitl90Shares the same family boundary but carries a distinct slice of responsibility.
kernel/memory.vitl181Shares the same family boundary but carries a distinct slice of responsibility.
kernel/network.vitl424Shares the same family boundary but carries a distinct slice of responsibility.
kernel/process.vitl142Shares the same family boundary but carries a distinct slice of responsibility.
kernel/scheduler.vitl10Shares the same family boundary but carries a distinct slice of responsibility.
kernel/sync.vitl346Shares the same family boundary but carries a distinct slice of responsibility.

Neighbor modules