Node:BSD Handler, Next:Blocking in BSD, Up:BSD Signal Handling
struct sigvec | Data Type |
This data type is the BSD equivalent of struct sigaction
(see Advanced Signal Handling); it is used to specify signal actions
to the sigvec function. It contains the following members:
|
sv_flags
field of a sigvec
structure. This field is a bit
mask value, so you bitwise-OR the flags of interest to you together.
int SV_ONSTACK | Macro |
If this bit is set in the sv_flags field of a sigvec
structure, it means to use the signal stack when delivering the signal.
|
int SV_INTERRUPT | Macro |
If this bit is set in the sv_flags field of a sigvec
structure, it means that system calls interrupted by this kind of signal
should not be restarted if the handler returns; instead, the system
calls should return with a EINTR error status. See Interrupted
Primitives.
|
int SV_RESETHAND | Macro |
If this bit is set in the sv_flags field of a sigvec
structure, it means to reset the action for the signal back to
SIG_DFL when the signal is received.
|
int sigvec (int signum, const struct sigvec *action,struct sigvec *old-action) | Function |
This function is the equivalent of sigaction (see Advanced Signal
Handling); it installs the action action for the signal signum,
returning information about the previous action in effect for that signal
in old-action.
|
int siginterrupt (int signum, int failflag) | Function |
This function specifies which approach to use when certain primitives
are interrupted by handling signal signum. If failflag is
false, signal signum restarts primitives. If failflag is
true, handling signum causes these primitives to fail with error
code EINTR . See Interrupted Primitives.
|