# French translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Christophe Blaess , 1996-2003. # Stéphan Rafin , 2002. # Thierry Vignaud , 1999, 2002. # François Micaux, 2002. # Alain Portal , 2003-2008. # Jean-Philippe Guérard , 2005-2006. # Jean-Luc Coulon (f5ibh) , 2006-2007. # Julien Cristau , 2006-2007. # Thomas Huriaux , 2006-2008. # Nicolas François , 2006-2008. # Florentin Duneau , 2006-2010. # Simon Paillard , 2006. # Denis Barbier , 2006, 2010. # David Prévot , 2010, 2012, 2013. # Cédric Boutillier , 2011, 2012, 2013. # Frédéric Hantrais , 2013, 2014. # Jean-Philippe MENGUAL , 2022-2024. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.22.0\n" "POT-Creation-Date: 2026-06-05 06:43+0200\n" "PO-Revision-Date: 2025-06-10 19:03+0200\n" "Last-Translator: Jean-Philippe MENGUAL \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Lokalize 22.12.3\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "signalfd" msgstr "signalfd" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 février 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "Pages du manuel de Linux 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NOM" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "signalfd - create a file descriptor for accepting signals" msgstr "signalfd - Créer un descripteur de fichier pour accepter des signaux" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTHÈQUE" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "Bibliothèque C standard (I,\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "SYNOPSIS" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Esys/signalfd.hE>\n" msgstr "B<#include Esys/signalfd.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, const sigset_t *>IB<, int >IB<);>\n" msgstr "BIB<, const sigset_t *>IB<, int >IB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "DESCRIPTION" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() creates a file descriptor that can be used to accept signals " "targeted at the caller. This provides an alternative to the use of a signal " "handler or B(2), and has the advantage that the file descriptor " "may be monitored by B(2), B(2) ou B(7)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument specifies the set of signals that the caller wishes to " "accept via the file descriptor. This argument is a signal set whose " "contents can be initialized using the macros described in B(3). " "Normally, the set of signals to be received via the file descriptor should " "be blocked using B(2), to prevent the signals being handled " "according to their default dispositions. It is not possible to receive " "B or B signals via a signalfd file descriptor; these " "signals are silently ignored if specified in I." msgstr "" "Le paramètre I spécifie l'ensemble des signaux que l'appelant veut " "accepter par le descripteur de fichier. Ce paramètre est un ensemble de " "signaux dont le contenu peut être initialisé en utilisant les macros " "décrites dans B(3). Normalement, l'ensemble des signaux reçus par " "le descripteur de fichier devrait être bloqué en utilisant B(2) " "pour éviter que les signaux soient pris en charge par les gestionnaires par " "défaut. Il n'est pas possible de recevoir les signaux B ou " "B par un descripteur de fichier signalfd ; ces signaux sont " "silencieusement ignorés s'ils sont spécifiés dans I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I argument is -1, then the call creates a new file descriptor and " "associates the signal set specified in I with that file descriptor. " "If I is not -1, then it must specify a valid existing signalfd file " "descriptor, and I is used to replace the signal set associated with " "that file descriptor." msgstr "" "Si le paramètre I vaut B<-1>, alors l'appel crée un nouveau descripteur " "de fichier et y associe le signal défini dans I. Si I ne vaut pas " "B<-1> alors il doit indiquer un descripteur de fichier signalfd existant " "valable, et I est utilisé pour remplacer l'ensemble des signaux " "associés avec ce descripteur." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Starting with Linux 2.6.27, the following values may be bitwise ORed in " "I to change the behavior of B():" msgstr "" "À partir de Linux 2.6.27, les valeurs suivantes peuvent être incluses avec " "un OU binaire dans I pour changer le comportement de B() :" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Set the B file status flag on the open file description (see " "B(2)) referred to by the new file descriptor. Using this flag saves " "extra calls to B(2) to achieve the same result." msgstr "" "Placer l'attribut d'état de fichier B sur la description du " "fichier ouvert référencée par le nouveau descripteur de fichier (consulter " "B(2)). Utiliser cet attribut économise des appels supplémentaires à " "B(2) pour obtenir le même résultat." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Set the close-on-exec (B) flag on the new file descriptor. See " "the description of the B flag in B(2) for reasons why this " "may be useful." msgstr "" "Placer l'attribut « close-on-exec » (B) sur le nouveau " "descripteur de fichier. Consultez la description de l'attribut B " "dans B(2) pour savoir pourquoi cela peut être utile." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Up to Linux 2.6.26, the I argument is unused, and must be specified " "as zero." msgstr "" "Jusqu'à Linux 2.6.26, le paramètre I n'est pas utilisé et doit valoir " "zéro." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns a file descriptor that supports the following " "operations:" msgstr "" "B() renvoie un descripteur de fichier qui gère les opérations " "suivantes :" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B(2)" msgstr "B(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If one or more of the signals specified in I is pending for the " "process, then the buffer supplied to B(2) is used to return one or " "more I structures (see below) that describe the signals. " "The B(2) returns information for as many signals as are pending and " "will fit in the supplied buffer. The buffer must be at least " "I bytes. The return value of the " "B(2) is the total number of bytes read." msgstr "" "Si un (ou plus) des signaux spécifiés dans I est en attente pour le " "processus, alors le tampon fourni à B(2) est utilisé pour renvoyer une " "structure (ou plus) de type I (voir ci-dessous) qui décrit " "les signaux. B(2) renvoie les informations pour tous les signaux qui " "sont en attente et qui tiennent dans le tampon fourni. Le tampon doit avoir " "une taille d'au moins I octets. La valeur " "de retour de B(2) est égale au nombre total d'octets lus." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As a consequence of the B(2), the signals are consumed, so that they " "are no longer pending for the process (i.e., will not be caught by signal " "handlers, and cannot be accepted using B(2))." msgstr "" "En conséquence du B(2), les signaux sont consommés, de telle sorte " "qu'ils ne seront plus en attente pour le processus (c'est-à-dire qu'ils ne " "seront plus attrapés par les gestionnaires de signaux, et ne seront plus " "acceptés par B(2))." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If none of the signals in I is pending for the process, then the " "B(2) either blocks until one of the signals in I is generated " "for the process, or fails with the error B if the file descriptor " "has been made nonblocking." msgstr "" "Si aucun des signaux de I ne sont en attente pour le processus, " "B(2) bloquera jusqu'à ce qu'un des signaux de I soit généré pour " "le processus, ou échouera avec l'erreur B si le descripteur de " "fichier est en mode non bloquant." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B(2)" msgstr "B(2)" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B(2)" #. type: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(and similar)" msgstr "(et similaire)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptor is readable (the B(2) ; l'attribut B de B(2)) si un signal ou plus de " "I est en attente pour le processus." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The signalfd file descriptor also supports the other file-descriptor " "multiplexing APIs: B(2), B(2), and B(7)." msgstr "" "Le descripteur de fichier signalfd gère également les autres interfaces de " "multiplexage de descripteurs de fichier : B(2), B(2) et " "B(7)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B(2)" msgstr "B(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When the file descriptor is no longer required it should be closed. When " "all file descriptors associated with the same signalfd object have been " "closed, the resources for object are freed by the kernel." msgstr "" "Quand le descripteur de fichier n'est plus nécessaire il doit être fermé. " "Quand tous les descripteurs de fichier associés au même objet signalfd ont " "été fermés, les ressources pour cet objet sont libérées par le noyau." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "The signalfd_siginfo structure" msgstr "La structure signalfd_siginfo" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The format of the I structure(s) returned by B(2)s " "from a signalfd file descriptor is as follows:" msgstr "" "Les structures I renvoyées par B(2) sur un " "descripteur de fichier signalfd sont au format suivant :" #. ssi_trapno is unused on most arches #. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "struct signalfd_siginfo {\n" " uint32_t ssi_signo; /* Signal number */\n" " int32_t ssi_errno; /* Error number (unused) */\n" " int32_t ssi_code; /* Signal code */\n" " uint32_t ssi_pid; /* PID of sender */\n" " uint32_t ssi_uid; /* Real UID of sender */\n" " int32_t ssi_fd; /* File descriptor (SIGIO) */\n" " uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" " uint32_t ssi_band; /* Band event (SIGIO) */\n" " uint32_t ssi_overrun; /* POSIX timer overrun count */\n" " uint32_t ssi_trapno; /* Trap number that caused signal */\n" " int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" " int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" " uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" " uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" " uint64_t ssi_stime; /* System CPU time consumed\n" " (SIGCHLD) */\n" " uint64_t ssi_addr; /* Address that generated signal\n" " (for hardware-generated signals) */\n" " uint16_t ssi_addr_lsb; /* Least significant bit of address\n" " (SIGBUS; since Linux 2.6.37) */\n" " uint8_t pad[\\f[I]X\\fR]; /* Pad size to 128 bytes (allow for\n" " additional fields in the future) */\n" "};\n" msgstr "" "struct signalfd_siginfo {\n" " uint32_t ssi_signo; /* Numéro de signal */\n" " int32_t ssi_errno; /* Numéro d'erreur (pas utilisé) */\n" " int32_t ssi_code; /* Code du signal */\n" " uint32_t ssi_pid; /* PID de l'émetteur */\n" " uint32_t ssi_uid; /* UID réel de l'émetteur */\n" " int32_t ssi_fd; /* Descripteur de fichier (SIGIO) */\n" " uint32_t ssi_tid; /* Identifiant de la temporisation\n" " du noyau (timers POSIX) */\n" " uint32_t ssi_band; /* Événement de bande (SIGIO) */\n" " uint32_t ssi_overrun; /* Compte des dépassements de la\n" " temporisation POSIX */\n" " uint32_t ssi_trapno; /* Numéro de trappe ayant causé le signal */\n" " int32_t ssi_status; /* Code de sortie ou signal (SIGCHLD) */\n" " int32_t ssi_int; /* Entier envoyé par sigqueue(3) */\n" " uint64_t ssi_ptr /* Pointeur envoyé par sigqueue(3) */\n" " uint64_t ssi_utime; /* Temps CPU utilisateur consommé (SIGCHLD) */\n" " uint64_t ssi_stime; /* Temps CPU système consommé (SIGCHLD) */\n" " uint64_t ssi_addr; /* Adresse qui a généré le signal\n" " (pour les signaux issu du matériel) */\n" " uint16_t ssi_addr_lsb; /* Le bit le plus faible de l'adresse\n" " (SIGBUS ; depuis Linux 2.6.37) */\n" " uint8_t pad[\\f[I]X\\fR]; /* Remplissage jusqu'à 128 octets\n" " (espace prévu pour des champs\n" " supplémentaires futurs) */\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each of the fields in this structure is analogous to the similarly named " "field in the I structure. The I structure is " "described in B(2). Not all fields in the returned " "I structure will be valid for a specific signal; the set " "of valid fields can be determined from the value returned in the I " "field. This field is the analog of the I I field; see " "B(2) for details." msgstr "" "Chacun des champs de cette structure est analogue aux champs de noms " "similaires d'une structure I. La structure I est " "décrite dans B(2). Tous les champs de la structure " "I renvoyée ne seront pas valables pour un signal donné ; " "l'ensemble des champs valables peut être déterminé grâce au champ " "I de la valeur de retour. Ce champ est analogue au champ " "I de I ; consultez B(2) pour plus de détails." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "fork(2) semantics" msgstr "Sémantique de B(2)" # NOTE: s/from/on/ Patch prepared # NOTE: queued to? => queued for? Patch prepared #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After a B(2), the child inherits a copy of the signalfd file " "descriptor. A B(2) from the file descriptor in the child will return " "information about signals queued to the child." msgstr "" "Après un B(2), l'enfant hérite d'une copie du descripteur de fichier " "signalfd. Un appel à B(2) sur le descripteur de fichier depuis " "l'enfant renverra des informations sur les signaux en attente pour l'enfant." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Semantics of file descriptor passing" msgstr "Sémantique pour passer un descripteur de fichier" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As with other file descriptors, signalfd file descriptors can be passed to " "another process via a UNIX domain socket (see B(7)). In the receiving " "process, a B(2) from the received file descriptor will return " "information about signals queued to that process." msgstr "" "Comme avec d'autres descripteurs de fichier, ceux de signalfd peuvent être " "passés à un autre processus à l'aide d'un socket de domaine UNIX (voir " "B(7)). Dans le processus récepteur, un B(2) depuis le " "descripteur de fichier reçu renverra des informations sur les signaux en " "attente pour ce processus." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "execve(2) semantics" msgstr "Sémantique de B(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Just like any other file descriptor, a signalfd file descriptor remains open " "across an B(2), unless it has been marked for close-on-exec (see " "B(2)). Any signals that were available for reading before the " "B(2) remain available to the newly loaded program. (This is " "analogous to traditional signal semantics, where a blocked signal that is " "pending remains pending across an B(2).)" msgstr "" "Comme tout descripteur de fichier, un descripteur de fichier signalfd reste " "ouvert au travers d'un B(2), à moins qu'il ait été marqué comme " "« close-on-exec » (consultez B(2)). Tout signal qui était disponible " "en lecture avant un B(2) reste disponible pour le nouveau programme. " "C'est analogue à la sémantique traditionnelle des signaux, pour laquelle un " "signal bloqué qui est en attente reste en attente au travers d'un " "B(2)." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread semantics" msgstr "Sémantique des threads" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The semantics of signalfd file descriptors in a multithreaded program mirror " "the standard semantics for signals. In other words, when a thread reads " "from a signalfd file descriptor, it will read the signals that are directed " "to the thread itself and the signals that are directed to the process (i.e., " "the entire thread group). (A thread will not be able to read signals that " "are directed to other threads in the process.)" msgstr "" "La sémantique des descripteurs de fichier signalfd dans un programme " "multithreadé copie la sémantique standard des signaux. En d'autres termes, " "quand un thread lit un descripteur de fichier signalfd, il lira les signaux " "qui sont envoyés pour le thread lui-même ou pour le processus (c'est-à-dire " "l'ensemble du groupe de threads). Un thread ne sera pas capable de lire les " "signaux qui sont envoyés aux autres threads du processus." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "epoll(7) semantics" msgstr "Sémantique d'B(7)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If a process adds (via B(2)) a signalfd file descriptor to an " "B(7) instance, then B(2) returns events only for " "signals sent to that process. In particular, if the process then uses " "B(2) to create a child process, then the child will be able to " "B(2) signals that are sent to it using the signalfd file descriptor, " "but B(2) will B indicate that the signalfd file descriptor " "is ready. In this scenario, a possible workaround is that after the " "B(2), the child process can close the signalfd file descriptor that it " "inherited from the parent process and then create another signalfd file " "descriptor and add it to the epoll instance. Alternatively, the parent and " "the child could delay creating their (separate) signalfd file descriptors " "and adding them to the epoll instance until after the call to B(2)." msgstr "" "Si un processus ajoute (à l'aide d'B(2)) un descripteur de " "fichier signalfd à une instance B(7), B(2) ne renvoie des " "événements que pour des signaux envoyés à ce processus. En particulier, si " "le processus utilise alors B(2) pour créer son enfant, celui-ci pourra " "lire (B(2)) des signaux qui lui sont envoyés en utilisant le " "descripteur de fichier signalfd, mais B(2) B " "que le descripteur de fichier signalfd est prêt. Dans ce scénario, un " "coutournement possible est qu'après le B(2), le processus enfant " "puisse fermer le descripteur de fichier signalfd dont il hérite du parent et " "puis créer un autre descripteur de fichier signalfd et l'ajouter à " "l'instance epoll. Autrement, le parent et l'enfant pourraient retarder la " "création de leurs descripteurs de fichier signalfd (individuels) et les " "ajouter à l'instance epoll jusqu'à la fin de l'appel B(2)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "VALEUR RENVOYÉE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns a signalfd file descriptor; this is " "either a new file descriptor (if I was -1), or I if I was a " "valid signalfd file descriptor. On error, -1 is returned and I is " "set to indicate the error." msgstr "" "S'il réussit, B() renvoie un descripteur de fichier signalfd ; il " "s'agit soit d'un nouveau descripteur de fichier (si I valait B<-1>), ou " "I si I était un descripteur de fichier signalfd valable. En cas " "d'erreur, il renvoie B<-1> et I contient le code d'erreur." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "ERREURS" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The I file descriptor is not a valid file descriptor." msgstr "" "Le descripteur de fichier I n'est pas un descripteur de fichier valable." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. or, the #. .I sizemask #. argument is not equal to #. .IR sizeof(sigset_t) ; #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not a valid signalfd file descriptor." msgstr "I n'est pas un descripteur de fichier signalfd valable." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is invalid; or, in Linux 2.6.26 or earlier, I is nonzero." msgstr "" "I n'est pas correct ; ou, pour les versions de Linux 2.6.26 ou " "antérieures, I n'est pas nul." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The per-process limit on the number of open file descriptors has been " "reached." msgstr "" "La limite du nombre de descripteurs de fichiers par processus a été atteinte." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The system-wide limit on the total number of open files has been reached." msgstr "" "La limite du nombre total de fichiers ouverts pour le système entier a été " "atteinte." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Could not mount (internal) anonymous inode device." msgstr "Impossible de monter (en interne) le périphérique anonyme d'inœud." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "There was insufficient memory to create a new signalfd file descriptor." msgstr "Pas assez de mémoire pour créer le descripteur de fichier signalfd." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "VERSIONS" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "C library/kernel differences" msgstr "Différences entre bibliothèque C et noyau" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The underlying Linux system call requires an additional argument, I, which specifies the size of the I argument. The glibc " "B() wrapper function does not include this argument, since it " "provides the required value for the underlying system call." msgstr "" "L'appel système Linux sous-jacent nécessite un paramètre supplémentaire, " "I, qui spécifie la taille du paramètre I. La fonction " "enveloppe B() de la glibc n'a pas ce paramètre, puisqu'elle " "fournit ce paramètre à l'appel système sous-jacent." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "There are two underlying Linux system calls: B() and the more " "recent B(). The former system call does not implement a I " "argument. The latter system call implements the I values described " "above. Starting with glibc 2.9, the B() wrapper function will " "use B() where it is available." msgstr "" "Il y a deux appels système sous-jacents : B() et B(), " "qui est plus récent. Le premier appel système n'implémente pas de paramètre " "I. Le dernier appel système implémente les valeurs de I " "décrites ci-dessous. À partir de la glibc 2.9, la fonction enveloppe " "B() utilisera B() quand il est disponible." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "NORMES" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "Linux." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "HISTORIQUE" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. signalfd() is in glibc 2.7, but reportedly does not build #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 2.6.22, glibc 2.8." msgstr "Linux 2.6.22, glibc 2.8." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 2.6.27." msgstr "Linux 2.6.27." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "NOTES" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A process can create multiple signalfd file descriptors. This makes it " "possible to accept different signals on different file descriptors. (This " "may be useful if monitoring the file descriptors using B(2), B(2) ou B(7) : l'arrivée de différents " "signaux rendra différents descripteurs de fichier disponibles). Si un signal " "apparaît dans le I de plusieurs descripteurs de fichier, un signal " "reçu pourra être lu (une seule fois) depuis n'importe lequel des " "descripteurs." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Attempts to include B and B in I are silently " "ignored." msgstr "" "Les tentatives pour inclure B et B dans I sont " "ignorées silencieusement." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The signal mask employed by a signalfd file descriptor can be viewed via the " "entry for the corresponding file descriptor in the process's IpidI directory. See B(5) for further details." msgstr "" "Le masque de signal utilisé par le descripteur de fichier signalfd peut être " "visualisé à l'aide de l'entrée de descripteur de fichier correspondante du " "répertoire IpidI du processus. Consultez B(5) pour de " "plus amples détails." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Limitations" msgstr "Limites" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The signalfd mechanism can't be used to receive signals that are " "synchronously generated, such as the B signal that results from " "accessing an invalid memory address or the B signal that results " "from an arithmetic error. Such signals can be caught only via signal " "handler." msgstr "" "Le mécanisme signalfd ne peut pas être utilisé pour recevoir des signaux " "générés de manière synchrone, tel que le signal B issu d'un accès " "non valable à l'adresse de mémoire ou le signal B qui provient d'une " "erreur arithmétique. De tels signaux ne peuvent être récupérés que par un " "gestionnaire de signal." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As described above, in normal usage one blocks the signals that will be " "accepted via B(). If spawning a child process to execute a helper " "program (that does not need the signalfd file descriptor), then, after the " "call to B(2), you will normally want to unblock those signals before " "calling B(2), so that the helper program can see any signals that it " "expects to see. Be aware, however, that this won't be possible in the case " "of a helper program spawned behind the scenes by any library function that " "the program may call. In such cases, one must fall back to using a " "traditional signal handler that writes to a file descriptor monitored by " "B(2), B(2) ou B(7)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "BOGUES" #. The fix also was put into Linux 2.6.24.5 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Before Linux 2.6.25, the I and I fields are not filled in " "with the data accompanying a signal sent by B(3)." msgstr "" "Avant Linux 2.6.25, les champs I et I n'étaient pas " "renseignés avec les données accompagnant un signal envoyé par B(3)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EXEMPLES" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below accepts the signals B and B via a " "signalfd file descriptor. The program terminates after accepting a " "B signal. The following shell session demonstrates the use of the " "program:" msgstr "" "Le programme ci-dessous accèpte les signaux B et B en " "utilisant un descripteur de fichier signalfd. Le programme se termine après " "avoir accepté le signal B. La session shell suivante montre " "l'utilisation du programme :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "$B< ./signalfd_demo>\n" "B<\\[ha]C> # Control-C generates SIGINT\n" "Got SIGINT\n" "B<\\[ha]C>\n" "Got SIGINT\n" "B<\\[ha]\\[rs]> # Control-\\[rs] generates SIGQUIT\n" "Got SIGQUIT\n" "$\n" msgstr "" "$B< ./signalfd_demo>\n" "B<\\[ha]C> # Contrôle-C génère un SIGINT\n" "Got SIGINT\n" "B<\\[ha]C>\n" "Got SIGINT\n" "B<\\[ha]\\[rs]> # Contrôle-\\[rs] génère un SIGQUIT\n" "Got SIGQUIT\n" "$\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "Source du programme" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, fuzzy, no-wrap #| msgid "" #| "#include Eerr.hE\n" #| "#include Esignal.hE\n" #| "#include Estdio.hE\n" #| "#include Estdlib.hE\n" #| "#include Esys/signalfd.hE\n" #| "#include Esys/types.hE\n" #| "#include Eunistd.hE\n" #| "\\&\n" #| "int\n" #| "main(void)\n" #| "{\n" #| " int sfd;\n" #| " ssize_t s;\n" #| " sigset_t mask;\n" #| " struct signalfd_siginfo fdsi;\n" #| "\\&\n" #| " sigemptyset(&mask);\n" #| " sigaddset(&mask, SIGINT);\n" #| " sigaddset(&mask, SIGQUIT);\n" #| "\\&\n" #| " /* Block signals so that they aren\\[aq]t handled\n" #| " according to their default dispositions. */\n" #| "\\&\n" #| " if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" #| " err(EXIT_FAILURE, \"sigprocmask\");\n" #| "\\&\n" #| " sfd = signalfd(-1, &mask, 0);\n" #| " if (sfd == -1)\n" #| " err(EXIT_FAILURE, \"signalfd\");\n" #| "\\&\n" #| " for (;;) {\n" #| " s = read(sfd, &fdsi, sizeof(fdsi));\n" #| " if (s != sizeof(fdsi))\n" #| " err(EXIT_FAILURE, \"read\");\n" #| "\\&\n" #| " if (fdsi.ssi_signo == SIGINT) {\n" #| " printf(\"Got SIGINT\\[rs]n\");\n" #| " } else if (fdsi.ssi_signo == SIGQUIT) {\n" #| " printf(\"Got SIGQUIT\\[rs]n\");\n" #| " exit(EXIT_SUCCESS);\n" #| " } else {\n" #| " printf(\"Read unexpected signal\\[rs]n\");\n" #| " }\n" #| " }\n" #| "}\n" msgid "" "#include Eerr.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/signalfd.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int sfd;\n" " ssize_t s;\n" " sigset_t mask;\n" " struct signalfd_siginfo fdsi;\n" "\\&\n" " sigemptyset(&mask);\n" " sigaddset(&mask, SIGINT);\n" " sigaddset(&mask, SIGQUIT);\n" "\\&\n" " /* Block signals so that they aren\\[aq]t handled\n" " according to their default dispositions. */\n" "\\&\n" " if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" " err(EXIT_FAILURE, \"sigprocmask\");\n" "\\&\n" " sfd = signalfd(-1, &mask, 0);\n" " if (sfd == -1)\n" " err(EXIT_FAILURE, \"signalfd\");\n" "\\&\n" " for (;;) {\n" " s = read(sfd, &fdsi, sizeof(fdsi));\n" " if (s != sizeof(fdsi))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " if (fdsi.ssi_signo == SIGINT) {\n" " printf(\"Got SIGINT\\[rs]n\");\n" " } else if (fdsi.ssi_signo == SIGQUIT) {\n" " printf(\"Got SIGQUIT\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" " } else {\n" " printf(\"Read unexpected signal\\[rs]n\");\n" " }\n" " }\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/signalfd.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int sfd;\n" " ssize_t s;\n" " sigset_t mask;\n" " struct signalfd_siginfo fdsi;\n" "\\&\n" " sigemptyset(&mask);\n" " sigaddset(&mask, SIGINT);\n" " sigaddset(&mask, SIGQUIT);\n" "\\&\n" " /* Bloquer les signaux pour qu'ils ne soient plus gérés\n" " selon leur disposition par défaut */\n" "\\&\n" " if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" " err(EXIT_FAILURE, \"sigprocmask\");\n" "\\&\n" " sfd = signalfd(-1, &mask, 0);\n" " if (sfd == -1)\n" " err(EXIT_FAILURE, \"signalfd\");\n" "\\&\n" " for (;;) {\n" " s = read(sfd, &fdsi, sizeof(fdsi));\n" " if (s != sizeof(fdsi))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " if (fdsi.ssi_signo == SIGINT) {\n" " printf(\"Got SIGINT\\[rs]n\");\n" " } else if (fdsi.ssi_signo == SIGQUIT) {\n" " printf(\"Got SIGQUIT\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" " } else {\n" " printf(\"Lecture d'un signal imprévu\\[rs]n\");\n" " }\n" " }\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "VOIR AUSSI" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(2), B(2), B(2), B(2), B(2), " "B(2), B(2), B(2), B(3), " "B(3), B(7), B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 juin 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "Pages du manuel de Linux 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "Bibliothèque C standard (I, I<-lc>)" #. ssi_trapno is unused on most arches #. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "struct signalfd_siginfo {\n" " uint32_t ssi_signo; /* Signal number */\n" " int32_t ssi_errno; /* Error number (unused) */\n" " int32_t ssi_code; /* Signal code */\n" " uint32_t ssi_pid; /* PID of sender */\n" " uint32_t ssi_uid; /* Real UID of sender */\n" " int32_t ssi_fd; /* File descriptor (SIGIO) */\n" " uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" " uint32_t ssi_band; /* Band event (SIGIO) */\n" " uint32_t ssi_overrun; /* POSIX timer overrun count */\n" " uint32_t ssi_trapno; /* Trap number that caused signal */\n" " int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" " int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" " uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" " uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" " uint64_t ssi_stime; /* System CPU time consumed\n" " (SIGCHLD) */\n" " uint64_t ssi_addr; /* Address that generated signal\n" " (for hardware-generated signals) */\n" " uint16_t ssi_addr_lsb; /* Least significant bit of address\n" " (SIGBUS; since Linux 2.6.37) */\n" " uint8_t pad[I]; /* Pad size to 128 bytes (allow for\n" " additional fields in the future) */\n" "};\n" msgstr "" "struct signalfd_siginfo {\n" " uint32_t ssi_signo; /* Numéro de signal */\n" " int32_t ssi_errno; /* Numéro d'erreur (pas utilisé) */\n" " int32_t ssi_code; /* Code du signal */\n" " uint32_t ssi_pid; /* PID de l'émetteur */\n" " uint32_t ssi_uid; /* UID réel de l'émetteur */\n" " int32_t ssi_fd; /* Descripteur de fichier (SIGIO) */\n" " uint32_t ssi_tid; /* Identifiant de la temporisation\n" " du noyau (timers POSIX) */\n" " uint32_t ssi_band; /* Événement de bande (SIGIO) */\n" " uint32_t ssi_overrun; /* Compte des dépassements de la\n" " temporisation POSIX */\n" " uint32_t ssi_trapno; /* Numéro de trappe ayant causé le signal */\n" " int32_t ssi_status; /* Code de sortie ou signal (SIGCHLD) */\n" " int32_t ssi_int; /* Entier envoyé par sigqueue(3) */\n" " uint64_t ssi_ptr /* Pointeur envoyé par sigqueue(3) */\n" " uint64_t ssi_utime; /* Temps CPU utilisateur consommé (SIGCHLD) */\n" " uint64_t ssi_stime; /* Temps CPU système consommé (SIGCHLD) */\n" " uint64_t ssi_addr; /* Adresse qui a généré le signal\n" " (pour les signaux issu du matériel) */\n" " uint16_t ssi_addr_lsb; /* Le bit le plus faible de l'adresse\n" " (SIGBUS ; depuis Linux 2.6.37) */\n" " uint8_t pad[I]; /* Remplissage jusqu'à 128 octets\n" " (espace prévu pour des champs\n" " supplémentaires futurs) */\n" "};\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Eerr.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/signalfd.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int sfd;\n" " ssize_t s;\n" " sigset_t mask;\n" " struct signalfd_siginfo fdsi;\n" "\\&\n" " sigemptyset(&mask);\n" " sigaddset(&mask, SIGINT);\n" " sigaddset(&mask, SIGQUIT);\n" "\\&\n" " /* Block signals so that they aren\\[aq]t handled\n" " according to their default dispositions. */\n" "\\&\n" " if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" " err(EXIT_FAILURE, \"sigprocmask\");\n" "\\&\n" " sfd = signalfd(-1, &mask, 0);\n" " if (sfd == -1)\n" " err(EXIT_FAILURE, \"signalfd\");\n" "\\&\n" " for (;;) {\n" " s = read(sfd, &fdsi, sizeof(fdsi));\n" " if (s != sizeof(fdsi))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " if (fdsi.ssi_signo == SIGINT) {\n" " printf(\"Got SIGINT\\[rs]n\");\n" " } else if (fdsi.ssi_signo == SIGQUIT) {\n" " printf(\"Got SIGQUIT\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" " } else {\n" " printf(\"Read unexpected signal\\[rs]n\");\n" " }\n" " }\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/signalfd.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int sfd;\n" " ssize_t s;\n" " sigset_t mask;\n" " struct signalfd_siginfo fdsi;\n" "\\&\n" " sigemptyset(&mask);\n" " sigaddset(&mask, SIGINT);\n" " sigaddset(&mask, SIGQUIT);\n" "\\&\n" " /* Bloquer les signaux pour qu'ils ne soient plus gérés\n" " selon leur disposition par défaut */\n" "\\&\n" " if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" " err(EXIT_FAILURE, \"sigprocmask\");\n" "\\&\n" " sfd = signalfd(-1, &mask, 0);\n" " if (sfd == -1)\n" " err(EXIT_FAILURE, \"signalfd\");\n" "\\&\n" " for (;;) {\n" " s = read(sfd, &fdsi, sizeof(fdsi));\n" " if (s != sizeof(fdsi))\n" " err(EXIT_FAILURE, \"read\");\n" "\\&\n" " if (fdsi.ssi_signo == SIGINT) {\n" " printf(\"Got SIGINT\\[rs]n\");\n" " } else if (fdsi.ssi_signo == SIGQUIT) {\n" " printf(\"Got SIGQUIT\\[rs]n\");\n" " exit(EXIT_SUCCESS);\n" " } else {\n" " printf(\"Lecture d'un signal imprévu\\[rs]n\");\n" " }\n" " }\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 juillet 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Pages du manuel de Linux 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "Pages du manuel de Linux 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Pages du manuel de Linux (non publiées)"