Debian Codegraph @

po/fr/man3/fmemopen.3.po

raw
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 # Lucien Gentis <[email protected]>, 2022.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: manpages-l10n 4.21.0\n"
23 "POT-Creation-Date: 2026-06-05 06:24+0200\n"
24 "PO-Revision-Date: 2024-03-05 00:27+0100\n"
25 "Last-Translator: Lucien Gentis <[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: Poedit 2.4.2\n"
33 "X-Poedit-Bookmarks: 60,-1,-1,-1,-1,-1,-1,-1,-1,-1\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 "fmemopen"
40 msgstr "fmemopen"
41
42 #. type: TH
43 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
44 #: opensuse-tumbleweed
45 #, no-wrap
46 msgid "2026-02-08"
47 msgstr "8 février 2026"
48
49 #. type: TH
50 #: archlinux debian-unstable
51 #, no-wrap
52 msgid "Linux man-pages 6.18"
53 msgstr "Pages du manuel de Linux 6.18"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "NAME"
60 msgstr "NOM"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "fmemopen - open memory as stream"
66 msgstr "fmemopen - Ouvrir de la mémoire en tant que flux"
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>stdio.hE<gt>>\n"
93 msgstr "B<#include E<lt>stdio.hE<gt>>\n"
94
95 #. type: Plain text
96 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
97 #: opensuse-tumbleweed
98 #, fuzzy, no-wrap
99 #| msgid "B<FILE *fmemopen(void >I<buf>B<[.>I<size>B<], size_t >I<size>B<, const char *>I<mode>B<);>\n"
100 msgid ""
101 "B<FILE *fmemopen(>size_t size;\n"
102 "B< void >I<buf>B<[>I<size>B<], size_t >I<size>B<, const char *>I<mode>B<);>\n"
103 msgstr "B<FILE *fmemopen(void >I<tampon>B<[.>I<taille>B<], size_t >I<taille>B<, const char *>I<mode>B<);>\n"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
110 msgstr ""
111 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
112 "B<feature_test_macros>(7)) :"
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 msgid "B<fmemopen>():"
118 msgstr "B<fmemopen>() :"
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 #, no-wrap
124 msgid ""
125 " Since glibc 2.10:\n"
126 " _POSIX_C_SOURCE E<gt>= 200809L\n"
127 " Before glibc 2.10:\n"
128 " _GNU_SOURCE\n"
129 msgstr ""
130 " Depuis la glibc 2.10 :\n"
131 " _POSIX_C_SOURCE E<gt>= 200809L\n"
132 " Avant la glibc 2.10 :\n"
133 " _GNU_SOURCE\n"
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr "DESCRIPTION"
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The B<fmemopen>() function opens a stream that permits the access specified "
147 "by I<mode>. The stream allows I/O to be performed on the string or memory "
148 "buffer pointed to by I<buf>."
149 msgstr ""
150 "La fonction B<fmemopen>() ouvre un flux qui permet l'accès spécifié par "
151 "I<mode>. Le flux permet d'effectuer des entrées/sorties sur la chaîne ou le "
152 "tampon mémoire pointé par I<tampon>."
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 "The I<mode> argument specifies the semantics of I/O on the stream, and is "
159 "one of the following:"
160 msgstr ""
161 "L'argument I<mode> spécifie le mode d'ouverture du flux et peut avoir pour "
162 "valeurs :"
163
164 #. type: TP
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "I<r>"
169 msgstr "I<r>"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "The stream is opened for reading."
175 msgstr "Le flux est ouvert en lecture."
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "I<w>"
182 msgstr "I<w>"
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid "The stream is opened for writing."
188 msgstr "Le flux est ouvert en écriture."
189
190 #. type: TP
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "I<a>"
195 msgstr "I<a>"
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "Append; open the stream for writing, with the initial buffer position set to "
202 "the first null byte."
203 msgstr ""
204 "Ajout ; le flux est ouvert en écriture, la position initiale du tampon étant "
205 "définie au premier octet de valeur zéro."
206
207 #. type: TP
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "I<r+>"
212 msgstr "I<r+>"
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid "Open the stream for reading and writing."
218 msgstr "Le flux est ouvert en lecture et en écriture."
219
220 #. type: TP
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "I<w+>"
225 msgstr "I<w+>"
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "Open the stream for reading and writing. The buffer contents are truncated "
232 "(i.e., \\[aq]\\[rs]0\\[aq] is placed in the first byte of the buffer)."
233 msgstr ""
234 "Le flux est ouvert en lecture et en écriture. Le contenu du tampon est "
235 "écrasé (autrement dit, \\[aq]\\[rs]0\\[aq] est placé dans le premier octet "
236 "du tampon."
237
238 #. type: TP
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "I<a+>"
243 msgstr "I<a+>"
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 "Append; open the stream for reading and writing, with the initial buffer "
250 "position set to the first null byte."
251 msgstr ""
252 "Ajout ; le flux est ouvert en lecture et écriture, la position initiale du "
253 "tampon étant définie au premier octet de valeur zéro."
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "The stream maintains the notion of a current position, the location where "
260 "the next I/O operation will be performed. The current position is "
261 "implicitly updated by I/O operations. It can be explicitly updated using "
262 "B<fseek>(3), and determined using B<ftell>(3). In all modes other than "
263 "append, the initial position is set to the start of the buffer. In append "
264 "mode, if no null byte is found within the buffer, then the initial position "
265 "is I<size+1>."
266 msgstr ""
267 "Le flux conserve la notion de position actuelle qui est l'endroit du tampon "
268 "où la prochaine opération d'entrée/sortie aura lieu. La position actuelle "
269 "est automatiquement mise à jour par les opérations d'entrées/sorties. Elle "
270 "peut aussi être définie de manière explicite à l'aide de B<fseek>(3) et "
271 "obtenue à l'aide de B<ftell>(3). Dans tous les modes autres que Ajout, la "
272 "position actuelle est initialisée au début du tampon. En mode Ajout, si "
273 "aucun octet de valeur zéro n'est trouvé dans le tampon, la position actuelle "
274 "est initialisée à I<taille+1>."
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "If I<buf> is specified as NULL, then B<fmemopen>() allocates a buffer of "
281 "I<size> bytes. This is useful for an application that wants to write data "
282 "to a temporary buffer and then read it back again. The initial position is "
283 "set to the start of the buffer. The buffer is automatically freed when the "
284 "stream is closed. Note that the caller has no way to obtain a pointer to "
285 "the temporary buffer allocated by this call (but see B<open_memstream>(3))."
286 msgstr ""
287 "Si l'argument I<tampon> vaut NULL, alors la fonction B<fmemopen>() alloue un "
288 "tampon de I<taille> octets. C'est utile pour les applications qui veulent "
289 "écrire des données dans un tampon temporaire et les lire ensuite. La "
290 "position initiale est définie au début du tampon. Le tampon est "
291 "automatiquement supprimé lorsque le flux est fermé. Notez que l'appelant ne "
292 "peut pas obtenir de pointeur vers le tampon temporaire alloué avec cette "
293 "fonction (voir à ce sujet B<open_memstream>(3))."
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 I<buf> is not NULL, then it should point to a buffer of at least I<size> "
300 "bytes allocated by the caller."
301 msgstr ""
302 "Si I<tampon> est différent de NULL, il doit pointer vers un tampon d'une "
303 "taille minimale de I<taille> octets alloués par l'appelant."
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "When a stream that has been opened for writing is flushed (B<fflush>(3)) or "
310 "closed (B<fclose>(3)), a null byte is written at the end of the buffer if "
311 "there is space. The caller should ensure that an extra byte is available in "
312 "the buffer (and that I<size> counts that byte) to allow for this."
313 msgstr ""
314 "Lorsqu'un flux ouvert en écriture est vidé (consultez B<fflush>(3)), ou "
315 "fermé (consultez B<fclose>(3)), un octet nul est écrit à la fin du tampon "
316 "s'il y a de la place. Pour ce faire, l'appelant doit s'assurer qu'un octet "
317 "supplémentaire est disponible dans le tampon (et que I<taille> en tient "
318 "compte)."
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "In a stream opened for reading, null bytes (\\[aq]\\[rs]0\\[aq]) in the "
325 "buffer do not cause read operations to return an end-of-file indication. A "
326 "read from the buffer will indicate end-of-file only when the current buffer "
327 "position advances I<size> bytes past the start of the buffer."
328 msgstr ""
329 "Avec un flux ouvert en lecture, si le tampon contient des octets de "
330 "valeur (\\[aq]\\[rs]0\\[aq]), les opérations de lecture ne renverront pas "
331 "une indication de fin de fichier. Une lecture depuis le tampon n'indiquera "
332 "la fin du fichier que lorsque la position actuelle du tampon aura atteint la "
333 "valeur I<taille>."
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid ""
339 "Write operations take place either at the current position (for modes other "
340 "than append), or at the current size of the stream (for append modes)."
341 msgstr ""
342 "Les opérations d'écriture s'effectuent soit à la position actuelle (pour les "
343 "modes autres que Ajout), ou à une position correspondant à la taille du flux "
344 "(pour les mode Ajout)."
345
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "Attempts to write more than I<size> bytes to the buffer result in an error. "
351 "By default, such errors will be visible (by the absence of data) only when "
352 "the I<stdio> buffer is flushed. Disabling buffering with the following call "
353 "may be useful to detect errors at the time of an output operation:"
354 msgstr ""
355 "Essayer d'écrire plus de I<taille> octets dans le tampon crée une erreur. "
356 "Par défaut, de telles erreurs ne seront visibles (en l'absence de données) "
357 "que lorsque le tampon I<stdio> sera vidé. Désactiver cette mise en tampon "
358 "avec l'appel suivant peut s'avérer utile pour détecter les erreurs au moment "
359 "d'une opération de sortie :"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 #, no-wrap
365 msgid "setbuf(stream, NULL);\n"
366 msgstr "setbuf(flux, NULL);\n"
367
368 #. type: SH
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "RETURN VALUE"
373 msgstr "VALEUR RENVOYÉE"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "Upon successful completion, B<fmemopen>() returns a I<FILE> pointer. "
380 "Otherwise, NULL is returned and I<errno> is set to indicate the error."
381 msgstr ""
382 "En cas de succès, B<fmemopen>() renvoie un pointeur de type I<FILE>. Sinon, "
383 "elle renvoie NULL et I<errno> contient le code d'erreur."
384
385 #. type: SH
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "ATTRIBUTES"
390 msgstr "ATTRIBUTS"
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "For an explanation of the terms used in this section, see B<attributes>(7)."
397 msgstr ""
398 "Pour une explication des termes utilisés dans cette section, consulter "
399 "B<attributes>(7)."
400
401 #. type: tbl table
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "Interface"
406 msgstr "Interface"
407
408 #. type: tbl table
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "Attribute"
413 msgstr "Attribut"
414
415 #. type: tbl table
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "Value"
420 msgstr "Valeur"
421
422 #. type: tbl table
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 #, no-wrap
426 msgid ".na\n"
427 msgstr ".na\n"
428
429 #. type: tbl table
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid ".nh\n"
434 msgstr ".nh\n"
435
436 #. type: tbl table
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<fmemopen>(),"
441 msgstr "B<fmemopen>(),"
442
443 #. type: tbl table
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid "Thread safety"
448 msgstr "Sécurité des threads"
449
450 #. type: tbl table
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "MT-Safe"
455 msgstr "MT-Safe"
456
457 #. type: SH
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "STANDARDS"
462 msgstr "NORMES"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid "POSIX.1-2008."
468 msgstr "POSIX.1-2008."
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 "HISTORY"
475 msgstr "HISTORIQUE"
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 "glibc 1.0.x. POSIX.1-2008."
481 msgstr "glibc 1.0.x. POSIX.1-2008."
482
483 #. http://austingroupbugs.net/view.php?id=396
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "POSIX.1-2008 specifies that \\[aq]b\\[aq] in I<mode> shall be ignored. "
489 "However, Technical Corrigendum 1 adjusts the standard to allow "
490 "implementation-specific treatment for this case, thus permitting the glibc "
491 "treatment of \\[aq]b\\[aq]."
492 msgstr ""
493 "POSIX.1-2008 spécifie que « b » dans I<mode> sera ignoré. Cependant, "
494 "Technical Corrigendum 1 ajuste la norme pour permettre un traitement "
495 "spécifique à l'implémentation dans ce cas, permettant ainsi à la glibc de "
496 "traiter « b »."
497
498 #. type: Plain text
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 msgid ""
502 "With glibc 2.22, binary mode (see below) was removed, many longstanding bugs "
503 "in the implementation of B<fmemopen>() were fixed, and a new versioned "
504 "symbol was created for this interface."
505 msgstr ""
506 "Avec la glibc 2.22, le mode binaire a été supprimé (voir ci-dessous), de "
507 "nombreux bogues anciens dans l'implémentation de B<fmemopen>() ont été "
508 "résolus et un nouveau symbole versionné a été créé pour cette interface."
509
510 #. type: SS
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 #, no-wrap
514 msgid "Binary mode"
515 msgstr "Mode binaire"
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "From glibc 2.9 to glibc 2.21, the glibc implementation of B<fmemopen>() "
522 "supported a \"binary\" mode, enabled by specifying the letter \\[aq]b\\[aq] "
523 "as the second character in I<mode>. In this mode, writes don't implicitly "
524 "add a terminating null byte, and B<fseek>(3) B<SEEK_END> is relative to the "
525 "end of the buffer (i.e., the value specified by the I<size> argument), "
526 "rather than the current string length."
527 msgstr ""
528 "De la glibc 2.9 à la glibc 2.21, l'implémentation dans la glibc de "
529 "B<fmemopen>() prenait en charge un mode « binaire » qui pouvait être activé "
530 "en spécifiant la lettre « b » comme second caractère de I<mode>. Dans ce "
531 "mode, les opérations d'écriture n'ajoutaient pas de manière implicite "
532 "l'octet de valeur zéro terminal, et la valeur B<SEEK_END> du troisième "
533 "argument de B<fseek>(3) est relative à la fin du tampon (c'est-à-dire la "
534 "valeur spécifiée par l'argument I<taille>), et non à la longueur de la "
535 "chaîne courante."
536
537 #. http://sourceware.org/bugzilla/show_bug.cgi?id=12836
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid ""
542 "An API bug afflicted the implementation of binary mode: to specify binary "
543 "mode, the \\[aq]b\\[aq] must be the I<second> character in I<mode>. Thus, "
544 "for example, \"wb+\" has the desired effect, but \"w+b\" does not. This is "
545 "inconsistent with the treatment of I<mode> by B<fopen>(3)."
546 msgstr ""
547 "Un bogue de l'API affectait l'implémentation du mode binaire : pour indiquer "
548 "le mode binaire, le « b » doit être le I<second> caractère de I<mode>. "
549 "Ainsi, par exemple, « wb+ » a le comportement attendu, mais pas « w+b ». Ce "
550 "n'était pas cohérent avec le traitement de I<mode> par B<fopen>(3)."
551
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid ""
556 "Binary mode was removed in glibc 2.22; a \\[aq]b\\[aq] specified in I<mode> "
557 "has no effect."
558 msgstr ""
559 "Le mode binaire a été supprimé à partir de la version 2.22 de la glibc et un "
560 "« b » spécifié dans I<mode> n'a dorénavant aucun effet."
561
562 #. type: SH
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid "NOTES"
567 msgstr "NOTES"
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid ""
573 "There is no file descriptor associated with the file stream returned by this "
574 "function (i.e., B<fileno>(3) will return an error if called on the returned "
575 "stream)."
576 msgstr ""
577 "Il n'y a pas de descripteur de fichier associé avec le flux renvoyé par "
578 "cette fonction (par exemple, B<fileno>(3) retournera une erreur si elle est "
579 "appelée avec un tel flux)."
580
581 #. type: SH
582 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
583 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
584 #, no-wrap
585 msgid "BUGS"
586 msgstr "BOGUES"
587
588 #. http://sourceware.org/bugzilla/show_bug.cgi?id=11216
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 msgid ""
593 "Before glibc 2.22, if I<size> is specified as zero, B<fmemopen>() fails "
594 "with the error B<EINVAL>. It would be more consistent if this case "
595 "successfully created a stream that then returned end-of-file on the first "
596 "attempt at reading; since glibc 2.22, the glibc implementation provides that "
597 "behavior."
598 msgstr ""
599 "Avant la glibc 2.22, si I<taille> est égale à zéro, B<fmemopen>() échoue "
600 "avec l'erreur B<EINVAL>. Il est plus cohérent dans ce cas de créer un flux "
601 "renvoyant la fin de fichier au premier essai de lecture, et c'est ce que "
602 "fait l'implémentation de la glibc depuis la glibc 2.22."
603
604 #. http://sourceware.org/bugzilla/show_bug.cgi?id=13152
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 msgid ""
609 "Before glibc 2.22, specifying append mode (\"a\" or \"a+\") for "
610 "B<fmemopen>() sets the initial buffer position to the first null byte, but "
611 "(if the current position is reset to a location other than the end of the "
612 "stream) does not force subsequent writes to append at the end of the "
613 "stream. This bug is fixed in glibc 2.22."
614 msgstr ""
615 "Avant la glibc 2.22, indiquer un mode d'ajout (« a » ou « a+ ») pour "
616 "B<fmemopen>() définit la position initiale du fichier au premier octet de "
617 "valeur zéro, mais ne force pas l'ajout des écritures suivantes à la fin du "
618 "flux si la position actuelle dans le fichier est réinitialisée à un autre "
619 "endroit que la fin du flux. Ce bogue a été corrigé avec la glibc 2.22."
620
621 #. http://sourceware.org/bugzilla/show_bug.cgi?id=13151
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "Before glibc 2.22, if the I<mode> argument to B<fmemopen>() specifies "
627 "append (\"a\" or \"a+\"), and the I<size> argument does not cover a null "
628 "byte in I<buf>, then, according to POSIX.1-2008, the initial buffer position "
629 "should be set to the next byte after the end of the buffer. However, in "
630 "this case the glibc B<fmemopen>() sets the buffer position to -1. This bug "
631 "is fixed in glibc 2.22."
632 msgstr ""
633 "Avant la glibc 2.22, si l'argument I<mode> de B<fmemopen>() indiquait un "
634 "ajout (« a » ou « a+ »), et si l'argument I<taille> ne couvrait pas d'octet "
635 "de valeur zéro dans I<tampon>, alors, d'après POSIX.1-2008, la position "
636 "initiale du fichier devait être définie à l'octet qui suit la fin du tampon. "
637 "Dans ce cas cependant, l'implémentation de B<fmemopen>() de la glibc "
638 "définissait la position du fichier à B<-1>. Ce bogue a été corrigé avec la "
639 "glibc 2.22."
640
641 #. https://sourceware.org/bugzilla/show_bug.cgi?id=14292
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 msgid ""
646 "Before glibc 2.22, when a call to B<fseek>(3) with a I<whence> value of "
647 "B<SEEK_END> was performed on a stream created by B<fmemopen>(), the "
648 "I<offset> was I<subtracted> from the end-of-stream position, instead of "
649 "being added. This bug is fixed in glibc 2.22."
650 msgstr ""
651 "Avant la glibc 2.22, lorsqu'un appel à B<fseek>(3) avec une valeur de "
652 "I<départ> égale à B<SEEK_END> était effectué sur un flux créé à l'aide de "
653 "B<fmemopen>(), le I<décalage> était I<soustrait> à la position de fin de "
654 "flux au lieu d'y être ajouté. Ce bogue a été corrigé à partir de la glibc "
655 "2.22."
656
657 #. http://sourceware.org/bugzilla/show_bug.cgi?id=6544
658 #. type: Plain text
659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
661 msgid ""
662 "The glibc 2.9 addition of \"binary\" mode for B<fmemopen>() silently "
663 "changed the ABI: previously, B<fmemopen>() ignored \\[aq]b\\[aq] in I<mode>."
664 msgstr ""
665 "L'ajout du mode « binaire » dans la glibc 2.9 pour B<fmemopen>() a modifié "
666 "silencieusement l'ABI : auparavant, B<fmemopen>() ignorait « b » dans "
667 "I<mode>."
668
669 #. type: SH
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 #, no-wrap
673 msgid "EXAMPLES"
674 msgstr "EXEMPLES"
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid ""
680 "The program below uses B<fmemopen>() to open an input buffer, and "
681 "B<open_memstream>(3) to open a dynamically sized output buffer. The "
682 "program scans its input string (taken from the program's first command-line "
683 "argument) reading integers, and writes the squares of these integers to the "
684 "output buffer. An example of the output produced by this program is the "
685 "following:"
686 msgstr ""
687 "Le programme ci-dessous utilise B<fmemopen>() pour ouvrir un tampon d'entrée "
688 "et B<open_memstream>(3) pour ouvrir un tampon de sortie de taille dynamique. "
689 "Ce programme scrute la chaîne en entrée (récupérée du premier argument de la "
690 "ligne de commande du programme) sous forme d'entiers, et écrit le carré de "
691 "ces entiers dans le tampon de sortie. Voici un exemple de la sortie produite "
692 "par ce programme\\ :"
693
694 #. type: Plain text
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid ""
699 "$B< ./a.out \\[aq]1 23 43\\[aq]>\n"
700 "size=11; ptr=1 529 1849\n"
701 msgstr ""
702 "$B< ./a.out \\[aq]1 23 43\\[aq]>\n"
703 "taille=11; ptr=1 529 1849\n"
704
705 #. type: SS
706 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
707 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
708 #, no-wrap
709 msgid "Program source"
710 msgstr "Source du programme"
711
712 #. type: Plain text
713 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
714 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
715 #, no-wrap
716 msgid ""
717 "#define _GNU_SOURCE\n"
718 "#include E<lt>err.hE<gt>\n"
719 "#include E<lt>stdio.hE<gt>\n"
720 "#include E<lt>stdlib.hE<gt>\n"
721 "#include E<lt>string.hE<gt>\n"
722 "\\&\n"
723 "int\n"
724 "main(int argc, char *argv[])\n"
725 "{\n"
726 " FILE *out, *in;\n"
727 " int v, s;\n"
728 " size_t size;\n"
729 " char *ptr;\n"
730 "\\&\n"
731 " if (argc != 2) {\n"
732 " fprintf(stderr, \"Usage: %s \\[aq]E<lt>numE<gt>...\\[aq]\\[rs]n\", argv[0]);\n"
733 " exit(EXIT_FAILURE);\n"
734 " }\n"
735 "\\&\n"
736 " in = fmemopen(argv[1], strlen(argv[1]), \"r\");\n"
737 " if (in == NULL)\n"
738 " err(EXIT_FAILURE, \"fmemopen\");\n"
739 "\\&\n"
740 " out = open_memstream(&ptr, &size);\n"
741 " if (out == NULL)\n"
742 " err(EXIT_FAILURE, \"open_memstream\");\n"
743 "\\&\n"
744 " for (;;) {\n"
745 " s = fscanf(in, \"%d\", &v);\n"
746 " if (s E<lt>= 0)\n"
747 " break;\n"
748 "\\&\n"
749 " s = fprintf(out, \"%d \", v * v);\n"
750 " if (s == -1)\n"
751 " err(EXIT_FAILURE, \"fprintf\");\n"
752 " }\n"
753 "\\&\n"
754 " fclose(in);\n"
755 " fclose(out);\n"
756 "\\&\n"
757 " printf(\"size=%zu; ptr=%s\\[rs]n\", size, ptr);\n"
758 "\\&\n"
759 " free(ptr);\n"
760 " exit(EXIT_SUCCESS);\n"
761 "}\n"
762 msgstr ""
763 "#define _GNU_SOURCE\n"
764 "#include E<lt>err.hE<gt>\n"
765 "#include E<lt>stdio.hE<gt>\n"
766 "#include E<lt>stdlib.hE<gt>\n"
767 "#include E<lt>string.hE<gt>\n"
768 "\\&\n"
769 "int\n"
770 "main(int argc, char *argv[])\n"
771 "{\n"
772 " FILE *out, *in;\n"
773 " int v, s;\n"
774 " size_t taille;\n"
775 " char *ptr;\n"
776 "\\&\n"
777 " if (argc != 2) {\n"
778 " fprintf(stderr, \"Utilisation : %s \\[aq]E<lt>numE<gt>...\\[aq]\\[rs]n\", argv[0]);\n"
779 " exit(EXIT_FAILURE);\n"
780 " }\n"
781 "\\&\n"
782 " in = fmemopen(argv[1], strlen(argv[1]), \"r\");\n"
783 " if (in == NULL)\n"
784 " err(EXIT_FAILURE, \"fmemopen\");\n"
785 "\\&\n"
786 " out = open_memstream(&ptr, taille);\n"
787 " if (out == NULL)\n"
788 " err(EXIT_FAILURE, \"open_memstream\");\n"
789 "\\&\n"
790 " for (;;) {\n"
791 " s = fscanf(in, \"%d\", &v);\n"
792 " if (s E<lt>= 0)\n"
793 " break;\n"
794 "\\&\n"
795 " s = fprintf(out, \"%d \", v * v);\n"
796 " if (s == -1)\n"
797 " err(EXIT_FAILURE, \"fprintf\");\n"
798 " }\n"
799 "\\&\n"
800 " fclose(in);\n"
801 " fclose(out);\n"
802 "\\&\n"
803 " printf(\"taille=%zu; ptr=%s\\[rs]n\", taille, ptr);\n"
804 "\\&\n"
805 " free(ptr);\n"
806 " exit(EXIT_SUCCESS);\n"
807 "}\n"
808
809 #. SRC END
810 #. type: SH
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 #, no-wrap
814 msgid "SEE ALSO"
815 msgstr "VOIR AUSSI"
816
817 #. type: Plain text
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 msgid "B<fopen>(3), B<fopencookie>(3), B<open_memstream>(3)"
821 msgstr "B<fopen>(3), B<fopencookie>(3), B<open_memstream>(3)"
822
823 #. type: TH
824 #: debian-trixie
825 #, no-wrap
826 msgid "2024-06-15"
827 msgstr "15 juin 2024"
828
829 #. type: TH
830 #: debian-trixie
831 #, no-wrap
832 msgid "Linux man-pages 6.9.1"
833 msgstr "Pages du manuel de Linux 6.9.1"
834
835 #. type: Plain text
836 #: debian-trixie
837 msgid "Standard C library (I<libc>, I<-lc>)"
838 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
839
840 #. type: Plain text
841 #: debian-trixie fedora-44 fedora-rawhide
842 #, no-wrap
843 msgid "B<FILE *fmemopen(void >I<buf>B<[.>I<size>B<], size_t >I<size>B<, const char *>I<mode>B<);>\n"
844 msgstr "B<FILE *fmemopen(void >I<tampon>B<[.>I<taille>B<], size_t >I<taille>B<, const char *>I<mode>B<);>\n"
845
846 #. type: TH
847 #: fedora-44 fedora-rawhide
848 #, no-wrap
849 msgid "2024-07-23"
850 msgstr "23 juillet 2024"
851
852 #. type: TH
853 #: fedora-44 fedora-rawhide
854 #, no-wrap
855 msgid "Linux man-pages 6.13"
856 msgstr "Pages du manuel de Linux 6.13"
857
858 #. type: TH
859 #: mageia-cauldron
860 #, no-wrap
861 msgid "Linux man-pages 6.17"
862 msgstr "Pages du manuel de Linux 6.17"
863
864 #. type: TH
865 #: opensuse-leap-16-1 opensuse-tumbleweed
866 #, no-wrap
867 msgid "Linux man-pages (unreleased)"
868 msgstr "Pages du manuel de Linux (non publiées)"