sigstack.2

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 67 行

2
67
字号
.\" SCCSID: @(#)sigstack.2	8.1	9/11/90.TH sigstack 2.SH Namesigstack \- set or get signal stack context.SH Syntax.nf.B #include <signal.h>.PP.B struct sigstack {.B	caddr_t	ss_sp;.B	int	ss_onstack;.B };.PP.B sigstack(\fIss, oss\fP).B struct sigstack *\fIss, *oss\fP;.SH Description.NXR "sigstack system call" .NXR "signal stack" "getting context".NXR "signal stack" "setting context"The.PN sigstacksystem callallows users to define an alternate stack on which signalsare to be processed.  If.I ssis nonzero,it specifies a.I "signal stack"on which to deliver signalsand tells the system if the process is currently executingon that stack.  When a signal's action indicates its handlershould execute on the signal stack (specified with a.PN sigvec call), the system checks to seeif the process is currently executing on that stack.  If theprocess is not currently executing on the signal stack,the system arranges a switch to the signal stack for theduration of the signal handler's execution. If.I ossis nonzero, the current signal stack state is returned..PPSignal stacks are not grown'automatically, as isdone for the normal stack.  If the stack overflows,unpredictable results may occur..SH Return ValuesUpon successful completion, a value of zero (0) is returned.Otherwise, a value of \-1 is returned and .I errnois set to indicate the error..SH DiagnosticsThe.PN sigstacksystem callfails and the signal stack context remains unchanged,if one of the following occurs..TP 15[EFAULT]Either.I ssor.I osspoints to memory that is not a valid part of the processaddress space..SH See Alsosigvec(2), setjmp(3)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?