SIGSETOPS(3) Library Functions Manual SIGSETOPS(3)

sigemptyset, sigfillset, sigaddset, sigdelset, sigismember - operaciones POSIX con conjuntos de señales

Biblioteca Estándar C (libc, -lc)

#include <signal.h>
int sigemptyset(sigset_t *conjunto);
int sigfillset(sigset_t *conjunto);
int sigaddset(sigset_t *conjunto, int numse);
int sigdelset(sigset_t *conjunto, int numse);
int sigismember(const sigset_t *conjunto, int numse);
Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember():

    _POSIX_C_SOURCE

Estas funciones permiten la manipulación de conjuntos de señales POSIX.

sigemptyset() inicia el conjunto de señales dado por conjunto al conjunto vacío, con todas las señales fuera del conjunto.

sigfillset() inicia conjunto al conjunto completo, con todas las señales incluidas en el conjunto.

sigaddset() y sigdelset() añaden y quitan respectivamente la señal numse de conjunto.

sigismember() mira a ver si numse pertenece a conjunto.

Objects of type sigset_t must be initialized by a call to either sigemptyset() or sigfillset() before being passed to the functions sigaddset(), sigdelset(), and sigismember() or the additional glibc functions described below (sigisemptyset(), sigandset(), and sigorset()). The results are undefined if this is not done.

sigemptyset(), sigfillset(), sigaddset() y sigdelset() devuelven 0 si acaban bien y -1 en caso de error.

sigismember() devuelve 1 si numse es un miembro de conjunto, 0 si numse no lo es, y -1 en caso de error.

En caso de error, estas funciones definen errno según éste.

signum no es una señal válida.

Para obtener una explicación de los términos usados en esta sección, véase attributes(7).

Interfaz Atributo Valor
sigemptyset(), sigfillset(), sigaddset(), sigdelset(), sigismember(), sigisemptyset(), sigorset(), sigandset() Seguridad del hilo Multi-hilo seguro

If the _GNU_SOURCE feature test macro is defined, then <signal.h> exposes three other functions for manipulating signal sets:

int sigisemptyset(const sigset_t *set);
int sigorset(sigset_t *dest, const sigset_t *left,
              const sigset_t *right);
int sigandset(sigset_t *dest, const sigset_t *left,
              const sigset_t *right);

sigisemptyset() returns 1 if set contains no signals, and 0 otherwise.

sigorset() places the union of the sets left and right in dest. sigandset() places the intersection of the sets left and right in dest. Both functions return 0 on success, and -1 on failure.

These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications.

POSIX.1-2008.

POSIX.1-2001.

When creating a filled signal set, the glibc sigfillset() function does not include the two real-time signals used internally by the NPTL threading implementation. See nptl(7) for details.

sigaction(2), sigpending(2), sigprocmask(2), sigsuspend(2)

La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es> y Marcos Fouces <marcos@debian.org>

Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.

Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.

31 Octubre 2023 Páginas de manual de Linux 6.06