# 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, 2013. # Denis Barbier , 2006,2010. # David Prévot , 2010, 2013, 2014. # Cédric Boutillier , 2011, 2012, 2013. # Frédéric Hantrais , 2013, 2014. # Jean-Philippe MENGUAL , 2021-2023. # Jean-Pierre Giraud , 2023-2024. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.21.0\n" "POT-Creation-Date: 2026-06-05 06:42+0200\n" "PO-Revision-Date: 2024-03-14 11:18+0100\n" "Last-Translator: Jean-Pierre Giraud \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 "select" msgstr "select" #. 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 "" "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchronous I/O " "multiplexing" msgstr "" "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - Multiplexage " "d'entrées-sorties synchrones" #. 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/select.hE>\n" msgstr "B<#include Esys/select.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, fuzzy, no-wrap #| msgid "B /* ... */ B\n" msgid "B /* .\\|.\\|.\\& */ B\n" msgstr "B /* ... */ B\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<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< struct timeval *_Nullable restrict >IB<);>\n" msgstr "" "BIB<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< struct timeval *_Nullable restrict >IB<);>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, fuzzy, no-wrap #| msgid "" #| "BIB<, fd_set *>IB<);>\n" #| "BIB<, fd_set *>IB<);>\n" #| "BIB<, fd_set *>IB<);>\n" #| "BIB<);>\n" msgid "" "BIB<, fd_set *>IB<);>\n" "BIB<, const fd_set *>IB<);>\n" "BIB<, fd_set *>IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, fd_set *>IB<);>\n" "BIB<, fd_set *>IB<);>\n" "BIB<, fd_set *>IB<);>\n" "BIB<);>\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<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< const struct timespec *_Nullable restrict >IB<,>\n" "B< const sigset_t *_Nullable restrict >IB<);>\n" msgstr "" "BIB<, fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< fd_set *_Nullable restrict >IB<,>\n" "B< const struct timespec *_Nullable restrict >IB<,>\n" "B< const sigset_t *_Nullable restrict >IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" "Exigences de macros de test de fonctionnalités pour la glibc (consulter " "B(7)) :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B():" msgstr "B() :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid " _POSIX_C_SOURCE E= 200112L\n" msgstr " _POSIX_C_SOURCE E= 200112L\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: B() ne peut surveiller que des descripteurs de " "fichier dont le numéro est inférieur à B (1024) \\[em] une " "limite excessivement basse pour beaucoup d'applications modernes \\[em] et " "cette limite ne changera pas. Toutes les applications modernes devraient " "utiliser à la place B(2) ou B(7) qui ne souffrent pas de cette " "limitation." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() permet à un programme de surveiller plusieurs descripteurs de " "fichier, en attendant qu'au moins l'un de ces descripteurs soit «\\ prêt\\ » " "pour une certaine classe d'opérations d'entrée-sortie (par exemple une " "entrée est possible). Un descripteur de fichier est considéré comme prêt " "s'il est possible d'effectuer l'opération correspondante (par exemple " "B(2) ou un B(2) assez petit) sans bloquer." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "fd_set" msgstr "fd_set" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A structure type that can represent a set of file descriptors. According to " "POSIX, the maximum number of file descriptors in an I structure is " "the value of the macro B." msgstr "" "Un type de structure qui peut représenter un ensemble de descripteurs de " "fichier. Selon POSIX, le nombre maximal de descripteurs de fichier dans une " "structure I est la valeur de la macro B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "File descriptor sets" msgstr "Ensembles de descripteurs de fichier" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The principal arguments of B() sont trois « ensembles » de " "descripteurs de fichier (déclarés avec le type I), qui permettent à " "l'appelant d'attendre trois classes d'événements sur l'ensemble de " "descripteurs de fichier indiqué. Chacun des paramètres de I peut " "être indiqué comme NULL si aucun descripteur de fichier ne doit être " "surveillé pour la classe d'événements correspondante." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B: Upon return, each of the file descriptor sets is modified in " "place to indicate which file descriptors are currently \"ready\". Thus, if " "using B() dans " "une boucle, les ensembles I avant chaque appel." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The contents of a file descriptor set can be manipulated using the following " "macros:" msgstr "" "Le contenu d'un ensemble de descripteurs de fichier peut être manipulé en " "utilisant les macros suivantes :" #. 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 "" "This macro clears (removes all file descriptors from) I. It should be " "employed as the first step in initializing a file descriptor set." msgstr "" "Cette macro efface (supprime tous les descripteurs de fichier) I. Elle " "doit être utilisée en tant que première étape de l'initialisation d'un " "ensemble de descripteurs de fichier." #. 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 "" "This macro adds the file descriptor I to I. Adding a file " "descriptor that is already present in the set is a no-op, and does not " "produce an error." msgstr "" "Cette macro ajoute le descripteur de fichier I à I. L'ajout d'un " "descripteur de fichier déjà présent dans l'ensemble est sans effet et ne " "produit pas d'erreur." #. 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 "" "This macro removes the file descriptor I from I. Removing a file " "descriptor that is not present in the set is a no-op, and does not produce " "an error." msgstr "" "Cette macro supprime le descripteur de fichier I de I. La " "suppression d'un descripteur de fichier non présent dans l'ensemble est sans " "effet et ne produit pas d'erreur." #. 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 "" "B(), the B() macro can be " "used to test if a file descriptor is still present in a set. B() " "returns nonzero if the file descriptor I is present in I, and zero " "if it is not." msgstr "" "B(), la macro B() peut être " "utilisée pour tester si un descripteur de fichier est présent dans un " "ensemble. B() ne renvoie pas zéro si le descripteur de fichier " "I est présent dans I, sinon il le renvoie." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Arguments" msgstr "Argument" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The arguments of B() sont les suivants :" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptors in this set are watched to see if they are ready for " "reading. A file descriptor is ready for reading if a read operation will " "not block; in particular, a file descriptor is also ready on end-of-file." msgstr "" "Les descripteurs de fichier de cet ensemble sont surveillés pour voir s'ils " "sont prêts en lecture. Un descripteur de fichier est prêt si une opération " "de lecture ne bloquera pas ; en particulier, le descripteur de fichier est " "prêt sur une fin-de-fichier." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After B() ait renvoyé, I sera vidé de tous les " "descripteurs de fichier sauf ceux prêts en lecture." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptors in this set are watched to see if they are ready for " "writing. A file descriptor is ready for writing if a write operation will " "not block. However, even if a file descriptor indicates as writable, a " "large write may still block." msgstr "" "Les descripteurs de fichier de cet ensemble sont surveillés pour voir s'ils " "sont prêts en écriture. Un descripteur de fichier est prêt si une opération " "d'écriture ne bloquera pas. Cependant, même si un descripteur de fichier est " "indiqué comme inscriptible, une écriture abondante peut toujours bloquer." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After B() ait renvoyé, I() sera vidé de tous les " "descripteurs de fichier, sauf ceux prêts en écriture." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The file descriptors in this set are watched for \"exceptional " "conditions\". For examples of some exceptional conditions, see the " "discussion of B in B(2)." msgstr "" "Les descripteurs de fichier de cet ensemble sont surveillés en cas de " "« conditions exceptionnelles ». Pour des exemples de conditions " "exceptionnelles, voir le point sur B dans B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After B() ait renvoyé, I() sera vidé de tous les " "descripteurs de fichier, sauf ceux où s'est produite une condition " "exceptionnelle." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This argument should be set to the highest-numbered file descriptor in any " "of the three sets, plus 1. The indicated file descriptors in each set are " "checked, up to this limit (but see BUGS)." msgstr "" "Ce paramètre doit être positionné sur le numéro du plus grand descripteur " "des trois ensembles, plus B<1>. Les descripteurs de fichier indiqués dans " "chaque ensemble sont vérifiés dans cette limite (mais voir BOGUES)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument is a I structure (shown below) that " "specifies the interval that B() restera bloqué " "dans l'attente d'un descripteur de fichier disponible. L'appel restera " "bloqué jusqu'à :" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "-" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "a file descriptor becomes ready;" msgstr "un descripteur de fichier devient prêt ;" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "the call is interrupted by a signal handler; or" msgstr "l’appel est interrompu 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 "the timeout expires." msgstr "le délai expire." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that the I interval will be rounded up to the system clock " "granularity, and kernel scheduling delays mean that the blocking interval " "may overrun by a small amount." msgstr "" "Notez que l'intervalle I est arrondi selon la granularité de " "l'horloge du système, et un retard d'ordonnancement du noyau peut entraîner " "un léger dépassement de la durée de blocage." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If both fields of the I structure are zero, then B() " "renvoie immédiatement (c'est utile pour la scrutation)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is specified as NULL, B() restera bloqué dans " "l'attente d'un descripteur de fichier disponible :" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "pselect()" msgstr "pselect()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call allows an application to safely wait until " "either a file descriptor becomes ready or until a signal is caught." msgstr "" "L'appel système B() permet à une application d'attendre de manière " "sécurisée un signal ou qu'un descripteur de fichier soit prêt." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The operation of B() et B() ont un comportement identique, avec trois " "différences\\ :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() utilise un délai exprimé avec une I " "(en secondes et microsecondes), alors que B() utilise une I (en secondes et nanosecondes)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() peut modifier le paramètre I pour indiquer " "le temps restant. La fonction B() ne change pas ce paramètre." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() n'a pas de paramètre I et se comporte comme " "B() avec une valeur NULL pour I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is a pointer to a signal mask (see B(2)); if it is " "not NULL, then B() first replaces the current signal mask by the " "one pointed to by I, then does the \"select\" function, and then " "restores the original signal mask. (If I is NULL, the signal mask " "is not modified during the B() call.)" msgstr "" "I est un pointeur sur un masque de signaux (consultez " "B(2)). S'il n'est pas NULL, alors B() remplace d'abord " "le masque de signaux en cours par celui indiqué dans I, puis " "invoque la fonction «\\ select\\ », et enfin restaure le masque de signaux à " "nouveau (si I est NULL, le masque de signaux n'est pas modifié " "pendant l'appel B())." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Other than the difference in the precision of the I argument, the " "following B() call:" msgstr "" "Mise à part la différence de précision de l'argument I, l'appel " "B() suivant\\ :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" " timeout, &sigmask);\n" msgstr "" "ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" " timeout, &sigmask);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "is equivalent to I executing the following calls:" msgstr "est équivalent à exécuter de façon I les appels suivants\\ :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "sigset_t origmask;\n" "\\&\n" "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" msgstr "" "sigset_t origmask;\n" "\\&\n" "pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" "ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" "pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The reason that B() is needed is that if one wants to wait for " "either a signal or for a file descriptor to become ready, then an atomic " "test is needed to prevent race conditions. (Suppose the signal handler sets " "a global flag and returns. Then a test of this global flag followed by a " "call of B() peut " "bloquer indéfiniment si le signal arrive juste après le test mais avant " "l'appel. À l'inverse, B() permet de bloquer les signaux d'abord, " "traiter les signaux déjà reçus, puis invoquer B() avec le " "I désiré, en évitant la situation de concurrence.)" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "The timeout" msgstr "Délai " #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument for B() est une structure du type suivant :" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct timeval {\n" " time_t tv_sec; /* seconds */\n" " suseconds_t tv_usec; /* microseconds */\n" "};\n" msgstr "" "struct timeval {\n" " time_t tv_sec; /* secondes */\n" " suseconds_t tv_usec; /* microsecondes */\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The corresponding argument for B() is a B(3) structure." msgstr "" "Le paramètre correspondant à B() est une structure B(3)." #. .P - it is rumored that: #. On BSD, when a timeout occurs, the file descriptor bits are not changed. #. - it is certainly true that: #. Linux follows SUSv2 and sets the bit masks to zero upon a timeout. #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, fuzzy #| msgid "" #| "On Linux, B()s in a " #| "loop without reinitializing it. Consider I to be undefined " #| "after B() modifies I to reflect the amount of time not " "slept; most other implementations do not do this. (POSIX.1 permits either " "behavior.) This causes problems both when Linux code which reads I " "is ported to other operating systems, and when code is ported to Linux that " "reuses a I for multiple B() " "returns." msgstr "" "Sous Linux, la fonction B()s " "dans une boucle sans la réinitialiser. La meilleure attitude à adopter est " "de considérer I comme indéfini après le retour de B() and B() return the number of file " "descriptors contained in the three returned descriptor sets (that is, the " "total number of bits that are set in I, I, " "I). The return value may be zero if the timeout expired before " "any file descriptors became ready." msgstr "" "En cas de réussite B() can fail with the error B " "if the system fails to allocate kernel-internal resources, rather than " "B as Linux does. POSIX specifies this error for B(2), but not " "for B() peut échouer avec l'erreur B " "si le système ne parvient pas à allouer des ressources internes du noyau " "contrairement à l'erreur B de Linux. POSIX spécifie cette erreur " "pour B(2) mais pas pour B()" msgstr "B() and B() is not affected by the " "B flag." msgstr "" "Les opérations B() in the main program. (To avoid possibly blocking when writing " "to a pipe that may be full or reading from a pipe that may be empty, " "nonblocking I/O is used when reading from and writing to the pipe.)" msgstr "" "Sur les systèmes sans B, une gestion plus sûre (et plus portable) " "des signaux peut être obtenue en utilisant l'astuce du « self-pipe » : un " "gestionnaire de signal écrit un octet dans un tube dont B() " "with all three sets empty, I zero, and a non-NULL I as a " "fairly portable way to sleep with subsecond precision." msgstr "" "Avant l'arrivée de B(3), certaines applications appelaient " "B() and the event notifications provided by " "B(2) and B(7):" msgstr "" "Dans les sources du noyau Linux, nous trouvons les définitions suivantes qui " "montrent la correspondance entre les notifications de lisibilité, " "d'inscriptibilité et de condition exceptionnelle de B() is closed in another " "thread, the result is unspecified. On some UNIX systems, B() returned " "and the I/O operation is performed). On Linux (and some other systems), " "closing the file descriptor in another thread has no effect on B() est fermé dans un " "autre thread, le résultat est indéterminé. Sur certains systèmes UNIX, " "B() termine et l'exécution des opérations entrée/sortie). " "Sur Linux (et d'autres systèmes), la fermeture du descripteur de fichier " "dans un autre thread n'a aucun effet sur B() should check all specified file descriptors " "in the three file descriptor sets, up to the limit I. However, the " "current implementation ignores any file descriptor in these sets that is " "greater than the maximum file descriptor number that the process currently " "has open. According to POSIX, any such file descriptor that is specified in " "one of the sets should result in the error B." msgstr "" "Selon POSIX, B(). This " "implementation remained vulnerable to the very race condition that " "B() was designed to prevent. Modern versions of glibc use the " "(race-free) B() system call on kernels where it is provided." msgstr "" "À partir de la glibc 2.1, la glibc fournissait une émulation de B() " "implémentée avec B(2) et B() may report a socket file descriptor as \"ready for " "reading\", while nevertheless a subsequent read blocks. This could for " "example happen when data has arrived but upon examination has the wrong " "checksum and is discarded. There may be other circumstances in which a file " "descriptor is spuriously reported as ready. Thus it may be safer to use " "B on sockets that should not block." msgstr "" "Sous Linux, B() also modifies I if the call is interrupted " "by a signal handler (i.e., the B error return). This is not " "permitted by POSIX.1. The Linux B() system call has the same " "behavior, but the glibc wrapper hides this behavior by internally copying " "the I to a local variable and passing that variable to the system " "call." msgstr "" "Sous Linux, B() modifies I to reflect the amount of time not " "slept; most other implementations do not do this. (POSIX.1 permits either " "behavior.) This causes problems both when Linux code which reads I " "is ported to other operating systems, and when code is ported to Linux that " "reuses a I for multiple B() " "returns." msgstr "" "Sous Linux, la fonction B()s " "dans une boucle sans la réinitialiser. La meilleure attitude à adopter est " "de considérer I comme indéfini après le retour de B