| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006, 2013-2014. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010-2014. |
| 18 |
# Jean-Pierre Giraud <[email protected]>, 2022-2024. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages-l10n 4.23.0\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:48+0200\n" |
| 23 |
"PO-Revision-Date: 2024-12-08 19:04+0100\n" |
| 24 |
"Last-Translator: Jean-Pierre Giraud <[email protected]>\n" |
| 25 |
"Language-Team: French <[email protected]>\n" |
| 26 |
"Language: fr\n" |
| 27 |
"MIME-Version: 1.0\n" |
| 28 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 29 |
"Content-Transfer-Encoding: 8bit\n" |
| 30 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 31 |
"X-Generator: Lokalize 22.12.3\n" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 35 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "tee" |
| 38 |
msgstr "tee" |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 42 |
#: opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "2026-02-08" |
| 45 |
msgstr "8 février 2026" |
| 46 |
|
| 47 |
#. type: TH |
| 48 |
#: archlinux debian-unstable |
| 49 |
#, no-wrap |
| 50 |
msgid "Linux man-pages 6.18" |
| 51 |
msgstr "Pages du manuel de Linux 6.18" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "NAME" |
| 58 |
msgstr "NOM" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 62 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "tee - duplicating pipe content" |
| 64 |
msgstr "tee - Dupliquer le contenu d'un tube" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 68 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "LIBRARY" |
| 71 |
msgstr "BIBLIOTHÈQUE" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 75 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 77 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 78 |
|
| 79 |
#. type: SH |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "SYNOPSIS" |
| 84 |
msgstr "SYNOPSIS" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "" |
| 91 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 92 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 93 |
msgstr "" |
| 94 |
"B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n" |
| 95 |
"B<#include E<lt>fcntl.hE<gt>>\n" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 99 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
#, no-wrap |
| 101 |
msgid "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 102 |
msgstr "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<size>B<, unsigned int >I<flags>B<);>\n" |
| 103 |
|
| 104 |
#. Return type was long before glibc 2.7 |
| 105 |
#. type: SH |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
#, no-wrap |
| 109 |
msgid "DESCRIPTION" |
| 110 |
msgstr "DESCRIPTION" |
| 111 |
|
| 112 |
# |
| 113 |
# |
| 114 |
#. Example programs http://brick.kernel.dk/snaps |
| 115 |
#. add a "tee(in, out1, out2)" system call that duplicates the pages |
| 116 |
#. (again, incrementing their reference count, not copying the data) from |
| 117 |
#. one pipe to two other pipes. |
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 120 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"B<tee>() duplicates up to I<size> bytes of data from the pipe referred to " |
| 123 |
"by the file descriptor I<fd_in> to the pipe referred to by the file " |
| 124 |
"descriptor I<fd_out>. It does not consume the data that is duplicated from " |
| 125 |
"I<fd_in>; therefore, that data can be copied by a subsequent B<splice>(2)." |
| 126 |
msgstr "" |
| 127 |
"B<tee>() duplique jusqu'à I<size> octets de données du tube auquel le " |
| 128 |
"descripteur de fichier I<fd_in> fait référence vers le tube référencé par " |
| 129 |
"I<fd_out>. Il ne supprime pas les données qui sont dupliquées depuis " |
| 130 |
"I<fd_in>\\ ; ces données peuvent donc être copiées par un futur appel à " |
| 131 |
"B<splice>(2)." |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"I<flags> is a bit mask that is composed by ORing together zero or more of " |
| 138 |
"the following values:" |
| 139 |
msgstr "" |
| 140 |
"L'argument I<flags> est un masque de bits constitué par un I<OU> binaire " |
| 141 |
"entre une ou plusieurs des valeurs suivantes\\ :" |
| 142 |
|
| 143 |
#. type: TP |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "B<SPLICE_F_MOVE>" |
| 148 |
msgstr "B<SPLICE_F_MOVE>" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "Currently has no effect for B<tee>(); see B<splice>(2)." |
| 154 |
msgstr "N'a pas d'effet pour B<tee>() actuellement\\ ; consultez B<splice>(2)." |
| 155 |
|
| 156 |
#. type: TP |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
#, no-wrap |
| 160 |
msgid "B<SPLICE_F_NONBLOCK>" |
| 161 |
msgstr "B<SPLICE_F_NONBLOCK>" |
| 162 |
|
| 163 |
#. type: Plain text |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
msgid "Do not block on I/O; see B<splice>(2) for further details." |
| 167 |
msgstr "" |
| 168 |
"Ne pas bloquer pendant les entrées-sorties\\ ; consultez B<splice>(2) pour " |
| 169 |
"plus de détails." |
| 170 |
|
| 171 |
#. type: TP |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
#, no-wrap |
| 175 |
msgid "B<SPLICE_F_MORE>" |
| 176 |
msgstr "B<SPLICE_F_MORE>" |
| 177 |
|
| 178 |
#. type: Plain text |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
msgid "" |
| 182 |
"Currently has no effect for B<tee>(), but may be implemented in the future; " |
| 183 |
"see B<splice>(2)." |
| 184 |
msgstr "" |
| 185 |
"N'a pas d'effet pour B<tee>() actuellement, mais pourrait être implémenté un " |
| 186 |
"jour\\ ; consultez B<splice>(2)." |
| 187 |
|
| 188 |
#. type: TP |
| 189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 191 |
#, no-wrap |
| 192 |
msgid "B<SPLICE_F_GIFT>" |
| 193 |
msgstr "B<SPLICE_F_GIFT>" |
| 194 |
|
| 195 |
#. type: Plain text |
| 196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 198 |
msgid "Unused for B<tee>(); see B<vmsplice>(2)." |
| 199 |
msgstr "Inutilisé pour B<tee>()\\ ; consultez B<vmsplice>(2)." |
| 200 |
|
| 201 |
#. type: SH |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
#, no-wrap |
| 205 |
msgid "RETURN VALUE" |
| 206 |
msgstr "VALEUR RENVOYÉE" |
| 207 |
|
| 208 |
#. type: Plain text |
| 209 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 210 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 211 |
msgid "" |
| 212 |
"Upon successful completion, B<tee>() returns the number of bytes that were " |
| 213 |
"duplicated between the input and output. A return value of 0 means that " |
| 214 |
"there was no data to transfer, and it would not make sense to block, because " |
| 215 |
"there are no writers connected to the write end of the pipe referred to by " |
| 216 |
"I<fd_in>." |
| 217 |
msgstr "" |
| 218 |
"En cas de succès, B<tee>() renvoie le nombre d'octets dupliqués entre les " |
| 219 |
"tubes d'entrée et de sortie. La valeur de retour B<0> signifie qu'il n'y " |
| 220 |
"avait aucune donnée à transférer, et que bloquer n'aurait pas de sens car il " |
| 221 |
"n'y a aucun écrivain connecté à l'extrémité d'écriture du tube référencé par " |
| 222 |
"I<fd_in>." |
| 223 |
|
| 224 |
#. type: Plain text |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
msgid "" |
| 228 |
"On error, B<tee>() returns -1 and I<errno> is set to indicate the error." |
| 229 |
msgstr "" |
| 230 |
"En cas d'erreur, B<tee>() renvoie B<-1> et I<errno> est défini pour préciser " |
| 231 |
"l'erreur." |
| 232 |
|
| 233 |
#. type: SH |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
#, no-wrap |
| 237 |
msgid "ERRORS" |
| 238 |
msgstr "ERREURS" |
| 239 |
|
| 240 |
#. type: TP |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "B<EAGAIN>" |
| 245 |
msgstr "B<EAGAIN>" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"B<SPLICE_F_NONBLOCK> was specified in I<flags> or one of the file " |
| 252 |
"descriptors had been marked as nonblocking (B<O_NONBLOCK>)B<,> and the " |
| 253 |
"operation would block." |
| 254 |
msgstr "" |
| 255 |
"B<SPLICE_F_NONBLOCK> était indiqué dans I<flags> ou un des descripteurs de " |
| 256 |
"fichier a été marqué comme non bloquant (B<O_NONBLOCK>), et l'opération " |
| 257 |
"pourrait bloquer." |
| 258 |
|
| 259 |
#. type: TP |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
#, no-wrap |
| 263 |
msgid "B<EINVAL>" |
| 264 |
msgstr "B<EINVAL>" |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"I<fd_in> or I<fd_out> does not refer to a pipe; or I<fd_in> and I<fd_out> " |
| 271 |
"refer to the same pipe." |
| 272 |
msgstr "" |
| 273 |
"I<fd_in> ou I<fd_out> ne correspond pas à un tube\\ ; ou bien I<fd_in> et " |
| 274 |
"I<fd_out> font référence au même tube." |
| 275 |
|
| 276 |
#. type: TP |
| 277 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 278 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 279 |
#, no-wrap |
| 280 |
msgid "B<ENOMEM>" |
| 281 |
msgstr "B<ENOMEM>" |
| 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 "Out of memory." |
| 287 |
msgstr "Plus assez de mémoire." |
| 288 |
|
| 289 |
#. type: SH |
| 290 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 291 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 292 |
#, no-wrap |
| 293 |
msgid "STANDARDS" |
| 294 |
msgstr "NORMES" |
| 295 |
|
| 296 |
#. type: Plain text |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
msgid "Linux." |
| 300 |
msgstr "Linux." |
| 301 |
|
| 302 |
#. type: SH |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid "HISTORY" |
| 307 |
msgstr "HISTORIQUE" |
| 308 |
|
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
msgid "Linux 2.6.17, glibc 2.5." |
| 313 |
msgstr "Linux 2.6.17, glibc 2.5." |
| 314 |
|
| 315 |
#. type: SH |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
#, no-wrap |
| 319 |
msgid "NOTES" |
| 320 |
msgstr "NOTES" |
| 321 |
|
| 322 |
#. type: Plain text |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
msgid "" |
| 326 |
"Conceptually, B<tee>() copies the data between the two pipes. In reality " |
| 327 |
"no real data copying takes place though: under the covers, B<tee>() assigns " |
| 328 |
"data to the output by merely grabbing a reference to the input." |
| 329 |
msgstr "" |
| 330 |
"Conceptuellement, B<tee>() copie les données entre deux tubes. En fait, il " |
| 331 |
"n'y a pas de réelle copie de données\\ : sous cette apparence, B<tee>() " |
| 332 |
"attache les données au tube de sortie en prenant simplement une référence " |
| 333 |
"sur les données en entrée." |
| 334 |
|
| 335 |
#. type: SH |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "EXAMPLES" |
| 340 |
msgstr "EXEMPLES" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
msgid "" |
| 346 |
"The example below implements a basic B<tee>(1) program using the B<tee>() " |
| 347 |
"system call. Here is an example of its use:" |
| 348 |
msgstr "" |
| 349 |
"L'exemple suivant implémente une version basique du programme B<tee>(1) en " |
| 350 |
"utilisant l'appel système B<tee>(). Voici un exemple de cette utilisation :" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 354 |
#: opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "" |
| 357 |
"$B< date | ./a.out out.log | cat>;\n" |
| 358 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 359 |
"$B< cat out.log>;\n" |
| 360 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 361 |
msgstr "" |
| 362 |
"$B< date | ./a.out out.log | cat>;\n" |
| 363 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 364 |
"$B< cat out.log>;\n" |
| 365 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 366 |
|
| 367 |
#. type: SS |
| 368 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 369 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 370 |
#, no-wrap |
| 371 |
msgid "Program source" |
| 372 |
msgstr "Source du programme" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 376 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
#, no-wrap |
| 378 |
msgid "" |
| 379 |
"#define _GNU_SOURCE\n" |
| 380 |
"#include E<lt>errno.hE<gt>\n" |
| 381 |
"#include E<lt>fcntl.hE<gt>\n" |
| 382 |
"#include E<lt>limits.hE<gt>\n" |
| 383 |
"#include E<lt>stdio.hE<gt>\n" |
| 384 |
"#include E<lt>stdlib.hE<gt>\n" |
| 385 |
"#include E<lt>sys/types.hE<gt>\n" |
| 386 |
"#include E<lt>unistd.hE<gt>\n" |
| 387 |
"\\&\n" |
| 388 |
"int\n" |
| 389 |
"main(int argc, char *argv[])\n" |
| 390 |
"{\n" |
| 391 |
" int fd;\n" |
| 392 |
" ssize_t size, ssize;\n" |
| 393 |
"\\&\n" |
| 394 |
" if (argc != 2) {\n" |
| 395 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 396 |
" exit(EXIT_FAILURE);\n" |
| 397 |
" }\n" |
| 398 |
"\\&\n" |
| 399 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 400 |
" if (fd == -1) {\n" |
| 401 |
" perror(\"open\");\n" |
| 402 |
" exit(EXIT_FAILURE);\n" |
| 403 |
" }\n" |
| 404 |
"\\&\n" |
| 405 |
" for (;;) {\n" |
| 406 |
" /*\n" |
| 407 |
" * tee stdin to stdout.\n" |
| 408 |
" */\n" |
| 409 |
" size = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 410 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 411 |
" if (size E<lt> 0) {\n" |
| 412 |
" if (errno == EAGAIN)\n" |
| 413 |
" continue;\n" |
| 414 |
" perror(\"tee\");\n" |
| 415 |
" exit(EXIT_FAILURE);\n" |
| 416 |
" }\n" |
| 417 |
" if (size == 0)\n" |
| 418 |
" break;\n" |
| 419 |
"\\&\n" |
| 420 |
" /*\n" |
| 421 |
" * Consume stdin by splicing it to a file.\n" |
| 422 |
" */\n" |
| 423 |
" while (size E<gt> 0) {\n" |
| 424 |
" ssize = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 425 |
" size, SPLICE_F_MOVE);\n" |
| 426 |
" if (ssize E<lt> 0) {\n" |
| 427 |
" perror(\"splice\");\n" |
| 428 |
" exit(EXIT_FAILURE);\n" |
| 429 |
" }\n" |
| 430 |
" size -= ssize;\n" |
| 431 |
" }\n" |
| 432 |
" }\n" |
| 433 |
"\\&\n" |
| 434 |
" close(fd);\n" |
| 435 |
" exit(EXIT_SUCCESS);\n" |
| 436 |
"}\n" |
| 437 |
msgstr "" |
| 438 |
"#define _GNU_SOURCE\n" |
| 439 |
"#include E<lt>errno.hE<gt>\n" |
| 440 |
"#include E<lt>fcntl.hE<gt>\n" |
| 441 |
"#include E<lt>limits.hE<gt>\n" |
| 442 |
"#include E<lt>stdio.hE<gt>\n" |
| 443 |
"#include E<lt>stdlib.hE<gt>\n" |
| 444 |
"#include E<lt>sys/types.hE<gt>\n" |
| 445 |
"#include E<lt>unistd.hE<gt>\n" |
| 446 |
"\\&\n" |
| 447 |
"int\n" |
| 448 |
"main(int argc, char *argv[])\n" |
| 449 |
"{\n" |
| 450 |
" int fd;\n" |
| 451 |
" ssize_t size, ssize;\n" |
| 452 |
"\\&\n" |
| 453 |
" if (argc != 2) {\n" |
| 454 |
" fprintf(stderr, \"Utilisation : %s E<lt>fichierE<gt>\\[rs]n\", argv[0]);\n" |
| 455 |
" exit(EXIT_FAILURE);\n" |
| 456 |
" }\n" |
| 457 |
"\\&\n" |
| 458 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 459 |
" if (fd == -1) {\n" |
| 460 |
" perror(\"open\");\n" |
| 461 |
" exit(EXIT_FAILURE);\n" |
| 462 |
" }\n" |
| 463 |
"\\&\n" |
| 464 |
" for (;;) {\n" |
| 465 |
" /*\n" |
| 466 |
" * Dupliquer l'entrée standard dans la sortie standard.\n" |
| 467 |
" */\n" |
| 468 |
" size = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 469 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 470 |
" if (size E<lt> 0) {\n" |
| 471 |
" if (errno == EAGAIN)\n" |
| 472 |
" continue;\n" |
| 473 |
" perror(\"tee\");\n" |
| 474 |
" exit(EXIT_FAILURE);\n" |
| 475 |
" }\n" |
| 476 |
" if (size == 0)\n" |
| 477 |
" break;\n" |
| 478 |
"\\&\n" |
| 479 |
" /*\n" |
| 480 |
" * Consommer l'entrée standard en la raccordant à un fichier.\n" |
| 481 |
" */\n" |
| 482 |
" while (size E<gt> 0) {\n" |
| 483 |
" ssize = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 484 |
" size, SPLICE_F_MOVE);\n" |
| 485 |
" if (ssize E<lt> 0) {\n" |
| 486 |
" perror(\"splice\");\n" |
| 487 |
" exit(EXIT_FAILURE);\n" |
| 488 |
" }\n" |
| 489 |
" size -= ssize;\n" |
| 490 |
" }\n" |
| 491 |
" }\n" |
| 492 |
"\\&\n" |
| 493 |
" close(fd);\n" |
| 494 |
" exit(EXIT_SUCCESS);\n" |
| 495 |
"}\n" |
| 496 |
|
| 497 |
#. SRC END |
| 498 |
#. type: SH |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
#, no-wrap |
| 502 |
msgid "SEE ALSO" |
| 503 |
msgstr "VOIR AUSSI" |
| 504 |
|
| 505 |
#. type: Plain text |
| 506 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 507 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 508 |
msgid "B<splice>(2), B<vmsplice>(2), B<pipe>(7)" |
| 509 |
msgstr "B<splice>(2), B<vmsplice>(2), B<pipe>(7)" |
| 510 |
|
| 511 |
#. type: TH |
| 512 |
#: debian-trixie |
| 513 |
#, no-wrap |
| 514 |
msgid "2024-06-15" |
| 515 |
msgstr "15 juin 2024" |
| 516 |
|
| 517 |
#. type: TH |
| 518 |
#: debian-trixie |
| 519 |
#, no-wrap |
| 520 |
msgid "Linux man-pages 6.9.1" |
| 521 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 522 |
|
| 523 |
#. type: Plain text |
| 524 |
#: debian-trixie |
| 525 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 526 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: debian-trixie |
| 530 |
#, no-wrap |
| 531 |
msgid "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 532 |
msgstr "B<ssize_t tee(int >I<fd_in>B<, int >I<fd_out>B<, size_t >I<len>B<, unsigned int >I<flags>B<);>\n" |
| 533 |
|
| 534 |
# |
| 535 |
# |
| 536 |
#. Example programs http://brick.kernel.dk/snaps |
| 537 |
#. add a "tee(in, out1, out2)" system call that duplicates the pages |
| 538 |
#. (again, incrementing their reference count, not copying the data) from |
| 539 |
#. one pipe to two other pipes. |
| 540 |
#. type: Plain text |
| 541 |
#: debian-trixie |
| 542 |
msgid "" |
| 543 |
"B<tee>() duplicates up to I<len> bytes of data from the pipe referred to by " |
| 544 |
"the file descriptor I<fd_in> to the pipe referred to by the file descriptor " |
| 545 |
"I<fd_out>. It does not consume the data that is duplicated from I<fd_in>; " |
| 546 |
"therefore, that data can be copied by a subsequent B<splice>(2)." |
| 547 |
msgstr "" |
| 548 |
"B<tee>() duplique jusqu'à I<len> octets de données du tube auquel le " |
| 549 |
"descripteur de fichier I<fd_in> fait référence vers le tube référencé par " |
| 550 |
"I<fd_out>. Il ne supprime pas les données qui sont dupliquées depuis " |
| 551 |
"I<fd_in>\\ ; ces données peuvent donc être copiées par un futur appel à " |
| 552 |
"B<splice>(2)." |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: debian-trixie fedora-44 fedora-rawhide |
| 556 |
#, no-wrap |
| 557 |
msgid "" |
| 558 |
"$ B<date | ./a.out out.log | cat>\n" |
| 559 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 560 |
"$ B<cat out.log>\n" |
| 561 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 562 |
msgstr "" |
| 563 |
"$ B<date | ./a.out out.log | cat>\n" |
| 564 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 565 |
"$ B<cat out.log>\n" |
| 566 |
"Tue Oct 28 10:06:00 CET 2014\n" |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: debian-trixie |
| 570 |
#, no-wrap |
| 571 |
msgid "" |
| 572 |
"#define _GNU_SOURCE\n" |
| 573 |
"#include E<lt>errno.hE<gt>\n" |
| 574 |
"#include E<lt>fcntl.hE<gt>\n" |
| 575 |
"#include E<lt>limits.hE<gt>\n" |
| 576 |
"#include E<lt>stdio.hE<gt>\n" |
| 577 |
"#include E<lt>stdlib.hE<gt>\n" |
| 578 |
"#include E<lt>sys/types.hE<gt>\n" |
| 579 |
"#include E<lt>unistd.hE<gt>\n" |
| 580 |
"\\&\n" |
| 581 |
"int\n" |
| 582 |
"main(int argc, char *argv[])\n" |
| 583 |
"{\n" |
| 584 |
" int fd;\n" |
| 585 |
" ssize_t len, slen;\n" |
| 586 |
"\\&\n" |
| 587 |
" if (argc != 2) {\n" |
| 588 |
" fprintf(stderr, \"Usage: %s E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 589 |
" exit(EXIT_FAILURE);\n" |
| 590 |
" }\n" |
| 591 |
"\\&\n" |
| 592 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 593 |
" if (fd == -1) {\n" |
| 594 |
" perror(\"open\");\n" |
| 595 |
" exit(EXIT_FAILURE);\n" |
| 596 |
" }\n" |
| 597 |
"\\&\n" |
| 598 |
" for (;;) {\n" |
| 599 |
" /*\n" |
| 600 |
" * tee stdin to stdout.\n" |
| 601 |
" */\n" |
| 602 |
" len = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 603 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 604 |
" if (len E<lt> 0) {\n" |
| 605 |
" if (errno == EAGAIN)\n" |
| 606 |
" continue;\n" |
| 607 |
" perror(\"tee\");\n" |
| 608 |
" exit(EXIT_FAILURE);\n" |
| 609 |
" }\n" |
| 610 |
" if (len == 0)\n" |
| 611 |
" break;\n" |
| 612 |
"\\&\n" |
| 613 |
" /*\n" |
| 614 |
" * Consume stdin by splicing it to a file.\n" |
| 615 |
" */\n" |
| 616 |
" while (len E<gt> 0) {\n" |
| 617 |
" slen = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 618 |
" len, SPLICE_F_MOVE);\n" |
| 619 |
" if (slen E<lt> 0) {\n" |
| 620 |
" perror(\"splice\");\n" |
| 621 |
" exit(EXIT_FAILURE);\n" |
| 622 |
" }\n" |
| 623 |
" len -= slen;\n" |
| 624 |
" }\n" |
| 625 |
" }\n" |
| 626 |
"\\&\n" |
| 627 |
" close(fd);\n" |
| 628 |
" exit(EXIT_SUCCESS);\n" |
| 629 |
"}\n" |
| 630 |
msgstr "" |
| 631 |
"#define _GNU_SOURCE\n" |
| 632 |
"#include E<lt>errno.hE<gt>\n" |
| 633 |
"#include E<lt>fcntl.hE<gt>\n" |
| 634 |
"#include E<lt>limits.hE<gt>\n" |
| 635 |
"#include E<lt>stdio.hE<gt>\n" |
| 636 |
"#include E<lt>stdlib.hE<gt>\n" |
| 637 |
"#include E<lt>sys/types.hE<gt>\n" |
| 638 |
"#include E<lt>unistd.hE<gt>\n" |
| 639 |
"\\&\n" |
| 640 |
"int\n" |
| 641 |
"main(int argc, char *argv[])\n" |
| 642 |
"{\n" |
| 643 |
" int fd;\n" |
| 644 |
" ssize_t len, slen;\n" |
| 645 |
"\\&\n" |
| 646 |
" if (argc != 2) {\n" |
| 647 |
" fprintf(stderr, \"Utilisation : %s E<lt>fichierE<gt>\\[rs]n\", argv[0]);\n" |
| 648 |
" exit(EXIT_FAILURE);\n" |
| 649 |
" }\n" |
| 650 |
"\\&\n" |
| 651 |
" fd = open(argv[1], O_WRONLY | O_CREAT | O_TRUNC, 0644);\n" |
| 652 |
" if (fd == -1) {\n" |
| 653 |
" perror(\"open\");\n" |
| 654 |
" exit(EXIT_FAILURE);\n" |
| 655 |
" }\n" |
| 656 |
"\\&\n" |
| 657 |
" for (;;) {\n" |
| 658 |
" /*\n" |
| 659 |
" * Dupliquer l'entrée standard dans la sortie standard.\n" |
| 660 |
" */\n" |
| 661 |
" len = tee(STDIN_FILENO, STDOUT_FILENO,\n" |
| 662 |
" INT_MAX, SPLICE_F_NONBLOCK);\n" |
| 663 |
" if (len E<lt> 0) {\n" |
| 664 |
" if (errno == EAGAIN)\n" |
| 665 |
" continue;\n" |
| 666 |
" perror(\"tee\");\n" |
| 667 |
" exit(EXIT_FAILURE);\n" |
| 668 |
" }\n" |
| 669 |
" if (len == 0)\n" |
| 670 |
" break;\n" |
| 671 |
"\\&\n" |
| 672 |
" /*\n" |
| 673 |
" * Consommer l'entrée standard en la raccordant à un fichier.\n" |
| 674 |
" */\n" |
| 675 |
" while (len E<gt> 0) {\n" |
| 676 |
" slen = splice(STDIN_FILENO, NULL, fd, NULL,\n" |
| 677 |
" len, SPLICE_F_MOVE);\n" |
| 678 |
" if (slen E<lt> 0) {\n" |
| 679 |
" perror(\"splice\");\n" |
| 680 |
" exit(EXIT_FAILURE);\n" |
| 681 |
" }\n" |
| 682 |
" len -= slen;\n" |
| 683 |
" }\n" |
| 684 |
" }\n" |
| 685 |
"\\&\n" |
| 686 |
" close(fd);\n" |
| 687 |
" exit(EXIT_SUCCESS);\n" |
| 688 |
"}\n" |
| 689 |
|
| 690 |
#. type: TH |
| 691 |
#: fedora-44 fedora-rawhide |
| 692 |
#, no-wrap |
| 693 |
msgid "2024-11-17" |
| 694 |
msgstr "17 novembre 2024" |
| 695 |
|
| 696 |
#. type: TH |
| 697 |
#: fedora-44 fedora-rawhide |
| 698 |
#, no-wrap |
| 699 |
msgid "Linux man-pages 6.13" |
| 700 |
msgstr "Pages du manuel de Linux 6.13" |
| 701 |
|
| 702 |
#. type: TH |
| 703 |
#: mageia-cauldron |
| 704 |
#, no-wrap |
| 705 |
msgid "Linux man-pages 6.17" |
| 706 |
msgstr "Pages du manuel de Linux 6.17" |
| 707 |
|
| 708 |
#. type: TH |
| 709 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
#, no-wrap |
| 711 |
msgid "Linux man-pages (unreleased)" |
| 712 |
msgstr "Pages du manuel de Linux (non publiées)" |