sigprocmask.3

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

3
73
字号
.\" SCCSID: @(#)sigprocmask.3	2.3	8/10/87.TH sigprocmask 3.SH Namesigprocmask \- examine and change blocked signals (POSIX).SH Syntax.nf.B #include <signal.h>.PP.B int sigprocmask(\fIhow, set, oset\fP).B int \fIhow\fP;.B sigset_t \fI*set, *oset\fP;.SH Description.NXR "sigprocmask system call".NXR "signal" "blocking"The.PN sigprocmasksystem callis used to examine and/or change the calling process's signal mask. If thevalue of the argument.I setis not NULL, it points to a set of signals that will be used to change the currently blocked set..PPThe value of the argument.I howindicates the manner in which the set is changed as defined by the followingvalues, defined in <signal.h>:.IP "SIG_BLOCK" The resulting signal set is the union of the current set and the signal setpointed to by the argument.I set..IP "SIG_UNBLOCK"The resulting signal set is the intersection of the current set and the complement of the signal set pointed to by the argument.I set..IP "SIG_SETMASK"The resulting signal set is the signal set pointed to by the argument.I set..PPIf the argument.I osetis not NULL, the previous mask is stored in the space pointed to by.I oset.If the value of the argument.I setis NULL, the process's signal mask is unchanged; thus, the.MS sigprocmask 3function can be used to enquire about currently blocked signals..PPThe signal masks used as arguments to this function are manipulated using the.MS sigsetops 3functions..PPAs a system restriction, SIGKILL and SIGSTOP cannotbe blocked. .SH Return ValuesA 0 return value indicates a successful call.A \-1 return valueindicates an error and.I errnois set to indicated the reason..SH DiagnosticsThe.PN sigprocmaskfunction fails and the signal mask remains unchanged if thefollow occurs:.TP 15[EINVAL]The value of the \fIhow\fP argument is not equal to one of the definedvalues..SH See Alsokill(2), sigsetmask(2), sigvec(2), sigblock(2), sigsetops(3)

⌨️ 快捷键说明

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