Files
oldlinux-files/Minix/CD-ROM-2.0/MINIX/MANUALS/CAT3/SIGSET.3
2024-02-19 00:21:39 -05:00

119 lines
2.2 KiB
Groff
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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