siginterrupt(S)
siginterrupt --
allow signals to interrupt system calls
Syntax
cc . . . -lc
int siginterrupt(int sig, int flag);
Description
siginterrupt is used to change the system call restart
behavior when a system call is interrupted by the specified
signal. If the flag is false (0), then system calls will be
restarted if they are interrupted by the specified signal and no
data has been transferred yet.
If the flag is true (1), then restarting of system calls is
disabled. If a system call is interrupted by the specified signal
and no data has been transferred, the system call will return -1
with errno set to EINTR. Interrupted system
calls that have started transferring data will return the amount of
data actually transferred.
Issuing a siginterrupt call during the execution of a
signal handler will cause the new action to take place on the next
signal to be caught.
Return values
A 0 value indicates that the call succeeded. A -1 value indicates
that an invalid signal number has been supplied.
Diagnostics
If the following condition occurs, the siginterrupt
function returns -1 and sets errno to the corresponding
value:
[EINVAL]-
The specified sig was invalid.
Files
/lib/libc.a-
linking library
See also
signal(M),
signal(S),
sigsetv(S)
Standards conformance
siginterrupt is conformant with:
AT&T SVID Issue 3.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003