Debian Codegraph @

po/fr/man3/mallinfo.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, 2012-2014.
16 # Denis Barbier <[email protected]>, 2006,2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 # Grégoire Scano <[email protected]>, 2020-2021.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.22.0\n"
22 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
23 "PO-Revision-Date: 2024-05-07 17:24+0200\n"
24 "Last-Translator: Grégoire Scano <[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 "mallinfo"
38 msgstr "mallinfo"
39
40 #. type: TH
41 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "2026-02-22"
44 msgstr "22 février 2026"
45
46 #. type: TH
47 #: archlinux debian-unstable
48 #, no-wrap
49 msgid "Linux man-pages 6.18"
50 msgstr "Pages du manuel de Linux 6.18"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "NAME"
57 msgstr "NOM"
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "mallinfo, mallinfo2 - obtain memory allocation information"
63 msgstr "mallinfo, mallinfo2 - Obtenir les paramètres d'allocation de mémoire"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "LIBRARY"
70 msgstr "BIBLIOTHÈQUE"
71
72 #. type: Plain text
73 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
74 #: opensuse-leap-16-1 opensuse-tumbleweed
75 msgid "Standard C library (I<libc>,\\ I<-lc>)"
76 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "SYNOPSIS"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<#include E<lt>malloc.hE<gt>>\n"
90 msgstr "B<#include E<lt>malloc.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "B<struct mallinfo mallinfo(void);>\n"
98 "B<struct mallinfo2 mallinfo2(void);>\n"
99 msgstr ""
100 "B<struct mallinfo mallinfo(void);>\n"
101 "B<struct mallinfo2 mallinfo2(void);>\n"
102
103 #. type: SH
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid "DESCRIPTION"
108 msgstr "DESCRIPTION"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "These functions return a copy of a structure containing information about "
115 "memory allocations performed by B<malloc>(3) and related functions. The "
116 "structure returned by each function contains the same fields. However, the "
117 "older function, B<mallinfo>(), is deprecated since the type used for the "
118 "fields is too small (see BUGS)."
119 msgstr ""
120 "Ces fonctions renvoient une copie de la structure contenant les informations "
121 "sur les allocations mémoires effectuées par B<malloc>(3) et les fonctions "
122 "qui lui sont associées. La structure renvoyée par chaque fonction contient "
123 "les mêmes champs. Cependant, la fonction plus ancienne B<mallinfo>() est "
124 "obsolète puisque le type des champs est trop petit (voir BOGUES)."
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "Note that not all allocations are visible to these functions; see BUGS and "
131 "consider using B<malloc_info>(3) instead."
132 msgstr ""
133 "Il est à noter que toutes les allocations ne sont pas observables par ces "
134 "fonctions ; consultez BOGUES et envisagez l'utilisation de B<malloc_info>(3) "
135 "à la place."
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "The I<mallinfo2> structure returned by B<mallinfo2>() is defined as follows:"
142 msgstr ""
143 "La structure I<mallinfo2> renvoyée par B<mallinfo2>() est définie comme "
144 "suit :"
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid ""
151 "struct mallinfo2 {\n"
152 " size_t arena; /* Non-mmapped space allocated (bytes) */\n"
153 " size_t ordblks; /* Number of free chunks */\n"
154 " size_t smblks; /* Number of free fastbin blocks */\n"
155 " size_t hblks; /* Number of mmapped regions */\n"
156 " size_t hblkhd; /* Space allocated in mmapped regions\n"
157 " (bytes) */\n"
158 " size_t usmblks; /* See below */\n"
159 " size_t fsmblks; /* Space in freed fastbin blocks (bytes) */\n"
160 " size_t uordblks; /* Total allocated space (bytes) */\n"
161 " size_t fordblks; /* Total free space (bytes) */\n"
162 " size_t keepcost; /* Top-most, releasable space (bytes) */\n"
163 "};\n"
164 msgstr ""
165 "struct mallinfo {\n"
166 " size_t arena; /* Espace alloué en mémoire non projetée (octet) */\n"
167 " size_t ordblks; /* Nombre de fragments libres */\n"
168 " size_t smblks; /* Nombre de blocs « fastbin » libres */\n"
169 " size_t hblks; /* Nombre de zones de mémoire projetée */\n"
170 " size_t hblkhd; /* Espace alloué en zones de mém. projetée (octet) */\n"
171 " size_t usmblks; /* Voir ci-dessous */\n"
172 " size_t fsmblks; /* Espace en blocs « fastbin » libérés (octet) */\n"
173 " size_t uordblks; /* Espace alloué total (octet) */\n"
174 " size_t fordblks; /* Espace libre total (octet) */\n"
175 " size_t keepcost; /* Plus grand espace libérable (octet) */\n"
176 "};\n"
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 "The I<mallinfo> structure returned by the deprecated B<mallinfo>() function "
183 "is exactly the same, except that the fields are typed as I<int>."
184 msgstr ""
185 "La structure I<mallinfo> renvoyée par la fonction obsolète B<mallinfo>() est "
186 "exactement la même mis à part que les champs sont de type I<int>."
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid "The structure fields contain the following information:"
192 msgstr "Les champs de la structure contiennent les informations suivantes :"
193
194 #. type: TP
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "I<arena>"
199 msgstr "I<arena>"
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "The total amount of memory allocated by means other than B<mmap>(2) (i.e., "
206 "memory allocated on the heap). This figure includes both in-use blocks and "
207 "blocks on the free list."
208 msgstr ""
209 "La quantité de mémoire allouée par d'autres moyens que B<mmap>(2) (c'est-à-"
210 "dire la mémoire allouée dans le tas). Ce chiffre inclut à la fois les blocs "
211 "en cours d'utilisation et ceux marqués comme libres."
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "I<ordblks>"
218 msgstr "I<ordblks>"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "The number of ordinary (i.e., non-fastbin) free blocks."
224 msgstr "Le nombre de blocs libres normaux (c'est-à-dire non « fastbin »)."
225
226 #. type: TP
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "I<smblks>"
231 msgstr "I<smblks>"
232
233 #. the glibc info page wrongly says this field is unused
234 #. https://sourceware.org/bugzilla/show_bug.cgi?id=26746
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid "The number of fastbin free blocks (see B<mallopt>(3))."
239 msgstr "Le nombre de blocs libres « fastbin » (consultez B<mallopt>(3))."
240
241 #. type: TP
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "I<hblks>"
246 msgstr "I<hblks>"
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "The number of blocks currently allocated using B<mmap>(2). (See the "
253 "discussion of B<M_MMAP_THRESHOLD> in B<mallopt>(3).)"
254 msgstr ""
255 "Le nombre de blocs actuellement alloués par B<mmap>(2). Consultez "
256 "B<mallopt>(3) pour l'explication de B<M_MMAP_THRESHOLD>."
257
258 #. type: TP
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "I<hblkhd>"
263 msgstr "I<hblkhd>"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid "The number of bytes in blocks currently allocated using B<mmap>(2)."
269 msgstr "Le nombre d'octets des blocs actuellement alloués par B<mmap>(2)."
270
271 #. type: TP
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "I<usmblks>"
276 msgstr "I<usmblks>"
277
278 #. It seems to have been zero since at least as far back as glibc 2.15
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "This field is unused, and is always 0. Historically, it was the \"highwater "
284 "mark\" for allocated space\\[em]that is, the maximum amount of space that "
285 "was ever allocated (in bytes); this field was maintained only in "
286 "nonthreading environments."
287 msgstr ""
288 "Ce champ n'est pas utilisé et vaut toujours 0. Historiquement, c’était le "
289 "« niveau haut » d'espace alloué — c'est-à-dire la quantité d'espace maximale "
290 "qui a déjà été allouée. Ce champ n'est maintenu que dans les environnements "
291 "sans thread."
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 "I<fsmblks>"
298 msgstr "I<fsmblks>"
299
300 #. the glibc info page wrongly says this field is unused
301 #. https://sourceware.org/bugzilla/show_bug.cgi?id=26746
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid "The total number of bytes in fastbin free blocks."
306 msgstr "Le nombre total d'octets dans les blocs libres « fastbin »."
307
308 #. type: TP
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "I<uordblks>"
313 msgstr "I<uordblks>"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid "The total number of bytes used by in-use allocations."
319 msgstr ""
320 "Le nombre total d'octets consommés par des allocations en cours "
321 "d'utilisation."
322
323 #. type: TP
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "I<fordblks>"
328 msgstr "I<fordblks>"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid "The total number of bytes in free blocks."
334 msgstr "Le nombre total d'octets dans les blocs libres."
335
336 #. type: TP
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "I<keepcost>"
341 msgstr "I<keepcost>"
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid ""
347 "The total amount of releasable free space at the top of the heap. This is "
348 "the maximum number of bytes that could ideally (i.e., ignoring page "
349 "alignment restrictions, and so on) be released by B<malloc_trim>(3)."
350 msgstr ""
351 "La quantité totale d'espace libérable au sommet du tas. C'est le nombre "
352 "maximal d'octets qui pourraient au mieux (c'est-à-dire en ignorant les "
353 "restrictions d'alignement de page, etc.) être libérés par B<malloc_trim>(3)."
354
355 #. type: SH
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "ATTRIBUTES"
360 msgstr "ATTRIBUTS"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "For an explanation of the terms used in this section, see B<attributes>(7)."
367 msgstr ""
368 "Pour une explication des termes utilisés dans cette section, consulter "
369 "B<attributes>(7)."
370
371 #. type: tbl table
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "Interface"
376 msgstr "Interface"
377
378 #. type: tbl table
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "Attribute"
383 msgstr "Attribut"
384
385 #. type: tbl table
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid "Value"
390 msgstr "Valeur"
391
392 #. type: tbl table
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid ".na\n"
397 msgstr ".na\n"
398
399 #. type: tbl table
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid ".nh\n"
404 msgstr ".nh\n"
405
406 #. type: tbl table
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid ""
411 "B<mallinfo>(),\n"
412 "B<mallinfo2>()"
413 msgstr ""
414 "B<mallinfo>(),\n"
415 "B<mallinfo2>()"
416
417 #. type: tbl table
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid "Thread safety"
422 msgstr "Sécurité des threads"
423
424 #. type: tbl table
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid "MT-Unsafe init const:mallopt"
429 msgstr "MT-Unsafe init const:mallopt"
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid ""
435 "B<mallinfo>()/ B<mallinfo2>() would access some global internal objects. "
436 "If modify them with non-atomically, may get inconsistent results. The "
437 "identifier I<mallopt> in I<const:mallopt> mean that B<mallopt>() would "
438 "modify the global internal objects with atomics, that make sure "
439 "B<mallinfo>()/ B<mallinfo2>() is safe enough, others modify with non-"
440 "atomically maybe not."
441 msgstr ""
442 "B<mallinfo>()/B<malloinfo2>() accède à des objets globaux internes. S'ils "
443 "sont modifiés de façon non atomique, les résultats peuvent ne pas être "
444 "cohérents. L'identifiant I<mallopt> dans I<const::mallopt> signifie que "
445 "B<mallopt>() modifie ces objets globaux internes de façon atomique, rendant "
446 "B<mallinfo>()/B<mallinfo2>() suffisamment sûr, d'autres modifications non "
447 "atomiques ne le garantissant peut-être pas."
448
449 #. type: SH
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "STANDARDS"
454 msgstr "NORMES"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid "None."
460 msgstr "Aucun."
461
462 #. type: SH
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "HISTORY"
467 msgstr "HISTORIQUE"
468
469 #. type: TP
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 #, no-wrap
473 msgid "B<mallinfo>()"
474 msgstr "B<mallinfo>()"
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 msgid "glibc 2.0. SVID."
480 msgstr "glibc 2.0. SVID."
481
482 #. type: TP
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "B<mallinfo2>()"
487 msgstr "B<mallinfo2>()"
488
489 #. commit e3960d1c57e57f33e0e846d615788f4ede73b945
490 #. type: Plain text
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 msgid "glibc 2.33."
494 msgstr "glibc 2.33."
495
496 #. type: SH
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "BUGS"
501 msgstr "BOGUES"
502
503 #. FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=208
504 #. See the 24 Aug 2011 mail by Paul Pluzhnikov:
505 #. "[patch] Fix mallinfo() to accumulate results for all arenas"
506 #. on [email protected]
507 #. type: Plain text
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 msgid ""
511 "B<Information is returned for only the main memory allocation area.> "
512 "Allocations in other arenas are excluded. See B<malloc_stats>(3) and "
513 "B<malloc_info>(3) for alternatives that include information about other "
514 "arenas."
515 msgstr ""
516 "B<Les renseignements ne sont renvoyés que pour la zone principale "
517 "d'allocation de mémoire.> Les allocations dans les autres domaines sont "
518 "exclues. Consultez B<malloc_stats>(3) et B<malloc_info>(3) pour les "
519 "alternatives qui contiennent des renseignements sur d'autres domaines."
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 ""
525 "The fields of the I<mallinfo> structure that is returned by the older "
526 "B<mallinfo>() function are typed as I<int>. However, because some internal "
527 "bookkeeping values may be of type I<long>, the reported values may wrap "
528 "around zero and thus be inaccurate."
529 msgstr ""
530 "Les champs de la structure I<mallinfo> renvoyée par l'ancienne fonction "
531 "B<mallinfo>() sont de type I<int>. Cependant, puisque certaines valeurs "
532 "servant à la gestion interne pourraient être de type I<long>, les valeurs "
533 "rendues pourraient être arrondies à zéro et être par conséquent incorrectes."
534
535 #. type: SH
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "EXAMPLES"
540 msgstr "EXEMPLES"
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "The program below employs B<mallinfo2>() to retrieve memory allocation "
547 "statistics before and after allocating and freeing some blocks of memory. "
548 "The statistics are displayed on standard output."
549 msgstr ""
550 "Le programme ci-dessous utilise B<mallinfo2>() pour récupérer les "
551 "statistiques d'allocation de mémoire avant et après l'allocation et la "
552 "libération de certains blocs de mémoire. Les statistiques sont affichées sur "
553 "la sortie standard."
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid ""
559 "The first two command-line arguments specify the number and size of blocks "
560 "to be allocated with B<malloc>(3)."
561 msgstr ""
562 "Les deux premiers paramètres en ligne de commande définissent le nombre et "
563 "la taille des blocs à allouer avec B<malloc>(3)."
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 msgid ""
569 "The remaining three arguments specify which of the allocated blocks should "
570 "be freed with B<free>(3). These three arguments are optional, and specify "
571 "(in order): the step size to be used in the loop that frees blocks (the "
572 "default is 1, meaning free all blocks in the range); the ordinal position of "
573 "the first block to be freed (default 0, meaning the first allocated block); "
574 "and a number one greater than the ordinal position of the last block to be "
575 "freed (default is one greater than the maximum block number). If these "
576 "three arguments are omitted, then the defaults cause all allocated blocks to "
577 "be freed."
578 msgstr ""
579 "Les trois arguments restants définissent les blocs alloués qui devraient "
580 "être libérés avec B<free>(3). Ces trois arguments sont facultatifs et "
581 "définissent (dans l'ordre) : la taille du tas à utiliser dans la boucle qui "
582 "libère les blocs (1 par défaut, ce qui signifie de libérer tous les blocs de "
583 "l'intervalle), la position du premier bloc à libérer (0 par défaut, ce qui "
584 "signifie le premier bloc alloué) et un nombre supérieur d’une unité à la "
585 "position du dernier bloc à libérer (le nombre supérieur de 1 au nombre "
586 "maximal de blocs par défaut). Si aucun de ces trois arguments n'est présent, "
587 "tous les blocs seront libérés par défaut."
588
589 # NOTFIX: 2 est le premier argument optionnel (1 par défaut), c'est-à-dire le pas.
590 #. type: Plain text
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 msgid ""
594 "In the following example run of the program, 1000 allocations of 100 bytes "
595 "are performed, and then every second allocated block is freed:"
596 msgstr ""
597 "Dans l'exemple suivant, 1000 allocations de 100 octets sont effectuées, puis "
598 "chaque deuxième bloc alloué est libéré :"
599
600 #. type: Plain text
601 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
602 #: opensuse-tumbleweed
603 #, fuzzy, no-wrap
604 #| msgid ""
605 #| "$ B<./a.out 1000 100 2>\n"
606 #| "============== Before allocating blocks ==============\n"
607 #| "Total non-mmapped bytes (arena): 0\n"
608 #| "# of free chunks (ordblks): 1\n"
609 #| "# of free fastbin blocks (smblks): 0\n"
610 #| "# of mapped regions (hblks): 0\n"
611 #| "Bytes in mapped regions (hblkhd): 0\n"
612 #| "Max. total allocated space (usmblks): 0\n"
613 #| "Free bytes held in fastbins (fsmblks): 0\n"
614 #| "Total allocated space (uordblks): 0\n"
615 #| "Total free space (fordblks): 0\n"
616 #| "Topmost releasable block (keepcost): 0\n"
617 #| "\\&\n"
618 #| "============== After allocating blocks ==============\n"
619 #| "Total non-mmapped bytes (arena): 135168\n"
620 #| "# of free chunks (ordblks): 1\n"
621 #| "# of free fastbin blocks (smblks): 0\n"
622 #| "# of mapped regions (hblks): 0\n"
623 #| "Bytes in mapped regions (hblkhd): 0\n"
624 #| "Max. total allocated space (usmblks): 0\n"
625 #| "Free bytes held in fastbins (fsmblks): 0\n"
626 #| "Total allocated space (uordblks): 104000\n"
627 #| "Total free space (fordblks): 31168\n"
628 #| "Topmost releasable block (keepcost): 31168\n"
629 #| "\\&\n"
630 #| "============== After freeing blocks ==============\n"
631 #| "Total non-mmapped bytes (arena): 135168\n"
632 #| "# of free chunks (ordblks): 501\n"
633 #| "# of free fastbin blocks (smblks): 0\n"
634 #| "# of mapped regions (hblks): 0\n"
635 #| "Bytes in mapped regions (hblkhd): 0\n"
636 #| "Max. total allocated space (usmblks): 0\n"
637 #| "Free bytes held in fastbins (fsmblks): 0\n"
638 #| "Total allocated space (uordblks): 52000\n"
639 #| "Total free space (fordblks): 83168\n"
640 #| "Topmost releasable block (keepcost): 31168\n"
641 msgid ""
642 "$B< ./a.out 1000 100 2>;\n"
643 "============== Before allocating blocks ==============\n"
644 "Total non-mmapped bytes (arena): 0\n"
645 "# of free chunks (ordblks): 1\n"
646 "# of free fastbin blocks (smblks): 0\n"
647 "# of mapped regions (hblks): 0\n"
648 "Bytes in mapped regions (hblkhd): 0\n"
649 "Max.\\& total allocated space (usmblks): 0\n"
650 "Free bytes held in fastbins (fsmblks): 0\n"
651 "Total allocated space (uordblks): 0\n"
652 "Total free space (fordblks): 0\n"
653 "Topmost releasable block (keepcost): 0\n"
654 "\\&\n"
655 "============== After allocating blocks ==============\n"
656 "Total non-mmapped bytes (arena): 135168\n"
657 "# of free chunks (ordblks): 1\n"
658 "# of free fastbin blocks (smblks): 0\n"
659 "# of mapped regions (hblks): 0\n"
660 "Bytes in mapped regions (hblkhd): 0\n"
661 "Max.\\& total allocated space (usmblks): 0\n"
662 "Free bytes held in fastbins (fsmblks): 0\n"
663 "Total allocated space (uordblks): 104000\n"
664 "Total free space (fordblks): 31168\n"
665 "Topmost releasable block (keepcost): 31168\n"
666 "\\&\n"
667 "============== After freeing blocks ==============\n"
668 "Total non-mmapped bytes (arena): 135168\n"
669 "# of free chunks (ordblks): 501\n"
670 "# of free fastbin blocks (smblks): 0\n"
671 "# of mapped regions (hblks): 0\n"
672 "Bytes in mapped regions (hblkhd): 0\n"
673 "Max.\\& total allocated space (usmblks): 0\n"
674 "Free bytes held in fastbins (fsmblks): 0\n"
675 "Total allocated space (uordblks): 52000\n"
676 "Total free space (fordblks): 83168\n"
677 "Topmost releasable block (keepcost): 31168\n"
678 msgstr ""
679 "$ B<./a.out 1000 100 2>\n"
680 "============= Avant allocation des blocs =============\n"
681 "Total d'o. en mém. non projetée (arena) : 0\n"
682 "Nb. de fragments libres (ordblks) : 1\n"
683 "Nb. de blocs fastbin libres (smblks) : 0\n"
684 "Nb. de zones de mémoire projetée : 0\n"
685 "Octets en mém. non projetée (hblkhd) : 0\n"
686 "Max. total d'espace alloué (usmblks) : 0\n"
687 "Octets libres en fastbins (fsmblks) : 0\n"
688 "Espace alloué total (uordblks) : 0\n"
689 "Espace libre total (fordblks) : 0\n"
690 "Bloc sup. maxi. libérable (keepcost) : 0\n"
691 "\\&\n"
692 "============= Après allocation des blocs =============\n"
693 "Total d'o en mém. non projetée (arena) : 135168\n"
694 "Nb. de fragments libres (ordblks) : 1\n"
695 "Nb. de blocs fastbin libres (smblks) : 0\n"
696 "Nb. de zones de mémoire projetée : 0\n"
697 "Octets en mém. non projetée (hblkhd) : 0\n"
698 "Max. total d'espace alloué (usmblks) : 0\n"
699 "Octets libres en fastbins (fsmblks) : 0\n"
700 "Espace alloué total (uordblks) : 104000\n"
701 "Espace libre total (fordblks) : 31168\n"
702 "Bloc sup. maxi. libérable (keepcost) : 31168\n"
703 "\\&\n"
704 "============= Après libération des blocs =============\n"
705 "Total d'o en mém. non projetée (arena) : 135168\n"
706 "Nb. de fragments libres (ordblks) : 501\n"
707 "Nb. de blocs fastbin libres (smblks) : 0\n"
708 "Nb. de zones de mémoire projetée : 0\n"
709 "Octets en mém. non projetée (hblkhd) : 0\n"
710 "Max. total d'espace alloué (usmblks) : 0\n"
711 "Octets libres en fastbins (fsmblks) : 0\n"
712 "Espace alloué total (uordblks) : 52000\n"
713 "Espace libre total (fordblks) : 83168\n"
714 "Bloc sup. maxi. libérable (keepcost) : 31168\n"
715
716 #. type: SS
717 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
718 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
719 #, no-wrap
720 msgid "Program source"
721 msgstr "Source du programme"
722
723 #. type: Plain text
724 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
725 #, fuzzy, no-wrap
726 #| msgid ""
727 #| "#include E<lt>malloc.hE<gt>\n"
728 #| "#include E<lt>stdlib.hE<gt>\n"
729 #| "#include E<lt>string.hE<gt>\n"
730 #| "\\&\n"
731 #| "static void\n"
732 #| "display_mallinfo2(void)\n"
733 #| "{\n"
734 #| " struct mallinfo2 mi;\n"
735 #| "\\&\n"
736 #| " mi = mallinfo2();\n"
737 #| "\\&\n"
738 #| " printf(\"Total non-mmapped bytes (arena): %zu\\en\", mi.arena);\n"
739 #| " printf(\"# of free chunks (ordblks): %zu\\en\", mi.ordblks);\n"
740 #| " printf(\"# of free fastbin blocks (smblks): %zu\\en\", mi.smblks);\n"
741 #| " printf(\"# of mapped regions (hblks): %zu\\en\", mi.hblks);\n"
742 #| " printf(\"Bytes in mapped regions (hblkhd): %zu\\en\", mi.hblkhd);\n"
743 #| " printf(\"Max. total allocated space (usmblks): %zu\\en\", mi.usmblks);\n"
744 #| " printf(\"Free bytes held in fastbins (fsmblks): %zu\\en\", mi.fsmblks);\n"
745 #| " printf(\"Total allocated space (uordblks): %zu\\en\", mi.uordblks);\n"
746 #| " printf(\"Total free space (fordblks): %zu\\en\", mi.fordblks);\n"
747 #| " printf(\"Topmost releasable block (keepcost): %zu\\en\", mi.keepcost);\n"
748 #| "}\n"
749 #| "\\&\n"
750 #| "int\n"
751 #| "main(int argc, char *argv[])\n"
752 #| "{\n"
753 #| "#define MAX_ALLOCS 2000000\n"
754 #| " char *alloc[MAX_ALLOCS];\n"
755 #| " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
756 #| "\\&\n"
757 #| " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
758 #| " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
759 #| " \"[start-free [end-free]]]\\en\", argv[0]);\n"
760 #| " exit(EXIT_FAILURE);\n"
761 #| " }\n"
762 #| "\\&\n"
763 #| " numBlocks = atoi(argv[1]);\n"
764 #| " blockSize = atoi(argv[2]);\n"
765 #| " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
766 #| " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
767 #| " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
768 #| "\\&\n"
769 #| " printf(\"============== Before allocating blocks ==============\\en\");\n"
770 #| " display_mallinfo2();\n"
771 #| "\\&\n"
772 #| " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
773 #| " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
774 #| " fprintf(stderr, \"Too many allocations\\en\");\n"
775 #| " exit(EXIT_FAILURE);\n"
776 #| " }\n"
777 #| "\\&\n"
778 #| " alloc[j] = malloc(blockSize);\n"
779 #| " if (alloc[j] == NULL) {\n"
780 #| " perror(\"malloc\");\n"
781 #| " exit(EXIT_FAILURE);\n"
782 #| " }\n"
783 #| " }\n"
784 #| "\\&\n"
785 #| " printf(\"\\en============== After allocating blocks ==============\\en\");\n"
786 #| " display_mallinfo2();\n"
787 #| "\\&\n"
788 #| " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
789 #| " free(alloc[j]);\n"
790 #| "\\&\n"
791 #| " printf(\"\\en============== After freeing blocks ==============\\en\");\n"
792 #| " display_mallinfo2();\n"
793 #| "\\&\n"
794 #| " exit(EXIT_SUCCESS);\n"
795 #| "}\n"
796 msgid ""
797 "#include E<lt>malloc.hE<gt>\n"
798 "#include E<lt>stdlib.hE<gt>\n"
799 "#include E<lt>string.hE<gt>\n"
800 "\\&\n"
801 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
802 "\\&\n"
803 "static void\n"
804 "display_mallinfo2(void)\n"
805 "{\n"
806 " struct mallinfo2 mi;\n"
807 "\\&\n"
808 " mi = mallinfo2();\n"
809 "\\&\n"
810 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
811 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
812 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
813 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
814 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
815 " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
816 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
817 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
818 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
819 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
820 "}\n"
821 "\\&\n"
822 "int\n"
823 "main(int argc, char *argv[])\n"
824 "{\n"
825 "#define MAX_ALLOCS 500000\n"
826 " char *alloc[MAX_ALLOCS];\n"
827 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
828 "\\&\n"
829 " if (argc E<lt> 3 || streq(argv[1], \"--help\")) {\n"
830 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
831 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
832 " exit(EXIT_FAILURE);\n"
833 " }\n"
834 "\\&\n"
835 " numBlocks = atoi(argv[1]);\n"
836 " blockSize = atoi(argv[2]);\n"
837 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
838 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
839 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
840 "\\&\n"
841 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
842 " display_mallinfo2();\n"
843 "\\&\n"
844 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
845 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
846 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
847 " exit(EXIT_FAILURE);\n"
848 " }\n"
849 "\\&\n"
850 " alloc[j] = malloc(blockSize);\n"
851 " if (alloc[j] == NULL) {\n"
852 " perror(\"malloc\");\n"
853 " exit(EXIT_FAILURE);\n"
854 " }\n"
855 " }\n"
856 "\\&\n"
857 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
858 " display_mallinfo2();\n"
859 "\\&\n"
860 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
861 " free(alloc[j]);\n"
862 "\\&\n"
863 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
864 " display_mallinfo2();\n"
865 "\\&\n"
866 " exit(EXIT_SUCCESS);\n"
867 "}\n"
868 msgstr ""
869 "#include E<lt>malloc.hE<gt>\n"
870 "#include E<lt>stdlib.hE<gt>\n"
871 "#include E<lt>string.hE<gt>\n"
872 "\\&\n"
873 "static void\n"
874 "display_mallinfo2(void)\n"
875 "{\n"
876 " struct mallinfo2 mi;\n"
877 "\\&\n"
878 " mi = mallinfo2();\n"
879 "\\&\n"
880 " printf(\"Total d'o en mém. non projetée (arena) : %zu\\en\", mi.arena);\n"
881 " printf(\"Nb. de fragments libres (ordblks) : %zu\\en\", mi.ordblks);\n"
882 " printf(\"Nb. de blocs fastbin libres (smblks) : %zu\\en\", mi.smblks);\n"
883 " printf(\"Nb. de zones de mémoire projetée : %zu\\en\", mi.hblks);\n"
884 " printf(\"Octets en mém. non projetée (hblkhd) : %zu\\en\", mi.hblkhd);\n"
885 " printf(\"Max. total d'espace alloué (usmblks) : %zu\\en\", mi.usmblks);\n"
886 " printf(\"Octets libres en fastbins (fsmblks) : %zu\\en\", mi.fsmblks);\n"
887 " printf(\"Espace alloué total (uordblks) : %zu\\en\", mi.uordblks);\n"
888 " printf(\"Espace libre total (fordblks) : %zu\\en\", mi.fordblks);\n"
889 " printf(\"Bloc sup. maxi. libérable (keepcost) : %zu\\en\", mi.keepcost);\n"
890 "}\n"
891 "\\&\n"
892 "int\n"
893 "main(int argc, char *argv[])\n"
894 "{\n"
895 "#define MAX_ALLOCS 2000000\n"
896 " char *alloc[MAX_ALLOCS];\n"
897 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
898 "\\&\n"
899 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
900 " fprintf(stderr, \"%s nb-blocs taille-bloc [pasLib \"\n"
901 " \"[debutLib [finLib]]]\\en\", argv[0]);\n"
902 " exit(EXIT_FAILURE);\n"
903 " }\n"
904 "\\&\n"
905 " numBlocks = atoi(argv[1]);\n"
906 " blockSize = atoi(argv[2]);\n"
907 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
908 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
909 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
910 "\\&\n"
911 " printf(\"============== Avant allocation des blocs ==============\\en\");\n"
912 " display_mallinfo2();\n"
913 "\\&\n"
914 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
915 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
916 " fprintf(stderr, \"Trop d'allocations\\en\");\n"
917 " exit(EXIT_FAILURE);\n"
918 " }\n"
919 "\\&\n"
920 " alloc[j] = malloc(blockSize);\n"
921 " if (alloc[j] == NULL) {\n"
922 " perror(\"malloc\");\n"
923 " exit(EXIT_FAILURE);\n"
924 " }\n"
925 " }\n"
926 "\\&\n"
927 " printf(\"\\en============== Après allocation des blocs ==============\\en\");\n"
928 " display_mallinfo2();\n"
929 "\\&\n"
930 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
931 " free(alloc[j]);\n"
932 "\\&\n"
933 " printf(\"\\en============== Après libération des blocs ==============\\en\");\n"
934 " display_mallinfo2();\n"
935 "\\&\n"
936 " exit(EXIT_SUCCESS);\n"
937 "}\n"
938
939 #. SRC END
940 #. type: SH
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 #, no-wrap
944 msgid "SEE ALSO"
945 msgstr "VOIR AUSSI"
946
947 #. type: Plain text
948 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
949 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
950 msgid ""
951 "B<mmap>(2), B<malloc>(3), B<malloc_info>(3), B<malloc_stats>(3), "
952 "B<malloc_trim>(3), B<mallopt>(3)"
953 msgstr ""
954 "B<mmap>(2), B<malloc>(3), B<malloc_info>(3), B<malloc_stats>(3), "
955 "B<malloc_trim>(3), B<mallopt>(3)"
956
957 #. type: TH
958 #: debian-trixie
959 #, no-wrap
960 msgid "2024-06-15"
961 msgstr "15 juin 2024"
962
963 #. type: TH
964 #: debian-trixie
965 #, no-wrap
966 msgid "Linux man-pages 6.9.1"
967 msgstr "Pages du manuel de Linux 6.9.1"
968
969 #. type: Plain text
970 #: debian-trixie
971 msgid "Standard C library (I<libc>, I<-lc>)"
972 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
973
974 #. type: Plain text
975 #: debian-trixie fedora-44 fedora-rawhide
976 #, no-wrap
977 msgid ""
978 "$ B<./a.out 1000 100 2>\n"
979 "============== Before allocating blocks ==============\n"
980 "Total non-mmapped bytes (arena): 0\n"
981 "# of free chunks (ordblks): 1\n"
982 "# of free fastbin blocks (smblks): 0\n"
983 "# of mapped regions (hblks): 0\n"
984 "Bytes in mapped regions (hblkhd): 0\n"
985 "Max. total allocated space (usmblks): 0\n"
986 "Free bytes held in fastbins (fsmblks): 0\n"
987 "Total allocated space (uordblks): 0\n"
988 "Total free space (fordblks): 0\n"
989 "Topmost releasable block (keepcost): 0\n"
990 "\\&\n"
991 "============== After allocating blocks ==============\n"
992 "Total non-mmapped bytes (arena): 135168\n"
993 "# of free chunks (ordblks): 1\n"
994 "# of free fastbin blocks (smblks): 0\n"
995 "# of mapped regions (hblks): 0\n"
996 "Bytes in mapped regions (hblkhd): 0\n"
997 "Max. total allocated space (usmblks): 0\n"
998 "Free bytes held in fastbins (fsmblks): 0\n"
999 "Total allocated space (uordblks): 104000\n"
1000 "Total free space (fordblks): 31168\n"
1001 "Topmost releasable block (keepcost): 31168\n"
1002 "\\&\n"
1003 "============== After freeing blocks ==============\n"
1004 "Total non-mmapped bytes (arena): 135168\n"
1005 "# of free chunks (ordblks): 501\n"
1006 "# of free fastbin blocks (smblks): 0\n"
1007 "# of mapped regions (hblks): 0\n"
1008 "Bytes in mapped regions (hblkhd): 0\n"
1009 "Max. total allocated space (usmblks): 0\n"
1010 "Free bytes held in fastbins (fsmblks): 0\n"
1011 "Total allocated space (uordblks): 52000\n"
1012 "Total free space (fordblks): 83168\n"
1013 "Topmost releasable block (keepcost): 31168\n"
1014 msgstr ""
1015 "$ B<./a.out 1000 100 2>\n"
1016 "============= Avant allocation des blocs =============\n"
1017 "Total d'o. en mém. non projetée (arena) : 0\n"
1018 "Nb. de fragments libres (ordblks) : 1\n"
1019 "Nb. de blocs fastbin libres (smblks) : 0\n"
1020 "Nb. de zones de mémoire projetée : 0\n"
1021 "Octets en mém. non projetée (hblkhd) : 0\n"
1022 "Max. total d'espace alloué (usmblks) : 0\n"
1023 "Octets libres en fastbins (fsmblks) : 0\n"
1024 "Espace alloué total (uordblks) : 0\n"
1025 "Espace libre total (fordblks) : 0\n"
1026 "Bloc sup. maxi. libérable (keepcost) : 0\n"
1027 "\\&\n"
1028 "============= Après allocation des blocs =============\n"
1029 "Total d'o en mém. non projetée (arena) : 135168\n"
1030 "Nb. de fragments libres (ordblks) : 1\n"
1031 "Nb. de blocs fastbin libres (smblks) : 0\n"
1032 "Nb. de zones de mémoire projetée : 0\n"
1033 "Octets en mém. non projetée (hblkhd) : 0\n"
1034 "Max. total d'espace alloué (usmblks) : 0\n"
1035 "Octets libres en fastbins (fsmblks) : 0\n"
1036 "Espace alloué total (uordblks) : 104000\n"
1037 "Espace libre total (fordblks) : 31168\n"
1038 "Bloc sup. maxi. libérable (keepcost) : 31168\n"
1039 "\\&\n"
1040 "============= Après libération des blocs =============\n"
1041 "Total d'o en mém. non projetée (arena) : 135168\n"
1042 "Nb. de fragments libres (ordblks) : 501\n"
1043 "Nb. de blocs fastbin libres (smblks) : 0\n"
1044 "Nb. de zones de mémoire projetée : 0\n"
1045 "Octets en mém. non projetée (hblkhd) : 0\n"
1046 "Max. total d'espace alloué (usmblks) : 0\n"
1047 "Octets libres en fastbins (fsmblks) : 0\n"
1048 "Espace alloué total (uordblks) : 52000\n"
1049 "Espace libre total (fordblks) : 83168\n"
1050 "Bloc sup. maxi. libérable (keepcost) : 31168\n"
1051
1052 #. type: Plain text
1053 #: debian-trixie fedora-44 fedora-rawhide
1054 #, fuzzy, no-wrap
1055 #| msgid ""
1056 #| "#include E<lt>malloc.hE<gt>\n"
1057 #| "#include E<lt>stdlib.hE<gt>\n"
1058 #| "#include E<lt>string.hE<gt>\n"
1059 #| "\\&\n"
1060 #| "static void\n"
1061 #| "display_mallinfo2(void)\n"
1062 #| "{\n"
1063 #| " struct mallinfo2 mi;\n"
1064 #| "\\&\n"
1065 #| " mi = mallinfo2();\n"
1066 #| "\\&\n"
1067 #| " printf(\"Total non-mmapped bytes (arena): %zu\\en\", mi.arena);\n"
1068 #| " printf(\"# of free chunks (ordblks): %zu\\en\", mi.ordblks);\n"
1069 #| " printf(\"# of free fastbin blocks (smblks): %zu\\en\", mi.smblks);\n"
1070 #| " printf(\"# of mapped regions (hblks): %zu\\en\", mi.hblks);\n"
1071 #| " printf(\"Bytes in mapped regions (hblkhd): %zu\\en\", mi.hblkhd);\n"
1072 #| " printf(\"Max. total allocated space (usmblks): %zu\\en\", mi.usmblks);\n"
1073 #| " printf(\"Free bytes held in fastbins (fsmblks): %zu\\en\", mi.fsmblks);\n"
1074 #| " printf(\"Total allocated space (uordblks): %zu\\en\", mi.uordblks);\n"
1075 #| " printf(\"Total free space (fordblks): %zu\\en\", mi.fordblks);\n"
1076 #| " printf(\"Topmost releasable block (keepcost): %zu\\en\", mi.keepcost);\n"
1077 #| "}\n"
1078 #| "\\&\n"
1079 #| "int\n"
1080 #| "main(int argc, char *argv[])\n"
1081 #| "{\n"
1082 #| "#define MAX_ALLOCS 2000000\n"
1083 #| " char *alloc[MAX_ALLOCS];\n"
1084 #| " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1085 #| "\\&\n"
1086 #| " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1087 #| " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1088 #| " \"[start-free [end-free]]]\\en\", argv[0]);\n"
1089 #| " exit(EXIT_FAILURE);\n"
1090 #| " }\n"
1091 #| "\\&\n"
1092 #| " numBlocks = atoi(argv[1]);\n"
1093 #| " blockSize = atoi(argv[2]);\n"
1094 #| " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1095 #| " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1096 #| " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1097 #| "\\&\n"
1098 #| " printf(\"============== Before allocating blocks ==============\\en\");\n"
1099 #| " display_mallinfo2();\n"
1100 #| "\\&\n"
1101 #| " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1102 #| " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1103 #| " fprintf(stderr, \"Too many allocations\\en\");\n"
1104 #| " exit(EXIT_FAILURE);\n"
1105 #| " }\n"
1106 #| "\\&\n"
1107 #| " alloc[j] = malloc(blockSize);\n"
1108 #| " if (alloc[j] == NULL) {\n"
1109 #| " perror(\"malloc\");\n"
1110 #| " exit(EXIT_FAILURE);\n"
1111 #| " }\n"
1112 #| " }\n"
1113 #| "\\&\n"
1114 #| " printf(\"\\en============== After allocating blocks ==============\\en\");\n"
1115 #| " display_mallinfo2();\n"
1116 #| "\\&\n"
1117 #| " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1118 #| " free(alloc[j]);\n"
1119 #| "\\&\n"
1120 #| " printf(\"\\en============== After freeing blocks ==============\\en\");\n"
1121 #| " display_mallinfo2();\n"
1122 #| "\\&\n"
1123 #| " exit(EXIT_SUCCESS);\n"
1124 #| "}\n"
1125 msgid ""
1126 "#include E<lt>malloc.hE<gt>\n"
1127 "#include E<lt>stdlib.hE<gt>\n"
1128 "#include E<lt>string.hE<gt>\n"
1129 "\\&\n"
1130 "static void\n"
1131 "display_mallinfo2(void)\n"
1132 "{\n"
1133 " struct mallinfo2 mi;\n"
1134 "\\&\n"
1135 " mi = mallinfo2();\n"
1136 "\\&\n"
1137 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
1138 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
1139 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
1140 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
1141 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
1142 " printf(\"Max. total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
1143 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
1144 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
1145 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
1146 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
1147 "}\n"
1148 "\\&\n"
1149 "int\n"
1150 "main(int argc, char *argv[])\n"
1151 "{\n"
1152 "#define MAX_ALLOCS 2000000\n"
1153 " char *alloc[MAX_ALLOCS];\n"
1154 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1155 "\\&\n"
1156 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1157 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1158 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
1159 " exit(EXIT_FAILURE);\n"
1160 " }\n"
1161 "\\&\n"
1162 " numBlocks = atoi(argv[1]);\n"
1163 " blockSize = atoi(argv[2]);\n"
1164 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1165 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1166 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1167 "\\&\n"
1168 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
1169 " display_mallinfo2();\n"
1170 "\\&\n"
1171 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1172 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1173 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
1174 " exit(EXIT_FAILURE);\n"
1175 " }\n"
1176 "\\&\n"
1177 " alloc[j] = malloc(blockSize);\n"
1178 " if (alloc[j] == NULL) {\n"
1179 " perror(\"malloc\");\n"
1180 " exit(EXIT_FAILURE);\n"
1181 " }\n"
1182 " }\n"
1183 "\\&\n"
1184 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
1185 " display_mallinfo2();\n"
1186 "\\&\n"
1187 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1188 " free(alloc[j]);\n"
1189 "\\&\n"
1190 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
1191 " display_mallinfo2();\n"
1192 "\\&\n"
1193 " exit(EXIT_SUCCESS);\n"
1194 "}\n"
1195 msgstr ""
1196 "#include E<lt>malloc.hE<gt>\n"
1197 "#include E<lt>stdlib.hE<gt>\n"
1198 "#include E<lt>string.hE<gt>\n"
1199 "\\&\n"
1200 "static void\n"
1201 "display_mallinfo2(void)\n"
1202 "{\n"
1203 " struct mallinfo2 mi;\n"
1204 "\\&\n"
1205 " mi = mallinfo2();\n"
1206 "\\&\n"
1207 " printf(\"Total d'o en mém. non projetée (arena) : %zu\\en\", mi.arena);\n"
1208 " printf(\"Nb. de fragments libres (ordblks) : %zu\\en\", mi.ordblks);\n"
1209 " printf(\"Nb. de blocs fastbin libres (smblks) : %zu\\en\", mi.smblks);\n"
1210 " printf(\"Nb. de zones de mémoire projetée : %zu\\en\", mi.hblks);\n"
1211 " printf(\"Octets en mém. non projetée (hblkhd) : %zu\\en\", mi.hblkhd);\n"
1212 " printf(\"Max. total d'espace alloué (usmblks) : %zu\\en\", mi.usmblks);\n"
1213 " printf(\"Octets libres en fastbins (fsmblks) : %zu\\en\", mi.fsmblks);\n"
1214 " printf(\"Espace alloué total (uordblks) : %zu\\en\", mi.uordblks);\n"
1215 " printf(\"Espace libre total (fordblks) : %zu\\en\", mi.fordblks);\n"
1216 " printf(\"Bloc sup. maxi. libérable (keepcost) : %zu\\en\", mi.keepcost);\n"
1217 "}\n"
1218 "\\&\n"
1219 "int\n"
1220 "main(int argc, char *argv[])\n"
1221 "{\n"
1222 "#define MAX_ALLOCS 2000000\n"
1223 " char *alloc[MAX_ALLOCS];\n"
1224 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1225 "\\&\n"
1226 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1227 " fprintf(stderr, \"%s nb-blocs taille-bloc [pasLib \"\n"
1228 " \"[debutLib [finLib]]]\\en\", argv[0]);\n"
1229 " exit(EXIT_FAILURE);\n"
1230 " }\n"
1231 "\\&\n"
1232 " numBlocks = atoi(argv[1]);\n"
1233 " blockSize = atoi(argv[2]);\n"
1234 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1235 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1236 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1237 "\\&\n"
1238 " printf(\"============== Avant allocation des blocs ==============\\en\");\n"
1239 " display_mallinfo2();\n"
1240 "\\&\n"
1241 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1242 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1243 " fprintf(stderr, \"Trop d'allocations\\en\");\n"
1244 " exit(EXIT_FAILURE);\n"
1245 " }\n"
1246 "\\&\n"
1247 " alloc[j] = malloc(blockSize);\n"
1248 " if (alloc[j] == NULL) {\n"
1249 " perror(\"malloc\");\n"
1250 " exit(EXIT_FAILURE);\n"
1251 " }\n"
1252 " }\n"
1253 "\\&\n"
1254 " printf(\"\\en============== Après allocation des blocs ==============\\en\");\n"
1255 " display_mallinfo2();\n"
1256 "\\&\n"
1257 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1258 " free(alloc[j]);\n"
1259 "\\&\n"
1260 " printf(\"\\en============== Après libération des blocs ==============\\en\");\n"
1261 " display_mallinfo2();\n"
1262 "\\&\n"
1263 " exit(EXIT_SUCCESS);\n"
1264 "}\n"
1265
1266 #. type: TH
1267 #: fedora-44 fedora-rawhide
1268 #, no-wrap
1269 msgid "2024-07-23"
1270 msgstr "23 juillet 2024"
1271
1272 #. type: TH
1273 #: fedora-44 fedora-rawhide
1274 #, no-wrap
1275 msgid "Linux man-pages 6.13"
1276 msgstr "Pages du manuel de Linux 6.13"
1277
1278 #. type: TH
1279 #: mageia-cauldron
1280 #, no-wrap
1281 msgid "2026-02-08"
1282 msgstr "8 février 2026"
1283
1284 #. type: TH
1285 #: mageia-cauldron
1286 #, no-wrap
1287 msgid "Linux man-pages 6.17"
1288 msgstr "Pages du manuel de Linux 6.17"
1289
1290 #. type: Plain text
1291 #: mageia-cauldron
1292 #, fuzzy, no-wrap
1293 #| msgid ""
1294 #| "#include E<lt>malloc.hE<gt>\n"
1295 #| "#include E<lt>stdlib.hE<gt>\n"
1296 #| "#include E<lt>string.hE<gt>\n"
1297 #| "\\&\n"
1298 #| "static void\n"
1299 #| "display_mallinfo2(void)\n"
1300 #| "{\n"
1301 #| " struct mallinfo2 mi;\n"
1302 #| "\\&\n"
1303 #| " mi = mallinfo2();\n"
1304 #| "\\&\n"
1305 #| " printf(\"Total non-mmapped bytes (arena): %zu\\en\", mi.arena);\n"
1306 #| " printf(\"# of free chunks (ordblks): %zu\\en\", mi.ordblks);\n"
1307 #| " printf(\"# of free fastbin blocks (smblks): %zu\\en\", mi.smblks);\n"
1308 #| " printf(\"# of mapped regions (hblks): %zu\\en\", mi.hblks);\n"
1309 #| " printf(\"Bytes in mapped regions (hblkhd): %zu\\en\", mi.hblkhd);\n"
1310 #| " printf(\"Max. total allocated space (usmblks): %zu\\en\", mi.usmblks);\n"
1311 #| " printf(\"Free bytes held in fastbins (fsmblks): %zu\\en\", mi.fsmblks);\n"
1312 #| " printf(\"Total allocated space (uordblks): %zu\\en\", mi.uordblks);\n"
1313 #| " printf(\"Total free space (fordblks): %zu\\en\", mi.fordblks);\n"
1314 #| " printf(\"Topmost releasable block (keepcost): %zu\\en\", mi.keepcost);\n"
1315 #| "}\n"
1316 #| "\\&\n"
1317 #| "int\n"
1318 #| "main(int argc, char *argv[])\n"
1319 #| "{\n"
1320 #| "#define MAX_ALLOCS 2000000\n"
1321 #| " char *alloc[MAX_ALLOCS];\n"
1322 #| " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1323 #| "\\&\n"
1324 #| " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1325 #| " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1326 #| " \"[start-free [end-free]]]\\en\", argv[0]);\n"
1327 #| " exit(EXIT_FAILURE);\n"
1328 #| " }\n"
1329 #| "\\&\n"
1330 #| " numBlocks = atoi(argv[1]);\n"
1331 #| " blockSize = atoi(argv[2]);\n"
1332 #| " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1333 #| " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1334 #| " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1335 #| "\\&\n"
1336 #| " printf(\"============== Before allocating blocks ==============\\en\");\n"
1337 #| " display_mallinfo2();\n"
1338 #| "\\&\n"
1339 #| " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1340 #| " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1341 #| " fprintf(stderr, \"Too many allocations\\en\");\n"
1342 #| " exit(EXIT_FAILURE);\n"
1343 #| " }\n"
1344 #| "\\&\n"
1345 #| " alloc[j] = malloc(blockSize);\n"
1346 #| " if (alloc[j] == NULL) {\n"
1347 #| " perror(\"malloc\");\n"
1348 #| " exit(EXIT_FAILURE);\n"
1349 #| " }\n"
1350 #| " }\n"
1351 #| "\\&\n"
1352 #| " printf(\"\\en============== After allocating blocks ==============\\en\");\n"
1353 #| " display_mallinfo2();\n"
1354 #| "\\&\n"
1355 #| " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1356 #| " free(alloc[j]);\n"
1357 #| "\\&\n"
1358 #| " printf(\"\\en============== After freeing blocks ==============\\en\");\n"
1359 #| " display_mallinfo2();\n"
1360 #| "\\&\n"
1361 #| " exit(EXIT_SUCCESS);\n"
1362 #| "}\n"
1363 msgid ""
1364 "#include E<lt>malloc.hE<gt>\n"
1365 "#include E<lt>stdlib.hE<gt>\n"
1366 "#include E<lt>string.hE<gt>\n"
1367 "\\&\n"
1368 "static void\n"
1369 "display_mallinfo2(void)\n"
1370 "{\n"
1371 " struct mallinfo2 mi;\n"
1372 "\\&\n"
1373 " mi = mallinfo2();\n"
1374 "\\&\n"
1375 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
1376 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
1377 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
1378 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
1379 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
1380 " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
1381 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
1382 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
1383 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
1384 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
1385 "}\n"
1386 "\\&\n"
1387 "int\n"
1388 "main(int argc, char *argv[])\n"
1389 "{\n"
1390 "#define MAX_ALLOCS 500000\n"
1391 " char *alloc[MAX_ALLOCS];\n"
1392 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1393 "\\&\n"
1394 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1395 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1396 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
1397 " exit(EXIT_FAILURE);\n"
1398 " }\n"
1399 "\\&\n"
1400 " numBlocks = atoi(argv[1]);\n"
1401 " blockSize = atoi(argv[2]);\n"
1402 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1403 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1404 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1405 "\\&\n"
1406 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
1407 " display_mallinfo2();\n"
1408 "\\&\n"
1409 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1410 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1411 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
1412 " exit(EXIT_FAILURE);\n"
1413 " }\n"
1414 "\\&\n"
1415 " alloc[j] = malloc(blockSize);\n"
1416 " if (alloc[j] == NULL) {\n"
1417 " perror(\"malloc\");\n"
1418 " exit(EXIT_FAILURE);\n"
1419 " }\n"
1420 " }\n"
1421 "\\&\n"
1422 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
1423 " display_mallinfo2();\n"
1424 "\\&\n"
1425 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1426 " free(alloc[j]);\n"
1427 "\\&\n"
1428 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
1429 " display_mallinfo2();\n"
1430 "\\&\n"
1431 " exit(EXIT_SUCCESS);\n"
1432 "}\n"
1433 msgstr ""
1434 "#include E<lt>malloc.hE<gt>\n"
1435 "#include E<lt>stdlib.hE<gt>\n"
1436 "#include E<lt>string.hE<gt>\n"
1437 "\\&\n"
1438 "static void\n"
1439 "display_mallinfo2(void)\n"
1440 "{\n"
1441 " struct mallinfo2 mi;\n"
1442 "\\&\n"
1443 " mi = mallinfo2();\n"
1444 "\\&\n"
1445 " printf(\"Total d'o en mém. non projetée (arena) : %zu\\en\", mi.arena);\n"
1446 " printf(\"Nb. de fragments libres (ordblks) : %zu\\en\", mi.ordblks);\n"
1447 " printf(\"Nb. de blocs fastbin libres (smblks) : %zu\\en\", mi.smblks);\n"
1448 " printf(\"Nb. de zones de mémoire projetée : %zu\\en\", mi.hblks);\n"
1449 " printf(\"Octets en mém. non projetée (hblkhd) : %zu\\en\", mi.hblkhd);\n"
1450 " printf(\"Max. total d'espace alloué (usmblks) : %zu\\en\", mi.usmblks);\n"
1451 " printf(\"Octets libres en fastbins (fsmblks) : %zu\\en\", mi.fsmblks);\n"
1452 " printf(\"Espace alloué total (uordblks) : %zu\\en\", mi.uordblks);\n"
1453 " printf(\"Espace libre total (fordblks) : %zu\\en\", mi.fordblks);\n"
1454 " printf(\"Bloc sup. maxi. libérable (keepcost) : %zu\\en\", mi.keepcost);\n"
1455 "}\n"
1456 "\\&\n"
1457 "int\n"
1458 "main(int argc, char *argv[])\n"
1459 "{\n"
1460 "#define MAX_ALLOCS 2000000\n"
1461 " char *alloc[MAX_ALLOCS];\n"
1462 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1463 "\\&\n"
1464 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1465 " fprintf(stderr, \"%s nb-blocs taille-bloc [pasLib \"\n"
1466 " \"[debutLib [finLib]]]\\en\", argv[0]);\n"
1467 " exit(EXIT_FAILURE);\n"
1468 " }\n"
1469 "\\&\n"
1470 " numBlocks = atoi(argv[1]);\n"
1471 " blockSize = atoi(argv[2]);\n"
1472 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1473 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1474 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1475 "\\&\n"
1476 " printf(\"============== Avant allocation des blocs ==============\\en\");\n"
1477 " display_mallinfo2();\n"
1478 "\\&\n"
1479 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1480 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1481 " fprintf(stderr, \"Trop d'allocations\\en\");\n"
1482 " exit(EXIT_FAILURE);\n"
1483 " }\n"
1484 "\\&\n"
1485 " alloc[j] = malloc(blockSize);\n"
1486 " if (alloc[j] == NULL) {\n"
1487 " perror(\"malloc\");\n"
1488 " exit(EXIT_FAILURE);\n"
1489 " }\n"
1490 " }\n"
1491 "\\&\n"
1492 " printf(\"\\en============== Après allocation des blocs ==============\\en\");\n"
1493 " display_mallinfo2();\n"
1494 "\\&\n"
1495 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1496 " free(alloc[j]);\n"
1497 "\\&\n"
1498 " printf(\"\\en============== Après libération des blocs ==============\\en\");\n"
1499 " display_mallinfo2();\n"
1500 "\\&\n"
1501 " exit(EXIT_SUCCESS);\n"
1502 "}\n"
1503
1504 #. type: TH
1505 #: opensuse-leap-16-1 opensuse-tumbleweed
1506 #, no-wrap
1507 msgid "Linux man-pages (unreleased)"
1508 msgstr "Pages du manuel de Linux (non publiées)"