sigsetops.3
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 92 行
3
92 行
.\" SCCSID: @(#)sigsetops.3 2.3 8/10/87.TH sigsetops 3.SH Namesigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- manipulate signal sets (POSIX).SH Syntax.nf.B #include <signal.h>.PP.B int sigemptyset(\fIset\fP).B sigset_t *\fIset\fP;.PP.B int sigfillset (\fIset\fP).B sigset_t \fI*set\fP;.PP.B int sigaddset(\fIset,sig\fP).B sigset_t \fI*set\fP;.B int \fIsig\fP;.PP.B int sigdelset(\fIset,sig\fP).B sigset_t \fI*set\fP;.B int \fIsig\fP;.PP.B int sigismember(\fIset,sig\fP).B sigset_t \fI*set\fP;.B int \fIsig\fP;.SH DescriptionThe.MS sigsetops 3functions manipulate signal sets used by the other POSIX signal functions .MS sigaction 3, .MS sigprocmask 3, .MS sigsuspend 3 ..PPThe.MS sigemptyset 3function initializes the signal set pointed to by the argument.I setso that all signals are excluded..NXR "sigemptyset subroutine".NXR "sigfillset subroutine".NXR "sigaddset subroutine".NXR "sigdelset subroutine".NXR "sigismember subroutine".NXR "signal" .PPThe.MS sigfillset 3function initializes the signal set pointed to by the argument.I setso that all signals are included..PPThe.MS sigaddset 3and.MS sigdelset 3functions respectively add and delete the individual signal specified by the valueof the argument.I sigfrom the signal set pointed to by the argument.I set..PPThe.MS sigismember 3function tests whether the signal specified by the value of the argument.I sigis a member of the set pointed to by the argument.I set..SH Return ValuesUpon successful completion, the.MS sigismember 3function returns a value of 1 if the specified signal is a member of the set.If it is not a member of the set, a value of 0 is returned..PPIf the .MS sigaddset 3,.MS sigdelset 3,or.MS sigismember 3functions fail a \-1 value is returned and .I errnois set to indicate the reason..SH DiagnosticsThe.MS sigsetops 3function will fail and the signal mask will remain unchanged if one of thefollowing occur:.TP 15[EINVAL]The value of the \fIsig\fP argument is not a valid signal number.SH See Alsosigprocmask(3), sigaction(3), sigsuspend(3), sigpending(2)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?