Module
Module documentation.
moduleos.signal.posix
Classes
Classes and inheritance.
Functions
Free functions and class methods.
functionos.signal.posix::mask_block
Signature
func mask_block() -> Intfunc mask_block() -> Int {
return 1;
}@briefProvides the system library operation `mask_block`.
@detailsExecutes the `mask_block` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.signal.posix::mask_unblock
Signature
func mask_unblock() -> Intfunc mask_unblock() -> Int {
return 2;
}@briefProvides the system library operation `mask_unblock`.
@detailsExecutes the `mask_unblock` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.signal.posix::mask_set
Signature
func mask_set() -> Intfunc mask_set() -> Int {
return 3;
}@briefProvides the system library operation `mask_set`.
@detailsExecutes the `mask_set` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `Int`.
functionos.signal.posix::hangup
Signature
func hangup() -> os.signal.Signalfunc hangup() -> os.signal.Signal {
return os.signal.hangup();
}@briefProvides the system library operation `hangup`.
@detailsExecutes the `hangup` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::quit
Signature
func quit() -> os.signal.Signalfunc quit() -> os.signal.Signal {
return os.signal.quit();
}@briefProvides the system library operation `quit`.
@detailsExecutes the `quit` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::user1
Signature
func user1() -> os.signal.Signalfunc user1() -> os.signal.Signal {
return os.signal.user1();
}@briefProvides the system library operation `user1`.
@detailsExecutes the `user1` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::user2
Signature
func user2() -> os.signal.Signalfunc user2() -> os.signal.Signal {
return os.signal.user2();
}@briefProvides the system library operation `user2`.
@detailsExecutes the `user2` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::alarm
Signature
func alarm() -> os.signal.Signalfunc alarm() -> os.signal.Signal {
return os.signal.alarm();
}@briefProvides the system library operation `alarm`.
@detailsExecutes the `alarm` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::child
Signature
func child() -> os.signal.Signalfunc child() -> os.signal.Signal {
return os.signal.child();
}@briefProvides the system library operation `child`.
@detailsExecutes the `child` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::broken_pipe
Signature
func broken_pipe() -> os.signal.Signalfunc broken_pipe() -> os.signal.Signal {
return os.signal.broken_pipe();
}@briefProvides the system library operation `broken_pipe`.
@detailsExecutes the `broken_pipe` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::window_change
Signature
func window_change() -> os.signal.Signalfunc window_change() -> os.signal.Signal {
return os.signal.window_change();
}@briefProvides the system library operation `window_change`.
@detailsExecutes the `window_change` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::continued
Signature
func continued() -> os.signal.Signalfunc continued() -> os.signal.Signal {
return os.signal.continued();
}@briefProvides the system library operation `continued`.
@detailsExecutes the `continued` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::stop_terminal
Signature
func stop_terminal() -> os.signal.Signalfunc stop_terminal() -> os.signal.Signal {
return os.signal.stop_terminal();
}@briefProvides the system library operation `stop_terminal`.
@detailsExecutes the `stop_terminal` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::terminal_input
Signature
func terminal_input() -> os.signal.Signalfunc terminal_input() -> os.signal.Signal {
return os.signal.terminal_input();
}@briefProvides the system library operation `terminal_input`.
@detailsExecutes the `terminal_input` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::terminal_output
Signature
func terminal_output() -> os.signal.Signalfunc terminal_output() -> os.signal.Signal {
return os.signal.terminal_output();
}@briefProvides the system library operation `terminal_output`.
@detailsExecutes the `terminal_output` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::trap
Signature
func trap() -> os.signal.Signalfunc trap() -> os.signal.Signal {
return os.signal.trap();
}@briefProvides the system library operation `trap`.
@detailsExecutes the `trap` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::abort
Signature
func abort() -> os.signal.Signalfunc abort() -> os.signal.Signal {
return os.signal.abort();
}@briefProvides the system library operation `abort`.
@detailsExecutes the `abort` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::floating_point_exception
Signature
func floating_point_exception() -> os.signal.Signalfunc floating_point_exception() -> os.signal.Signal {
return os.signal.floating_point_exception();
}@briefProvides the system library operation `floating_point_exception`.
@detailsExecutes the `floating_point_exception` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::illegal_instruction
Signature
func illegal_instruction() -> os.signal.Signalfunc illegal_instruction() -> os.signal.Signal {
return os.signal.illegal_instruction();
}@briefProvides the system library operation `illegal_instruction`.
@detailsExecutes the `illegal_instruction` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::segmentation_fault
Signature
func segmentation_fault() -> os.signal.Signalfunc segmentation_fault() -> os.signal.Signal {
return os.signal.segmentation_fault();
}@briefProvides the system library operation `segmentation_fault`.
@detailsExecutes the `segmentation_fault` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::bus_error
Signature
func bus_error() -> os.signal.Signalfunc bus_error() -> os.signal.Signal {
return os.signal.bus_error();
}@briefProvides the system library operation `bus_error`.
@detailsExecutes the `bus_error` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::real_time_min
Signature
func real_time_min() -> os.signal.Signalfunc real_time_min() -> os.signal.Signal {
return os.signal.real_time_min();
}@briefProvides the system library operation `real_time_min`.
@detailsExecutes the `real_time_min` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::real_time_max
Signature
func real_time_max() -> os.signal.Signalfunc real_time_max() -> os.signal.Signal {
return os.signal.real_time_max();
}@briefProvides the system library operation `real_time_max`.
@detailsExecutes the `real_time_max` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::real_time
Signature
func real_time(offset: Int) -> os.signal.Signalfunc real_time(offset: Int) -> os.signal.Signal {
return os.signal.real_time(offset);
}@briefProvides the system library operation `real_time`.
@detailsExecutes the `real_time` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- offsetByte offset measured from the start position.
@returnReturns the operation result as `os.signal.Signal`.
functionos.signal.posix::sigprocmask
Signature
func sigprocmask(how: Int, signals: ...os.signal.Signal) -> ErrCodefunc sigprocmask(how: Int, signals: ...os.signal.Signal) -> ErrCode {
if how == mask_block() {
return os.signal.block(signals...);@briefProvides the system library operation `sigprocmask`.
@detailsExecutes the `sigprocmask` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- howMode selector that specifies how the operation should be applied.
- signalsSignal mask or signal collection used to configure signal handling.
@returnReturns `ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionos.signal.posix::scoped_sigprocmask
Signature
func scoped_sigprocmask(how: Int, signals: ...os.signal.Signal) -> os.signal.MaskGuard, ErrCodefunc scoped_sigprocmask(how: Int, signals: ...os.signal.Signal) -> os.signal.MaskGuard, ErrCode {
if how == mask_block() {
return os.signal.scoped_block(signals...);@briefProvides the system library operation `scoped_sigprocmask`.
@detailsExecutes the `scoped_sigprocmask` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- howMode selector that specifies how the operation should be applied.
- signalsSignal mask or signal collection used to configure signal handling.
@returnReturns `os.signal.MaskGuard, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionos.signal.posix::clear_mask
Signature
func clear_mask() -> ErrCodefunc clear_mask() -> ErrCode {
return os.signal.clear_mask();
}@briefProvides the system library operation `clear_mask`.
@detailsExecutes the `clear_mask` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@returnReturns `ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
functionos.signal.posix::is_blocked
Signature
func is_blocked(sig: os.signal.Signal) -> Bool, ErrCodefunc is_blocked(sig: os.signal.Signal) -> Bool, ErrCode {
return os.signal.is_blocked(sig);
}@briefTests whether the state satisfies the condition represented by `is_blocked`.
@detailsExecutes the `is_blocked` system-library API. The documented parameters define the accepted inputs, ownership requirements, range limits, and timeout behavior for this call. Callers must check returned `ErrCode` values or boolean status values before using the result.
@param
- sigSignal number or signal descriptor processed by the operation.
@returnReturns `Bool, ErrCode`; on success the error code is `std.OK` or `OK`, and on failure the error code describes the failure while any returned value contains the usable partial result when available.
Variables
Class fields (var).