Home | History | Annotate | Download | only in Signal

Lines Matching defs:signal

2   Implementation of the signal and raise functions as declared in <signal.h>.

19 #include <signal.h>
22 /** The signal function associates a "signal handler" with a signal number.
24 The signal function chooses one of three ways in which receipt of the
25 signal number, sig, is to be subsequently handled. If the value of func
26 is SIG_DFL, default handling for that signal will occur. If the value of
27 func is SIG_IGN, the signal will be ignored. Otherwise, func shall point
28 to a function to be called when that signal occurs. An invocation of such a
29 function because of a signal, or (recursively) of any further functions
31 is called a signal handler.
33 At program startup, the equivalent of signal(sig, SIG_IGN); may be executed
35 equivalent of signal(sig, SIG_DFL); is executed for all other signals
38 @return If the request can be honored, the signal function returns the
39 value of func for the most recent successful call to signal for
40 the specified signal sig. Otherwise, a value of SIG_ERR is
44 signal(int sig, __sighandler_t *func)
62 Print(L"\nCaught signal %d.\n", sig);
65 /** Send a signal.
67 The raise function carries out the actions described for signal, above,
68 for the signal sig.
70 If a signal handler is called, the raise function shall not return until
71 after the signal handler does.