DEVELOPMENT EDITION · 769442725406
Library Reference
On this page

Ada.Interrupts.Names

The POSIX signals a protected procedure may handle (Ada RM C.3.2(21)), by their numbers; SIGUSR1 and SIGUSR2 by macOS's, which the run-time maps on other hosts.

Read the family guide for representation, selection and resource rules. The complete declaration page retains exact signatures/contracts; the source specification is the implementation baseline.

Availability and ownership

Constants of Ada.Interrupts.Interrupt_ID, for Attach_Handler.

Import and instantiate

with Ada.Interrupts.Names;

API 001

SIGHUP (declaration) — The hangup signal.

Declared interface:

SIGHUP : constant Interrupt_ID := 1;

API 002

SIGINT (declaration) — The interrupt signal (Ctrl-C).

Declared interface:

SIGINT : constant Interrupt_ID := 2;

API 003

SIGQUIT (declaration) — The quit signal.

Declared interface:

SIGQUIT : constant Interrupt_ID := 3;

API 004

SIGALRM (declaration) — The alarm-clock signal.

Declared interface:

SIGALRM : constant Interrupt_ID := 14;

API 005

SIGTERM (declaration) — The termination signal.

Declared interface:

SIGTERM : constant Interrupt_ID := 15;

API 006

SIGUSR1 (declaration) — The first user-defined signal.

Declared interface:

SIGUSR1 : constant Interrupt_ID := 30;

API 007

SIGUSR2 (declaration) — The second user-defined signal.

Declared interface:

SIGUSR2 : constant Interrupt_ID := 31;