Copyright (C) 2000-2012 |
GNU Info (libc.info)BSD HandlerBSD Function to Establish a Handler ----------------------------------- - Data Type: struct sigvec This data type is the BSD equivalent of `struct sigaction' (Note: Advanced Signal Handling); it is used to specify signal actions to the `sigvec' function. It contains the following members: `sighandler_t sv_handler' This is the handler function. `int sv_mask' This is the mask of additional signals to be blocked while the handler function is being called. `int sv_flags' This is a bit mask used to specify various flags which affect the behavior of the signal. You can also refer to this field as `sv_onstack'. These symbolic constants can be used to provide values for the `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. - Macro: int SV_ONSTACK 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. - Macro: int SV_INTERRUPT 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. Note: Interrupted Primitives. - Macro: int SV_RESETHAND 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. - Function: int sigvec (int SIGNUM, const struct sigvec *ACTION,struct sigvec *OLD-ACTION) This function is the equivalent of `sigaction' (Note: 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. - Function: int siginterrupt (int SIGNUM, int FAILFLAG) 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'. Note: Interrupted Primitives. automatically generated by info2www version 1.2.2.9 |