siginterrupt.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 55 行
3
55 行
.TH siginterrupt 3.UC 6.SH Namesiginterrupt \- allow signals to interrupt system calls.SH Syntax.nf.B siginterrupt(\fIsig, flag\fP).B int \fIsig, flag\fP;.fi.SH DescriptionThe.PN siginterruptsystem call.NXR "siginterrupt"is used to change the system call restartbehavior when a system call is interrupted by the specified signal.If the flag is false (0), then system calls will be restarted ifthey are interrupted by the specified signaland no data has been transferred yet.System call restart is the default behavior on 4.2 BSD..PPIf the flag is true (1), then restarting of system calls is disabled.If a system call is interrupted by the specified signaland no data has been transferred,the system call will return \-1 with errno set to EINTR.Interrupted system calls that have started transferringdata will return the amount of data actually transferred.System call interrupt is the signal behavior found on 4.1 BSDand AT&T System V systems..PPNote that the new signal handling semantics are notaltered in any other way.Most notably, signal handlers always remain installed untilexplicitly changed by a subsequent.MS sigvec 2call, and the signal mask operates as documented in.MS sigvec 2.Programs may switch between restartable and interruptiblesystem call operation as often as desired in the execution of a program..PPIssuing a.PN siginterrupt call during the execution of a signal handler will causethe new action to take place on the next signal to be caught..SH EnvironmentThis library routine uses an extension of the.MS sigvec 2system call that is not available in ULTRIX 2.0 or earlier versions.Hence it should not be used if backward compatibility is needed..SH Return ValuesA 0 value indicates that the call succeeded.A \-1 value indicates that an invalid signal number has been supplied..SH See Alsosigvec(2), sigblock(2), sigpause(2), sigsetmask(2)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?