dwww Home | Manual pages | Find package

sigwait(3)                 Library Functions Manual                 sigwait(3)

NOM
       sigwait - Attendre un signal

BIBLIOTHÈQUE
       Bibliothèque C standard (libc, -lc)

SYNOPSIS
       #include <signal.h>

       int sigwait(const sigset_t *restrict set, int *restrict sig);

   Exigences  de  macros  de  test de fonctionnalités pour la glibc (consulter
   feature_test_macros(7)) :

       sigwait():
           Since glibc 2.26:
               _POSIX_C_SOURCE >= 199506L
           glibc 2.25 and earlier:
               _POSIX_C_SOURCE

DESCRIPTION
       La fonction sigwait()  suspend l'exécution du thread  appelant  jusqu'à
       ce que l'un des signaux indiqués dans l'ensemble de signaux set soit en
       attente. La fonction accepte le signal (le supprime de la liste des si-
       gnaux en attente), et retourne le numéro du signal dans sig.

       L'action de sigwait()  est identique à celle de sigwaitinfo(2), excepté
       que :

       •  sigwait()  ne retourne que le numéro du signal et pas  la  structure
          siginfo_t décrivant le signal.

       •  Les valeurs de retour des deux fonctions sont différentes.

VALEUR RENVOYÉE
       Si  elle réussit, sigwait()  renvoie 0. Si elle échoue, elle renvoie un
       code d'erreur strictement positif (listé dans ERREURS).

ERREURS
       EINVAL set ne contient pas de numéro de signal valide.

ATTRIBUTS
       Pour une explication des termes utilisés dans cette section,  consulter
       attributes(7).

       ┌─────────────────────────────────────┬──────────────────────┬─────────┐
       │InterfaceAttributValeur  │
       ├─────────────────────────────────────┼──────────────────────┼─────────┤
       │sigwait()                            │ Sécurité des threads │ MT-Safe │
       └─────────────────────────────────────┴──────────────────────┴─────────┘

STANDARDS
       POSIX.1-2001, POSIX.1-2008.

NOTES
       sigwait()  est implémentée autour de sigtimedwait(2).

       The  glibc  implementation  of  sigwait()  silently ignores attempts to
       wait for the two real-time signals that are used internally by the NPTL
       threading implementation. See nptl(7)  for details.

EXEMPLES
       Consultez pthread_sigmask(3).

VOIR AUSSI
       sigaction(2),  signalfd(2),  sigpending(2),  sigsuspend(2),  sigwaitin-
       fo(2), sigsetops(3), signal(7)

TRADUCTION
       La traduction française de cette page de manuel a été créée par  Chris-
       tophe  Blaess  <https://www.blaess.fr/christophe/>, Stéphan Rafin <ste-
       phan.rafin@laposte.net>, Thierry Vignaud <tvignaud@mandriva.com>, Fran-
       çois  Micaux, Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Gué-
       rard <fevrier@tigreraye.org>, Jean-Luc  Coulon  (f5ibh)  <jean-luc.cou-
       lon@wanadoo.fr>,  Julien  Cristau <jcristau@debian.org>, Thomas Huriaux
       <thomas.huriaux@gmail.com>, Nicolas François  <nicolas.francois@centra-
       liens.net>,  Florentin  Duneau <fduneau@gmail.com>, Simon Paillard <si-
       mon.paillard@resel.enst-bretagne.fr>,   Denis   Barbier    <barbier@de-
       bian.org>,  David  Prévot  <david@tilapin.org>,  Cédric Boutillier <ce-
       dric.boutillier@gmail.com> et Frédéric Hantrais <fhantrais@gmail.com>

       Cette traduction est une documentation libre ; veuillez vous reporter à
       la        GNU        General       Public       License       version 3
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ concernant  les  conditions
       de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE.

       Si  vous découvrez un bogue dans la traduction de cette page de manuel,
       veuillez envoyer un message à ⟨debian-l10n-french@lists.debian.org⟩.

Pages du manuel de Linux 6.03   5 février 2023                      sigwait(3)

Generated by dwww version 1.15 on Sat Jun 29 01:46:17 CEST 2024.