Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both | POSIX(ON) |
#define _XOPEN_SOURCE_EXTENDED 1
#include <signal.h>
int siginterrupt(int sig, int flag);
The siginterrupt() function provides a simplified method for changing the restart behavior when a function is interrupted by the signal specified in the argument sig.
The argument flag serves as a binary switch to enable or disable restart behavior. When flag is nonzero, restart behavior will be disabled. Otherwise it is enabled.
If successful, siginterrupt() returns 0.