SIGSET.3
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2k
源码类别:
操作系统开发
开发平台:
C/C++
- SIGSET(3) Minix Programmer's Manual SIGSET(3)
- NAME
- sigset, sigaddset, sigdelset, sigemptyset, sigfillset, sigismember -
- manipulate signal sets
- SYNOPSIS
- #include <signal.h>
- int sigaddset(sigset_t *set, int sig)
- int sigdelset(sigset_t *set, int sig)
- int sigemptyset(sigset_t *set)
- int sigfillset(sigset_t *set)
- int sigismember(const sigset_t *set, int sig)
- DESCRIPTION
- The system calls that handle signals, such as sigaction(2) and
- sigprocmask(2) use sets of signals to keep a process from being
- interrupted by those signals while executing a signal handler or a
- critical code segment. These signal sets are manipulated by the
- following functions:
- int sigaddset(sigset_t *set, int sig)
- Add signal sig to the signal set referenced by set.
- int sigdelset(sigset_t *set, int sig)
- Remove signal sig from the signal set referenced by set.
- int sigemptyset(sigset_t *set)
- Initialize the signal set referenced by set to an empty set.
- int sigfillset(sigset_t *set)
- Initialize the signal set referenced by set to an full set, i.e. all
- signals are in the set.
- int sigismember(const sigset_t *set, int sig)
- Return 1 if the signal sig is present in the set referenced by set,
- 0 otherwise.
- SEE ALSO
- sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2).
- DIAGNOSTICS
- All functions except sigismember return 0 on success. Sigismember
- returns 0 or 1 on success. They return -1 with error code EINVAL for an
- invalid signal number. (They do not use EFAULT for a bad set address,
- but will simply cause a segmentation violation.)
- 1
- SIGSET(3) Minix Programmer's Manual SIGSET(3)
- AUTHOR
- Kees J. Bot (kjb@cs.vu.nl)
- 2