api
signal.ch
Declarations in signal.ch
3 declarationscstd
Declarations
Public only
signal#
Publicfunction
func signal(sig : int, handler : func(int) : void) : int
raise#
Publicfunction
func raise(sig : int) : int
Sends signal sig to the program. The signal handler, specified using signal(), is invoked.
If the user-defined signal handling strategy is not set using signal() yet, it is implementation-defined whether the signal will be ignored or default handler will be invoked.
Returns
0 upon success, non-zero value on failure. @see https:en.cppreference.com/w/c/program/raise
See Also
- https:en.cppreference.com/w/c/program/raise
sig_atomic_t#
Publictypealias
type sig_atomic_t = int
TODO using int as sig_atomic_t as implementation is unknown
An integer type which can be accessed as an atomic entity even in the presence of asynchronous interrupts made by signals.
See Also
- https:en.cppreference.com/w/c/program/sig_atomic_t
Parameters
Returns
Previous signal handler on success or SIG_ERR on failure (setting a signal handler can be disabled on some implementations). @see https:en.cppreference.com/w/c/program/signal
See Also