oracular (3) sigandset.3.gz

Provided by: manpages-es-dev_4.23.1-1_all bug

NOMBRE

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

BIBLIOTECA

       Biblioteca Estándar C (libc, -lc)

SINOPSIS

       #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

DESCRIPCIÓN

       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.

VALOR DEVUELTO

       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.

ERRORES

       EINVAL signum no es una señal válida.

ATRIBUTOS

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

       ┌───────────────────────────────────────────────────────────────┬────────────────────┬───────────────────┐
       │InterfazAtributoValor             │
       ├───────────────────────────────────────────────────────────────┼────────────────────┼───────────────────┤
       │sigemptyset(), sigfillset(), sigaddset(), sigdelset(),         │ Seguridad del hilo │ Multi-hilo seguro │
       │sigismember(), sigisemptyset(), sigorset(), sigandset()        │                    │                   │
       └───────────────────────────────────────────────────────────────┴────────────────────┴───────────────────┘

VERSIONES

   GNU
       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.

ESTÁNDARES

       POSIX.1-2008.

HISTORIAL

       POSIX.1-2001.

NOTAS

       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.

VÉASE TAMBIÉN

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

TRADUCCIÓN

       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
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ 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⟩.