| 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. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010, 2012, 2013. |
| 18 |
# Cédric Boutillier <[email protected]>, 2011, 2012, 2013. |
| 19 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 20 |
# Jean-Philippe MENGUAL <[email protected]>, 2020-2024. |
| 21 |
msgid "" |
| 22 |
msgstr "" |
| 23 |
"Project-Id-Version: manpages-l10n 4.24.0\n" |
| 24 |
"POT-Creation-Date: 2026-06-05 06:23+0200\n" |
| 25 |
"PO-Revision-Date: 2024-11-05 16:23+0100\n" |
| 26 |
"Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n" |
| 27 |
"Language-Team: French <[email protected]>\n" |
| 28 |
"Language: fr\n" |
| 29 |
"MIME-Version: 1.0\n" |
| 30 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 31 |
"Content-Transfer-Encoding: 8bit\n" |
| 32 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 33 |
"X-Generator: Lokalize 22.12.3\n" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 37 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "eventfd" |
| 40 |
msgstr "eventfd" |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "2026-02-16" |
| 46 |
msgstr "16 février 2026" |
| 47 |
|
| 48 |
#. type: TH |
| 49 |
#: archlinux debian-unstable |
| 50 |
#, no-wrap |
| 51 |
msgid "Linux man-pages 6.18" |
| 52 |
msgstr "Pages du manuel de Linux 6.18" |
| 53 |
|
| 54 |
#. type: SH |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
#, no-wrap |
| 58 |
msgid "NAME" |
| 59 |
msgstr "NOM" |
| 60 |
|
| 61 |
#. type: Plain text |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
msgid "eventfd - create a file descriptor for event notification" |
| 65 |
msgstr "" |
| 66 |
"eventfd - Créer un descripteur de fichier pour la notification d'événements" |
| 67 |
|
| 68 |
#. type: SH |
| 69 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 70 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
#, no-wrap |
| 72 |
msgid "LIBRARY" |
| 73 |
msgstr "BIBLIOTHÈQUE" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 77 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 79 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 80 |
|
| 81 |
#. type: SH |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "SYNOPSIS" |
| 86 |
msgstr "SYNOPSIS" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
#, no-wrap |
| 92 |
msgid "B<#include E<lt>sys/eventfd.hE<gt>>\n" |
| 93 |
msgstr "B<#include E<lt>sys/eventfd.hE<gt>>\n" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
#, no-wrap |
| 99 |
msgid "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n" |
| 100 |
msgstr "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n" |
| 101 |
|
| 102 |
#. type: SH |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid "DESCRIPTION" |
| 107 |
msgstr "DESCRIPTION" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
msgid "" |
| 113 |
"B<eventfd>() creates an \"eventfd object\" that can be used as an event " |
| 114 |
"wait/notify mechanism by user-space applications, and by the kernel to " |
| 115 |
"notify user-space applications of events. The object contains an unsigned " |
| 116 |
"64-bit integer (I<uint64_t>) counter that is maintained by the kernel. " |
| 117 |
"This counter is initialized with the value specified in the argument " |
| 118 |
"I<initval>." |
| 119 |
msgstr "" |
| 120 |
"B<eventfd>() créée un « objet eventfd » qui peut être utilisé par les " |
| 121 |
"applications de l'espace utilisateur pour l'attente ou la notification d'un " |
| 122 |
"événement et par le noyau pour notifier des applications de certains " |
| 123 |
"événements. Les objets contiennent un compteur entier non signé sur 64 bits " |
| 124 |
"(I<uint64_t>) qui est maintenu par le noyau. Ce compteur est initialisé à la " |
| 125 |
"valeur spécifiée par le paramètre I<initval>." |
| 126 |
|
| 127 |
#. type: Plain text |
| 128 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 129 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 130 |
msgid "" |
| 131 |
"As its return value, B<eventfd>() returns a new file descriptor that can be " |
| 132 |
"used to refer to the eventfd object." |
| 133 |
msgstr "" |
| 134 |
"Comme valeur de retour, B<eventfd>() renvoie un nouveau descripteur de " |
| 135 |
"fichier qui peut être utilisé pour se référer à l'objet eventfd." |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
msgid "" |
| 141 |
"The following values may be bitwise ORed in I<flags> to change the behavior " |
| 142 |
"of B<eventfd>():" |
| 143 |
msgstr "" |
| 144 |
"Les valeurs suivantes peuvent être incluses (avec un OU logique) dans " |
| 145 |
"I<flags> pour changer le comportement de B<eventfd>() :" |
| 146 |
|
| 147 |
#. type: TP |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
#, no-wrap |
| 151 |
msgid "B<EFD_CLOEXEC> (since Linux 2.6.27)" |
| 152 |
msgstr "B<EFD_CLOEXEC> (depuis Linux 2.6.27)" |
| 153 |
|
| 154 |
#. type: Plain text |
| 155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 156 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 157 |
msgid "" |
| 158 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See " |
| 159 |
"the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this " |
| 160 |
"may be useful." |
| 161 |
msgstr "" |
| 162 |
"Placer l'attribut « close-on-exec » (B<FD_CLOEXEC>) sur le nouveau " |
| 163 |
"descripteur de fichier. Consultez la description de l'attribut B<O_CLOEXEC> " |
| 164 |
"dans B<open>(2) pour savoir pourquoi cela peut être utile." |
| 165 |
|
| 166 |
#. type: TP |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
#, no-wrap |
| 170 |
msgid "B<EFD_NONBLOCK> (since Linux 2.6.27)" |
| 171 |
msgstr "B<EFD_NONBLOCK> (depuis Linux 2.6.27)" |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "" |
| 177 |
"Set the B<O_NONBLOCK> file status flag on the open file description (see " |
| 178 |
"B<open>(2)) referred to by the new file descriptor. Using this flag saves " |
| 179 |
"extra calls to B<fcntl>(2) to achieve the same result." |
| 180 |
msgstr "" |
| 181 |
"Placer l'attribut d'état de fichier B<O_NONBLOCK> sur la description du " |
| 182 |
"fichier ouvert référencée par le nouveau descripteur de fichier (consulter " |
| 183 |
"B<open>(2)). Utiliser cet attribut économise des appels supplémentaires à " |
| 184 |
"B<fcntl>(2) pour obtenir le même résultat." |
| 185 |
|
| 186 |
#. type: TP |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
#, no-wrap |
| 190 |
msgid "B<EFD_SEMAPHORE> (since Linux 2.6.30)" |
| 191 |
msgstr "B<EFD_SEMAPHORE> (depuis Linux 2.6.30)" |
| 192 |
|
| 193 |
#. type: Plain text |
| 194 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 195 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 196 |
msgid "" |
| 197 |
"Provide semaphore-like semantics for reads from the new file descriptor. " |
| 198 |
"See below." |
| 199 |
msgstr "" |
| 200 |
"Fournir une sémantique similaire aux sémaphores pour les lectures sur le " |
| 201 |
"nouveau descripteur de fichier. Voir ci-dessous." |
| 202 |
|
| 203 |
#. type: Plain text |
| 204 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 205 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 206 |
msgid "" |
| 207 |
"Up to Linux 2.6.26, the I<flags> argument is unused, and must be specified " |
| 208 |
"as zero." |
| 209 |
msgstr "" |
| 210 |
"Jusqu'à Linux 2.6.26, le paramètre I<flags> n'est pas utilisé et doit valoir " |
| 211 |
"zéro." |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
msgid "" |
| 217 |
"The following operations can be performed on the file descriptor returned by " |
| 218 |
"B<eventfd>():" |
| 219 |
msgstr "" |
| 220 |
"Les opérations suivantes peuvent être effectuées sur le descripteur de " |
| 221 |
"fichier renvoyé par B<eventfd>() :" |
| 222 |
|
| 223 |
#. type: TP |
| 224 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 225 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 226 |
#, no-wrap |
| 227 |
msgid "B<read>(2)" |
| 228 |
msgstr "B<read>(2)" |
| 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 |
"Each successful B<read>(2) returns an 8-byte integer. A B<read>(2) fails " |
| 235 |
"with the error B<EINVAL> if the size of the supplied buffer is less than 8 " |
| 236 |
"bytes." |
| 237 |
msgstr "" |
| 238 |
"Chaque B<read>(2) qui réussit renvoie un entier sur 8 octets. B<read>(2) " |
| 239 |
"échouera avec l'erreur B<EINVAL> si la taille du tampon fourni est de moins " |
| 240 |
"de 8 octets." |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "" |
| 246 |
"The value returned by B<read>(2) is in host byte order\\[em]that is, the " |
| 247 |
"native byte order for integers on the host machine." |
| 248 |
msgstr "" |
| 249 |
"La valeur renvoyée par B<read>(2) utilise l'ordre des octets de l'hôte, " |
| 250 |
"c'est-à-dire l'ordre des octets natif pour les entiers sur la machine hôte." |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
msgid "" |
| 256 |
"The semantics of B<read>(2) depend on whether the eventfd counter currently " |
| 257 |
"has a nonzero value and whether the B<EFD_SEMAPHORE> flag was specified when " |
| 258 |
"creating the eventfd file descriptor:" |
| 259 |
msgstr "" |
| 260 |
"La sémantique de B<read>(2) dépend du fait que le compteur eventfd a " |
| 261 |
"actuellement une valeur non nulle, et que l'attribut B<EFD_SEMAPHORE> était " |
| 262 |
"spécifié lors de la création du descripteur de fichier eventfd :" |
| 263 |
|
| 264 |
#. type: IP |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid "\\[bu]" |
| 269 |
msgstr "-" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
msgid "" |
| 275 |
"If B<EFD_SEMAPHORE> was not specified and the eventfd counter has a nonzero " |
| 276 |
"value, then a B<read>(2) returns 8 bytes containing that value, and the " |
| 277 |
"counter's value is reset to zero." |
| 278 |
msgstr "" |
| 279 |
"Si B<EFD_SEMAPHORE> n'était pas spécifié et si le compteur eventfd a une " |
| 280 |
"valeur non nulle, un B<read>(2) renverra 8 octets contenant cette valeur, et " |
| 281 |
"la valeur du compteur sera remise à zéro." |
| 282 |
|
| 283 |
#. type: Plain text |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
msgid "" |
| 287 |
"If B<EFD_SEMAPHORE> was specified and the eventfd counter has a nonzero " |
| 288 |
"value, then a B<read>(2) returns 8 bytes containing the value 1, and the " |
| 289 |
"counter's value is decremented by 1." |
| 290 |
msgstr "" |
| 291 |
"Si B<EFD_SEMAPHORE> était spécifié et si le compteur eventfd a une valeur " |
| 292 |
"non nulle, un B<read>(2) renverra 8 octets contenant la valeur 1, et la " |
| 293 |
"valeur du compteur sera décrémentée de 1." |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "" |
| 299 |
"If the eventfd counter is zero at the time of the call to B<read>(2), then " |
| 300 |
"the call either blocks until the counter becomes nonzero (at which time, the " |
| 301 |
"B<read>(2) proceeds as described above) or fails with the error B<EAGAIN> " |
| 302 |
"if the file descriptor has been made nonblocking." |
| 303 |
msgstr "" |
| 304 |
"Si le compteur eventfd est nul au moment de l'appel à B<read>(2), l'appel " |
| 305 |
"bloquera jusqu'à ce que le compteur devienne non nul (auquel cas l'appel à " |
| 306 |
"B<read>(2) sera traité comme décrit ci-dessus), ou échouera avec l'erreur " |
| 307 |
"B<EAGAIN> si le descripteur de fichier est en mode non bloquant." |
| 308 |
|
| 309 |
#. type: TP |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "B<write>(2)" |
| 314 |
msgstr "B<write>(2)" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "" |
| 320 |
"A B<write>(2) call adds the 8-byte integer value supplied in its buffer to " |
| 321 |
"the counter. The maximum value that may be stored in the counter is the " |
| 322 |
"largest unsigned 64-bit value minus 1 (i.e., 0xfffffffffffffffe). If the " |
| 323 |
"addition would cause the counter's value to exceed the maximum, then the " |
| 324 |
"B<write>(2) either blocks until a B<read>(2) is performed on the file " |
| 325 |
"descriptor, or fails with the error B<EAGAIN> if the file descriptor has " |
| 326 |
"been made nonblocking." |
| 327 |
msgstr "" |
| 328 |
"Un appel à B<write>(2) ajoute au compteur la valeur de l'entier sur 8 octets " |
| 329 |
"fourni dans le tampon. La valeur maximale qui peut être stockée dans le " |
| 330 |
"compteur est le plus grand entier non signé sur 64 bits moins 1 (c'est-à-" |
| 331 |
"dire 0xfffffffffffffffe). Si l'addition résulte en un compteur qui " |
| 332 |
"dépasserait la valeur maximale, le B<write>(2) bloquera jusqu'à ce qu'un " |
| 333 |
"B<read>(2) soit effectué sur le descripteur de fichier, ou échouera avec " |
| 334 |
"l'erreur B<EAGAIN> si le descripteur de fichier est en mode non bloquant." |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
msgid "" |
| 340 |
"A B<write>(2) fails with the error B<EINVAL> if the size of the supplied " |
| 341 |
"buffer is less than 8 bytes, or if an attempt is made to write the value " |
| 342 |
"0xffffffffffffffff." |
| 343 |
msgstr "" |
| 344 |
"Un B<write>(2) échouera avec l'erreur B<EINVAL> si la taille du tampon " |
| 345 |
"fourni est de moins de 8 octets ou si l'on essaie d'écrire la valeur " |
| 346 |
"0xffffffffffffffff." |
| 347 |
|
| 348 |
#. type: TP |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "B<poll>(2)" |
| 353 |
msgstr "B<poll>(2)" |
| 354 |
|
| 355 |
#. type: TQ |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
#, no-wrap |
| 359 |
msgid "B<select>(2)" |
| 360 |
msgstr "B<select>(2)" |
| 361 |
|
| 362 |
#. type: TQ |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
#, no-wrap |
| 366 |
msgid "(and similar)" |
| 367 |
msgstr "(et similaire)" |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
msgid "" |
| 373 |
"The returned file descriptor supports B<poll>(2) (and analogously " |
| 374 |
"B<epoll>(7)) and B<select>(2), as follows:" |
| 375 |
msgstr "" |
| 376 |
"Le descripteur de fichier prend en charge les B<poll>(2) (et de façon " |
| 377 |
"analogue B<epoll>(7)) et B<select>(2) de la façon suivante :" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "" |
| 383 |
"The file descriptor is readable (the B<select>(2) I<readfds> argument; the " |
| 384 |
"B<poll>(2) B<POLLIN> flag) if the counter has a value greater than 0." |
| 385 |
msgstr "" |
| 386 |
"Le descripteur de fichier est lisible (le paramètre I<readfds> de " |
| 387 |
"B<select>(2) ; l'attribut B<POLLIN> de B<poll>(2)) si le compteur a une " |
| 388 |
"valeur supérieure à 0." |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
msgid "" |
| 394 |
"The file descriptor is writable (the B<select>(2) I<writefds> argument; the " |
| 395 |
"B<poll>(2) B<POLLOUT> flag) if it is possible to write a value of at least " |
| 396 |
"\"1\" without blocking." |
| 397 |
msgstr "" |
| 398 |
"Le descripteur de fichier est disponible en écriture (le paramètre " |
| 399 |
"I<writefds> de B<select>(2) ; l'attribut B<POLLOUT> de B<poll>(2)) s'il est " |
| 400 |
"possible d'écrire une valeur d'au moins « 1 » sans bloquer." |
| 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 |
"If an overflow of the counter value was detected, then B<select>(2) " |
| 407 |
"indicates the file descriptor as being both readable and writable, and " |
| 408 |
"B<poll>(2) returns a B<POLLERR> event. As noted above, B<write>(2) can " |
| 409 |
"never overflow the counter. However an overflow can occur if 2\\[ha]64 " |
| 410 |
"eventfd \"signal posts\" were performed by the KAIO subsystem (theoretically " |
| 411 |
"possible, but practically unlikely). If an overflow has occurred, then " |
| 412 |
"B<read>(2) will return that maximum I<uint64_t> value (i.e., " |
| 413 |
"0xffffffffffffffff)." |
| 414 |
msgstr "" |
| 415 |
"Si un dépassement de la valeur du compteur a été détectée, B<select>(2) " |
| 416 |
"indique que le descripteur de fichier est disponible en lecture et en " |
| 417 |
"écriture et B<poll>(2) renvoie un événement B<POLLERR>. Comme indiquée ci-" |
| 418 |
"dessus, un B<write>(2) ne peut jamais produire de dépassement. Cependant, un " |
| 419 |
"dépassement peut se produire si un « signal post » eventfd de 2\\[ha]64 a " |
| 420 |
"été effectué par le sous-système KAIO (théoriquement possible, mais très " |
| 421 |
"peut probable en pratique). Si un dépassement survient, un B<read>(2) " |
| 422 |
"renverra la valeur maximale d'un I<uint64_t> (c'est-à-dire " |
| 423 |
"0xffffffffffffffff)." |
| 424 |
|
| 425 |
#. type: Plain text |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
msgid "" |
| 429 |
"The eventfd file descriptor also supports the other file-descriptor " |
| 430 |
"multiplexing APIs: B<pselect>(2) and B<ppoll>(2)." |
| 431 |
msgstr "" |
| 432 |
"Le descripteur de fichier eventfd prend également en charge les autres " |
| 433 |
"interfaces de multiplexage de descripteurs de fichier : B<pselect>(2) et " |
| 434 |
"B<ppoll>(2)." |
| 435 |
|
| 436 |
#. type: TP |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "B<close>(2)" |
| 441 |
msgstr "B<close>(2)" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
msgid "" |
| 447 |
"When the file descriptor is no longer required it should be closed. When " |
| 448 |
"all file descriptors associated with the same eventfd object have been " |
| 449 |
"closed, the resources for object are freed by the kernel." |
| 450 |
msgstr "" |
| 451 |
"Quand le descripteur de fichier n'est plus nécessaire il doit être fermé. " |
| 452 |
"Quand tous les descripteurs de fichier associés au même objet eventfd ont " |
| 453 |
"été fermés, les ressources pour cet objet sont libérées par le noyau." |
| 454 |
|
| 455 |
#. type: Plain text |
| 456 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 457 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 458 |
msgid "" |
| 459 |
"A copy of the file descriptor created by B<eventfd>() is inherited by the " |
| 460 |
"child produced by B<fork>(2). The duplicate file descriptor is associated " |
| 461 |
"with the same eventfd object. File descriptors created by B<eventfd>() are " |
| 462 |
"preserved across B<execve>(2), unless the close-on-exec flag has been set." |
| 463 |
msgstr "" |
| 464 |
"Une copie d'un descripteur de fichier créé par B<eventfd>() est héritée par " |
| 465 |
"le fils produit par B<fork>(2). Le duplicata du descripteur de fichier est " |
| 466 |
"associé au même objet eventfd. Les descripteurs de fichier créés par " |
| 467 |
"B<eventfd>() sont préservés au travers des exécutions par B<execve>(2), sauf " |
| 468 |
"si l'attribut «\\ close\\(hyon\\(hyexec\\ » est positionné." |
| 469 |
|
| 470 |
#. type: SH |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
#, no-wrap |
| 474 |
msgid "RETURN VALUE" |
| 475 |
msgstr "VALEUR RENVOYÉE" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
msgid "" |
| 481 |
"On success, B<eventfd>() returns a new eventfd file descriptor. On error, " |
| 482 |
"-1 is returned and I<errno> is set to indicate the error." |
| 483 |
msgstr "" |
| 484 |
"S'il réussit, B<eventfd>() renvoie un nouveau descripteur de fichier " |
| 485 |
"eventfd. En cas d'erreur, il renvoie -1 et remplit I<errno> avec la valeur " |
| 486 |
"d'erreur." |
| 487 |
|
| 488 |
#. type: SH |
| 489 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 490 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 491 |
#, no-wrap |
| 492 |
msgid "ERRORS" |
| 493 |
msgstr "ERREURS" |
| 494 |
|
| 495 |
#. type: TP |
| 496 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 497 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 498 |
#, no-wrap |
| 499 |
msgid "B<EINVAL>" |
| 500 |
msgstr "B<EINVAL>" |
| 501 |
|
| 502 |
#. type: Plain text |
| 503 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 504 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 505 |
msgid "An unsupported value was specified in I<flags>." |
| 506 |
msgstr "Une valeur non prise en compte a été spécifiée dans I<flags>." |
| 507 |
|
| 508 |
#. type: TP |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
#, no-wrap |
| 512 |
msgid "B<EMFILE>" |
| 513 |
msgstr "B<EMFILE>" |
| 514 |
|
| 515 |
#. type: Plain text |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
msgid "" |
| 519 |
"The per-process limit on the number of open file descriptors has been " |
| 520 |
"reached." |
| 521 |
msgstr "" |
| 522 |
"La limite du nombre de descripteurs de fichiers par processus a été atteinte." |
| 523 |
|
| 524 |
#. type: TP |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
#, no-wrap |
| 528 |
msgid "B<ENFILE>" |
| 529 |
msgstr "B<ENFILE>" |
| 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 "" |
| 535 |
"The system-wide limit on the total number of open files has been reached." |
| 536 |
msgstr "" |
| 537 |
"La limite du nombre total de fichiers ouverts pour le système entier a été " |
| 538 |
"atteinte." |
| 539 |
|
| 540 |
#. type: TP |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
#, no-wrap |
| 544 |
msgid "B<ENODEV>" |
| 545 |
msgstr "B<ENODEV>" |
| 546 |
|
| 547 |
#. #-#-#-#-# archlinux: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 548 |
#. Note from Davide: |
| 549 |
#. The ENODEV error is basically never going to happen if |
| 550 |
#. the kernel boots correctly. That error happen only if during |
| 551 |
#. the kernel initialization, some error occur in the anonymous |
| 552 |
#. inode source initialization. |
| 553 |
#. type: Plain text |
| 554 |
#. #-#-#-#-# debian-trixie: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 555 |
#. Note from Davide: |
| 556 |
#. The ENODEV error is basically never going to happen if |
| 557 |
#. the kernel boots correctly. That error happen only if during |
| 558 |
#. the kernel initialization, some error occur in the anonymous |
| 559 |
#. inode source initialization. |
| 560 |
#. type: Plain text |
| 561 |
#. #-#-#-#-# debian-unstable: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 562 |
#. Note from Davide: |
| 563 |
#. The ENODEV error is basically never going to happen if |
| 564 |
#. the kernel boots correctly. That error happen only if during |
| 565 |
#. the kernel initialization, some error occur in the anonymous |
| 566 |
#. inode source initialization. |
| 567 |
#. type: Plain text |
| 568 |
#. #-#-#-#-# fedora-44: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 569 |
#. Note from Davide: |
| 570 |
#. The ENODEV error is basically never going to happen if |
| 571 |
#. the kernel boots correctly. That error happen only if during |
| 572 |
#. the kernel initialization, some error occur in the anonymous |
| 573 |
#. inode source initialization. |
| 574 |
#. type: Plain text |
| 575 |
#. #-#-#-#-# fedora-rawhide: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 576 |
#. Note from Davide: |
| 577 |
#. The ENODEV error is basically never going to happen if |
| 578 |
#. the kernel boots correctly. That error happen only if during |
| 579 |
#. the kernel initialization, some error occur in the anonymous |
| 580 |
#. inode source initialization. |
| 581 |
#. type: Plain text |
| 582 |
#. #-#-#-#-# mageia-cauldron: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 583 |
#. Note from Davide: |
| 584 |
#. The ENODEV error is basically never going to happen if |
| 585 |
#. the kernel boots correctly. That error happen only if during |
| 586 |
#. the kernel initialization, some error occur in the anonymous |
| 587 |
#. inode source initialization. |
| 588 |
#. type: Plain text |
| 589 |
#. #-#-#-#-# opensuse-leap-16-1: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 590 |
#. Note from Davide: |
| 591 |
#. The ENODEV error is basically never going to happen if |
| 592 |
#. the kernel boots correctly. That error happen only if during |
| 593 |
#. the kernel initialization, some error occur in the anonymous |
| 594 |
#. inode source initialization. |
| 595 |
#. type: Plain text |
| 596 |
#. #-#-#-#-# opensuse-tumbleweed: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 597 |
#. Note from Davide: |
| 598 |
#. The ENODEV error is basically never going to happen if |
| 599 |
#. the kernel boots correctly. That error happen only if during |
| 600 |
#. the kernel initialization, some error occur in the anonymous |
| 601 |
#. inode source initialization. |
| 602 |
#. type: Plain text |
| 603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 604 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 605 |
msgid "Could not mount (internal) anonymous inode device." |
| 606 |
msgstr "Impossible de monter (en interne) le périphérique anonyme d'inœud." |
| 607 |
|
| 608 |
#. type: TP |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
#, no-wrap |
| 612 |
msgid "B<ENOMEM>" |
| 613 |
msgstr "B<ENOMEM>" |
| 614 |
|
| 615 |
#. type: Plain text |
| 616 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 617 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 618 |
msgid "There was insufficient memory to create a new eventfd file descriptor." |
| 619 |
msgstr "" |
| 620 |
"Il n'y a pas assez de mémoire pour que le noyau crée le nouveau descripteur " |
| 621 |
"de fichier eventfd." |
| 622 |
|
| 623 |
#. type: SH |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
#, no-wrap |
| 627 |
msgid "ATTRIBUTES" |
| 628 |
msgstr "ATTRIBUTS" |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
msgid "" |
| 634 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 635 |
msgstr "" |
| 636 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 637 |
"B<attributes>(7)." |
| 638 |
|
| 639 |
#. type: tbl table |
| 640 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 641 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 642 |
#, no-wrap |
| 643 |
msgid "Interface" |
| 644 |
msgstr "Interface" |
| 645 |
|
| 646 |
#. type: tbl table |
| 647 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 648 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 649 |
#, no-wrap |
| 650 |
msgid "Attribute" |
| 651 |
msgstr "Attribut" |
| 652 |
|
| 653 |
#. type: tbl table |
| 654 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 655 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 656 |
#, no-wrap |
| 657 |
msgid "Value" |
| 658 |
msgstr "Valeur" |
| 659 |
|
| 660 |
#. type: tbl table |
| 661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 662 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 663 |
#, no-wrap |
| 664 |
msgid ".na\n" |
| 665 |
msgstr ".na\n" |
| 666 |
|
| 667 |
#. type: tbl table |
| 668 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 669 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 670 |
#, no-wrap |
| 671 |
msgid ".nh\n" |
| 672 |
msgstr ".nh\n" |
| 673 |
|
| 674 |
#. type: TP |
| 675 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 676 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 677 |
#, no-wrap |
| 678 |
msgid "B<eventfd>()" |
| 679 |
msgstr "B<eventfd>()" |
| 680 |
|
| 681 |
#. type: tbl table |
| 682 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 683 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 684 |
#, no-wrap |
| 685 |
msgid "Thread safety" |
| 686 |
msgstr "Sécurité des threads" |
| 687 |
|
| 688 |
#. type: tbl table |
| 689 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 690 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 691 |
#, no-wrap |
| 692 |
msgid "MT-Safe" |
| 693 |
msgstr "MT-Safe" |
| 694 |
|
| 695 |
#. type: SH |
| 696 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 697 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 698 |
#, no-wrap |
| 699 |
msgid "VERSIONS" |
| 700 |
msgstr "VERSIONS" |
| 701 |
|
| 702 |
#. type: SS |
| 703 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 704 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 705 |
#, no-wrap |
| 706 |
msgid "C library/kernel differences" |
| 707 |
msgstr "Différences entre bibliothèque C et noyau" |
| 708 |
|
| 709 |
#. type: Plain text |
| 710 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 711 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 712 |
msgid "" |
| 713 |
"There are two underlying Linux system calls: B<eventfd>() and the more " |
| 714 |
"recent B<eventfd2>(). The former system call does not implement a I<flags> " |
| 715 |
"argument. The latter system call implements the I<flags> values described " |
| 716 |
"above. The glibc wrapper function will use B<eventfd2>() where it is " |
| 717 |
"available." |
| 718 |
msgstr "" |
| 719 |
"Il y a deux appels système sous-jacent : B<eventfd>() et B<eventfd2>(), plus " |
| 720 |
"récent. Le premier appel système n'implémente pas le paramètre I<flags>. Le " |
| 721 |
"dernier appel système implémente les valeurs de I<flags> décrite ci-dessus. " |
| 722 |
"La fonction enveloppe de la glibc utilisera B<eventfd2>() quand il est " |
| 723 |
"présent." |
| 724 |
|
| 725 |
#. type: SS |
| 726 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 727 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 728 |
#, no-wrap |
| 729 |
msgid "Additional glibc features" |
| 730 |
msgstr "Fonctionnalités supplémentaires de la glibc" |
| 731 |
|
| 732 |
#. type: Plain text |
| 733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 734 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 735 |
msgid "" |
| 736 |
"The GNU C library defines an additional type, and two functions that attempt " |
| 737 |
"to abstract some of the details of reading and writing on an eventfd file " |
| 738 |
"descriptor:" |
| 739 |
msgstr "" |
| 740 |
"La bibliothèque C de GNU définie un type supplémentaire et deux fonctions " |
| 741 |
"qui tentent d'abstraire certains détails pour la lecture ou l'écriture avec " |
| 742 |
"des descripteurs de fichier eventfd :" |
| 743 |
|
| 744 |
#. type: Plain text |
| 745 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 746 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 747 |
#, no-wrap |
| 748 |
msgid "" |
| 749 |
"typedef uint64_t eventfd_t;\n" |
| 750 |
"\\&\n" |
| 751 |
"int eventfd_read(int fd, eventfd_t *value);\n" |
| 752 |
"int eventfd_write(int fd, eventfd_t value);\n" |
| 753 |
msgstr "" |
| 754 |
"typedef uint64_t eventfd_t;\n" |
| 755 |
"\\&\n" |
| 756 |
"int eventfd_read(int fd, eventfd_t *value);\n" |
| 757 |
"int eventfd_write(int fd, eventfd_t value);\n" |
| 758 |
|
| 759 |
#. type: Plain text |
| 760 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 761 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 762 |
msgid "" |
| 763 |
"The functions perform the read and write operations on an eventfd file " |
| 764 |
"descriptor, returning 0 if the correct number of bytes was transferred, or " |
| 765 |
"-1 otherwise." |
| 766 |
msgstr "" |
| 767 |
"Les fonctions effectuent des actions de lecture ou écriture sur le " |
| 768 |
"descripteur de fichier eventfd, en renvoyant 0 si un nombre correct d'octets " |
| 769 |
"a été transféré, ou -1 sinon." |
| 770 |
|
| 771 |
#. type: SH |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
#, no-wrap |
| 775 |
msgid "STANDARDS" |
| 776 |
msgstr "NORMES" |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
msgid "Linux, GNU." |
| 782 |
msgstr "Linux, GNU." |
| 783 |
|
| 784 |
#. type: SH |
| 785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 786 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
#, no-wrap |
| 788 |
msgid "HISTORY" |
| 789 |
msgstr "HISTORIQUE" |
| 790 |
|
| 791 |
#. eventfd() is in glibc 2.7, but reportedly does not build |
| 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 "Linux 2.6.22, glibc 2.8." |
| 796 |
msgstr "Linux 2.6.22, glibc 2.8." |
| 797 |
|
| 798 |
#. type: TP |
| 799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 800 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 801 |
#, no-wrap |
| 802 |
msgid "B<eventfd2>()" |
| 803 |
msgstr "B<eventfd2>()" |
| 804 |
|
| 805 |
#. type: Plain text |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
msgid "" |
| 809 |
"Linux 2.6.27 (see VERSIONS). Since glibc 2.9, the B<eventfd>() wrapper " |
| 810 |
"will employ the B<eventfd2>() system call, if it is supported by the kernel." |
| 811 |
msgstr "" |
| 812 |
"Linux 2.6.27 (consultez les VERSIONS). Depuis la glibc 2.9, la fonction " |
| 813 |
"enveloppe pour B<eventfd>() utilise l'appel système B<eventfd2>() s'il est " |
| 814 |
"pris en charge par le noyau." |
| 815 |
|
| 816 |
#. type: SH |
| 817 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 818 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 819 |
#, no-wrap |
| 820 |
msgid "NOTES" |
| 821 |
msgstr "NOTES" |
| 822 |
|
| 823 |
#. type: Plain text |
| 824 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 825 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 826 |
msgid "" |
| 827 |
"Applications can use an eventfd file descriptor instead of a pipe (see " |
| 828 |
"B<pipe>(2)) in all cases where a pipe is used simply to signal events. The " |
| 829 |
"kernel overhead of an eventfd file descriptor is much lower than that of a " |
| 830 |
"pipe, and only one file descriptor is required (versus the two required for " |
| 831 |
"a pipe)." |
| 832 |
msgstr "" |
| 833 |
"Les applications peuvent utiliser un descripteur de fichier eventfd à la " |
| 834 |
"place d'un tube (consultez B<pipe>(2)) à chaque fois qu'un tube est utilisé " |
| 835 |
"pour signaler des événements. La surcharge du noyau pour un descripteur de " |
| 836 |
"fichier est bien plus faible que pour un tube. De plus un seul descripteur " |
| 837 |
"de fichier est nécessaire (alors que deux sont nécessaires pour un tube)." |
| 838 |
|
| 839 |
#. or eventually syslets/threadlets |
| 840 |
#. type: Plain text |
| 841 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 842 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 843 |
msgid "" |
| 844 |
"When used in the kernel, an eventfd file descriptor can provide a bridge " |
| 845 |
"from kernel to user space, allowing, for example, functionalities like KAIO " |
| 846 |
"(kernel AIO) to signal to a file descriptor that some operation is complete." |
| 847 |
msgstr "" |
| 848 |
"Quand un descripteur de fichier eventfd est utilisé par le noyau, il peut " |
| 849 |
"fournir un pont entre l'espace utilisateur et l'espace noyau. Par exemple, " |
| 850 |
"les fonctionnalités comme KAIO (« kernel AIO ») pour signaler dans un " |
| 851 |
"descripteur de fichier que certaines opérations sont finies." |
| 852 |
|
| 853 |
#. type: Plain text |
| 854 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 855 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 856 |
msgid "" |
| 857 |
"A key point about an eventfd file descriptor is that it can be monitored " |
| 858 |
"just like any other file descriptor using B<select>(2), B<poll>(2), or " |
| 859 |
"B<epoll>(7). This means that an application can simultaneously monitor the " |
| 860 |
"readiness of \"traditional\" files and the readiness of other kernel " |
| 861 |
"mechanisms that support the eventfd interface. (Without the B<eventfd>() " |
| 862 |
"interface, these mechanisms could not be multiplexed via B<select>(2), " |
| 863 |
"B<poll>(2), or B<epoll>(7).)" |
| 864 |
msgstr "" |
| 865 |
"Un aspect important d'un descripteur de fichier eventfd est qu'il peut être " |
| 866 |
"surveillé comme n'importe quel descripteur de fichier avec B<select>(2), " |
| 867 |
"B<poll>(2) ou B<epoll>(7). Ceci signifie qu'une application peut surveiller " |
| 868 |
"simultanément la disponibilité de fichiers « traditionnels » et la " |
| 869 |
"disponibilité de mécanismes noyau qui gèrent une interface eventfd. (Sans " |
| 870 |
"l'interface B<eventfd>(), ces mécanismes ne pouvaient pas être multiplexés " |
| 871 |
"avec B<select>(2), B<poll>(2) ou B<epoll>(7))" |
| 872 |
|
| 873 |
#. type: Plain text |
| 874 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 875 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 876 |
msgid "" |
| 877 |
"The current value of an eventfd counter can be viewed via the entry for the " |
| 878 |
"corresponding file descriptor in the process's I</proc/>pidI</fdinfo> " |
| 879 |
"directory. See B<proc>(5) for further details." |
| 880 |
msgstr "" |
| 881 |
"La valeur actuelle d'un compteur eventfd peut être visualisée avec l'entrée " |
| 882 |
"du descripteur de fichier correspondant dans le répertoire I</proc/>pidI</" |
| 883 |
"fdinfo> du processus. Voir B<proc>(5) pour plus de détails." |
| 884 |
|
| 885 |
#. type: SH |
| 886 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 887 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 888 |
#, no-wrap |
| 889 |
msgid "EXAMPLES" |
| 890 |
msgstr "EXEMPLES" |
| 891 |
|
| 892 |
#. type: Plain text |
| 893 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 894 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 895 |
msgid "" |
| 896 |
"The following program creates an eventfd file descriptor and then forks to " |
| 897 |
"create a child process. While the parent briefly sleeps, the child writes " |
| 898 |
"each of the integers supplied in the program's command-line arguments to the " |
| 899 |
"eventfd file descriptor. When the parent has finished sleeping, it reads " |
| 900 |
"from the eventfd file descriptor." |
| 901 |
msgstr "" |
| 902 |
"Le programme suivant crée un descripteur de fichier eventfd puis crée un " |
| 903 |
"processus fils. Alors que le père commence par s'endormir, le fils écrit " |
| 904 |
"tous les entiers fournis sur la ligne de commande au descripteur de fichier " |
| 905 |
"eventfd. Quand le père se réveille, il lit dans le descripteur de fichier " |
| 906 |
"eventfd." |
| 907 |
|
| 908 |
#. type: Plain text |
| 909 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 910 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 911 |
msgid "The following shell session shows a sample run of the program:" |
| 912 |
msgstr "" |
| 913 |
"La session d'interpréteur suivant montre un échantillon d'exécution du " |
| 914 |
"programme :" |
| 915 |
|
| 916 |
#. type: Plain text |
| 917 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 918 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 919 |
#, no-wrap |
| 920 |
msgid "" |
| 921 |
"$B< ./a.out 1 2 4 7 14>\n" |
| 922 |
"Child writing 1 to efd\n" |
| 923 |
"Child writing 2 to efd\n" |
| 924 |
"Child writing 4 to efd\n" |
| 925 |
"Child writing 7 to efd\n" |
| 926 |
"Child writing 14 to efd\n" |
| 927 |
"Child completed write loop\n" |
| 928 |
"Parent about to read\n" |
| 929 |
"Parent read 28 (0x1c) from efd\n" |
| 930 |
msgstr "" |
| 931 |
"$B< ./a.out 1 2 4 7 14>\n" |
| 932 |
"Écriture de l'enfant 1 dans efd\n" |
| 933 |
"Écriture de l'enfant 2 dans efd\n" |
| 934 |
"Écriture de l'enfant 4 dans efd\n" |
| 935 |
"Écriture de l'enfant 7 dans efd\n" |
| 936 |
"Écriture de l'enfant 14 dans efd\n" |
| 937 |
"L'enfant a fini la boucle d'écriture\n" |
| 938 |
"Parent sur le point de lire\n" |
| 939 |
"Lecture du parent 28 (0x1c) depuis efd\n" |
| 940 |
|
| 941 |
#. type: SS |
| 942 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 943 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 944 |
#, no-wrap |
| 945 |
msgid "Program source" |
| 946 |
msgstr "Source du programme" |
| 947 |
|
| 948 |
#. type: Plain text |
| 949 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 950 |
#, fuzzy, no-wrap |
| 951 |
#| msgid "" |
| 952 |
#| "#include E<lt>err.hE<gt>\n" |
| 953 |
#| "#include E<lt>inttypes.hE<gt>\n" |
| 954 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 955 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 956 |
#| "#include E<lt>sys/eventfd.hE<gt>\n" |
| 957 |
#| "#include E<lt>sys/types.hE<gt>\n" |
| 958 |
#| "#include E<lt>unistd.hE<gt>\n" |
| 959 |
#| "\\&\n" |
| 960 |
#| "int\n" |
| 961 |
#| "main(int argc, char *argv[])\n" |
| 962 |
#| "{\n" |
| 963 |
#| " int efd;\n" |
| 964 |
#| " uint64_t u;\n" |
| 965 |
#| " ssize_t s;\n" |
| 966 |
#| "\\&\n" |
| 967 |
#| " if (argc E<lt> 2) {\n" |
| 968 |
#| " fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 969 |
#| " exit(EXIT_FAILURE);\n" |
| 970 |
#| " }\n" |
| 971 |
#| "\\&\n" |
| 972 |
#| " efd = eventfd(0, 0);\n" |
| 973 |
#| " if (efd == -1)\n" |
| 974 |
#| " err(EXIT_FAILURE, \"eventfd\");\n" |
| 975 |
#| "\\&\n" |
| 976 |
#| " switch (fork()) {\n" |
| 977 |
#| " case 0:\n" |
| 978 |
#| " for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 979 |
#| " printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 980 |
#| " u = strtoull(argv[j], NULL, 0);\n" |
| 981 |
#| " /* strtoull() allows various bases */\n" |
| 982 |
#| " s = write(efd, &u, sizeof(uint64_t));\n" |
| 983 |
#| " if (s != sizeof(uint64_t))\n" |
| 984 |
#| " err(EXIT_FAILURE, \"write\");\n" |
| 985 |
#| " }\n" |
| 986 |
#| " printf(\"Child completed write loop\\[rs]n\");\n" |
| 987 |
#| "\\&\n" |
| 988 |
#| " exit(EXIT_SUCCESS);\n" |
| 989 |
#| "\\&\n" |
| 990 |
#| " default:\n" |
| 991 |
#| " sleep(2);\n" |
| 992 |
#| "\\&\n" |
| 993 |
#| " printf(\"Parent about to read\\[rs]n\");\n" |
| 994 |
#| " s = read(efd, &u, sizeof(uint64_t));\n" |
| 995 |
#| " if (s != sizeof(uint64_t))\n" |
| 996 |
#| " err(EXIT_FAILURE, \"read\");\n" |
| 997 |
#| " printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\[rs]n\", u, u);\n" |
| 998 |
#| " exit(EXIT_SUCCESS);\n" |
| 999 |
#| "\\&\n" |
| 1000 |
#| " case -1:\n" |
| 1001 |
#| " err(EXIT_FAILURE, \"fork\");\n" |
| 1002 |
#| " }\n" |
| 1003 |
#| "}\n" |
| 1004 |
msgid "" |
| 1005 |
"#include E<lt>err.hE<gt>\n" |
| 1006 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1007 |
"#include E<lt>stdio.hE<gt>\n" |
| 1008 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1009 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 1010 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1011 |
"#include E<lt>unistd.hE<gt>\n" |
| 1012 |
"\\&\n" |
| 1013 |
"int\n" |
| 1014 |
"main(int argc, char *argv[])\n" |
| 1015 |
"{\n" |
| 1016 |
" int efd;\n" |
| 1017 |
" uint64_t u;\n" |
| 1018 |
" ssize_t s;\n" |
| 1019 |
"\\&\n" |
| 1020 |
" if (argc E<lt> 2) {\n" |
| 1021 |
" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 1022 |
" exit(EXIT_FAILURE);\n" |
| 1023 |
" }\n" |
| 1024 |
"\\&\n" |
| 1025 |
" efd = eventfd(0, 0);\n" |
| 1026 |
" if (efd == -1)\n" |
| 1027 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 1028 |
"\\&\n" |
| 1029 |
" switch (fork()) {\n" |
| 1030 |
" case 0:\n" |
| 1031 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 1032 |
" printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 1033 |
" u = strtoull(argv[j], NULL, 0);\n" |
| 1034 |
" /* strtoull() allows various bases */\n" |
| 1035 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 1036 |
" if (s != sizeof(uint64_t))\n" |
| 1037 |
" err(EXIT_FAILURE, \"write\");\n" |
| 1038 |
" }\n" |
| 1039 |
" printf(\"Child completed write loop\\[rs]n\");\n" |
| 1040 |
"\\&\n" |
| 1041 |
" exit(EXIT_SUCCESS);\n" |
| 1042 |
"\\&\n" |
| 1043 |
" default:\n" |
| 1044 |
" sleep(2);\n" |
| 1045 |
"\\&\n" |
| 1046 |
" printf(\"Parent about to read\\[rs]n\");\n" |
| 1047 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 1048 |
" if (s != sizeof(uint64_t))\n" |
| 1049 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1050 |
" printf(\"Parent read %w64u (%#w64x) from efd\\[rs]n\", u, u);\n" |
| 1051 |
" exit(EXIT_SUCCESS);\n" |
| 1052 |
"\\&\n" |
| 1053 |
" case -1:\n" |
| 1054 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1055 |
" }\n" |
| 1056 |
"}\n" |
| 1057 |
msgstr "" |
| 1058 |
"#include E<lt>err.hE<gt>\n" |
| 1059 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1060 |
"#include E<lt>stdio.hE<gt>\n" |
| 1061 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1062 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 1063 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1064 |
"#include E<lt>unistd.hE<gt>\n" |
| 1065 |
"\\&\n" |
| 1066 |
"int\n" |
| 1067 |
"main(int argc, char *argv[])\n" |
| 1068 |
"{\n" |
| 1069 |
" int efd;\n" |
| 1070 |
" uint64_t u;\n" |
| 1071 |
" ssize_t s;\n" |
| 1072 |
"\\&\n" |
| 1073 |
" if (argc E<lt> 2) {\n" |
| 1074 |
" fprintf(stderr, \"Utilisation : %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 1075 |
" exit(EXIT_FAILURE);\n" |
| 1076 |
" }\n" |
| 1077 |
"\\&\n" |
| 1078 |
" efd = eventfd(0, 0);\n" |
| 1079 |
" if (efd == -1)\n" |
| 1080 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 1081 |
"\\&\n" |
| 1082 |
" switch (fork()) {\n" |
| 1083 |
" case 0:\n" |
| 1084 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 1085 |
" printf(\"Écriture de l'enfant %s dans efd\\[rs]n\", argv[j]);\n" |
| 1086 |
" u = strtoull(argv[j], NULL, 0);\\n\"\n" |
| 1087 |
" /* strtoull() autorise plusieurs bases bases */\n" |
| 1088 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 1089 |
" if (s != sizeof(uint64_t))\n" |
| 1090 |
" err(EXIT_FAILURE, \\\"write\\\");\n" |
| 1091 |
" }\n" |
| 1092 |
" printf(\"L'enfant a fini la boucle d'écriture\\[rs]n\");\n" |
| 1093 |
"\\&\n" |
| 1094 |
" exit(EXIT_SUCCESS);\n" |
| 1095 |
"\\&\n" |
| 1096 |
" default:\n" |
| 1097 |
" sleep(2);\n" |
| 1098 |
"\\&\n" |
| 1099 |
" printf(\\\"Parent sur le point de lire\\[rs]n\");\n" |
| 1100 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 1101 |
" if (s != sizeof(uint64_t))\n" |
| 1102 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1103 |
" printf(\"Lecture du parent %\"PRIu64\" (%#\"PRIx64\") depuis efd\\[rs]n\", u, u);\n" |
| 1104 |
" exit(EXIT_SUCCESS);\n" |
| 1105 |
"\\&\n" |
| 1106 |
" case -1:\n" |
| 1107 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1108 |
" }\n" |
| 1109 |
"}\n" |
| 1110 |
|
| 1111 |
#. SRC END |
| 1112 |
#. type: SH |
| 1113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1115 |
#, no-wrap |
| 1116 |
msgid "SEE ALSO" |
| 1117 |
msgstr "VOIR AUSSI" |
| 1118 |
|
| 1119 |
#. type: Plain text |
| 1120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1122 |
msgid "" |
| 1123 |
"B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), " |
| 1124 |
"B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), " |
| 1125 |
"B<sem_overview>(7)" |
| 1126 |
msgstr "" |
| 1127 |
"B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), " |
| 1128 |
"B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), " |
| 1129 |
"B<sem_overview>(7)" |
| 1130 |
|
| 1131 |
#. type: TH |
| 1132 |
#: debian-trixie |
| 1133 |
#, no-wrap |
| 1134 |
msgid "2024-06-15" |
| 1135 |
msgstr "15 juin 2024" |
| 1136 |
|
| 1137 |
#. type: TH |
| 1138 |
#: debian-trixie |
| 1139 |
#, no-wrap |
| 1140 |
msgid "Linux man-pages 6.9.1" |
| 1141 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 1142 |
|
| 1143 |
#. type: Plain text |
| 1144 |
#: debian-trixie |
| 1145 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1146 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 1147 |
|
| 1148 |
#. type: Plain text |
| 1149 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 1150 |
#, no-wrap |
| 1151 |
msgid "" |
| 1152 |
"#include E<lt>err.hE<gt>\n" |
| 1153 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1154 |
"#include E<lt>stdio.hE<gt>\n" |
| 1155 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1156 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 1157 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1158 |
"#include E<lt>unistd.hE<gt>\n" |
| 1159 |
"\\&\n" |
| 1160 |
"int\n" |
| 1161 |
"main(int argc, char *argv[])\n" |
| 1162 |
"{\n" |
| 1163 |
" int efd;\n" |
| 1164 |
" uint64_t u;\n" |
| 1165 |
" ssize_t s;\n" |
| 1166 |
"\\&\n" |
| 1167 |
" if (argc E<lt> 2) {\n" |
| 1168 |
" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 1169 |
" exit(EXIT_FAILURE);\n" |
| 1170 |
" }\n" |
| 1171 |
"\\&\n" |
| 1172 |
" efd = eventfd(0, 0);\n" |
| 1173 |
" if (efd == -1)\n" |
| 1174 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 1175 |
"\\&\n" |
| 1176 |
" switch (fork()) {\n" |
| 1177 |
" case 0:\n" |
| 1178 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 1179 |
" printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 1180 |
" u = strtoull(argv[j], NULL, 0);\n" |
| 1181 |
" /* strtoull() allows various bases */\n" |
| 1182 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 1183 |
" if (s != sizeof(uint64_t))\n" |
| 1184 |
" err(EXIT_FAILURE, \"write\");\n" |
| 1185 |
" }\n" |
| 1186 |
" printf(\"Child completed write loop\\[rs]n\");\n" |
| 1187 |
"\\&\n" |
| 1188 |
" exit(EXIT_SUCCESS);\n" |
| 1189 |
"\\&\n" |
| 1190 |
" default:\n" |
| 1191 |
" sleep(2);\n" |
| 1192 |
"\\&\n" |
| 1193 |
" printf(\"Parent about to read\\[rs]n\");\n" |
| 1194 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 1195 |
" if (s != sizeof(uint64_t))\n" |
| 1196 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1197 |
" printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\[rs]n\", u, u);\n" |
| 1198 |
" exit(EXIT_SUCCESS);\n" |
| 1199 |
"\\&\n" |
| 1200 |
" case -1:\n" |
| 1201 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1202 |
" }\n" |
| 1203 |
"}\n" |
| 1204 |
msgstr "" |
| 1205 |
"#include E<lt>err.hE<gt>\n" |
| 1206 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1207 |
"#include E<lt>stdio.hE<gt>\n" |
| 1208 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1209 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 1210 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1211 |
"#include E<lt>unistd.hE<gt>\n" |
| 1212 |
"\\&\n" |
| 1213 |
"int\n" |
| 1214 |
"main(int argc, char *argv[])\n" |
| 1215 |
"{\n" |
| 1216 |
" int efd;\n" |
| 1217 |
" uint64_t u;\n" |
| 1218 |
" ssize_t s;\n" |
| 1219 |
"\\&\n" |
| 1220 |
" if (argc E<lt> 2) {\n" |
| 1221 |
" fprintf(stderr, \"Utilisation : %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 1222 |
" exit(EXIT_FAILURE);\n" |
| 1223 |
" }\n" |
| 1224 |
"\\&\n" |
| 1225 |
" efd = eventfd(0, 0);\n" |
| 1226 |
" if (efd == -1)\n" |
| 1227 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 1228 |
"\\&\n" |
| 1229 |
" switch (fork()) {\n" |
| 1230 |
" case 0:\n" |
| 1231 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 1232 |
" printf(\"Écriture de l'enfant %s dans efd\\[rs]n\", argv[j]);\n" |
| 1233 |
" u = strtoull(argv[j], NULL, 0);\\n\"\n" |
| 1234 |
" /* strtoull() autorise plusieurs bases bases */\n" |
| 1235 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 1236 |
" if (s != sizeof(uint64_t))\n" |
| 1237 |
" err(EXIT_FAILURE, \\\"write\\\");\n" |
| 1238 |
" }\n" |
| 1239 |
" printf(\"L'enfant a fini la boucle d'écriture\\[rs]n\");\n" |
| 1240 |
"\\&\n" |
| 1241 |
" exit(EXIT_SUCCESS);\n" |
| 1242 |
"\\&\n" |
| 1243 |
" default:\n" |
| 1244 |
" sleep(2);\n" |
| 1245 |
"\\&\n" |
| 1246 |
" printf(\\\"Parent sur le point de lire\\[rs]n\");\n" |
| 1247 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 1248 |
" if (s != sizeof(uint64_t))\n" |
| 1249 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1250 |
" printf(\"Lecture du parent %\"PRIu64\" (%#\"PRIx64\") depuis efd\\[rs]n\", u, u);\n" |
| 1251 |
" exit(EXIT_SUCCESS);\n" |
| 1252 |
"\\&\n" |
| 1253 |
" case -1:\n" |
| 1254 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1255 |
" }\n" |
| 1256 |
"}\n" |
| 1257 |
|
| 1258 |
#. type: TH |
| 1259 |
#: fedora-44 fedora-rawhide |
| 1260 |
#, no-wrap |
| 1261 |
msgid "2024-07-23" |
| 1262 |
msgstr "23 juillet 2024" |
| 1263 |
|
| 1264 |
#. type: TH |
| 1265 |
#: fedora-44 fedora-rawhide |
| 1266 |
#, no-wrap |
| 1267 |
msgid "Linux man-pages 6.13" |
| 1268 |
msgstr "Pages du manuel de Linux 6.13" |
| 1269 |
|
| 1270 |
#. type: TH |
| 1271 |
#: mageia-cauldron |
| 1272 |
#, no-wrap |
| 1273 |
msgid "2026-02-08" |
| 1274 |
msgstr "8 février 2026" |
| 1275 |
|
| 1276 |
#. type: TH |
| 1277 |
#: mageia-cauldron |
| 1278 |
#, no-wrap |
| 1279 |
msgid "Linux man-pages 6.17" |
| 1280 |
msgstr "Pages du manuel de Linux 6.17" |
| 1281 |
|
| 1282 |
#. type: TH |
| 1283 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1284 |
#, no-wrap |
| 1285 |
msgid "Linux man-pages (unreleased)" |
| 1286 |
msgstr "Pages du manuel de Linux (non publiées)" |