⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sigset.3

📁 操作系统设计与实现源码
💻 3
字号:
.TH SIGSET 3.SH NAMEsigset, sigaddset, sigdelset, sigemptyset, sigfillset, sigismember \- manipulate signal sets.SH SYNOPSIS.ft B#include <signal.h>.nfint sigaddset(sigset_t *\fIset\fP, int \fIsig\fP)int sigdelset(sigset_t *\fIset\fP, int \fIsig\fP)int sigemptyset(sigset_t *\fIset\fP)int sigfillset(sigset_t *\fIset\fP)int sigismember(const sigset_t *\fIset\fP, int \fIsig\fP).fi.ft P.SH DESCRIPTIONThe system calls that handle signals, such as.BR sigaction (2)and.BR sigprocmask (2)use sets of signals to keep a process from being interrupted by thosesignals while executing a signal handler or a critical code segment.  Thesesignal sets are manipulated by the following functions:.TP 5.B "int sigaddset(sigset_t *\fIset\fP, int \fIsig\fP)"Add signal.I sigto the signal set referenced by.IR set ..TP.B "int sigdelset(sigset_t *\fIset\fP, int \fIsig\fP)"Remove signal.I sigfrom the signal set referenced by.IR set ..TP.B "int sigemptyset(sigset_t *\fIset\fP)"Initialize the signal set referenced by.I setto an empty set..TP.B "int sigfillset(sigset_t *\fIset\fP)"Initialize the signal set referenced by.I setto an full set, i.e. all signals are in the set..TP.B "int sigismember(const sigset_t *\fIset\fP, int \fIsig\fP)"Return.B 1if the signal.I sigis present in the set referenced by.IR set ,.B 0otherwise..SH "SEE ALSO".BR sigaction (2),.BR sigpending (2),.BR sigprocmask (2),.BR sigsuspend (2)..SH DIAGNOSTICSAll functions except.B sigismemberreturn.B 0on success..B Sigismemberreturns.B 0or.B 1on success.  They return.B \-1with error code.B EINVALfor an invalid signal number.  (They do not use.B EFAULTfor a bad.I setaddress, but will simply cause a segmentation violation.).SH AUTHORKees J. Bot (kjb@cs.vu.nl)

⌨️ 快捷键说明

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