.\" -*- 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 décembre 2020" Linux "Manuel du programmeur Linux" .SH NOM sigsetops, sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- Opérations sur les ensembles de signaux POSIX .SH SYNOPSIS \fB#include \fP .PP \fBint sigemptyset(sigset_t *\fP\fIset\fP\fB);\fP .PP \fBint sigfillset(sigset_t *\fP\fIset\fP\fB);\fP .PP \fBint sigaddset(sigset_t *\fP\fIset\fP\fB, int \fP\fIsignum\fP\fB);\fP .PP \fBint sigdelset(sigset_t *\fP\fIset\fP\fB, int \fP\fIsignum\fP\fB);\fP .PP \fBint sigismember(const sigset_t *\fP\fIset\fP\fB, int \fP\fIsignum\fP\fB);\fP .PP .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \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 DESCRIPTION Ces fonctions permettent la manipulation des ensembles de signaux POSIX. .PP \fBsigemptyset\fP() vide l'ensemble de signaux fourni par \fIset\fP, tous les signaux étant exclus de cet ensemble. .PP \fBsigfillset\fP() remplit totalement l'ensemble de signaux \fIset\fP en incluant tous les signaux. .PP \fBsigaddset\fP() et \fBsigdelset\fP() ajoutent ou suppriment respectivement le signal \fIsignum\fP de l'ensemble \fIset\fP. .PP \fBsigismember\fP() teste si le signal \fIsignum\fP est membre de l'ensemble \fIset\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 "VALEUR RENVOYÉE" \fBsigemptyset\fP(), \fBsigfillset\fP(), \fBsigaddset\fP() et \fBsigdelset\fP() renvoient 0 s'il réussissent, et \-1 s'ils échouent. .PP \fBsigismember\fP() returns 1 if \fIsignum\fP is a member of \fIset\fP, 0 if \fIsignum\fP is not a member, and \-1 on error. .PP On error, these functions set \fIerrno\fP to indicate the cause of the error. .SH ERREURS .TP \fBEINVAL\fP \fIsignum\fP is not a valid signal. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbw31 lb lb l l l. Interface Attribut Valeur T{ \fBsigemptyset\fP(), \fBsigfillset\fP(), .br \fBsigaddset\fP(), \fBsigdelset\fP(), .br \fBsigismember\fP(), \fBsigisemptyset\fP(), .br \fBsigorset\fP(), \fBsigandset\fP() T} Sécurité des threads MT\-Safe .TE .SH CONFORMITÉ POSIX.1\-2001, POSIX.1\-2008. .SH NOTES .\" 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" Si la macro de test de fonctionnalités \fB_GNU_SOURCE\fP est définie, \fI\fP expose trois autres fonctions pour la manipulation des ensembles de signaux\ : .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() renvoie 1 si \fIset\fP ne contient pas de signaux et 0 autrement. .PP \fBsigorset\fP() place l'union des ensembles \fIleft\fP et \fIright\fP dans \fIdest\fP. \fBsigandset\fP() place l'intersection des ensembles \fIleft\fP et \fIright\fP dans \fIdest\fP. Les deux fonctions renvoient 0 si elles réussissent et \-1 si elles échouent. .PP Ces fonctions ne sont pas standards (quelques autres systèmes ont des fonctions similaires) et ne devraient pas être utilisées dans des applications conçues pour être portables. .SH "VOIR AUSSI" \fBsigaction\fP(2), \fBsigpending\fP(2), \fBsigprocmask\fP(2), \fBsigsuspend\fP(2) .SH COLOPHON Cette page fait partie de la publication\ 5.10 du projet \fIman\-pages\fP Linux. Une description du projet et des instructions pour signaler des anomalies et la dernière version de cette page peuvent être trouvées à l'adresse \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot , Cédric Boutillier et Frédéric Hantrais . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .