Signal

WASI Preview1 type $signal

Signal condition.

TAG: u8

Definition:

(typename $signal
(enum (@witx tag u8)
;;; No signal. Note that POSIX has special semantics for `kill(pid, 0)`,
;;; so this value is reserved.
$none
;;; Hangup.
;;; Action: Terminates the process.
$hup
;;; Terminate interrupt signal.
;;; Action: Terminates the process.
$int
;;; Terminal quit signal.
;;; Action: Terminates the process.
$quit
;;; Illegal instruction.
;;; Action: Terminates the process.
$ill
;;; Trace/breakpoint trap.
;;; Action: Terminates the process.
$trap
;;; Process abort signal.
;;; Action: Terminates the process.
$abrt
;;; Access to an undefined portion of a memory object.
;;; Action: Terminates the process.
$bus
;;; Erroneous arithmetic operation.
;;; Action: Terminates the process.
$fpe
;;; Kill.
;;; Action: Terminates the process.
$kill
;;; User-defined signal 1.
;;; Action: Terminates the process.
$usr1
;;; Invalid memory reference.
;;; Action: Terminates the process.
$segv
;;; User-defined signal 2.
;;; Action: Terminates the process.
$usr2
;;; Write on a pipe with no one to read it.
;;; Action: Ignored.
$pipe
;;; Alarm clock.
;;; Action: Terminates the process.
$alrm
;;; Termination signal.
;;; Action: Terminates the process.
$term
;;; Child process terminated, stopped, or continued.
;;; Action: Ignored.
$chld
;;; Continue executing, if stopped.
;;; Action: Continues executing, if stopped.
$cont
;;; Stop executing.
;;; Action: Stops executing.
$stop
;;; Terminal stop signal.
;;; Action: Stops executing.
$tstp
;;; Background process attempting read.
;;; Action: Stops executing.
$ttin
;;; Background process attempting write.
;;; Action: Stops executing.
$ttou
;;; High bandwidth data is available at a socket.
;;; Action: Ignored.
$urg
;;; CPU time limit exceeded.
;;; Action: Terminates the process.
$xcpu
;;; File size limit exceeded.
;;; Action: Terminates the process.
$xfsz
;;; Virtual timer expired.
;;; Action: Terminates the process.
$vtalrm
;;; Profiling timer expired.
;;; Action: Terminates the process.
$prof
;;; Window changed.
;;; Action: Ignored.
$winch
;;; I/O possible.
;;; Action: Terminates the process.
$poll
;;; Power failure.
;;; Action: Terminates the process.
$pwr
;;; Bad system call.
;;; Action: Terminates the process.
$sys
)
)

Entries

Link copied to clipboard

No signal. Note that POSIX has special semantics for kill(pid, 0), so this value is reserved.

Link copied to clipboard

Hangup. Action: Terminates the process.

Link copied to clipboard

Terminate interrupt signal. Action: Terminates the process.

Link copied to clipboard

Terminal quit signal. Action: Terminates the process.

Link copied to clipboard

Illegal instruction. Action: Terminates the process.

Link copied to clipboard

Trace/breakpoint trap. Action: Terminates the process.

Link copied to clipboard

Process abort signal. Action: Terminates the process.

Link copied to clipboard

Access to an undefined portion of a memory object. Action: Terminates the process.

Link copied to clipboard

Erroneous arithmetic operation. Action: Terminates the process.

Link copied to clipboard

Kill. Action: Terminates the process.

Link copied to clipboard

User-defined signal 1. Action: Terminates the process.

Link copied to clipboard

Invalid memory reference. Action: Terminates the process.

Link copied to clipboard

User-defined signal 2. Action: Terminates the process.

Link copied to clipboard

Write on a pipe with no one to read it. Action: Ignored.

Link copied to clipboard

Alarm clock. Action: Terminates the process.

Link copied to clipboard

Termination signal. Action: Terminates the process.

Link copied to clipboard

Child process terminated, stopped, or continued. Action: Ignored.

Link copied to clipboard

Continue executing, if stopped. Action: Continues executing, if stopped.

Link copied to clipboard

Stop executing. Action: Stops executing.

Link copied to clipboard

Terminal stop signal. Action: Stops executing.

Link copied to clipboard

Background process attempting read. Action: Stops executing.

Link copied to clipboard

Background process attempting write. Action: Stops executing.

Link copied to clipboard

High bandwidth data is available at a socket. Action: Ignored.

Link copied to clipboard

CPU time limit exceeded. Action: Terminates the process.

Link copied to clipboard

File size limit exceeded. Action: Terminates the process.

Link copied to clipboard

Virtual timer expired. Action: Terminates the process.

Link copied to clipboard

Profiling timer expired. Action: Terminates the process.

Link copied to clipboard

Window changed. Action: Ignored.

Link copied to clipboard

I/O possible. Action: Terminates the process.

Link copied to clipboard

Power failure. Action: Terminates the process.

Link copied to clipboard

Bad system call. Action: Terminates the process.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val code: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Signal

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.