sigsetjmp.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 86 行
3
86 行
.\" SCCSID: @(#)sigsetjmp.3 8.2 1/28/91.TH sigsetjmp 3.SH Namesigsetjmp, siglongjmp \- nonlocal goto.SH Syntax.nf.B #include <setjmp.h>.PP.B sigsetjmp(\fIenv, savemask\fP).B sigjmp_buf \fIenv\fP;.PP.B void siglongjmp(\fIenv, val\fP).B sigjmp_buf \fIenv\fP;.fi.SH Description.NXR "sigsetjmp subroutine".NXR "siglongjmp subroutine".NXR "program" "debugging"These routines deal with errors and interrupts encountered ina low-level subroutine of a program..PPThe.PN sigsetjmp subroutinesaves its stack environment in.I envfor later use by.PN siglongjmp .It returns a value of 0. If the value of the.I savemaskargument is not zero, the.PN sigsetjmpsubroutine also saves the process\' current signal mask as part of thecalling environment..PPThe.PN siglongjmpsubroutinerestores the environment saved by the last call of.PN sigsetjmpwith the supplied.I envbuffer.If the.I envargument was initialized by a call to the.PN sigsetjmpsubroutine with a nonzero.I savemaskargument, the.PN siglongjmpsubroutine restores the saved signal mask.It then returns in such a way that executioncontinues as if the call of .PN sigsetjmphad just returned the value.I valto the subroutine that invoked.PN sigsetjmp ,which must not itself have returned in the interim.However, .PN siglongjmpcannot cause .PN sigsetjmpto return the value 0. If .PN siglongjmpis invoked with a .I valof 0, .PN sigsetjmpreturns a value of 1.All accessible data have values as of the time.PN siglongjmpwas called. .SH RestrictionsThe.PN sigsetjmpsubroutinedoes not save the current notion of whether the process isexecuting on the signal stack. When you invoke the.PN siglongjmpsubroutine, the signal stack is left in an incorrect state..SH See Alsosigstack(2), sigvec(2), signal(3), sigprocmask(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?