| 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-2014. |
| 18 |
# Frédéric Hantrais <[email protected]>, 2013, 2014. |
| 19 |
# Jean-Philippe MENGUAL <[email protected]>, 2021-2024. |
| 20 |
msgid "" |
| 21 |
msgstr "" |
| 22 |
"Project-Id-Version: manpages-l10n 4.25.0\n" |
| 23 |
"POT-Creation-Date: 2026-06-05 06:35+0200\n" |
| 24 |
"PO-Revision-Date: 2025-01-15 18:54+0100\n" |
| 25 |
"Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n" |
| 26 |
"Language-Team: French <[email protected]>\n" |
| 27 |
"Language: fr\n" |
| 28 |
"MIME-Version: 1.0\n" |
| 29 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 30 |
"Content-Transfer-Encoding: 8bit\n" |
| 31 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 32 |
"X-Generator: Lokalize 22.12.3\n" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 36 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "pipe" |
| 39 |
msgstr "pipe" |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 43 |
#: opensuse-tumbleweed |
| 44 |
#, no-wrap |
| 45 |
msgid "2026-02-08" |
| 46 |
msgstr "8 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 "pipe, pipe2 - create pipe" |
| 65 |
msgstr "pipe, pipe2 - Créer un tube" |
| 66 |
|
| 67 |
#. type: SH |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
#, no-wrap |
| 71 |
msgid "LIBRARY" |
| 72 |
msgstr "BIBLIOTHÈQUE" |
| 73 |
|
| 74 |
#. type: Plain text |
| 75 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 76 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 78 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 79 |
|
| 80 |
#. type: SH |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "SYNOPSIS" |
| 85 |
msgstr "SYNOPSIS" |
| 86 |
|
| 87 |
#. type: Plain text |
| 88 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 89 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 90 |
#, no-wrap |
| 91 |
msgid "B<#include E<lt>unistd.hE<gt>>\n" |
| 92 |
msgstr "B<#include E<lt>unistd.hE<gt>>\n" |
| 93 |
|
| 94 |
#. type: Plain text |
| 95 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 96 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 97 |
#, no-wrap |
| 98 |
msgid "B<int pipe(int >I<pipefd>B<[2]);>\n" |
| 99 |
msgstr "B<int pipe(int >I<pipefd>B<[2]);>\n" |
| 100 |
|
| 101 |
#. type: Plain text |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
#, no-wrap |
| 105 |
msgid "" |
| 106 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 107 |
"B<#include E<lt>fcntl.hE<gt>> /* Definition of B<O_*> constants */\n" |
| 108 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 109 |
msgstr "" |
| 110 |
"B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n" |
| 111 |
"B<#include E<lt>fcntl.hE<gt>> /* Définition des constantes B<O_*> */\n" |
| 112 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
#, no-wrap |
| 118 |
msgid "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n" |
| 119 |
msgstr "B<int pipe2(int >I<pipefd>B<[2], int >I<flags>B<);>\n" |
| 120 |
|
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
#, no-wrap |
| 125 |
msgid "" |
| 126 |
"/* On Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64, pipe() has the\n" |
| 127 |
" following prototype; see VERSIONS */\n" |
| 128 |
msgstr "" |
| 129 |
"/* Sur Alpha, IA-64, MIPS, SuperH et SPARC/SPARC64, pipe() a le prototype\n" |
| 130 |
" suivant ; voir les VERSIONS */\n" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
#, no-wrap |
| 136 |
msgid "" |
| 137 |
"B<struct fd_pair {>\n" |
| 138 |
"B<long fd[2];>\n" |
| 139 |
"B<};>\n" |
| 140 |
"B<struct fd_pair pipe(void);>\n" |
| 141 |
msgstr "" |
| 142 |
"B<struct fd_pair {>\n" |
| 143 |
"B<long fd[2];>\n" |
| 144 |
"B<};>\n" |
| 145 |
"B<struct fd_pair pipe(void);>\n" |
| 146 |
|
| 147 |
#. type: SH |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
#, no-wrap |
| 151 |
msgid "DESCRIPTION" |
| 152 |
msgstr "DESCRIPTION" |
| 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 |
"B<pipe>() creates a pipe, a unidirectional data channel that can be used " |
| 159 |
"for interprocess communication. The array I<pipefd> is used to return two " |
| 160 |
"file descriptors referring to the ends of the pipe. I<pipefd[0]> refers to " |
| 161 |
"the read end of the pipe. I<pipefd[1]> refers to the write end of the " |
| 162 |
"pipe. Data written to the write end of the pipe is buffered by the kernel " |
| 163 |
"until it is read from the read end of the pipe. For further details, see " |
| 164 |
"B<pipe>(7)." |
| 165 |
msgstr "" |
| 166 |
"B<pipe>() crée un tube, un canal unidirectionnel de données qui peut être " |
| 167 |
"utilisé pour la communication entre processus. Le tableau I<pipefd> est " |
| 168 |
"utilisé pour renvoyer deux descripteurs de fichier faisant référence aux " |
| 169 |
"extrémités du tube. I<pipefd[0]> fait référence à l'extrémité de lecture du " |
| 170 |
"tube. I<pipefd[1]> fait référence à l'extrémité d'écriture du tube. Les " |
| 171 |
"données écrites sur l'extrémité d'écriture du tube sont mises en mémoire " |
| 172 |
"tampon par le noyau jusqu'à ce qu'elles soient lues sur l'extrémité de " |
| 173 |
"lecture du tube. Pour plus de détails, consultez B<pipe>(7)." |
| 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 |
msgid "" |
| 179 |
"If I<flags> is 0, then B<pipe2>() is the same as B<pipe>(). The following " |
| 180 |
"values can be bitwise ORed in I<flags> to obtain different behavior:" |
| 181 |
msgstr "" |
| 182 |
"Si I<flags> est B<0>, alors B<pipe2>() est identique à B<pipe>(). Les " |
| 183 |
"valeurs suivantes peuvent être incluses à l'aide d'un OU binaire dans " |
| 184 |
"I<flags> pour obtenir différents comportements :" |
| 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<O_CLOEXEC>" |
| 191 |
msgstr "B<O_CLOEXEC>" |
| 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 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the two new file " |
| 198 |
"descriptors. See the description of the same flag in B<open>(2) for " |
| 199 |
"reasons why this may be useful." |
| 200 |
msgstr "" |
| 201 |
"Placer l'attribut « close-on-exec » (B<FD_CLOEXEC>) sur les deux nouveaux " |
| 202 |
"descripteurs de fichiers. Consultez la description de cet attribut dans " |
| 203 |
"B<open>(2) pour savoir pourquoi cela peut être utile." |
| 204 |
|
| 205 |
#. type: TP |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid "B<O_DIRECT> (since Linux 3.4)" |
| 210 |
msgstr "B<O_DIRECT> (depuis Linux 3.4)" |
| 211 |
|
| 212 |
#. commit 9883035ae7edef3ec62ad215611cb8e17d6a1a5d |
| 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 |
"Create a pipe that performs I/O in \"packet\" mode. Each B<write>(2) to " |
| 218 |
"the pipe is dealt with as a separate packet, and B<read>(2)s from the pipe " |
| 219 |
"will read one packet at a time. Note the following points:" |
| 220 |
msgstr "" |
| 221 |
"Créer un tube qui assure les E/S en mode « packet ». Chaque opération " |
| 222 |
"B<write>(2) vers le tube est exécutée avec un paquet distinct et les " |
| 223 |
"opérations B<read>(2) depuis le tube lisent un seul paquet à la fois. Notez " |
| 224 |
"les précisions suivantes : " |
| 225 |
|
| 226 |
#. type: IP |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
#, no-wrap |
| 230 |
msgid "\\[bu]" |
| 231 |
msgstr "-" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
msgid "" |
| 237 |
"Writes of greater than B<PIPE_BUF> bytes (see B<pipe>(7)) will be split " |
| 238 |
"into multiple packets. The constant B<PIPE_BUF> is defined in " |
| 239 |
"I<E<lt>limits.hE<gt>>." |
| 240 |
msgstr "" |
| 241 |
"Les opérations d'écriture dont la taille dépasse B<PIPE_BUF> octets (voir " |
| 242 |
"B<pipe>(7)) seront fractionnées en plusieurs paquets. La constante " |
| 243 |
"B<PIPE_BUF> est définie dans I<E<lt>limits.hE<gt>>." |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 247 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "" |
| 249 |
"If a B<read>(2) specifies a buffer size that is smaller than the next " |
| 250 |
"packet, then the requested number of bytes are read, and the excess bytes in " |
| 251 |
"the packet are discarded. Specifying a buffer size of B<PIPE_BUF> will be " |
| 252 |
"sufficient to read the largest possible packets (see the previous point)." |
| 253 |
msgstr "" |
| 254 |
"Si une opération B<read>(2) indique une taille du tampon inférieure à celle " |
| 255 |
"du paquet à venir, alors seul le nombre d'octets demandé sera lu et les " |
| 256 |
"octets supplémentaires du paquet seront écartés. Si l'on souhaite s'assurer " |
| 257 |
"que même les paquets les plus longs seront lus, il suffit de définir la " |
| 258 |
"taille du tampon à B<PIPE_BUF> (voir le point précédent). " |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"Zero-length packets are not supported. (A B<read>(2) that specifies a " |
| 265 |
"buffer size of zero is a no-op, and returns 0.)" |
| 266 |
msgstr "" |
| 267 |
"Les paquets de longueur nulle ne sont pas acceptés (une opération B<read>(2) " |
| 268 |
"qui indique une taille de tampon de longueur zéro est sans effet et renvoie " |
| 269 |
"B<0>)." |
| 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 |
"Older kernels that do not support this flag will indicate this via an " |
| 276 |
"B<EINVAL> error." |
| 277 |
msgstr "" |
| 278 |
"Les anciens noyaux qui n'acceptent pas cet attribut renvoient une erreur " |
| 279 |
"B<EINVAL>." |
| 280 |
|
| 281 |
#. commit 0dbf5f20652108106cb822ad7662c786baaa03ff |
| 282 |
#. FIXME . But, it is not possible to specify O_DIRECT when opening a FIFO |
| 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 |
"Since Linux 4.5, it is possible to change the B<O_DIRECT> setting of a pipe " |
| 288 |
"file descriptor using B<fcntl>(2)." |
| 289 |
msgstr "" |
| 290 |
"Depuis Linux 4.5, il est possible de modifier le paramètre B<O_DIRECT> d'un " |
| 291 |
"descripteur de fichier de tube en utilisant B<fcntl>(2)." |
| 292 |
|
| 293 |
#. type: TP |
| 294 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 295 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 296 |
#, no-wrap |
| 297 |
msgid "B<O_NONBLOCK>" |
| 298 |
msgstr "B<O_NONBLOCK>" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
msgid "" |
| 304 |
"Set the B<O_NONBLOCK> file status flag on the open file descriptions " |
| 305 |
"referred to by the new file descriptors. Using this flag saves extra calls " |
| 306 |
"to B<fcntl>(2) to achieve the same result." |
| 307 |
msgstr "" |
| 308 |
"Placer l'attribut d'état de fichier B<O_NONBLOCK> sur les descriptions de " |
| 309 |
"fichier ouvert auxquelles renvoient les nouveaux descripteurs de fichiers. " |
| 310 |
"Utiliser cet attribut économise des appels supplémentaires à B<fcntl>(2) " |
| 311 |
"pour obtenir le même résultat." |
| 312 |
|
| 313 |
#. type: TP |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "B<O_NOTIFICATION_PIPE>" |
| 318 |
msgstr "B<O_NOTIFICATION_PIPE>" |
| 319 |
|
| 320 |
#. commit c73be61cede5882f9605a852414db559c0ebedfd |
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "" |
| 325 |
"Since Linux 5.8, general notification mechanism is built on the top of the " |
| 326 |
"pipe where kernel splices notification messages into pipes opened by user " |
| 327 |
"space. The owner of the pipe has to tell the kernel which sources of events " |
| 328 |
"to watch and filters can also be applied to select which subevents should be " |
| 329 |
"placed into the pipe." |
| 330 |
msgstr "" |
| 331 |
"Depuis Linux 5.8, le mécanisme de notification générale est construit sur le " |
| 332 |
"tube où le noyau copie les messages de notification dans les tubes ouverts " |
| 333 |
"par l'espace utilisateur. Le propriétaire du tube doit dire au noyau quelles " |
| 334 |
"sources d'événements à surveiller et des filtres peuvent aussi être " |
| 335 |
"appliqués pour sélectionner quels sous-événements doivent être placés dans " |
| 336 |
"le tube." |
| 337 |
|
| 338 |
#. type: SH |
| 339 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 340 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 341 |
#, no-wrap |
| 342 |
msgid "RETURN VALUE" |
| 343 |
msgstr "VALEUR RENVOYÉE" |
| 344 |
|
| 345 |
#. type: Plain text |
| 346 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 347 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 348 |
msgid "" |
| 349 |
"On success, zero is returned. On error, -1 is returned, I<errno> is set to " |
| 350 |
"indicate the error, and I<pipefd> is left unchanged." |
| 351 |
msgstr "" |
| 352 |
"S'il réussit, cet appel système renvoie B<0>. S'il échoue, il renvoie B<-1>, " |
| 353 |
"I<errno> est défini pour indiquer l'erreur et I<pipefd> est laissé inchangé." |
| 354 |
|
| 355 |
#. http://austingroupbugs.net/view.php?id=467 |
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
msgid "" |
| 360 |
"On Linux (and other systems), B<pipe>() does not modify I<pipefd> on " |
| 361 |
"failure. A requirement standardizing this behavior was added in " |
| 362 |
"POSIX.1-2008 TC2. The Linux-specific B<pipe2>() system call likewise does " |
| 363 |
"not modify I<pipefd> on failure." |
| 364 |
msgstr "" |
| 365 |
"Sur Linux (et d'autres systèmes), B<pipe>() ne modifie pas I<pipefd> en cas " |
| 366 |
"d'échec. Une exigence qui standardise ce comportement a été ajoutée dans " |
| 367 |
"POSIX.1-2008 TC2. L'appel système B<pipe2>() spécifique à Linux ne modifie " |
| 368 |
"donc pas I<pipefd> en cas d'échec." |
| 369 |
|
| 370 |
#. type: SH |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "ERRORS" |
| 375 |
msgstr "ERREURS" |
| 376 |
|
| 377 |
#. type: TP |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "B<EFAULT>" |
| 382 |
msgstr "B<EFAULT>" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "I<pipefd> is not valid." |
| 388 |
msgstr "I<pipefd> n'est pas valable." |
| 389 |
|
| 390 |
#. type: TP |
| 391 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 392 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 393 |
#, no-wrap |
| 394 |
msgid "B<EINVAL>" |
| 395 |
msgstr "B<EINVAL>" |
| 396 |
|
| 397 |
#. type: Plain text |
| 398 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 399 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 400 |
msgid "(B<pipe2>()) Invalid value in I<flags>." |
| 401 |
msgstr "(B<pipe2>()) Valeur incorrecte dans I<flags>." |
| 402 |
|
| 403 |
#. type: TP |
| 404 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 405 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "B<EMFILE>" |
| 408 |
msgstr "B<EMFILE>" |
| 409 |
|
| 410 |
#. type: Plain text |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
msgid "" |
| 414 |
"The per-process limit on the number of open file descriptors has been " |
| 415 |
"reached." |
| 416 |
msgstr "" |
| 417 |
"La limite du nombre de descripteurs de fichiers par processus a été atteinte." |
| 418 |
|
| 419 |
#. type: TP |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "B<ENFILE>" |
| 424 |
msgstr "B<ENFILE>" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
msgid "" |
| 430 |
"The system-wide limit on the total number of open files has been reached." |
| 431 |
msgstr "" |
| 432 |
"La limite du nombre total de fichiers ouverts pour le système entier a été " |
| 433 |
"atteinte." |
| 434 |
|
| 435 |
#. type: Plain text |
| 436 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 437 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 438 |
msgid "" |
| 439 |
"The user hard limit on memory that can be allocated for pipes has been " |
| 440 |
"reached and the caller is not privileged; see B<pipe>(7)." |
| 441 |
msgstr "" |
| 442 |
"La limite dure de l'utilisateur en mémoire qu'il est possible d'allouer aux " |
| 443 |
"tubes a été atteinte et l'appelant n'est pas privilégié ; voir B<pipe>(7)." |
| 444 |
|
| 445 |
#. type: TP |
| 446 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 447 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 448 |
#, no-wrap |
| 449 |
msgid "B<ENOPKG>" |
| 450 |
msgstr "B<ENOPKG>" |
| 451 |
|
| 452 |
#. type: Plain text |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
msgid "" |
| 456 |
"(B<pipe2>()) B<O_NOTIFICATION_PIPE> was passed in I<flags> and support for " |
| 457 |
"notifications (B<CONFIG_WATCH_QUEUE>) is not compiled into the kernel." |
| 458 |
msgstr "" |
| 459 |
"(B<pipe2>()) B<O_NOTIFICATION_PIPE> a été passé dans I<flags> et la prise " |
| 460 |
"en charge pour les notifications (B<CONFIG_WATCH_QUEUE>) n'est pas compilée " |
| 461 |
"dans le noyau." |
| 462 |
|
| 463 |
#. type: SH |
| 464 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 465 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 466 |
#, no-wrap |
| 467 |
msgid "VERSIONS" |
| 468 |
msgstr "VERSIONS" |
| 469 |
|
| 470 |
#. See http://math-atlas.sourceforge.net/devel/assembly/64.psabi.1.33.ps.Z |
| 471 |
#. for example, section 3.2.1 "Registers and the Stack Frame". |
| 472 |
#. type: Plain text |
| 473 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 474 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 475 |
msgid "" |
| 476 |
"The System V ABI on some architectures allows the use of more than one " |
| 477 |
"register for returning multiple values; several architectures (namely, " |
| 478 |
"Alpha, IA-64, MIPS, SuperH, and SPARC/SPARC64) (ab)use this feature in " |
| 479 |
"order to implement the B<pipe>() system call in a functional manner: the " |
| 480 |
"call doesn't take any arguments and returns a pair of file descriptors as " |
| 481 |
"the return value on success. The glibc B<pipe>() wrapper function " |
| 482 |
"transparently deals with this. See B<syscall>(2) for information regarding " |
| 483 |
"registers used for storing second file descriptor." |
| 484 |
msgstr "" |
| 485 |
"L'ABI SystemV sur certaines architectures permet d'utiliser plus d'un " |
| 486 |
"registre pour renvoyer plusieurs valeurs ; diverses architectures (Alpha, " |
| 487 |
"IA-64, MIPS, SuperH et SPARC/SPARC64) abusent de cette fonction pour " |
| 488 |
"implémenter l'appel système B<pipe>() de manière opérationnelle : l'appel ne " |
| 489 |
"prend aucun paramètre et renvoie une paire de descripteurs de fichier comme " |
| 490 |
"code de retour en cas de succès. La fonction enveloppe B<pipe>() de la glibc " |
| 491 |
"gère cela de manière transparente. Voir B<syscall>(2) pour des informations " |
| 492 |
"sur les registres utilisés pour stocker le deuxième descripteur de fichier." |
| 493 |
|
| 494 |
#. type: SH |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
#, no-wrap |
| 498 |
msgid "STANDARDS" |
| 499 |
msgstr "NORMES" |
| 500 |
|
| 501 |
#. type: Plain text |
| 502 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 503 |
#: opensuse-tumbleweed |
| 504 |
msgid "POSIX.1-2024." |
| 505 |
msgstr "POSIX.1-2024." |
| 506 |
|
| 507 |
#. type: SH |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "HISTORY" |
| 512 |
msgstr "HISTORIQUE" |
| 513 |
|
| 514 |
#. type: TP |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
#, no-wrap |
| 518 |
msgid "B<pipe>()" |
| 519 |
msgstr "B<pipe>()" |
| 520 |
|
| 521 |
#. type: Plain text |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
msgid "POSIX.1-2001." |
| 525 |
msgstr "POSIX.1-2001." |
| 526 |
|
| 527 |
#. type: TP |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid "B<pipe2>()" |
| 532 |
msgstr "B<pipe2>()" |
| 533 |
|
| 534 |
#. type: Plain text |
| 535 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 536 |
#: opensuse-tumbleweed |
| 537 |
#, fuzzy |
| 538 |
#| msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 539 |
msgid "POSIX.1-2024. Linux 2.6.27, glibc 2.9." |
| 540 |
msgstr "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 541 |
|
| 542 |
#. type: SH |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
#, no-wrap |
| 546 |
msgid "EXAMPLES" |
| 547 |
msgstr "EXEMPLES" |
| 548 |
|
| 549 |
#. fork.2 refers to this example program. |
| 550 |
#. type: Plain text |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
msgid "" |
| 554 |
"The following program creates a pipe, and then B<fork>(2)s to create a child " |
| 555 |
"process; the child inherits a duplicate set of file descriptors that refer " |
| 556 |
"to the same pipe. After the B<fork>(2), each process closes the file " |
| 557 |
"descriptors that it doesn't need for the pipe (see B<pipe>(7)). The parent " |
| 558 |
"then writes the string contained in the program's command-line argument to " |
| 559 |
"the pipe, and the child reads this string a byte at a time from the pipe and " |
| 560 |
"echoes it on standard output." |
| 561 |
msgstr "" |
| 562 |
"Le programme suivant crée un tube, puis invoque B<fork>(2) pour créer un " |
| 563 |
"processus enfant ; l'enfant hérite d'un double du jeu de descripteurs de " |
| 564 |
"fichier qui se rapportent au même tube. Après le B<fork>(2), chaque " |
| 565 |
"processus ferme les descripteurs dont il n'a pas besoin pour le tube " |
| 566 |
"(consultez B<pipe>(7)). Le parent écrit alors la chaîne contenue dans " |
| 567 |
"l'argument de ligne de commande du programme dans le tube, et l'enfant lit " |
| 568 |
"cette chaîne un octet à la fois dans le tube, et l'affiche sur la sortie " |
| 569 |
"standard." |
| 570 |
|
| 571 |
#. type: SS |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
#, no-wrap |
| 575 |
msgid "Program source" |
| 576 |
msgstr "Source du programme" |
| 577 |
|
| 578 |
#. type: Plain text |
| 579 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 580 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 581 |
#, no-wrap |
| 582 |
msgid "" |
| 583 |
"#include E<lt>err.hE<gt>\n" |
| 584 |
"#include E<lt>stdio.hE<gt>\n" |
| 585 |
"#include E<lt>stdlib.hE<gt>\n" |
| 586 |
"#include E<lt>string.hE<gt>\n" |
| 587 |
"#include E<lt>sys/types.hE<gt>\n" |
| 588 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 589 |
"#include E<lt>unistd.hE<gt>\n" |
| 590 |
"\\&\n" |
| 591 |
"int\n" |
| 592 |
"main(int argc, char *argv[])\n" |
| 593 |
"{\n" |
| 594 |
" int pipefd[2];\n" |
| 595 |
" char buf;\n" |
| 596 |
" pid_t cpid;\n" |
| 597 |
"\\&\n" |
| 598 |
" if (argc != 2) {\n" |
| 599 |
" fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n" |
| 600 |
" exit(EXIT_FAILURE);\n" |
| 601 |
" }\n" |
| 602 |
"\\&\n" |
| 603 |
" if (pipe(pipefd) == -1)\n" |
| 604 |
" err(EXIT_FAILURE, \"pipe\");\n" |
| 605 |
"\\&\n" |
| 606 |
" cpid = fork();\n" |
| 607 |
" if (cpid == -1)\n" |
| 608 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 609 |
"\\&\n" |
| 610 |
" if (cpid == 0) { /* Child reads from pipe */\n" |
| 611 |
" if (close(pipefd[1]) == -1) /* Close unused write end */\n" |
| 612 |
" err(EXIT_FAILURE, \"close\");\n" |
| 613 |
"\\&\n" |
| 614 |
" while (read(pipefd[0], &buf, 1) E<gt> 0) {\n" |
| 615 |
" if (write(STDOUT_FILENO, &buf, 1) != 1)\n" |
| 616 |
" err(EXIT_FAILURE, \"write\");\n" |
| 617 |
" }\n" |
| 618 |
"\\&\n" |
| 619 |
" if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n" |
| 620 |
" err(EXIT_FAILURE, \"write\");\n" |
| 621 |
" if (close(pipefd[0]) == -1)\n" |
| 622 |
" err(EXIT_FAILURE, \"close\");\n" |
| 623 |
" _exit(EXIT_SUCCESS);\n" |
| 624 |
"\\&\n" |
| 625 |
" } else { /* Parent writes argv[1] to pipe */\n" |
| 626 |
" if (close(pipefd[0]) == -1) /* Close unused read end */\n" |
| 627 |
" err(EXIT_FAILURE, \"close\");\n" |
| 628 |
" if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n" |
| 629 |
" err(EXIT_FAILURE, \"write\");\n" |
| 630 |
" if (close(pipefd[1]) == -1) /* Reader will see EOF */\n" |
| 631 |
" err(EXIT_FAILURE, \"close\");\n" |
| 632 |
" if (wait(NULL) == -1) /* Wait for child */\n" |
| 633 |
" err(EXIT_FAILURE, \"wait\");\n" |
| 634 |
" exit(EXIT_SUCCESS);\n" |
| 635 |
" }\n" |
| 636 |
"}\n" |
| 637 |
msgstr "" |
| 638 |
"#include E<lt>err.hE<gt>\n" |
| 639 |
"#include E<lt>stdio.hE<gt>\n" |
| 640 |
"#include E<lt>stdlib.hE<gt>\n" |
| 641 |
"#include E<lt>string.hE<gt>\n" |
| 642 |
"#include E<lt>sys/types.hE<gt>\n" |
| 643 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 644 |
"#include E<lt>unistd.hE<gt>\n" |
| 645 |
"\\&\n" |
| 646 |
"int\n" |
| 647 |
"main(int argc, char *argv[])\n" |
| 648 |
"{\n" |
| 649 |
" int pipefd[2];\n" |
| 650 |
" char buf;\n" |
| 651 |
" pid_t cpid;\n" |
| 652 |
"\\&\n" |
| 653 |
" if (argc != 2) {\n" |
| 654 |
" fprintf(stderr, \"Utilisation : %s E<lt>chaîneE<gt>\\[rs]en\", argv[0]);\n" |
| 655 |
" exit(EXIT_FAILURE);\n" |
| 656 |
" }\n" |
| 657 |
"\\&\n" |
| 658 |
" if (pipe(pipefd) == -1)\n" |
| 659 |
" err(EXIT_FAILURE, \"pipe\");\n" |
| 660 |
"\\&\n" |
| 661 |
" cpid = fork();\n" |
| 662 |
" if (cpid == -1)\n" |
| 663 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 664 |
"\\&\n" |
| 665 |
" if (cpid == 0) { /* L'enfant lit dans le tube */\n" |
| 666 |
" if (close(pipefd[1]) == -1) /* Fermeture du descripteur en écriture inutilisé */\n" |
| 667 |
" err(EXIT_FAILURE, \"close\");\n" |
| 668 |
"\\&\n" |
| 669 |
" while (read(pipefd[0], &buf, 1) E<gt> 0) {\n" |
| 670 |
" if (write(STDOUT_FILENO, &buf, 1) != 1)\n" |
| 671 |
" err(EXIT_FAILURE, \"write\");\n" |
| 672 |
" }\n" |
| 673 |
"\\&\n" |
| 674 |
" if (write(STDOUT_FILENO, \"\\[rs]n\", 1) != 1)\n" |
| 675 |
" err(EXIT_FAILURE, \"write\");\n" |
| 676 |
" if (close(pipefd[0]) == -1)\n" |
| 677 |
" err(EXIT_FAILURE, \"close\");\n" |
| 678 |
" _exit(EXIT_SUCCESS);\n" |
| 679 |
"\\&\n" |
| 680 |
" } else { /* Le parent écrit argv[1] dans le tube */\n" |
| 681 |
" close(pipefd[0]); /* Fermeture du descripteur en lecture inutilisé */\n" |
| 682 |
" err(EXIT_FAILURE, \"close\");\n" |
| 683 |
" if (write(pipefd[1], argv[1], strlen(argv[1])) != strlen(argv[1]))\n" |
| 684 |
" err(EXIT_FAILURE, \"write\");\n" |
| 685 |
" close(pipefd[1]); /* Le lecteur verra EOF */\n" |
| 686 |
" err(EXIT_FAILURE, \"close\");\n" |
| 687 |
" wait(NULL); /* Attente de l'enfant */\n" |
| 688 |
" err(EXIT_FAILURE, \"wait\");\n" |
| 689 |
" exit(EXIT_SUCCESS);\n" |
| 690 |
" }\n" |
| 691 |
"}\n" |
| 692 |
|
| 693 |
#. SRC END |
| 694 |
#. type: SH |
| 695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 696 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 697 |
#, no-wrap |
| 698 |
msgid "SEE ALSO" |
| 699 |
msgstr "VOIR AUSSI" |
| 700 |
|
| 701 |
#. type: Plain text |
| 702 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 703 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 704 |
msgid "" |
| 705 |
"B<fork>(2), B<read>(2), B<socketpair>(2), B<splice>(2), B<tee>(2), " |
| 706 |
"B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)" |
| 707 |
msgstr "" |
| 708 |
"B<fork>(2), B<read>(2), B<socketpair>(2), B<write>(2), B<popen>(3), " |
| 709 |
"B<vmsplice>(2), B<write>(2), B<popen>(3), B<pipe>(7)" |
| 710 |
|
| 711 |
#. type: TH |
| 712 |
#: debian-trixie |
| 713 |
#, no-wrap |
| 714 |
msgid "2024-06-15" |
| 715 |
msgstr "15 juin 2024" |
| 716 |
|
| 717 |
#. type: TH |
| 718 |
#: debian-trixie |
| 719 |
#, no-wrap |
| 720 |
msgid "Linux man-pages 6.9.1" |
| 721 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 722 |
|
| 723 |
#. type: Plain text |
| 724 |
#: debian-trixie |
| 725 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 726 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 727 |
|
| 728 |
#. type: Plain text |
| 729 |
#: debian-trixie fedora-44 fedora-rawhide |
| 730 |
msgid "POSIX.1-2008." |
| 731 |
msgstr "POSIX.1-2008." |
| 732 |
|
| 733 |
#. type: Plain text |
| 734 |
#: debian-trixie fedora-44 fedora-rawhide |
| 735 |
msgid "Linux." |
| 736 |
msgstr "Linux." |
| 737 |
|
| 738 |
#. type: Plain text |
| 739 |
#: debian-trixie fedora-44 fedora-rawhide |
| 740 |
msgid "Linux 2.6.27, glibc 2.9." |
| 741 |
msgstr "Linux 2.6.27, glibc 2.9." |
| 742 |
|
| 743 |
#. type: Plain text |
| 744 |
#: debian-trixie |
| 745 |
#, no-wrap |
| 746 |
msgid "" |
| 747 |
"#include E<lt>stdio.hE<gt>\n" |
| 748 |
"#include E<lt>stdlib.hE<gt>\n" |
| 749 |
"#include E<lt>string.hE<gt>\n" |
| 750 |
"#include E<lt>sys/types.hE<gt>\n" |
| 751 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 752 |
"#include E<lt>unistd.hE<gt>\n" |
| 753 |
"\\&\n" |
| 754 |
"int\n" |
| 755 |
"main(int argc, char *argv[])\n" |
| 756 |
"{\n" |
| 757 |
" int pipefd[2];\n" |
| 758 |
" char buf;\n" |
| 759 |
" pid_t cpid;\n" |
| 760 |
"\\&\n" |
| 761 |
" if (argc != 2) {\n" |
| 762 |
" fprintf(stderr, \"Usage: %s E<lt>stringE<gt>\\[rs]n\", argv[0]);\n" |
| 763 |
" exit(EXIT_FAILURE);\n" |
| 764 |
" }\n" |
| 765 |
"\\&\n" |
| 766 |
" if (pipe(pipefd) == -1) {\n" |
| 767 |
" perror(\"pipe\");\n" |
| 768 |
" exit(EXIT_FAILURE);\n" |
| 769 |
" }\n" |
| 770 |
"\\&\n" |
| 771 |
" cpid = fork();\n" |
| 772 |
" if (cpid == -1) {\n" |
| 773 |
" perror(\"fork\");\n" |
| 774 |
" exit(EXIT_FAILURE);\n" |
| 775 |
" }\n" |
| 776 |
"\\&\n" |
| 777 |
" if (cpid == 0) { /* Child reads from pipe */\n" |
| 778 |
" close(pipefd[1]); /* Close unused write end */\n" |
| 779 |
"\\&\n" |
| 780 |
" while (read(pipefd[0], &buf, 1) E<gt> 0)\n" |
| 781 |
" write(STDOUT_FILENO, &buf, 1);\n" |
| 782 |
"\\&\n" |
| 783 |
" write(STDOUT_FILENO, \"\\[rs]n\", 1);\n" |
| 784 |
" close(pipefd[0]);\n" |
| 785 |
" _exit(EXIT_SUCCESS);\n" |
| 786 |
"\\&\n" |
| 787 |
" } else { /* Parent writes argv[1] to pipe */\n" |
| 788 |
" close(pipefd[0]); /* Close unused read end */\n" |
| 789 |
" write(pipefd[1], argv[1], strlen(argv[1]));\n" |
| 790 |
" close(pipefd[1]); /* Reader will see EOF */\n" |
| 791 |
" wait(NULL); /* Wait for child */\n" |
| 792 |
" exit(EXIT_SUCCESS);\n" |
| 793 |
" }\n" |
| 794 |
"}\n" |
| 795 |
msgstr "" |
| 796 |
"#include E<lt>stdio.hE<gt>\n" |
| 797 |
"#include E<lt>stdlib.hE<gt>\n" |
| 798 |
"#include E<lt>string.hE<gt>\n" |
| 799 |
"#include E<lt>sys/types.hE<gt>\n" |
| 800 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 801 |
"#include E<lt>unistd.hE<gt>\n" |
| 802 |
"\\&\n" |
| 803 |
"int\n" |
| 804 |
"main(int argc, char *argv[])\n" |
| 805 |
"{\n" |
| 806 |
" int pipefd[2];\n" |
| 807 |
" char buf;\n" |
| 808 |
" pid_t cpid;\n" |
| 809 |
"\\&\n" |
| 810 |
" if (argc != 2) {\n" |
| 811 |
" fprintf(stderr, \"Utilisation : %s E<lt>chaîneE<gt>\\[rs]en\", argv[0]);\n" |
| 812 |
" exit(EXIT_FAILURE);\n" |
| 813 |
" }\n" |
| 814 |
"\\&\n" |
| 815 |
" if (pipe(pipefd) == -1) {\n" |
| 816 |
" perror(\"pipe\");\n" |
| 817 |
" exit(EXIT_FAILURE);\n" |
| 818 |
" }\n" |
| 819 |
"\\&\n" |
| 820 |
" cpid = fork();\n" |
| 821 |
" if (cpid == -1) {\n" |
| 822 |
" perror(\"fork\");\n" |
| 823 |
" exit(EXIT_FAILURE);\n" |
| 824 |
" }\n" |
| 825 |
"\\&\n" |
| 826 |
" if (cpid == 0) { /* L'enfant lit dans le tube */\n" |
| 827 |
" close(pipefd[1]); /* Fermeture du descripteur en écriture inutilisé */\n" |
| 828 |
"\\&\n" |
| 829 |
" while (read(pipefd[0], &buf, 1) E<gt> 0)\n" |
| 830 |
" write(STDOUT_FILENO, &buf, 1);\n" |
| 831 |
"\\&\n" |
| 832 |
" write(STDOUT_FILENO, \"\\[rs]n\", 1);\n" |
| 833 |
" close(pipefd[0]);\n" |
| 834 |
" _exit(EXIT_SUCCESS);\n" |
| 835 |
"\\&\n" |
| 836 |
" } else { /* Le parent écrit argv[1] dans le tube */\n" |
| 837 |
" close(pipefd[0]); /* Fermeture du descripteur en lecture inutilisé */\n" |
| 838 |
" write(pipefd[1], argv[1], strlen(argv[1]));\n" |
| 839 |
" close(pipefd[1]); /* Le lecteur verra EOF */\n" |
| 840 |
" wait(NULL); /* Attente de l'enfant */\n" |
| 841 |
" exit(EXIT_SUCCESS);\n" |
| 842 |
" }\n" |
| 843 |
"}\n" |
| 844 |
|
| 845 |
#. type: TH |
| 846 |
#: fedora-44 fedora-rawhide |
| 847 |
#, no-wrap |
| 848 |
msgid "2024-07-23" |
| 849 |
msgstr "23 juillet 2024" |
| 850 |
|
| 851 |
#. type: TH |
| 852 |
#: fedora-44 fedora-rawhide |
| 853 |
#, no-wrap |
| 854 |
msgid "Linux man-pages 6.13" |
| 855 |
msgstr "Pages du manuel de Linux 6.13" |
| 856 |
|
| 857 |
#. type: TH |
| 858 |
#: mageia-cauldron |
| 859 |
#, no-wrap |
| 860 |
msgid "Linux man-pages 6.17" |
| 861 |
msgstr "Pages du manuel de Linux 6.17" |
| 862 |
|
| 863 |
#. type: TH |
| 864 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 865 |
#, no-wrap |
| 866 |
msgid "Linux man-pages (unreleased)" |
| 867 |
msgstr "Pages du manuel de Linux (non publiées)" |