.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1994 Mike Battersby .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Modified by aeb, 960721 .\" 2005-11-21, mtk, added descriptions of sigisemptyset(), sigandset(), .\" and sigorset() .\" 2007-10-26 mdw added wording that a sigset_t must be initialized .\" prior to use .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SIGSETOPS 3 "21 Diciembre 2020" Linux "Manual del Programador de Linux" .SH NOMBRE sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- operaciones POSIX con conjuntos de señales .SH SINOPSIS \fB#include \fP .PP \fBint sigemptyset(sigset_t *\fP\fIconjunto\fP\fB);\fP .PP \fBint sigfillset(sigset_t *\fP\fIconjunto\fP\fB);\fP .PP \fBint sigaddset(sigset_t *\fP\fIconjunto\fP\fB, int \fP\fInumse\fP\fB);\fP .PP \fBint sigdelset(sigset_t *\fP\fIconjunto\fP\fB, int \fP\fInumse\fP\fB);\fP .PP \fBint sigismember(const sigset_t *\fP\fIconjunto\fP\fB, int \fP\fInumse\fP\fB);\fP .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP .ad l \fBsigemptyset\fP(), \fBsigfillset\fP(), \fBsigaddset\fP(), \fBsigdelset\fP(), \fBsigismember\fP(): .RS 4 _POSIX_C_SOURCE .RE .ad b .SH DESCRIPCIÓN These functions allow the manipulation of POSIX signal sets. .PP \fBsigemptyset\fP() inicia el conjunto de señales dado por \fIconjunto\fP al conjunto vacío, con todas las señales fuera del conjunto. .PP \fBsigfillset\fP() inicia \fIconjunto\fP al conjunto completo, con todas las señales incluidas en el conjunto. .PP \fBsigaddset\fP() y \fBsigdelset\fP() añaden y quitan respectivamente la señal \fInumse\fP de \fIconjunto\fP. .PP \fBsigismember\fP() mira a ver si \fInumse\fP pertenece a \fIconjunto\fP. .PP Objects of type \fIsigset_t\fP must be initialized by a call to either \fBsigemptyset\fP() or \fBsigfillset\fP() before being passed to the functions \fBsigaddset\fP(), \fBsigdelset\fP(), and \fBsigismember\fP() or the additional glibc functions described below (\fBsigisemptyset\fP(), \fBsigandset\fP(), and \fBsigorset\fP()). The results are undefined if this is not done. .SH "VALOR DEVUELTO" \fBsigemptyset\fP(), \fBsigfillset\fP(), \fBsigaddset\fP() y \fBsigdelset\fP() devuelven 0 si acaban bien y \-1 en caso de error. .PP \fBsigismember\fP() devuelve 1 si \fInumse\fP es un miembro de \fIconjunto\fP, 0 si \fInumse\fP no lo es, y \-1 en caso de error. .PP On error, these functions set \fIerrno\fP to indicate the cause of the error. .SH ERRORES .TP \fBEINVAL\fP \fIsignum\fP no es una señal válida. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbw31 lb lb l l l. Interfaz Atributo Valor T{ \fBsigemptyset\fP(), \fBsigfillset\fP(), .br \fBsigaddset\fP(), \fBsigdelset\fP(), .br \fBsigismember\fP(), \fBsigisemptyset\fP(), .br \fBsigorset\fP(), \fBsigandset\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH "CONFORME A" POSIX.1\-2001, POSIX.1\-2008. .SH NOTAS .\" When creating a filled signal set, the glibc \fBsigfillset\fP() function does not include the two real\-time signals used internally by the NPTL threading implementation. See \fBnptl\fP(7) for details. .SS "Glibc extensions" If the \fB_GNU_SOURCE\fP feature test macro is defined, then \fI\fP exposes three other functions for manipulating signal sets: .PP .nf \fBint sigisemptyset(const sigset_t *\fP\fIset\fP\fB);\fP \fBint sigorset(sigset_t *\fP\fIdest\fP\fB, const sigset_t *\fP\fIleft\fP\fB,\fP \fB const sigset_t *\fP\fIright\fP\fB);\fP \fBint sigandset(sigset_t *\fP\fIdest\fP\fB, const sigset_t *\fP\fIleft\fP\fB,\fP \fB const sigset_t *\fP\fIright\fP\fB);\fP .fi .PP \fBsigisemptyset\fP() returns 1 if \fIset\fP contains no signals, and 0 otherwise. .PP \fBsigorset\fP() places the union of the sets \fIleft\fP and \fIright\fP in \fIdest\fP. \fBsigandset\fP() places the intersection of the sets \fIleft\fP and \fIright\fP in \fIdest\fP. Both functions return 0 on success, and \-1 on failure. .PP These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications. .SH "VÉASE TAMBIÉN" \fBsigaction\fP(2), \fBsigpending\fP(2), \fBsigprocmask\fP(2), \fBsigsuspend\fP(2) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García . Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE 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 .MT debian-l10n-spanish@lists.debian.org>. .ME .