| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999,2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006, 2013. |
| 16 |
# Denis Barbier <[email protected]>, 2006,2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2013, 2014. |
| 18 |
# Cédric Boutillier <[email protected]>, 2011, 2012, 2013. |
| 19 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 20 |
# Jean-Philippe MENGUAL <[email protected]>, 2021-2023. |
| 21 |
# Jean-Pierre Giraud <[email protected]>, 2023-2024. |
| 22 |
msgid "" |
| 23 |
msgstr "" |
| 24 |
"Project-Id-Version: manpages-l10n 4.21.0\n" |
| 25 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 26 |
"PO-Revision-Date: 2024-03-14 11:18+0100\n" |
| 27 |
"Last-Translator: Jean-Pierre Giraud <[email protected]>\n" |
| 28 |
"Language-Team: French <[email protected]>\n" |
| 29 |
"Language: fr\n" |
| 30 |
"MIME-Version: 1.0\n" |
| 31 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 32 |
"Content-Transfer-Encoding: 8bit\n" |
| 33 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 34 |
"X-Generator: Lokalize 22.12.3\n" |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 38 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 39 |
#, no-wrap |
| 40 |
msgid "select" |
| 41 |
msgstr "select" |
| 42 |
|
| 43 |
#. type: TH |
| 44 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 45 |
#: opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "2026-02-08" |
| 48 |
msgstr "8 février 2026" |
| 49 |
|
| 50 |
#. type: TH |
| 51 |
#: archlinux debian-unstable |
| 52 |
#, no-wrap |
| 53 |
msgid "Linux man-pages 6.18" |
| 54 |
msgstr "Pages du manuel de Linux 6.18" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "NAME" |
| 61 |
msgstr "NOM" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 65 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "" |
| 67 |
"select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - synchronous I/O " |
| 68 |
"multiplexing" |
| 69 |
msgstr "" |
| 70 |
"select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO, fd_set - Multiplexage " |
| 71 |
"d'entrées-sorties synchrones" |
| 72 |
|
| 73 |
#. type: SH |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "LIBRARY" |
| 78 |
msgstr "BIBLIOTHÈQUE" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 82 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 84 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 85 |
|
| 86 |
#. type: SH |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "SYNOPSIS" |
| 91 |
msgstr "SYNOPSIS" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "B<#include E<lt>sys/select.hE<gt>>\n" |
| 98 |
msgstr "B<#include E<lt>sys/select.hE<gt>>\n" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 102 |
#: opensuse-tumbleweed |
| 103 |
#, fuzzy, no-wrap |
| 104 |
#| msgid "B<typedef> /* ... */ B<fd_set;>\n" |
| 105 |
msgid "B<typedef> /* .\\|.\\|.\\& */ B<fd_set;>\n" |
| 106 |
msgstr "B<typedef> /* ... */ B<fd_set;>\n" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
#, no-wrap |
| 112 |
msgid "" |
| 113 |
"B<int select(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n" |
| 114 |
"B< fd_set *_Nullable restrict >I<writefds>B<,>\n" |
| 115 |
"B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n" |
| 116 |
"B< struct timeval *_Nullable restrict >I<timeout>B<);>\n" |
| 117 |
msgstr "" |
| 118 |
"B<int select(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n" |
| 119 |
"B< fd_set *_Nullable restrict >I<writefds>B<,>\n" |
| 120 |
"B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n" |
| 121 |
"B< struct timeval *_Nullable restrict >I<timeout>B<);>\n" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 125 |
#: opensuse-tumbleweed |
| 126 |
#, fuzzy, no-wrap |
| 127 |
#| msgid "" |
| 128 |
#| "B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 129 |
#| "B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 130 |
#| "B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 131 |
#| "B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 132 |
msgid "" |
| 133 |
"B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 134 |
"B<int FD_ISSET(int >I<fd>B<, const fd_set *>I<set>B<);>\n" |
| 135 |
"B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 136 |
"B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 137 |
msgstr "" |
| 138 |
"B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 139 |
"B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 140 |
"B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 141 |
"B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "" |
| 148 |
"B<int pselect(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n" |
| 149 |
"B< fd_set *_Nullable restrict >I<writefds>B<,>\n" |
| 150 |
"B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n" |
| 151 |
"B< const struct timespec *_Nullable restrict >I<timeout>B<,>\n" |
| 152 |
"B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n" |
| 153 |
msgstr "" |
| 154 |
"B<int pselect(int >I<nfds>B<, fd_set *_Nullable restrict >I<readfds>B<,>\n" |
| 155 |
"B< fd_set *_Nullable restrict >I<writefds>B<,>\n" |
| 156 |
"B< fd_set *_Nullable restrict >I<exceptfds>B<,>\n" |
| 157 |
"B< const struct timespec *_Nullable restrict >I<timeout>B<,>\n" |
| 158 |
"B< const sigset_t *_Nullable restrict >I<sigmask>B<);>\n" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 165 |
msgstr "" |
| 166 |
"Exigences de macros de test de fonctionnalités pour la glibc (consulter " |
| 167 |
"B<feature_test_macros>(7)) :" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "B<pselect>():" |
| 173 |
msgstr "B<pselect>() :" |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
#, no-wrap |
| 179 |
msgid " _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 180 |
msgstr " _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 181 |
|
| 182 |
#. type: SH |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
#, no-wrap |
| 186 |
msgid "DESCRIPTION" |
| 187 |
msgstr "DESCRIPTION" |
| 188 |
|
| 189 |
#. type: Plain text |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
msgid "" |
| 193 |
"B<WARNING>: B<select>() can monitor only file descriptors numbers that are " |
| 194 |
"less than B<FD_SETSIZE> (1024)\\[em]an unreasonably low limit for many " |
| 195 |
"modern applications\\[em]and this limitation will not change. All modern " |
| 196 |
"applications should instead use B<poll>(2) or B<epoll>(7), which do not " |
| 197 |
"suffer this limitation." |
| 198 |
msgstr "" |
| 199 |
"B<Attention> : B<select>() ne peut surveiller que des descripteurs de " |
| 200 |
"fichier dont le numéro est inférieur à B<FD_SETSIZE> (1024) \\[em] une " |
| 201 |
"limite excessivement basse pour beaucoup d'applications modernes \\[em] et " |
| 202 |
"cette limite ne changera pas. Toutes les applications modernes devraient " |
| 203 |
"utiliser à la place B<poll>(2) ou B<epoll>(7) qui ne souffrent pas de cette " |
| 204 |
"limitation." |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"B<select>() allows a program to monitor multiple file descriptors, waiting " |
| 211 |
"until one or more of the file descriptors become \"ready\" for some class of " |
| 212 |
"I/O operation (e.g., input possible). A file descriptor is considered ready " |
| 213 |
"if it is possible to perform a corresponding I/O operation (e.g., " |
| 214 |
"B<read>(2), or a sufficiently small B<write>(2)) without blocking." |
| 215 |
msgstr "" |
| 216 |
"B<select>() permet à un programme de surveiller plusieurs descripteurs de " |
| 217 |
"fichier, en attendant qu'au moins l'un de ces descripteurs soit «\\ prêt\\ » " |
| 218 |
"pour une certaine classe d'opérations d'entrée-sortie (par exemple une " |
| 219 |
"entrée est possible). Un descripteur de fichier est considéré comme prêt " |
| 220 |
"s'il est possible d'effectuer l'opération correspondante (par exemple " |
| 221 |
"B<read>(2) ou un B<write>(2) assez petit) sans bloquer." |
| 222 |
|
| 223 |
#. type: SS |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
#, no-wrap |
| 227 |
msgid "fd_set" |
| 228 |
msgstr "fd_set" |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
msgid "" |
| 234 |
"A structure type that can represent a set of file descriptors. According to " |
| 235 |
"POSIX, the maximum number of file descriptors in an I<fd_set> structure is " |
| 236 |
"the value of the macro B<FD_SETSIZE>." |
| 237 |
msgstr "" |
| 238 |
"Un type de structure qui peut représenter un ensemble de descripteurs de " |
| 239 |
"fichier. Selon POSIX, le nombre maximal de descripteurs de fichier dans une " |
| 240 |
"structure I<fd_set> est la valeur de la macro B<FD_SETSIZE>." |
| 241 |
|
| 242 |
#. type: SS |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid "File descriptor sets" |
| 247 |
msgstr "Ensembles de descripteurs de fichier" |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
msgid "" |
| 253 |
"The principal arguments of B<select>() are three \"sets\" of file " |
| 254 |
"descriptors (declared with the type I<fd_set>), which allow the caller to " |
| 255 |
"wait for three classes of events on the specified set of file descriptors. " |
| 256 |
"Each of the I<fd_set> arguments may be specified as NULL if no file " |
| 257 |
"descriptors are to be watched for the corresponding class of events." |
| 258 |
msgstr "" |
| 259 |
"Les paramètres principaux de B<select>() sont trois « ensembles » de " |
| 260 |
"descripteurs de fichier (déclarés avec le type I<fd_set>), qui permettent à " |
| 261 |
"l'appelant d'attendre trois classes d'événements sur l'ensemble de " |
| 262 |
"descripteurs de fichier indiqué. Chacun des paramètres de I<fd_set> peut " |
| 263 |
"être indiqué comme NULL si aucun descripteur de fichier ne doit être " |
| 264 |
"surveillé pour la classe d'événements correspondante." |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"B<Note well>: Upon return, each of the file descriptor sets is modified in " |
| 271 |
"place to indicate which file descriptors are currently \"ready\". Thus, if " |
| 272 |
"using B<select>() within a loop, the sets I<must be reinitialized> before " |
| 273 |
"each call." |
| 274 |
msgstr "" |
| 275 |
"B<Important> : lors de la sortie, chacun des ensembles de descripteurs de " |
| 276 |
"fichier est modifié sur place pour indiquer quels descripteurs de fichier " |
| 277 |
"sont actuellement « prêts ». Par conséquent, si on utilise B<select>() dans " |
| 278 |
"une boucle, les ensembles I<doivent être réinitialisés> avant chaque appel." |
| 279 |
|
| 280 |
#. type: Plain text |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
msgid "" |
| 284 |
"The contents of a file descriptor set can be manipulated using the following " |
| 285 |
"macros:" |
| 286 |
msgstr "" |
| 287 |
"Le contenu d'un ensemble de descripteurs de fichier peut être manipulé en " |
| 288 |
"utilisant les macros suivantes :" |
| 289 |
|
| 290 |
#. type: TP |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "B<FD_ZERO>()" |
| 295 |
msgstr "B<FD_ZERO>()" |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "" |
| 301 |
"This macro clears (removes all file descriptors from) I<set>. It should be " |
| 302 |
"employed as the first step in initializing a file descriptor set." |
| 303 |
msgstr "" |
| 304 |
"Cette macro efface (supprime tous les descripteurs de fichier) I<set>. Elle " |
| 305 |
"doit être utilisée en tant que première étape de l'initialisation d'un " |
| 306 |
"ensemble de descripteurs de fichier." |
| 307 |
|
| 308 |
#. type: TP |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
#, no-wrap |
| 312 |
msgid "B<FD_SET>()" |
| 313 |
msgstr "B<FD_SET>()" |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "" |
| 319 |
"This macro adds the file descriptor I<fd> to I<set>. Adding a file " |
| 320 |
"descriptor that is already present in the set is a no-op, and does not " |
| 321 |
"produce an error." |
| 322 |
msgstr "" |
| 323 |
"Cette macro ajoute le descripteur de fichier I<fd> à I<set>. L'ajout d'un " |
| 324 |
"descripteur de fichier déjà présent dans l'ensemble est sans effet et ne " |
| 325 |
"produit pas d'erreur." |
| 326 |
|
| 327 |
#. type: TP |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "B<FD_CLR>()" |
| 332 |
msgstr "B<FD_CLR>()" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
msgid "" |
| 338 |
"This macro removes the file descriptor I<fd> from I<set>. Removing a file " |
| 339 |
"descriptor that is not present in the set is a no-op, and does not produce " |
| 340 |
"an error." |
| 341 |
msgstr "" |
| 342 |
"Cette macro supprime le descripteur de fichier I<fd> de I<set>. La " |
| 343 |
"suppression d'un descripteur de fichier non présent dans l'ensemble est sans " |
| 344 |
"effet et ne produit pas d'erreur." |
| 345 |
|
| 346 |
#. type: TP |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, no-wrap |
| 350 |
msgid "B<FD_ISSET>()" |
| 351 |
msgstr "B<FD_ISSET>()" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
msgid "" |
| 357 |
"B<select>() modifies the contents of the sets according to the rules " |
| 358 |
"described below. After calling B<select>(), the B<FD_ISSET>() macro can be " |
| 359 |
"used to test if a file descriptor is still present in a set. B<FD_ISSET>() " |
| 360 |
"returns nonzero if the file descriptor I<fd> is present in I<set>, and zero " |
| 361 |
"if it is not." |
| 362 |
msgstr "" |
| 363 |
"B<select>() modifie le contenu des ensembles en fonction des règles décrites " |
| 364 |
"ci-dessous. Après un appel à B<select>(), la macro B<FD_ISSET>() peut être " |
| 365 |
"utilisée pour tester si un descripteur de fichier est présent dans un " |
| 366 |
"ensemble. B<FD_ISSET>() ne renvoie pas zéro si le descripteur de fichier " |
| 367 |
"I<fd> est présent dans I<set>, sinon il le renvoie." |
| 368 |
|
| 369 |
#. type: SS |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
#, no-wrap |
| 373 |
msgid "Arguments" |
| 374 |
msgstr "Argument" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 379 |
msgid "The arguments of B<select>() are as follows:" |
| 380 |
msgstr "Les paramètres de B<select>() sont les suivants :" |
| 381 |
|
| 382 |
#. type: TP |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
#, no-wrap |
| 386 |
msgid "I<readfds>" |
| 387 |
msgstr "I<readfds>" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 391 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 392 |
msgid "" |
| 393 |
"The file descriptors in this set are watched to see if they are ready for " |
| 394 |
"reading. A file descriptor is ready for reading if a read operation will " |
| 395 |
"not block; in particular, a file descriptor is also ready on end-of-file." |
| 396 |
msgstr "" |
| 397 |
"Les descripteurs de fichier de cet ensemble sont surveillés pour voir s'ils " |
| 398 |
"sont prêts en lecture. Un descripteur de fichier est prêt si une opération " |
| 399 |
"de lecture ne bloquera pas ; en particulier, le descripteur de fichier est " |
| 400 |
"prêt sur une fin-de-fichier." |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
msgid "" |
| 406 |
"After B<select>() has returned, I<readfds> will be cleared of all file " |
| 407 |
"descriptors except for those that are ready for reading." |
| 408 |
msgstr "" |
| 409 |
"Après que B<select>() ait renvoyé, I<readfds> sera vidé de tous les " |
| 410 |
"descripteurs de fichier sauf ceux prêts en lecture." |
| 411 |
|
| 412 |
#. type: TP |
| 413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 415 |
#, no-wrap |
| 416 |
msgid "I<writefds>" |
| 417 |
msgstr "I<writefds>" |
| 418 |
|
| 419 |
#. type: Plain text |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
msgid "" |
| 423 |
"The file descriptors in this set are watched to see if they are ready for " |
| 424 |
"writing. A file descriptor is ready for writing if a write operation will " |
| 425 |
"not block. However, even if a file descriptor indicates as writable, a " |
| 426 |
"large write may still block." |
| 427 |
msgstr "" |
| 428 |
"Les descripteurs de fichier de cet ensemble sont surveillés pour voir s'ils " |
| 429 |
"sont prêts en écriture. Un descripteur de fichier est prêt si une opération " |
| 430 |
"d'écriture ne bloquera pas. Cependant, même si un descripteur de fichier est " |
| 431 |
"indiqué comme inscriptible, une écriture abondante peut toujours bloquer." |
| 432 |
|
| 433 |
#. type: Plain text |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
msgid "" |
| 437 |
"After B<select>() has returned, I<writefds> will be cleared of all file " |
| 438 |
"descriptors except for those that are ready for writing." |
| 439 |
msgstr "" |
| 440 |
"Après que B<select>() ait renvoyé, I<writefds>() sera vidé de tous les " |
| 441 |
"descripteurs de fichier, sauf ceux prêts en écriture." |
| 442 |
|
| 443 |
#. type: TP |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
#, no-wrap |
| 447 |
msgid "I<exceptfds>" |
| 448 |
msgstr "I<exceptfds>" |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
msgid "" |
| 454 |
"The file descriptors in this set are watched for \"exceptional " |
| 455 |
"conditions\". For examples of some exceptional conditions, see the " |
| 456 |
"discussion of B<POLLPRI> in B<poll>(2)." |
| 457 |
msgstr "" |
| 458 |
"Les descripteurs de fichier de cet ensemble sont surveillés en cas de " |
| 459 |
"« conditions exceptionnelles ». Pour des exemples de conditions " |
| 460 |
"exceptionnelles, voir le point sur B<POLLPRI> dans B<poll>(2)." |
| 461 |
|
| 462 |
#. type: Plain text |
| 463 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 464 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 465 |
msgid "" |
| 466 |
"After B<select>() has returned, I<exceptfds> will be cleared of all file " |
| 467 |
"descriptors except for those for which an exceptional condition has occurred." |
| 468 |
msgstr "" |
| 469 |
"Après que B<select>() ait renvoyé, I<exceptfds>() sera vidé de tous les " |
| 470 |
"descripteurs de fichier, sauf ceux où s'est produite une condition " |
| 471 |
"exceptionnelle." |
| 472 |
|
| 473 |
#. type: TP |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
#, no-wrap |
| 477 |
msgid "I<nfds>" |
| 478 |
msgstr "I<nfds>" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"This argument should be set to the highest-numbered file descriptor in any " |
| 485 |
"of the three sets, plus 1. The indicated file descriptors in each set are " |
| 486 |
"checked, up to this limit (but see BUGS)." |
| 487 |
msgstr "" |
| 488 |
"Ce paramètre doit être positionné sur le numéro du plus grand descripteur " |
| 489 |
"des trois ensembles, plus B<1>. Les descripteurs de fichier indiqués dans " |
| 490 |
"chaque ensemble sont vérifiés dans cette limite (mais voir BOGUES)." |
| 491 |
|
| 492 |
#. type: TP |
| 493 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 494 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
#, no-wrap |
| 496 |
msgid "I<timeout>" |
| 497 |
msgstr "I<timeout>" |
| 498 |
|
| 499 |
#. type: Plain text |
| 500 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 501 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 502 |
msgid "" |
| 503 |
"The I<timeout> argument is a I<timeval> structure (shown below) that " |
| 504 |
"specifies the interval that B<select>() should block waiting for a file " |
| 505 |
"descriptor to become ready. The call will block until either:" |
| 506 |
msgstr "" |
| 507 |
"L'argument I<timeout> est une structure I<timeval> (décrite ci-dessous) qui " |
| 508 |
"précise la durée de l'intervalle pendant lequel B<select>() restera bloqué " |
| 509 |
"dans l'attente d'un descripteur de fichier disponible. L'appel restera " |
| 510 |
"bloqué jusqu'à :" |
| 511 |
|
| 512 |
#. type: IP |
| 513 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 514 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 515 |
#, no-wrap |
| 516 |
msgid "\\[bu]" |
| 517 |
msgstr "-" |
| 518 |
|
| 519 |
#. type: Plain text |
| 520 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 521 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 522 |
msgid "a file descriptor becomes ready;" |
| 523 |
msgstr "un descripteur de fichier devient prêt ;" |
| 524 |
|
| 525 |
#. type: Plain text |
| 526 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 527 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 528 |
msgid "the call is interrupted by a signal handler; or" |
| 529 |
msgstr "l’appel est interrompu par un gestionnaire de signal ;" |
| 530 |
|
| 531 |
#. type: Plain text |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
msgid "the timeout expires." |
| 535 |
msgstr "le délai expire." |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
msgid "" |
| 541 |
"Note that the I<timeout> interval will be rounded up to the system clock " |
| 542 |
"granularity, and kernel scheduling delays mean that the blocking interval " |
| 543 |
"may overrun by a small amount." |
| 544 |
msgstr "" |
| 545 |
"Notez que l'intervalle I<timeout> est arrondi selon la granularité de " |
| 546 |
"l'horloge du système, et un retard d'ordonnancement du noyau peut entraîner " |
| 547 |
"un léger dépassement de la durée de blocage." |
| 548 |
|
| 549 |
#. type: Plain text |
| 550 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 551 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 552 |
msgid "" |
| 553 |
"If both fields of the I<timeval> structure are zero, then B<select>() " |
| 554 |
"returns immediately. (This is useful for polling.)" |
| 555 |
msgstr "" |
| 556 |
"Si les deux champs de la structure I<timeval> valent zéro, B<select>() " |
| 557 |
"renvoie immédiatement (c'est utile pour la scrutation)." |
| 558 |
|
| 559 |
#. type: Plain text |
| 560 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 561 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 562 |
msgid "" |
| 563 |
"If I<timeout> is specified as NULL, B<select>() blocks indefinitely waiting " |
| 564 |
"for a file descriptor to become ready." |
| 565 |
msgstr "" |
| 566 |
"Si I<timeout> est indiqué comme étant NULL, B<select>() restera bloqué dans " |
| 567 |
"l'attente d'un descripteur de fichier disponible :" |
| 568 |
|
| 569 |
#. type: SS |
| 570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
#, no-wrap |
| 573 |
msgid "pselect()" |
| 574 |
msgstr "pselect()" |
| 575 |
|
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 578 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 579 |
msgid "" |
| 580 |
"The B<pselect>() system call allows an application to safely wait until " |
| 581 |
"either a file descriptor becomes ready or until a signal is caught." |
| 582 |
msgstr "" |
| 583 |
"L'appel système B<pselect>() permet à une application d'attendre de manière " |
| 584 |
"sécurisée un signal ou qu'un descripteur de fichier soit prêt." |
| 585 |
|
| 586 |
#. type: Plain text |
| 587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 588 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 589 |
msgid "" |
| 590 |
"The operation of B<select>() and B<pselect>() is identical, other than " |
| 591 |
"these three differences:" |
| 592 |
msgstr "" |
| 593 |
"B<select>() et B<pselect>() ont un comportement identique, avec trois " |
| 594 |
"différences\\ :" |
| 595 |
|
| 596 |
#. type: Plain text |
| 597 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 598 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 599 |
msgid "" |
| 600 |
"B<select>() uses a timeout that is a I<struct timeval> (with seconds and " |
| 601 |
"microseconds), while B<pselect>() uses a I<struct timespec> (with seconds " |
| 602 |
"and nanoseconds)." |
| 603 |
msgstr "" |
| 604 |
"La fonction B<select>() utilise un délai exprimé avec une I<struct timeval> " |
| 605 |
"(en secondes et microsecondes), alors que B<pselect>() utilise une I<struct " |
| 606 |
"timespec> (en secondes et nanosecondes)." |
| 607 |
|
| 608 |
#. type: Plain text |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
msgid "" |
| 612 |
"B<select>() may update the I<timeout> argument to indicate how much time " |
| 613 |
"was left. B<pselect>() does not change this argument." |
| 614 |
msgstr "" |
| 615 |
"La fonction B<select>() peut modifier le paramètre I<timeout> pour indiquer " |
| 616 |
"le temps restant. La fonction B<pselect>() ne change pas ce paramètre." |
| 617 |
|
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"B<select>() has no I<sigmask> argument, and behaves as B<pselect>() called " |
| 623 |
"with NULL I<sigmask>." |
| 624 |
msgstr "" |
| 625 |
"La fonction B<select>() n'a pas de paramètre I<sigmask> et se comporte comme " |
| 626 |
"B<pselect>() avec une valeur NULL pour I<sigmask>" |
| 627 |
|
| 628 |
#. type: Plain text |
| 629 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 630 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 631 |
msgid "" |
| 632 |
"I<sigmask> is a pointer to a signal mask (see B<sigprocmask>(2)); if it is " |
| 633 |
"not NULL, then B<pselect>() first replaces the current signal mask by the " |
| 634 |
"one pointed to by I<sigmask>, then does the \"select\" function, and then " |
| 635 |
"restores the original signal mask. (If I<sigmask> is NULL, the signal mask " |
| 636 |
"is not modified during the B<pselect>() call.)" |
| 637 |
msgstr "" |
| 638 |
"I<sigmask> est un pointeur sur un masque de signaux (consultez " |
| 639 |
"B<sigprocmask>(2)). S'il n'est pas NULL, alors B<pselect>() remplace d'abord " |
| 640 |
"le masque de signaux en cours par celui indiqué dans I<sigmask>, puis " |
| 641 |
"invoque la fonction «\\ select\\ », et enfin restaure le masque de signaux à " |
| 642 |
"nouveau (si I<sigmask> est NULL, le masque de signaux n'est pas modifié " |
| 643 |
"pendant l'appel B<pselect>())." |
| 644 |
|
| 645 |
#. type: Plain text |
| 646 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 647 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 648 |
msgid "" |
| 649 |
"Other than the difference in the precision of the I<timeout> argument, the " |
| 650 |
"following B<pselect>() call:" |
| 651 |
msgstr "" |
| 652 |
"Mise à part la différence de précision de l'argument I<timeout>, l'appel " |
| 653 |
"B<pselect>() suivant\\ :" |
| 654 |
|
| 655 |
#. type: Plain text |
| 656 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 657 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 658 |
#, no-wrap |
| 659 |
msgid "" |
| 660 |
"ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" |
| 661 |
" timeout, &sigmask);\n" |
| 662 |
msgstr "" |
| 663 |
"ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" |
| 664 |
" timeout, &sigmask);\n" |
| 665 |
|
| 666 |
#. type: Plain text |
| 667 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 668 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 669 |
msgid "is equivalent to I<atomically> executing the following calls:" |
| 670 |
msgstr "est équivalent à exécuter de façon I<atomique> les appels suivants\\ :" |
| 671 |
|
| 672 |
#. type: Plain text |
| 673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 674 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 675 |
#, no-wrap |
| 676 |
msgid "" |
| 677 |
"sigset_t origmask;\n" |
| 678 |
"\\&\n" |
| 679 |
"pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" |
| 680 |
"ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" |
| 681 |
"pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" |
| 682 |
msgstr "" |
| 683 |
"sigset_t origmask;\n" |
| 684 |
"\\&\n" |
| 685 |
"pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" |
| 686 |
"ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" |
| 687 |
"pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" |
| 688 |
|
| 689 |
#. type: Plain text |
| 690 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 691 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 692 |
msgid "" |
| 693 |
"The reason that B<pselect>() is needed is that if one wants to wait for " |
| 694 |
"either a signal or for a file descriptor to become ready, then an atomic " |
| 695 |
"test is needed to prevent race conditions. (Suppose the signal handler sets " |
| 696 |
"a global flag and returns. Then a test of this global flag followed by a " |
| 697 |
"call of B<select>() could hang indefinitely if the signal arrived just " |
| 698 |
"after the test but just before the call. By contrast, B<pselect>() allows " |
| 699 |
"one to first block signals, handle the signals that have come in, then call " |
| 700 |
"B<pselect>() with the desired I<sigmask>, avoiding the race.)" |
| 701 |
msgstr "" |
| 702 |
"La raison de la présence de B<pselect>() est que pour l'attente d'un " |
| 703 |
"événement, que ce soit un signal ou une condition sur un descripteur, un " |
| 704 |
"test atomique est nécessaire pour éviter les situations de concurrence. " |
| 705 |
"(Supposons que le gestionnaire de signaux active un drapeau global et " |
| 706 |
"renvoie. Alors un test de ce drapeau, suivi d'un appel B<select>() peut " |
| 707 |
"bloquer indéfiniment si le signal arrive juste après le test mais avant " |
| 708 |
"l'appel. À l'inverse, B<pselect>() permet de bloquer les signaux d'abord, " |
| 709 |
"traiter les signaux déjà reçus, puis invoquer B<pselect>() avec le " |
| 710 |
"I<sigmask> désiré, en évitant la situation de concurrence.)" |
| 711 |
|
| 712 |
#. type: SS |
| 713 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 714 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 715 |
#, no-wrap |
| 716 |
msgid "The timeout" |
| 717 |
msgstr "Délai " |
| 718 |
|
| 719 |
#. type: Plain text |
| 720 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 721 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 722 |
msgid "" |
| 723 |
"The I<timeout> argument for B<select>() is a structure of the following " |
| 724 |
"type:" |
| 725 |
msgstr "" |
| 726 |
"Le paramètre I<timeout> de B<select>() est une structure du type suivant :" |
| 727 |
|
| 728 |
#. type: Plain text |
| 729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 730 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 731 |
#, no-wrap |
| 732 |
msgid "" |
| 733 |
"struct timeval {\n" |
| 734 |
" time_t tv_sec; /* seconds */\n" |
| 735 |
" suseconds_t tv_usec; /* microseconds */\n" |
| 736 |
"};\n" |
| 737 |
msgstr "" |
| 738 |
"struct timeval {\n" |
| 739 |
" time_t tv_sec; /* secondes */\n" |
| 740 |
" suseconds_t tv_usec; /* microsecondes */\n" |
| 741 |
"};\n" |
| 742 |
|
| 743 |
#. type: Plain text |
| 744 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 745 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 746 |
msgid "" |
| 747 |
"The corresponding argument for B<pselect>() is a B<timespec>(3) structure." |
| 748 |
msgstr "" |
| 749 |
"Le paramètre correspondant à B<pselect>() est une structure B<timespec>(3)." |
| 750 |
|
| 751 |
#. .P - it is rumored that: |
| 752 |
#. On BSD, when a timeout occurs, the file descriptor bits are not changed. |
| 753 |
#. - it is certainly true that: |
| 754 |
#. Linux follows SUSv2 and sets the bit masks to zero upon a timeout. |
| 755 |
#. type: Plain text |
| 756 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 757 |
#: opensuse-tumbleweed |
| 758 |
#, fuzzy |
| 759 |
#| msgid "" |
| 760 |
#| "On Linux, B<select>() modifies I<timeout> to reflect the amount of time " |
| 761 |
#| "not slept; most other implementations do not do this. (POSIX.1 permits " |
| 762 |
#| "either behavior.) This causes problems both when Linux code which reads " |
| 763 |
#| "I<timeout> is ported to other operating systems, and when code is ported " |
| 764 |
#| "to Linux that reuses a I<struct timeval> for multiple B<select>()s in a " |
| 765 |
#| "loop without reinitializing it. Consider I<timeout> to be undefined " |
| 766 |
#| "after B<select>() returns." |
| 767 |
msgid "" |
| 768 |
"On Linux, B<select>() modifies I<timeout> to reflect the amount of time not " |
| 769 |
"slept; most other implementations do not do this. (POSIX.1 permits either " |
| 770 |
"behavior.) This causes problems both when Linux code which reads I<timeout> " |
| 771 |
"is ported to other operating systems, and when code is ported to Linux that " |
| 772 |
"reuses a I<struct\\ timeval> for multiple B<select>()s in a loop without " |
| 773 |
"reinitializing it. Consider I<timeout> to be undefined after B<select>() " |
| 774 |
"returns." |
| 775 |
msgstr "" |
| 776 |
"Sous Linux, la fonction B<select>() modifie I<timeout> pour indiquer le " |
| 777 |
"temps non endormi ; la plupart des autres implémentations ne le font pas " |
| 778 |
"(POSIX.1 autorise les deux comportements). Cela pose des problèmes à la fois " |
| 779 |
"pour porter sur d'autres systèmes du code développé sous Linux qui utilise " |
| 780 |
"cette valeur de I<timeout> modifiée, et pour porter sous Linux du code qui " |
| 781 |
"réutilise plusieurs fois la I<struct timeval> pour plusieurs B<select>()s " |
| 782 |
"dans une boucle sans la réinitialiser. La meilleure attitude à adopter est " |
| 783 |
"de considérer I<timeout> comme indéfini après le retour de B<select>()." |
| 784 |
|
| 785 |
#. type: SH |
| 786 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 787 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 788 |
#, no-wrap |
| 789 |
msgid "RETURN VALUE" |
| 790 |
msgstr "VALEUR RENVOYÉE" |
| 791 |
|
| 792 |
#. type: Plain text |
| 793 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 794 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 795 |
msgid "" |
| 796 |
"On success, B<select>() and B<pselect>() return the number of file " |
| 797 |
"descriptors contained in the three returned descriptor sets (that is, the " |
| 798 |
"total number of bits that are set in I<readfds>, I<writefds>, " |
| 799 |
"I<exceptfds>). The return value may be zero if the timeout expired before " |
| 800 |
"any file descriptors became ready." |
| 801 |
msgstr "" |
| 802 |
"En cas de réussite B<select>() et B<pselect>() renvoient le nombre de " |
| 803 |
"descripteurs dans les trois ensembles de descripteurs renvoyés (c'est-à-dire " |
| 804 |
"le nombre total de bits définis dans I<readfds>, I<writefds> et " |
| 805 |
"I<exceptfds>) qui peut être nul si le délai d’expiration a été atteint avant " |
| 806 |
"qu'un descripteur de fichier ne soit prêt." |
| 807 |
|
| 808 |
#. type: Plain text |
| 809 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 810 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 811 |
msgid "" |
| 812 |
"On error, -1 is returned, and I<errno> is set to indicate the error; the " |
| 813 |
"file descriptor sets are unmodified, and I<timeout> becomes undefined." |
| 814 |
msgstr "" |
| 815 |
"En cas d'erreur, la valeur de retour est B<-1> et I<errno> est définie pour " |
| 816 |
"préciser l'erreur ; les ensembles de descripteurs de fichiers ne sont pas " |
| 817 |
"modifiés et I<timeout> devient indéfini." |
| 818 |
|
| 819 |
#. type: SH |
| 820 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 821 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 822 |
#, no-wrap |
| 823 |
msgid "ERRORS" |
| 824 |
msgstr "ERREURS" |
| 825 |
|
| 826 |
#. type: TP |
| 827 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 828 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 829 |
#, no-wrap |
| 830 |
msgid "B<EBADF>" |
| 831 |
msgstr "B<EBADF>" |
| 832 |
|
| 833 |
#. type: Plain text |
| 834 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 835 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 836 |
msgid "" |
| 837 |
"An invalid file descriptor was given in one of the sets. (Perhaps a file " |
| 838 |
"descriptor that was already closed, or one on which an error has occurred.) " |
| 839 |
"However, see BUGS." |
| 840 |
msgstr "" |
| 841 |
"Un descripteur de fichier non valable était dans l'un des ensembles (peut-" |
| 842 |
"être un descripteur déjà fermé ou sur lequel une erreur s'est " |
| 843 |
"produite).Cependant, consultez BOGUES" |
| 844 |
|
| 845 |
#. type: TP |
| 846 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 847 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 848 |
#, no-wrap |
| 849 |
msgid "B<EINTR>" |
| 850 |
msgstr "B<EINTR>" |
| 851 |
|
| 852 |
#. type: Plain text |
| 853 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 854 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 855 |
msgid "A signal was caught; see B<signal>(7)." |
| 856 |
msgstr "Un signal a été intercepté ; consultez B<signal>(7)." |
| 857 |
|
| 858 |
#. type: TP |
| 859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 860 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
#, no-wrap |
| 862 |
msgid "B<EINVAL>" |
| 863 |
msgstr "B<EINVAL>" |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 867 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 868 |
msgid "" |
| 869 |
"I<nfds> is negative or exceeds the B<RLIMIT_NOFILE> resource limit (see " |
| 870 |
"B<getrlimit>(2))." |
| 871 |
msgstr "" |
| 872 |
"I<nfds> est négatif ou dépasse la limite de ressource B<RLIMIT_NOFILE> (voir " |
| 873 |
"B<getrlimit>(2))." |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 877 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 878 |
msgid "The value contained within I<timeout> is invalid." |
| 879 |
msgstr "La valeur contenue dans I<timeout> n'est pas valable." |
| 880 |
|
| 881 |
#. type: TP |
| 882 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 883 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 884 |
#, no-wrap |
| 885 |
msgid "B<ENOMEM>" |
| 886 |
msgstr "B<ENOMEM>" |
| 887 |
|
| 888 |
#. type: Plain text |
| 889 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 890 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 891 |
msgid "Unable to allocate memory for internal tables." |
| 892 |
msgstr "Incapacité d'allouer de la mémoire pour des tables internes." |
| 893 |
|
| 894 |
#. type: SH |
| 895 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 896 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 897 |
#, no-wrap |
| 898 |
msgid "VERSIONS" |
| 899 |
msgstr "VERSIONS" |
| 900 |
|
| 901 |
#. Darwin, according to a report by Jeremy Sequoia, relayed by Josh Triplett |
| 902 |
#. type: Plain text |
| 903 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 904 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 905 |
msgid "" |
| 906 |
"On some other UNIX systems, B<select>() can fail with the error B<EAGAIN> " |
| 907 |
"if the system fails to allocate kernel-internal resources, rather than " |
| 908 |
"B<ENOMEM> as Linux does. POSIX specifies this error for B<poll>(2), but not " |
| 909 |
"for B<select>(). Portable programs may wish to check for B<EAGAIN> and " |
| 910 |
"loop, just as with B<EINTR>." |
| 911 |
msgstr "" |
| 912 |
"Sur d'autres systèmes UNIX, B<select>() peut échouer avec l'erreur B<EAGAIN> " |
| 913 |
"si le système ne parvient pas à allouer des ressources internes du noyau " |
| 914 |
"contrairement à l'erreur B<ENOMEM> de Linux. POSIX spécifie cette erreur " |
| 915 |
"pour B<poll>(2) mais pas pour B<select>(2). Des programmes portables peuvent " |
| 916 |
"souhaiter vérifier B<EAGAIN> et la boucle comme avec B<EINTR>." |
| 917 |
|
| 918 |
#. type: SH |
| 919 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 920 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 921 |
#, no-wrap |
| 922 |
msgid "STANDARDS" |
| 923 |
msgstr "NORMES" |
| 924 |
|
| 925 |
#. type: Plain text |
| 926 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 927 |
#: opensuse-tumbleweed |
| 928 |
msgid "POSIX.1-2024." |
| 929 |
msgstr "POSIX.1-2024." |
| 930 |
|
| 931 |
#. type: SH |
| 932 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 933 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 934 |
#, no-wrap |
| 935 |
msgid "HISTORY" |
| 936 |
msgstr "HISTORIQUE" |
| 937 |
|
| 938 |
#. type: TP |
| 939 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 940 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
#, no-wrap |
| 942 |
msgid "B<select>()" |
| 943 |
msgstr "B<select>()" |
| 944 |
|
| 945 |
#. type: Plain text |
| 946 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 947 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 948 |
msgid "POSIX.1-2001, 4.4BSD (first appeared in 4.2BSD)." |
| 949 |
msgstr "POSIX.1-2001, 4.4BSD (apparu dans 4.2BSD)." |
| 950 |
|
| 951 |
#. type: Plain text |
| 952 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 953 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 954 |
msgid "" |
| 955 |
"Generally portable to/from non-BSD systems supporting clones of the BSD " |
| 956 |
"socket layer (including System\\ V variants). However, note that the " |
| 957 |
"System\\ V variant typically sets the timeout variable before returning, but " |
| 958 |
"the BSD variant does not." |
| 959 |
msgstr "" |
| 960 |
"Généralement portable depuis ou vers des systèmes non BSD gérant des clones " |
| 961 |
"de la couche sockets BSD (y compris les variantes de System V). Sachez " |
| 962 |
"néanmoins, que les variantes de System V définissent la variable I<timeout> " |
| 963 |
"avant le retour alors que les variantes BSD ne le font pas." |
| 964 |
|
| 965 |
#. type: TP |
| 966 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 967 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 968 |
#, no-wrap |
| 969 |
msgid "B<pselect>()" |
| 970 |
msgstr "B<pselect>()" |
| 971 |
|
| 972 |
#. type: Plain text |
| 973 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 974 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 975 |
msgid "Linux 2.6.16. POSIX.1g, POSIX.1-2001." |
| 976 |
msgstr "Linux 2.6.16. POSIX.1g, POSIX.1-2001." |
| 977 |
|
| 978 |
#. type: Plain text |
| 979 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 980 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 981 |
msgid "Prior to this, it was emulated in glibc (but see BUGS)." |
| 982 |
msgstr "" |
| 983 |
"Précédemment, il était émulé dans la glibc (mais voir la section BOGUES)." |
| 984 |
|
| 985 |
#. type: TP |
| 986 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 987 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 988 |
#, no-wrap |
| 989 |
msgid "B<fd_set>" |
| 990 |
msgstr "B<fd_set>" |
| 991 |
|
| 992 |
#. type: Plain text |
| 993 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 994 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 995 |
msgid "POSIX.1-2001." |
| 996 |
msgstr "POSIX.1-2001." |
| 997 |
|
| 998 |
#. type: SH |
| 999 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1000 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1001 |
#, no-wrap |
| 1002 |
msgid "NOTES" |
| 1003 |
msgstr "NOTES" |
| 1004 |
|
| 1005 |
#. type: Plain text |
| 1006 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1007 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1008 |
msgid "" |
| 1009 |
"The following header also provides the I<fd_set> type: I<E<lt>sys/" |
| 1010 |
"time.hE<gt>>." |
| 1011 |
msgstr "" |
| 1012 |
"L'en-tête suivant fournit aussi le type I<fd_set> : I<E<lt>sys/time.hE<gt>>." |
| 1013 |
|
| 1014 |
#. type: Plain text |
| 1015 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1016 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1017 |
msgid "" |
| 1018 |
"An I<fd_set> is a fixed size buffer. Executing B<FD_CLR>() or B<FD_SET>() " |
| 1019 |
"with a value of I<fd> that is negative or is equal to or larger than " |
| 1020 |
"B<FD_SETSIZE> will result in undefined behavior. Moreover, POSIX requires " |
| 1021 |
"I<fd> to be a valid file descriptor." |
| 1022 |
msgstr "" |
| 1023 |
"Un ensemble I<fd_set> est un tampon de taille fixe. Exécuter B<FD_CLR>() ou " |
| 1024 |
"B<FD_SET>() avec I<fd> négatif ou supérieur ou égal à B<FD_SETSIZE> " |
| 1025 |
"résultera en un comportement indéfini. Plus encore, POSIX demande que I<fd> " |
| 1026 |
"soit un descripteur de fichier valable." |
| 1027 |
|
| 1028 |
#. type: Plain text |
| 1029 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1030 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1031 |
msgid "" |
| 1032 |
"The operation of B<select>() and B<pselect>() is not affected by the " |
| 1033 |
"B<O_NONBLOCK> flag." |
| 1034 |
msgstr "" |
| 1035 |
"Les opérations B<select>() et B<pselect>() ne sont pas concernées par " |
| 1036 |
"l'attribut B<O_NONBLOCK>." |
| 1037 |
|
| 1038 |
#. type: SS |
| 1039 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1040 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1041 |
#, no-wrap |
| 1042 |
msgid "The self-pipe trick" |
| 1043 |
msgstr "L'astuce du « self-pipe »" |
| 1044 |
|
| 1045 |
#. type: Plain text |
| 1046 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1047 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1048 |
msgid "" |
| 1049 |
"On systems that lack B<pselect>(), reliable (and more portable) signal " |
| 1050 |
"trapping can be achieved using the self-pipe trick. In this technique, a " |
| 1051 |
"signal handler writes a byte to a pipe whose other end is monitored by " |
| 1052 |
"B<select>() in the main program. (To avoid possibly blocking when writing " |
| 1053 |
"to a pipe that may be full or reading from a pipe that may be empty, " |
| 1054 |
"nonblocking I/O is used when reading from and writing to the pipe.)" |
| 1055 |
msgstr "" |
| 1056 |
"Sur les systèmes sans B<pselect>, une gestion plus sûre (et plus portable) " |
| 1057 |
"des signaux peut être obtenue en utilisant l'astuce du « self-pipe » : un " |
| 1058 |
"gestionnaire de signal écrit un octet dans un tube dont B<select>() dans le " |
| 1059 |
"programme principal surveille l'autre extrémité. (Pour éviter la possibilité " |
| 1060 |
"de blocage lors de l'écriture dans un tube pouvant être plein ou de la " |
| 1061 |
"lecture dans un tube pouvant être vide, des entrées et sorties non " |
| 1062 |
"bloquantes sont utilisées pour la lecture et l'écriture dans le tube.)" |
| 1063 |
|
| 1064 |
#. type: SS |
| 1065 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1066 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1067 |
#, no-wrap |
| 1068 |
msgid "Emulating usleep(3)" |
| 1069 |
msgstr "Émuler usleep(3)" |
| 1070 |
|
| 1071 |
#. type: Plain text |
| 1072 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1073 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1074 |
msgid "" |
| 1075 |
"Before the advent of B<usleep>(3), some code employed a call to B<select>() " |
| 1076 |
"with all three sets empty, I<nfds> zero, and a non-NULL I<timeout> as a " |
| 1077 |
"fairly portable way to sleep with subsecond precision." |
| 1078 |
msgstr "" |
| 1079 |
"Avant l'arrivée de B<usleep>(3), certaines applications appelaient " |
| 1080 |
"B<select>() avec trois ensembles de descripteurs vides, I<nfds> nul et un " |
| 1081 |
"délai I<timeout> non NULL, afin d'endormir, de manière portable, le " |
| 1082 |
"processus avec une précision plus fine que la seconde." |
| 1083 |
|
| 1084 |
#. type: SS |
| 1085 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1086 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1087 |
#, no-wrap |
| 1088 |
msgid "Correspondence between select() and poll() notifications" |
| 1089 |
msgstr "Correspondance entre les notifications de select() et de poll()" |
| 1090 |
|
| 1091 |
#. fs/select.c |
| 1092 |
#. type: Plain text |
| 1093 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1094 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1095 |
msgid "" |
| 1096 |
"Within the Linux kernel source, we find the following definitions which show " |
| 1097 |
"the correspondence between the readable, writable, and exceptional condition " |
| 1098 |
"notifications of B<select>() and the event notifications provided by " |
| 1099 |
"B<poll>(2) and B<epoll>(7):" |
| 1100 |
msgstr "" |
| 1101 |
"Dans les sources du noyau Linux, nous trouvons les définitions suivantes qui " |
| 1102 |
"montrent la correspondance entre les notifications de lisibilité, " |
| 1103 |
"d'inscriptibilité et de condition exceptionnelle de B<select>() et les " |
| 1104 |
"notifications d'événements fournies par B<poll>(2) et B<epoll>(7) :" |
| 1105 |
|
| 1106 |
#. type: Plain text |
| 1107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1109 |
#, no-wrap |
| 1110 |
msgid "" |
| 1111 |
"#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n" |
| 1112 |
" EPOLLHUP | EPOLLERR)\n" |
| 1113 |
" /* Ready for reading */\n" |
| 1114 |
"#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n" |
| 1115 |
" EPOLLERR)\n" |
| 1116 |
" /* Ready for writing */\n" |
| 1117 |
"#define POLLEX_SET (EPOLLPRI)\n" |
| 1118 |
" /* Exceptional condition */\n" |
| 1119 |
msgstr "" |
| 1120 |
"#define POLLIN_SET (EPOLLRDNORM | EPOLLRDBAND | EPOLLIN |\n" |
| 1121 |
" EPOLLHUP | EPOLLERR)\n" |
| 1122 |
" /* Prêt en lecture */\n" |
| 1123 |
"#define POLLOUT_SET (EPOLLWRBAND | EPOLLWRNORM | EPOLLOUT |\n" |
| 1124 |
" EPOLLERR)\n" |
| 1125 |
" /* Prêt en écriture */\n" |
| 1126 |
"#define POLLEX_SET (EPOLLPRI)\n" |
| 1127 |
" /* Condition exceptionnelle */\n" |
| 1128 |
|
| 1129 |
#. type: SS |
| 1130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1132 |
#, no-wrap |
| 1133 |
msgid "Multithreaded applications" |
| 1134 |
msgstr "Programmes multithreadés" |
| 1135 |
|
| 1136 |
#. type: Plain text |
| 1137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1139 |
msgid "" |
| 1140 |
"If a file descriptor being monitored by B<select>() is closed in another " |
| 1141 |
"thread, the result is unspecified. On some UNIX systems, B<select>() " |
| 1142 |
"unblocks and returns, with an indication that the file descriptor is ready " |
| 1143 |
"(a subsequent I/O operation will likely fail with an error, unless another " |
| 1144 |
"process reopens the file descriptor between the time B<select>() returned " |
| 1145 |
"and the I/O operation is performed). On Linux (and some other systems), " |
| 1146 |
"closing the file descriptor in another thread has no effect on B<select>(). " |
| 1147 |
"In summary, any application that relies on a particular behavior in this " |
| 1148 |
"scenario must be considered buggy." |
| 1149 |
msgstr "" |
| 1150 |
"Si un descripteur de fichier surveillé par B<select>() est fermé dans un " |
| 1151 |
"autre thread, le résultat est indéterminé. Sur certains systèmes UNIX, " |
| 1152 |
"B<select>() débloque et termine, avec une indication que le descripteur de " |
| 1153 |
"fichier est prêt (une opération entrée/sortie ultérieure risque d'échouer " |
| 1154 |
"avec une erreur, sauf si le descripteur de fichier a été réouvert entre le " |
| 1155 |
"moment où B<select>() termine et l'exécution des opérations entrée/sortie). " |
| 1156 |
"Sur Linux (et d'autres systèmes), la fermeture du descripteur de fichier " |
| 1157 |
"dans un autre thread n'a aucun effet sur B<select>(). En résumé, toute " |
| 1158 |
"application qui s'appuie sur un comportement particulier dans ce scénario " |
| 1159 |
"doit être considérée comme boguée." |
| 1160 |
|
| 1161 |
#. type: SS |
| 1162 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1163 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1164 |
#, no-wrap |
| 1165 |
msgid "C library/kernel differences" |
| 1166 |
msgstr "Différences entre bibliothèque C et noyau" |
| 1167 |
|
| 1168 |
#. type: Plain text |
| 1169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1171 |
msgid "" |
| 1172 |
"The Linux kernel allows file descriptor sets of arbitrary size, determining " |
| 1173 |
"the length of the sets to be checked from the value of I<nfds>. However, in " |
| 1174 |
"the glibc implementation, the I<fd_set> type is fixed in size. See also " |
| 1175 |
"BUGS." |
| 1176 |
msgstr "" |
| 1177 |
"Le noyau Linux autorise les ensembles de descripteurs de fichier de " |
| 1178 |
"n'importe quelle taille, en déterminant la taille des ensembles à vérifier à " |
| 1179 |
"partir de la valeur de I<nfds>. Cependant, dans l'implémentation de la " |
| 1180 |
"glibc, le type I<fd_set> a une taille fixe. Voir aussi les BOGUES." |
| 1181 |
|
| 1182 |
#. type: Plain text |
| 1183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1185 |
msgid "" |
| 1186 |
"The B<pselect>() interface described in this page is implemented by glibc. " |
| 1187 |
"The underlying Linux system call is named B<pselect6>(). This system call " |
| 1188 |
"has somewhat different behavior from the glibc wrapper function." |
| 1189 |
msgstr "" |
| 1190 |
"L'interface B<pselect>() décrite dans cette page est implémentée par la " |
| 1191 |
"glibc. L'appel système Linux sous-jacent est appelé B<pselect6>(). Cet appel " |
| 1192 |
"système a un comportement quelque peu différent de la fonction d'enveloppe " |
| 1193 |
"de la glibc." |
| 1194 |
|
| 1195 |
#. type: Plain text |
| 1196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1198 |
msgid "" |
| 1199 |
"The Linux B<pselect6>() system call modifies its I<timeout> argument. " |
| 1200 |
"However, the glibc wrapper function hides this behavior by using a local " |
| 1201 |
"variable for the timeout argument that is passed to the system call. Thus, " |
| 1202 |
"the glibc B<pselect>() function does not modify its I<timeout> argument; " |
| 1203 |
"this is the behavior required by POSIX.1-2001." |
| 1204 |
msgstr "" |
| 1205 |
"L'appel système B<pselect6>() de Linux modifie son argument I<timeout>. " |
| 1206 |
"Cependant, la fonction d'enveloppe de la glibc cache ce comportement en " |
| 1207 |
"utilisant une variable locale pour l'argument I<timeout> qui est passé à " |
| 1208 |
"l'appel système. Par conséquent, la fonction B<pselect>() de la glibc ne " |
| 1209 |
"modifie pas son paramètre I<timeout>, ce qui est le comportement prescrit " |
| 1210 |
"par POSIX.1-2001." |
| 1211 |
|
| 1212 |
#. type: Plain text |
| 1213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1215 |
msgid "" |
| 1216 |
"The final argument of the B<pselect6>() system call is not a I<sigset_t\\ " |
| 1217 |
"*> pointer, but is instead a structure of the form:" |
| 1218 |
msgstr "" |
| 1219 |
"Le dernier argument de l'appel système B<pselect6>() n'est pas un pointeur " |
| 1220 |
"I<sigset_t\\ *>, mais une structure de la forme suivante :" |
| 1221 |
|
| 1222 |
#. type: Plain text |
| 1223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1225 |
#, no-wrap |
| 1226 |
msgid "" |
| 1227 |
"struct {\n" |
| 1228 |
" const kernel_sigset_t *ss; /* Pointer to signal set */\n" |
| 1229 |
" size_t ss_len; /* Size (in bytes) of object\n" |
| 1230 |
" pointed to by \\[aq]ss\\[aq] */\n" |
| 1231 |
"};\n" |
| 1232 |
msgstr "" |
| 1233 |
"struct {\n" |
| 1234 |
" const kernel_sigset_t *ss; /* Pointeur vers un ensemble de signaux */\n" |
| 1235 |
" size_t ss_len; /* Taille (en octets) de l'objet vers\n" |
| 1236 |
" lequel pointe \\[aq]ss\\[aq] */\n" |
| 1237 |
"};\n" |
| 1238 |
|
| 1239 |
#. type: Plain text |
| 1240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1242 |
msgid "" |
| 1243 |
"This allows the system call to obtain both a pointer to the signal set and " |
| 1244 |
"its size, while allowing for the fact that most architectures support a " |
| 1245 |
"maximum of 6 arguments to a system call. See B<sigprocmask>(2) for a " |
| 1246 |
"discussion of the difference between the kernel and libc notion of the " |
| 1247 |
"signal set." |
| 1248 |
msgstr "" |
| 1249 |
"Cela permet à l'appel système d'obtenir à la fois le pointeur vers " |
| 1250 |
"l'ensemble de signaux et sa taille, tout en permettant à la plupart des " |
| 1251 |
"architectures de ne prendre en charge qu'un maximum de 6 arguments pour un " |
| 1252 |
"appel système. Voir B<sigprocmask>(2) pour un point sur la différence entre " |
| 1253 |
"la vision du noyau et celle de la libc de l'ensemble de signaux." |
| 1254 |
|
| 1255 |
#. type: SS |
| 1256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1258 |
#, no-wrap |
| 1259 |
msgid "Historical glibc details" |
| 1260 |
msgstr "Détails historiques sur la glibc" |
| 1261 |
|
| 1262 |
#. type: Plain text |
| 1263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1265 |
msgid "" |
| 1266 |
"glibc 2.0 provided an incorrect version of B<pselect>() that did not take a " |
| 1267 |
"I<sigmask> argument." |
| 1268 |
msgstr "" |
| 1269 |
"La glibc 2.0 fournissait une mauvaise version de B<pselect>() qui n'avait " |
| 1270 |
"pas d'argument I<sigmask>." |
| 1271 |
|
| 1272 |
#. type: Plain text |
| 1273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1275 |
msgid "" |
| 1276 |
"From glibc 2.1 to glibc 2.2.1, one must define B<_GNU_SOURCE> in order to " |
| 1277 |
"obtain the declaration of B<pselect>() from I<E<lt>sys/select.hE<gt>>." |
| 1278 |
msgstr "" |
| 1279 |
"De la glibc 2.1 à la glibc 2.2.1, on peut définir B<_GNU_SOURCE> afin " |
| 1280 |
"d'obtenir la déclaration de B<pselect>() depuis I<E<lt>sys/select.hE<gt>>." |
| 1281 |
|
| 1282 |
#. type: SH |
| 1283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1285 |
#, no-wrap |
| 1286 |
msgid "BUGS" |
| 1287 |
msgstr "BOGUES" |
| 1288 |
|
| 1289 |
#. type: Plain text |
| 1290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1292 |
msgid "" |
| 1293 |
"POSIX allows an implementation to define an upper limit, advertised via the " |
| 1294 |
"constant B<FD_SETSIZE>, on the range of file descriptors that can be " |
| 1295 |
"specified in a file descriptor set. The Linux kernel imposes no fixed " |
| 1296 |
"limit, but the glibc implementation makes I<fd_set> a fixed-size type, with " |
| 1297 |
"B<FD_SETSIZE> defined as 1024, and the B<FD_*>() macros operating according " |
| 1298 |
"to that limit. To monitor file descriptors greater than 1023, use " |
| 1299 |
"B<poll>(2) or B<epoll>(7) instead." |
| 1300 |
msgstr "" |
| 1301 |
"POSIX autorise une implémentation à définir une limite supérieure indiquée à " |
| 1302 |
"l'aide de la constante B<FD_SETSIZE>, dans l'intervalle de descripteurs de " |
| 1303 |
"fichier qui peuvent être indiqués dans un ensemble de descripteurs de " |
| 1304 |
"fichier. Le noyau Linux n'impose pas de limite fixe mais l'implémentation de " |
| 1305 |
"la glibc fait que I<fd_set> est un type de taille fixe, où B<FD_SETSIZE> est " |
| 1306 |
"défini à 1024 et où les macros B<FD_*>() agissent en fonction de cette " |
| 1307 |
"limite. Pour surveiller des descripteurs de fichier supérieurs à 1023, " |
| 1308 |
"utilisez plutôt B<poll>(2) ou B<epoll>(7)." |
| 1309 |
|
| 1310 |
#. type: Plain text |
| 1311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1313 |
msgid "" |
| 1314 |
"The implementation of the I<fd_set> arguments as value-result arguments is a " |
| 1315 |
"design error that is avoided in B<poll>(2) and B<epoll>(7)." |
| 1316 |
msgstr "" |
| 1317 |
"L'implémentation des paramètres de I<fd_set> en tant qu'arguments valeur-" |
| 1318 |
"résultat est une erreur de conception qui est évitée dans B<poll>(2) et " |
| 1319 |
"B<epoll>(7)." |
| 1320 |
|
| 1321 |
#. type: Plain text |
| 1322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1324 |
msgid "" |
| 1325 |
"According to POSIX, B<select>() should check all specified file descriptors " |
| 1326 |
"in the three file descriptor sets, up to the limit I<nfds-1>. However, the " |
| 1327 |
"current implementation ignores any file descriptor in these sets that is " |
| 1328 |
"greater than the maximum file descriptor number that the process currently " |
| 1329 |
"has open. According to POSIX, any such file descriptor that is specified in " |
| 1330 |
"one of the sets should result in the error B<EBADF>." |
| 1331 |
msgstr "" |
| 1332 |
"Selon POSIX, B<select>() devrait vérifier tous les descripteurs de fichier " |
| 1333 |
"des trois ensembles jusqu'à I<nfds-1>. Cependant, l'implémentation actuelle " |
| 1334 |
"ignore tout descripteur de fichier dans ces ensembles supérieur au numéro le " |
| 1335 |
"plus élevé de descripteur de fichier que le processus a ouvert. Selon POSIX, " |
| 1336 |
"un tel descripteur de fichier indiqué dans l'un des ensembles devrait " |
| 1337 |
"provoquer une erreur B<EBADF>." |
| 1338 |
|
| 1339 |
#. type: Plain text |
| 1340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1342 |
msgid "" |
| 1343 |
"Starting with glibc 2.1, glibc provided an emulation of B<pselect>() that " |
| 1344 |
"was implemented using B<sigprocmask>(2) and B<select>(). This " |
| 1345 |
"implementation remained vulnerable to the very race condition that " |
| 1346 |
"B<pselect>() was designed to prevent. Modern versions of glibc use the " |
| 1347 |
"(race-free) B<pselect>() system call on kernels where it is provided." |
| 1348 |
msgstr "" |
| 1349 |
"À partir de la glibc 2.1, la glibc fournissait une émulation de B<pselect>() " |
| 1350 |
"implémentée avec B<sigprocmask>(2) et B<select>(). Cette implémentation " |
| 1351 |
"était vulnérable à la condition de concurrence que B<pselect>() était conçu " |
| 1352 |
"pour éviter. Les versions récentes de la glibc utilisent l'appel système " |
| 1353 |
"B<pselect>() (sans risque de concurrence) si le noyau le fournit." |
| 1354 |
|
| 1355 |
#. Stevens discusses a case where accept can block after select |
| 1356 |
#. returns successfully because of an intervening RST from the client. |
| 1357 |
#. Maybe the kernel should have returned EIO in such a situation? |
| 1358 |
#. type: Plain text |
| 1359 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1360 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1361 |
msgid "" |
| 1362 |
"On Linux, B<select>() may report a socket file descriptor as \"ready for " |
| 1363 |
"reading\", while nevertheless a subsequent read blocks. This could for " |
| 1364 |
"example happen when data has arrived but upon examination has the wrong " |
| 1365 |
"checksum and is discarded. There may be other circumstances in which a file " |
| 1366 |
"descriptor is spuriously reported as ready. Thus it may be safer to use " |
| 1367 |
"B<O_NONBLOCK> on sockets that should not block." |
| 1368 |
msgstr "" |
| 1369 |
"Sous Linux, B<select>() peut signaler un descripteur de fichier socket comme " |
| 1370 |
"«\\ prêt à lire\\ » alors qu'une lecture suivante bloque. Cela peut, par " |
| 1371 |
"exemple, survenir lorsque des données sont arrivées mais, après " |
| 1372 |
"vérification, ont une mauvaise somme de contrôle et sont rejetées. Cela peut " |
| 1373 |
"également arriver dans d'autres circonstances dans lesquelles le descripteur " |
| 1374 |
"de fichier est faussement signalé comme prêt. Aussi, il est plus sûr " |
| 1375 |
"d'utiliser B<O_NONBLOCK> sur des sockets qui ne devraient pas bloquer." |
| 1376 |
|
| 1377 |
#. type: Plain text |
| 1378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1380 |
msgid "" |
| 1381 |
"On Linux, B<select>() also modifies I<timeout> if the call is interrupted " |
| 1382 |
"by a signal handler (i.e., the B<EINTR> error return). This is not " |
| 1383 |
"permitted by POSIX.1. The Linux B<pselect>() system call has the same " |
| 1384 |
"behavior, but the glibc wrapper hides this behavior by internally copying " |
| 1385 |
"the I<timeout> to a local variable and passing that variable to the system " |
| 1386 |
"call." |
| 1387 |
msgstr "" |
| 1388 |
"Sous Linux, B<select>() modifie également I<timeout> si l'appel est " |
| 1389 |
"interrompu par un gestionnaire de signaux (code d'erreur B<EINTR>). Cela est " |
| 1390 |
"interdit par POSIX.1. L'appel système B<pselect>() de Linux se comporte de " |
| 1391 |
"la même façon, mais la glibc cache cette particularité en copiant I<timeout> " |
| 1392 |
"vers une variable locale et en passant cette variable à l'appel système." |
| 1393 |
|
| 1394 |
#. type: SH |
| 1395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1397 |
#, no-wrap |
| 1398 |
msgid "EXAMPLES" |
| 1399 |
msgstr "EXEMPLES" |
| 1400 |
|
| 1401 |
#. type: Plain text |
| 1402 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1403 |
#: opensuse-tumbleweed |
| 1404 |
#, fuzzy, no-wrap |
| 1405 |
#| msgid "" |
| 1406 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 1407 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 1408 |
#| "#include E<lt>sys/select.hE<gt>\n" |
| 1409 |
#| "#include E<lt>sys/time.hE<gt>\n" |
| 1410 |
#| "\\&\n" |
| 1411 |
#| "int\n" |
| 1412 |
#| "main(void)\n" |
| 1413 |
#| "{\n" |
| 1414 |
#| " int retval;\n" |
| 1415 |
#| " fd_set rfds;\n" |
| 1416 |
#| " struct timeval tv;\n" |
| 1417 |
#| "\\&\n" |
| 1418 |
#| " /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1419 |
#| "\\&\n" |
| 1420 |
#| " FD_ZERO(&rfds);\n" |
| 1421 |
#| " FD_SET(0, &rfds);\n" |
| 1422 |
#| "\\&\n" |
| 1423 |
#| " /* Wait up to five seconds. */\n" |
| 1424 |
#| "\\&\n" |
| 1425 |
#| " tv.tv_sec = 5;\n" |
| 1426 |
#| " tv.tv_usec = 0;\n" |
| 1427 |
#| "\\&\n" |
| 1428 |
#| " retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1429 |
#| " /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1430 |
#| "\\&\n" |
| 1431 |
#| " if (retval == -1)\n" |
| 1432 |
#| " perror(\"select()\");\n" |
| 1433 |
#| " else if (retval)\n" |
| 1434 |
#| " printf(\"Data is available now.\\[rs]n\");\n" |
| 1435 |
#| " /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1436 |
#| " else\n" |
| 1437 |
#| " printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1438 |
#| "\\&\n" |
| 1439 |
#| " exit(EXIT_SUCCESS);\n" |
| 1440 |
#| "}\n" |
| 1441 |
msgid "" |
| 1442 |
"#include E<lt>stdio.hE<gt>\n" |
| 1443 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1444 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1445 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1446 |
"\\&\n" |
| 1447 |
"int\n" |
| 1448 |
"main(void)\n" |
| 1449 |
"{\n" |
| 1450 |
" int retval;\n" |
| 1451 |
" fd_set rfds;\n" |
| 1452 |
" struct timeval tv;\n" |
| 1453 |
"\\&\n" |
| 1454 |
" /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1455 |
"\\&\n" |
| 1456 |
" FD_ZERO(&rfds);\n" |
| 1457 |
" FD_SET(0, &rfds);\n" |
| 1458 |
"\\&\n" |
| 1459 |
" /* Wait up to five seconds. */\n" |
| 1460 |
"\\&\n" |
| 1461 |
" tv.tv_sec = 5;\n" |
| 1462 |
" tv.tv_usec = 0;\n" |
| 1463 |
"\\&\n" |
| 1464 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1465 |
" /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1466 |
"\\&\n" |
| 1467 |
" if (retval == -1)\n" |
| 1468 |
" perror(\"select()\");\n" |
| 1469 |
" else if (retval)\n" |
| 1470 |
" printf(\"Data is available now.\\[rs]n\");\n" |
| 1471 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1472 |
" else\n" |
| 1473 |
" printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1474 |
"\\&\n" |
| 1475 |
" exit(EXIT_SUCCESS);\n" |
| 1476 |
"}\n" |
| 1477 |
msgstr "" |
| 1478 |
"#include E<lt>stdio.hE<gt>\n" |
| 1479 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1480 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1481 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1482 |
"\\&\n" |
| 1483 |
"int\n" |
| 1484 |
"main(void)\n" |
| 1485 |
"{\n" |
| 1486 |
" int retval;\n" |
| 1487 |
" fd_set rfds;\n" |
| 1488 |
" struct timeval tv;\n" |
| 1489 |
"\\&\n" |
| 1490 |
" /* Surveiller stdin (fd 0) en attente d'entrées. */\n" |
| 1491 |
"\\&\n" |
| 1492 |
" FD_ZERO(&rfds);\n" |
| 1493 |
" FD_SET(0, &rfds);\n" |
| 1494 |
"\\&\n" |
| 1495 |
" /* Attendre jusqu'à 5 secondes. */\n" |
| 1496 |
"\\&\n" |
| 1497 |
" tv.tv_sec = 5;\n" |
| 1498 |
" tv.tv_usec = 0;\n" |
| 1499 |
"\\&\n" |
| 1500 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1501 |
" /* Ne pas s'appuyer sur la valeur de tv maintenant ! */\n" |
| 1502 |
"\\&\n" |
| 1503 |
" if (retval == -1)\n" |
| 1504 |
" perror(\"select()\");\n" |
| 1505 |
" else if (retval)\n" |
| 1506 |
" printf(\"Des données sont disponibles maintenant\\[rs]n\");\n" |
| 1507 |
" /* FD_ISSET(0, &rfds) est alors vrai. */\n" |
| 1508 |
" else\n" |
| 1509 |
" printf(\"Aucune donnée durant les cinq secondes.\\[rs]n\");\n" |
| 1510 |
"\\&\n" |
| 1511 |
" exit(EXIT_SUCCESS);\n" |
| 1512 |
"}\n" |
| 1513 |
|
| 1514 |
#. SRC END |
| 1515 |
#. type: SH |
| 1516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1518 |
#, no-wrap |
| 1519 |
msgid "SEE ALSO" |
| 1520 |
msgstr "VOIR AUSSI" |
| 1521 |
|
| 1522 |
#. type: Plain text |
| 1523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1525 |
msgid "" |
| 1526 |
"B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), " |
| 1527 |
"B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), " |
| 1528 |
"B<timespec>(3), B<epoll>(7), B<time>(7)" |
| 1529 |
msgstr "" |
| 1530 |
"B<accept>(2), B<connect>(2), B<poll>(2), B<read>(2), B<recv>(2), " |
| 1531 |
"B<restart_syscall>(2), B<send>(2), B<sigprocmask>(2), B<write>(2), " |
| 1532 |
"B<timespec>(3), B<epoll>(7), B<time>(7)" |
| 1533 |
|
| 1534 |
#. type: Plain text |
| 1535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1537 |
msgid "For a tutorial with discussion and examples, see B<select_tut>(2)." |
| 1538 |
msgstr "Pour un tutoriel avec des exemples, consultez B<select_tut>(2)." |
| 1539 |
|
| 1540 |
#. type: TH |
| 1541 |
#: debian-trixie |
| 1542 |
#, no-wrap |
| 1543 |
msgid "2024-06-15" |
| 1544 |
msgstr "15 juin 2024" |
| 1545 |
|
| 1546 |
#. type: TH |
| 1547 |
#: debian-trixie |
| 1548 |
#, no-wrap |
| 1549 |
msgid "Linux man-pages 6.9.1" |
| 1550 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 1551 |
|
| 1552 |
#. type: Plain text |
| 1553 |
#: debian-trixie |
| 1554 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1555 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 1556 |
|
| 1557 |
#. type: Plain text |
| 1558 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1559 |
#, no-wrap |
| 1560 |
msgid "B<typedef> /* ... */ B<fd_set;>\n" |
| 1561 |
msgstr "B<typedef> /* ... */ B<fd_set;>\n" |
| 1562 |
|
| 1563 |
#. type: Plain text |
| 1564 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1565 |
#, no-wrap |
| 1566 |
msgid "" |
| 1567 |
"B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1568 |
"B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1569 |
"B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1570 |
"B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 1571 |
msgstr "" |
| 1572 |
"B<void FD_CLR(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1573 |
"B<int FD_ISSET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1574 |
"B<void FD_SET(int >I<fd>B<, fd_set *>I<set>B<);>\n" |
| 1575 |
"B<void FD_ZERO(fd_set *>I<set>B<);>\n" |
| 1576 |
|
| 1577 |
#. .P - it is rumored that: |
| 1578 |
#. On BSD, when a timeout occurs, the file descriptor bits are not changed. |
| 1579 |
#. - it is certainly true that: |
| 1580 |
#. Linux follows SUSv2 and sets the bit masks to zero upon a timeout. |
| 1581 |
#. type: Plain text |
| 1582 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1583 |
msgid "" |
| 1584 |
"On Linux, B<select>() modifies I<timeout> to reflect the amount of time not " |
| 1585 |
"slept; most other implementations do not do this. (POSIX.1 permits either " |
| 1586 |
"behavior.) This causes problems both when Linux code which reads I<timeout> " |
| 1587 |
"is ported to other operating systems, and when code is ported to Linux that " |
| 1588 |
"reuses a I<struct timeval> for multiple B<select>()s in a loop without " |
| 1589 |
"reinitializing it. Consider I<timeout> to be undefined after B<select>() " |
| 1590 |
"returns." |
| 1591 |
msgstr "" |
| 1592 |
"Sous Linux, la fonction B<select>() modifie I<timeout> pour indiquer le " |
| 1593 |
"temps non endormi ; la plupart des autres implémentations ne le font pas " |
| 1594 |
"(POSIX.1 autorise les deux comportements). Cela pose des problèmes à la fois " |
| 1595 |
"pour porter sur d'autres systèmes du code développé sous Linux qui utilise " |
| 1596 |
"cette valeur de I<timeout> modifiée, et pour porter sous Linux du code qui " |
| 1597 |
"réutilise plusieurs fois la I<struct timeval> pour plusieurs B<select>()s " |
| 1598 |
"dans une boucle sans la réinitialiser. La meilleure attitude à adopter est " |
| 1599 |
"de considérer I<timeout> comme indéfini après le retour de B<select>()." |
| 1600 |
|
| 1601 |
#. type: Plain text |
| 1602 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1603 |
msgid "POSIX.1-2008." |
| 1604 |
msgstr "POSIX.1-2008." |
| 1605 |
|
| 1606 |
#. type: Plain text |
| 1607 |
#: debian-trixie |
| 1608 |
#, no-wrap |
| 1609 |
msgid "" |
| 1610 |
"#include E<lt>stdio.hE<gt>\n" |
| 1611 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1612 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1613 |
"\\&\n" |
| 1614 |
"int\n" |
| 1615 |
"main(void)\n" |
| 1616 |
"{\n" |
| 1617 |
" int retval;\n" |
| 1618 |
" fd_set rfds;\n" |
| 1619 |
" struct timeval tv;\n" |
| 1620 |
"\\&\n" |
| 1621 |
" /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1622 |
"\\&\n" |
| 1623 |
" FD_ZERO(&rfds);\n" |
| 1624 |
" FD_SET(0, &rfds);\n" |
| 1625 |
"\\&\n" |
| 1626 |
" /* Wait up to five seconds. */\n" |
| 1627 |
"\\&\n" |
| 1628 |
" tv.tv_sec = 5;\n" |
| 1629 |
" tv.tv_usec = 0;\n" |
| 1630 |
"\\&\n" |
| 1631 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1632 |
" /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1633 |
"\\&\n" |
| 1634 |
" if (retval == -1)\n" |
| 1635 |
" perror(\"select()\");\n" |
| 1636 |
" else if (retval)\n" |
| 1637 |
" printf(\"Data is available now.\\[rs]n\");\n" |
| 1638 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1639 |
" else\n" |
| 1640 |
" printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1641 |
"\\&\n" |
| 1642 |
" exit(EXIT_SUCCESS);\n" |
| 1643 |
"}\n" |
| 1644 |
msgstr "" |
| 1645 |
"#include E<lt>stdio.hE<gt>\n" |
| 1646 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1647 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1648 |
"\\&\n" |
| 1649 |
"int\n" |
| 1650 |
"main(void)\n" |
| 1651 |
"{\n" |
| 1652 |
" int retval;\n" |
| 1653 |
" fd_set rfds;\n" |
| 1654 |
" struct timeval tv;\n" |
| 1655 |
"\\&\n" |
| 1656 |
" /* Surveiller stdin (fd 0) en attente d'entrées. */\n" |
| 1657 |
"\\&\n" |
| 1658 |
" FD_ZERO(&rfds);\n" |
| 1659 |
" FD_SET(0, &rfds);\n" |
| 1660 |
"\\&\n" |
| 1661 |
" /* Attendre jusqu'à 5 secondes. */\n" |
| 1662 |
"\\&\n" |
| 1663 |
" tv.tv_sec = 5;\n" |
| 1664 |
" tv.tv_usec = 0;\n" |
| 1665 |
"\\&\n" |
| 1666 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1667 |
" /* Ne pas s'appuyer sur la valeur de tv maintenant ! */\n" |
| 1668 |
"\\&\n" |
| 1669 |
" if (retval == -1)\n" |
| 1670 |
" perror(\"select()\");\n" |
| 1671 |
" else if (retval)\n" |
| 1672 |
" printf(\"Des données sont disponibles maintenant\\[rs]n\");\n" |
| 1673 |
" /* FD_ISSET(0, &rfds) est alors vrai. */\n" |
| 1674 |
" else\n" |
| 1675 |
" printf(\"Aucune donnée durant les cinq secondes.\\[rs]n\");\n" |
| 1676 |
"\\&\n" |
| 1677 |
" exit(EXIT_SUCCESS);\n" |
| 1678 |
"}\n" |
| 1679 |
|
| 1680 |
#. type: TH |
| 1681 |
#: fedora-44 fedora-rawhide |
| 1682 |
#, no-wrap |
| 1683 |
msgid "2024-11-03" |
| 1684 |
msgstr "3 novembre 2024" |
| 1685 |
|
| 1686 |
#. type: TH |
| 1687 |
#: fedora-44 fedora-rawhide |
| 1688 |
#, no-wrap |
| 1689 |
msgid "Linux man-pages 6.13" |
| 1690 |
msgstr "Pages du manuel de Linux 6.13" |
| 1691 |
|
| 1692 |
#. type: Plain text |
| 1693 |
#: fedora-44 fedora-rawhide |
| 1694 |
#, no-wrap |
| 1695 |
msgid "" |
| 1696 |
"#include E<lt>stdio.hE<gt>\n" |
| 1697 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1698 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1699 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1700 |
"\\&\n" |
| 1701 |
"int\n" |
| 1702 |
"main(void)\n" |
| 1703 |
"{\n" |
| 1704 |
" int retval;\n" |
| 1705 |
" fd_set rfds;\n" |
| 1706 |
" struct timeval tv;\n" |
| 1707 |
"\\&\n" |
| 1708 |
" /* Watch stdin (fd 0) to see when it has input. */\n" |
| 1709 |
"\\&\n" |
| 1710 |
" FD_ZERO(&rfds);\n" |
| 1711 |
" FD_SET(0, &rfds);\n" |
| 1712 |
"\\&\n" |
| 1713 |
" /* Wait up to five seconds. */\n" |
| 1714 |
"\\&\n" |
| 1715 |
" tv.tv_sec = 5;\n" |
| 1716 |
" tv.tv_usec = 0;\n" |
| 1717 |
"\\&\n" |
| 1718 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1719 |
" /* Don\\[aq]t rely on the value of tv now! */\n" |
| 1720 |
"\\&\n" |
| 1721 |
" if (retval == -1)\n" |
| 1722 |
" perror(\"select()\");\n" |
| 1723 |
" else if (retval)\n" |
| 1724 |
" printf(\"Data is available now.\\[rs]n\");\n" |
| 1725 |
" /* FD_ISSET(0, &rfds) will be true. */\n" |
| 1726 |
" else\n" |
| 1727 |
" printf(\"No data within five seconds.\\[rs]n\");\n" |
| 1728 |
"\\&\n" |
| 1729 |
" exit(EXIT_SUCCESS);\n" |
| 1730 |
"}\n" |
| 1731 |
msgstr "" |
| 1732 |
"#include E<lt>stdio.hE<gt>\n" |
| 1733 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1734 |
"#include E<lt>sys/select.hE<gt>\n" |
| 1735 |
"#include E<lt>sys/time.hE<gt>\n" |
| 1736 |
"\\&\n" |
| 1737 |
"int\n" |
| 1738 |
"main(void)\n" |
| 1739 |
"{\n" |
| 1740 |
" int retval;\n" |
| 1741 |
" fd_set rfds;\n" |
| 1742 |
" struct timeval tv;\n" |
| 1743 |
"\\&\n" |
| 1744 |
" /* Surveiller stdin (fd 0) en attente d'entrées. */\n" |
| 1745 |
"\\&\n" |
| 1746 |
" FD_ZERO(&rfds);\n" |
| 1747 |
" FD_SET(0, &rfds);\n" |
| 1748 |
"\\&\n" |
| 1749 |
" /* Attendre jusqu'à 5 secondes. */\n" |
| 1750 |
"\\&\n" |
| 1751 |
" tv.tv_sec = 5;\n" |
| 1752 |
" tv.tv_usec = 0;\n" |
| 1753 |
"\\&\n" |
| 1754 |
" retval = select(1, &rfds, NULL, NULL, &tv);\n" |
| 1755 |
" /* Ne pas s'appuyer sur la valeur de tv maintenant ! */\n" |
| 1756 |
"\\&\n" |
| 1757 |
" if (retval == -1)\n" |
| 1758 |
" perror(\"select()\");\n" |
| 1759 |
" else if (retval)\n" |
| 1760 |
" printf(\"Des données sont disponibles maintenant\\[rs]n\");\n" |
| 1761 |
" /* FD_ISSET(0, &rfds) est alors vrai. */\n" |
| 1762 |
" else\n" |
| 1763 |
" printf(\"Aucune donnée durant les cinq secondes.\\[rs]n\");\n" |
| 1764 |
"\\&\n" |
| 1765 |
" exit(EXIT_SUCCESS);\n" |
| 1766 |
"}\n" |
| 1767 |
|
| 1768 |
#. type: TH |
| 1769 |
#: mageia-cauldron |
| 1770 |
#, no-wrap |
| 1771 |
msgid "Linux man-pages 6.17" |
| 1772 |
msgstr "Pages du manuel de Linux 6.17" |
| 1773 |
|
| 1774 |
#. type: TH |
| 1775 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1776 |
#, no-wrap |
| 1777 |
msgid "Linux man-pages (unreleased)" |
| 1778 |
msgstr "Pages du manuel de Linux (non publiées)" |