SYNOPSIS
#include <signal.h>
int siginterrupt(int sig, int flag);
DESCRIPTION
The
int siginterrupt(int sig, int flag) { struct sigaction act; (void)sigaction(sig, NULL, &act); if (flag) act.sa_flags &= ~SA_RESTART; else act.sa_flags |= SA_RESTART; return sigaction(sig, &act, NULL); }
PARAMETERS
- sig
-
Is the signal number for which the restart state is to be modified.
- flag
-
Determines whether sig interrupts system calls. If true, sig does interrupt. Otherwise, system calls are restarted when possible.
RETURN VALUES
On success,
CONFORMANCE
UNIX 98
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
sigaction() ,signal()
PTC MKS Toolkit 10.5 Documentation Build 40.