hpux man page for siginterrupt

Query: siginterrupt

OS: hpux

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

siginterrupt(2) 						System Calls Manual						   siginterrupt(2)

NAME
siginterrupt - allow signals to interrupt functions
SYNOPSIS
DESCRIPTION
The function is used to change the restart behaviour when a function is interrupted by the specified signal. The function sig, flag) has an effect as if implemented as:
RETURN VALUE
Upon successful completion, returns 0. Otherwise -1 is returned and is set to indicate the error.
ERRORS
The function will fail if: [EINVAL] The sig argument is not a valid signal number.
APPLICATION USAGE
The function supports programs written to historical system interfaces. A portable application, when being written or rewritten, should use with the flag instead of Threads Considerations System call restart is a process attribute. Therefore, changing the restart behavior affects all threads in the process.
SEE ALSO
sigaction(2), <signal.h>.
CHANGE HISTORY
First released in Issue 4, Version 2. siginterrupt(2)
Related Man Pages
siginterrupt(3c) - opensolaris
siginterrupt(3) - mojave
siginterrupt(3) - debian
siginterrupt(3c) - sunos
siginterrupt(3) - freebsd
Similar Topics in the Unix Linux Community
signals - SIGTERM