Debian Codegraph @

po/ar/man3/mallinfo.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
9 "PO-Revision-Date: 2026-06-02 18:56+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "mallinfo"
25 msgstr "mallinfo"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-22"
31 msgstr "22 فبراير 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "الاسم"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "mallinfo, mallinfo2 - obtain memory allocation information"
50 msgstr "mallinfo، mallinfo2 - الحصول على معلومات تخصيص الذاكرة"
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 "LIBRARY"
57 msgstr "المكتبة"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
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 "SYNOPSIS"
70 msgstr "موجز"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>malloc.hE<gt>>\n"
77 msgstr "B<#include E<lt>malloc.hE<gt>>\n"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<struct mallinfo mallinfo(void);>\n"
85 "B<struct mallinfo2 mallinfo2(void);>\n"
86 msgstr ""
87 "B<struct mallinfo mallinfo(void);>\n"
88 "B<struct mallinfo2 mallinfo2(void);>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "الوصف"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid ""
101 "These functions return a copy of a structure containing information about "
102 "memory allocations performed by B<malloc>(3) and related functions. The "
103 "structure returned by each function contains the same fields. However, the "
104 "older function, B<mallinfo>(), is deprecated since the type used for the "
105 "fields is too small (see BUGS)."
106 msgstr ""
107 "ترجع هذه الدوال نسخة من بنية تحتوي على معلومات حول تخصيصات الذاكرة التي تُنفذ "
108 "بواسطة B<malloc>(3) والدوال ذات الصلة. تحتوي البنية التي ترجعها كل دالة على "
109 "نفس الحقول. ومع ذلك، فإن الدالة الأقدم، B<mallinfo>()، مُهملة لأن النوع "
110 "المستخدم للحقول صغير جدًا (انظر BUGS)."
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 msgid ""
116 "Note that not all allocations are visible to these functions; see BUGS and "
117 "consider using B<malloc_info>(3) instead."
118 msgstr ""
119 "لاحظ أنه ليست كل التخصيصات مرئية لهذه الدوال؛ انظر BUGS وفكر في استخدام "
120 "B<malloc_info>(3) بدلاً من ذلك."
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "The I<mallinfo2> structure returned by B<mallinfo2>() is defined as follows:"
127 msgstr "تُعرف بنية I<mallinfo2> التي ترجعها B<mallinfo2>() كما يلي:"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid ""
134 "struct mallinfo2 {\n"
135 " size_t arena; /* Non-mmapped space allocated (bytes) */\n"
136 " size_t ordblks; /* Number of free chunks */\n"
137 " size_t smblks; /* Number of free fastbin blocks */\n"
138 " size_t hblks; /* Number of mmapped regions */\n"
139 " size_t hblkhd; /* Space allocated in mmapped regions\n"
140 " (bytes) */\n"
141 " size_t usmblks; /* See below */\n"
142 " size_t fsmblks; /* Space in freed fastbin blocks (bytes) */\n"
143 " size_t uordblks; /* Total allocated space (bytes) */\n"
144 " size_t fordblks; /* Total free space (bytes) */\n"
145 " size_t keepcost; /* Top-most, releasable space (bytes) */\n"
146 "};\n"
147 msgstr ""
148 "struct mallinfo2 {\n"
149 " size_t arena; /* المساحة المخصصة غير المُعيَّنة بـ mmap (بايت) */\n"
150 " size_t ordblks; /* عدد القطع الحرة */\n"
151 " size_t smblks; /* عدد كتل fastbin الحرة */\n"
152 " size_t hblks; /* عدد المناطق المُعيَّنة بـ mmap */\n"
153 " size_t hblkhd; /* المساحة المخصصة في المناطق المُعيَّنة بـ mmap\n"
154 " (بايت) */\n"
155 " size_t usmblks; /* انظر أدناه */\n"
156 " size_t fsmblks; /* المساحة في كتل fastbin المحررة (بايت) */\n"
157 " size_t uordblks; /* إجمالي المساحة المخصصة (بايت) */\n"
158 " size_t fordblks; /* إجمالي المساحة الحرة (بايت) */\n"
159 " size_t keepcost; /* المساحة القابلة للتحرير في الأعلى (بايت) */\n"
160 "};\n"
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "The I<mallinfo> structure returned by the deprecated B<mallinfo>() function "
167 "is exactly the same, except that the fields are typed as I<int>."
168 msgstr ""
169 "بنية I<mallinfo> التي ترجعها الدالة المُهملة B<mallinfo>() هي نفسها تمامًا، "
170 "باستثناء أن الحقول مكتوبة كنوع I<int>."
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid "The structure fields contain the following information:"
176 msgstr "تحتوي حقول البنية على المعلومات التالية:"
177
178 #. type: TP
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 #, no-wrap
182 msgid "I<arena>"
183 msgstr "I<arena>"
184
185 #. type: Plain text
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 msgid ""
189 "The total amount of memory allocated by means other than B<mmap>(2) (i.e., "
190 "memory allocated on the heap). This figure includes both in-use blocks and "
191 "blocks on the free list."
192 msgstr ""
193 "إجمالي كمية الذاكرة المخصصة بوسائل غير B<mmap>(2) (أي الذاكرة المخصصة على "
194 "الكومة). يشمل هذا الرقم الكتل قيد الاستخدام والكتل الموجودة في القائمة الحرة."
195
196 #. type: TP
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "I<ordblks>"
201 msgstr "I<ordblks>"
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid "The number of ordinary (i.e., non-fastbin) free blocks."
207 msgstr "عدد الكتل الحرة العادية (أي غير fastbin)."
208
209 #. type: TP
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "I<smblks>"
214 msgstr "I<smblks>"
215
216 #. the glibc info page wrongly says this field is unused
217 #. https://sourceware.org/bugzilla/show_bug.cgi?id=26746
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid "The number of fastbin free blocks (see B<mallopt>(3))."
222 msgstr "عدد كتل fastbin الحرة (انظر B<mallopt>(3))."
223
224 #. type: TP
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "I<hblks>"
229 msgstr "I<hblks>"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "The number of blocks currently allocated using B<mmap>(2). (See the "
236 "discussion of B<M_MMAP_THRESHOLD> in B<mallopt>(3).)"
237 msgstr ""
238 "عدد الكتل المخصصة حاليًا باستخدام B<mmap>(2). (انظر مناقشة "
239 "B<M_MMAP_THRESHOLD> في 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<hblkhd>"
246 msgstr "I<hblkhd>"
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 "The number of bytes in blocks currently allocated using B<mmap>(2)."
252 msgstr "عدد البايتات في الكتل المخصصة حاليًا باستخدام B<mmap>(2)."
253
254 #. type: TP
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "I<usmblks>"
259 msgstr "I<usmblks>"
260
261 #. It seems to have been zero since at least as far back as glibc 2.15
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "This field is unused, and is always 0. Historically, it was the \"highwater "
267 "mark\" for allocated space\\[em]that is, the maximum amount of space that "
268 "was ever allocated (in bytes); this field was maintained only in "
269 "nonthreading environments."
270 msgstr ""
271 "هذا الحقل غير مستخدم، وقيمته دائمًا 0. تاريخيًا، كان \"علامة المياه العالية\" "
272 "للمساحة المخصصة\\[em]أي، أقصى كمية من المساحة تم تخصيصها على الإطلاق "
273 "(بالبايت)؛ كان هذا الحقل يُحافظ عليه فقط في بيئات غير متعددة الخيوط."
274
275 #. type: TP
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "I<fsmblks>"
280 msgstr "I<fsmblks>"
281
282 #. the glibc info page wrongly says this field is unused
283 #. https://sourceware.org/bugzilla/show_bug.cgi?id=26746
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid "The total number of bytes in fastbin free blocks."
288 msgstr "إجمالي عدد البايتات في الكتل الحرة في السلة السريعة."
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "I<uordblks>"
295 msgstr "I<uordblks>"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "The total number of bytes used by in-use allocations."
301 msgstr "إجمالي عدد البايتات المستخدمة بواسطة التخصيصات قيد الاستخدام."
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "I<fordblks>"
308 msgstr "I<fordblks>"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "The total number of bytes in free blocks."
314 msgstr "إجمالي عدد البايتات في الكتل الحرة."
315
316 #. type: TP
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "I<keepcost>"
321 msgstr "I<keepcost>"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "The total amount of releasable free space at the top of the heap. This is "
328 "the maximum number of bytes that could ideally (i.e., ignoring page "
329 "alignment restrictions, and so on) be released by B<malloc_trim>(3)."
330 msgstr ""
331 "المبلغ الإجمالي للمساحة الحرة القابلة للتحرير في أعلى الكومة. هذا هو أقصى "
332 "عدد من البايتات التي يمكن تحريرها نظريًا (أي بتجاهل قيود محاذاة الصفحة، وما "
333 "إلى ذلك) بواسطة B<malloc_trim>(3)."
334
335 #. type: SH
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "ATTRIBUTES"
340 msgstr "السمات"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "For an explanation of the terms used in this section, see B<attributes>(7)."
347 msgstr ""
348 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
349
350 #. type: tbl table
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "Interface"
355 msgstr "الواجهة"
356
357 #. type: tbl table
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "Attribute"
362 msgstr "السمة"
363
364 #. type: tbl table
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "Value"
369 msgstr "القيمة"
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 ".na\n"
376 msgstr ".na\n"
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 ".nh\n"
383 msgstr ".nh\n"
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 ""
390 "B<mallinfo>(),\n"
391 "B<mallinfo2>()"
392 msgstr ""
393 "B<mallinfo>(),\n"
394 "B<mallinfo2>()"
395
396 #. type: tbl table
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "Thread safety"
401 msgstr "سلامة الخيوط"
402
403 #. type: tbl table
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "MT-Unsafe init const:mallopt"
408 msgstr "MT-Unsafe init const:mallopt"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid ""
414 "B<mallinfo>()/ B<mallinfo2>() would access some global internal objects. "
415 "If modify them with non-atomically, may get inconsistent results. The "
416 "identifier I<mallopt> in I<const:mallopt> mean that B<mallopt>() would "
417 "modify the global internal objects with atomics, that make sure "
418 "B<mallinfo>()/ B<mallinfo2>() is safe enough, others modify with non-"
419 "atomically maybe not."
420 msgstr ""
421 "B<mallinfo>()/ B<mallinfo2>() تصل إلى بعض الكائنات الداخلية العامة. إذا تم "
422 "تعديلها بغير ذرية، فقد تُحصل نتائج غير متناسقة. المعرف I<mallopt> في I<const:"
423 "mallopt> يعني أن B<mallopt>() تعدل الكائنات الداخلية العامة بذرية، مما يضمن "
424 "أن B<mallinfo>()/ B<mallinfo2>() آمنة بما يكفي، بينما التعديلات الأخرى بغير "
425 "ذرية قد لا تكون كذلك."
426
427 #. type: SH
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "STANDARDS"
432 msgstr "المعايير"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid "None."
438 msgstr "لا شيء."
439
440 #. type: SH
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "HISTORY"
445 msgstr "التاريخ"
446
447 #. type: TP
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "B<mallinfo>()"
452 msgstr "B<mallinfo>()"
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid "glibc 2.0. SVID."
458 msgstr "glibc 2.0. SVID."
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<mallinfo2>()"
465 msgstr "B<mallinfo2>()"
466
467 #. commit e3960d1c57e57f33e0e846d615788f4ede73b945
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid "glibc 2.33."
472 msgstr "glibc 2.33."
473
474 #. type: SH
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "BUGS"
479 msgstr "العلل"
480
481 #. FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=208
482 #. See the 24 Aug 2011 mail by Paul Pluzhnikov:
483 #. "[patch] Fix mallinfo() to accumulate results for all arenas"
484 #. on [email protected]
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid ""
489 "B<Information is returned for only the main memory allocation area.> "
490 "Allocations in other arenas are excluded. See B<malloc_stats>(3) and "
491 "B<malloc_info>(3) for alternatives that include information about other "
492 "arenas."
493 msgstr ""
494 "B<تُعاد المعلومات لمنطقة تخصيص الذاكرة الرئيسية فقط.> تُستبعد التخصيصات في "
495 "الساحات الأخرى. انظر B<malloc_stats>(3) و B<malloc_info>(3) لبدائل تتضمن "
496 "معلومات عن الساحات الأخرى."
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 "The fields of the I<mallinfo> structure that is returned by the older "
503 "B<mallinfo>() function are typed as I<int>. However, because some internal "
504 "bookkeeping values may be of type I<long>, the reported values may wrap "
505 "around zero and thus be inaccurate."
506 msgstr ""
507 "حقول بنية I<mallinfo> التي تُعاد بواسطة الدالة الأقدم B<mallinfo>() مكتوبة "
508 "كنوع I<int>. ومع ذلك، لأن بعض قيم المحاسبة الداخلية قد تكون من نوع I<long>، "
509 "فقد تلتف القيم المبلغ عنها حول الصفر وبالتالي تكون غير دقيقة."
510
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "EXAMPLES"
516 msgstr "أمثلة"
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "The program below employs B<mallinfo2>() to retrieve memory allocation "
523 "statistics before and after allocating and freeing some blocks of memory. "
524 "The statistics are displayed on standard output."
525 msgstr ""
526 "يستخدم البرنامج أدناه B<mallinfo2>() لاسترداد إحصائيات تخصيص الذاكرة قبل "
527 "وبعد تخصيص وتحرير بعض كتل الذاكرة. تُعرض الإحصائيات على المخرج القياسي."
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "The first two command-line arguments specify the number and size of blocks "
534 "to be allocated with B<malloc>(3)."
535 msgstr ""
536 "تحدد الوسيطتان الأوليان لسطر الأوامر عدد وحجم الكتل التي سيتم تخصيصها "
537 "باستخدام B<malloc>(3)."
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 msgid ""
543 "The remaining three arguments specify which of the allocated blocks should "
544 "be freed with B<free>(3). These three arguments are optional, and specify "
545 "(in order): the step size to be used in the loop that frees blocks (the "
546 "default is 1, meaning free all blocks in the range); the ordinal position of "
547 "the first block to be freed (default 0, meaning the first allocated block); "
548 "and a number one greater than the ordinal position of the last block to be "
549 "freed (default is one greater than the maximum block number). If these "
550 "three arguments are omitted, then the defaults cause all allocated blocks to "
551 "be freed."
552 msgstr ""
553 "الوسائط الثلاثة المتبقية تُحدد أي من الكتل المخصصة يجب تحريرها باستخدام "
554 "B<free>(3). هذه الوسائط الثلاثة اختيارية، وتُحدد (بالترتيب): حجم الخطوة "
555 "المستخدم في الحلقة التي تحرر الكتل (المبدئي هو 1، أي تحرير جميع الكتل في "
556 "النطاق)؛ الموضع الترتيبي لأول كتلة يُراد تحريرها (المبدئي 0، أي أول كتلة "
557 "مخصصة)؛ ورقم أكبر بواحد من الموضع الترتيبي لآخر كتلة يُراد تحريرها (المبدئي "
558 "هو أكبر بواحد من رقم الكتلة الأقصى). إذا حُذفت هذه الوسائط الثلاثة، فإن "
559 "المبدئيات تؤدي إلى تحرير جميع الكتل المخصصة."
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "In the following example run of the program, 1000 allocations of 100 bytes "
566 "are performed, and then every second allocated block is freed:"
567 msgstr ""
568 "في تشغيل المثال التالي للبرنامج، أُجريت 1000 تخصيص بحجم 100 بايت، ثم حُررت كل "
569 "كتلة مخصصة ثانية:"
570
571 #. type: Plain text
572 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
573 #: opensuse-tumbleweed
574 #, no-wrap
575 msgid ""
576 "$B< ./a.out 1000 100 2>;\n"
577 "============== Before allocating blocks ==============\n"
578 "Total non-mmapped bytes (arena): 0\n"
579 "# of free chunks (ordblks): 1\n"
580 "# of free fastbin blocks (smblks): 0\n"
581 "# of mapped regions (hblks): 0\n"
582 "Bytes in mapped regions (hblkhd): 0\n"
583 "Max.\\& total allocated space (usmblks): 0\n"
584 "Free bytes held in fastbins (fsmblks): 0\n"
585 "Total allocated space (uordblks): 0\n"
586 "Total free space (fordblks): 0\n"
587 "Topmost releasable block (keepcost): 0\n"
588 "\\&\n"
589 "============== After allocating blocks ==============\n"
590 "Total non-mmapped bytes (arena): 135168\n"
591 "# of free chunks (ordblks): 1\n"
592 "# of free fastbin blocks (smblks): 0\n"
593 "# of mapped regions (hblks): 0\n"
594 "Bytes in mapped regions (hblkhd): 0\n"
595 "Max.\\& total allocated space (usmblks): 0\n"
596 "Free bytes held in fastbins (fsmblks): 0\n"
597 "Total allocated space (uordblks): 104000\n"
598 "Total free space (fordblks): 31168\n"
599 "Topmost releasable block (keepcost): 31168\n"
600 "\\&\n"
601 "============== After freeing blocks ==============\n"
602 "Total non-mmapped bytes (arena): 135168\n"
603 "# of free chunks (ordblks): 501\n"
604 "# of free fastbin blocks (smblks): 0\n"
605 "# of mapped regions (hblks): 0\n"
606 "Bytes in mapped regions (hblkhd): 0\n"
607 "Max.\\& total allocated space (usmblks): 0\n"
608 "Free bytes held in fastbins (fsmblks): 0\n"
609 "Total allocated space (uordblks): 52000\n"
610 "Total free space (fordblks): 83168\n"
611 "Topmost releasable block (keepcost): 31168\n"
612 msgstr ""
613 "$B< ./a.out 1000 100 2>;\n"
614 "============== Before allocating blocks ==============\n"
615 "Total non-mmapped bytes (arena): 0\n"
616 "# of free chunks (ordblks): 1\n"
617 "# of free fastbin blocks (smblks): 0\n"
618 "# of mapped regions (hblks): 0\n"
619 "Bytes in mapped regions (hblkhd): 0\n"
620 "Max.\\& total allocated space (usmblks): 0\n"
621 "Free bytes held in fastbins (fsmblks): 0\n"
622 "Total allocated space (uordblks): 0\n"
623 "Total free space (fordblks): 0\n"
624 "Topmost releasable block (keepcost): 0\n"
625 "\\&\n"
626 "============== After allocating blocks ==============\n"
627 "Total non-mmapped bytes (arena): 135168\n"
628 "# of free chunks (ordblks): 1\n"
629 "# of free fastbin blocks (smblks): 0\n"
630 "# of mapped regions (hblks): 0\n"
631 "Bytes in mapped regions (hblkhd): 0\n"
632 "Max.\\& total allocated space (usmblks): 0\n"
633 "Free bytes held in fastbins (fsmblks): 0\n"
634 "Total allocated space (uordblks): 104000\n"
635 "Total free space (fordblks): 31168\n"
636 "Topmost releasable block (keepcost): 31168\n"
637 "\\&\n"
638 "============== After freeing blocks ==============\n"
639 "Total non-mmapped bytes (arena): 135168\n"
640 "# of free chunks (ordblks): 501\n"
641 "# of free fastbin blocks (smblks): 0\n"
642 "# of mapped regions (hblks): 0\n"
643 "Bytes in mapped regions (hblkhd): 0\n"
644 "Max.\\& total allocated space (usmblks): 0\n"
645 "Free bytes held in fastbins (fsmblks): 0\n"
646 "Total allocated space (uordblks): 52000\n"
647 "Total free space (fordblks): 83168\n"
648 "Topmost releasable block (keepcost): 31168\n"
649
650 #. type: SS
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 #, no-wrap
654 msgid "Program source"
655 msgstr "مصدر البرنامج"
656
657 #. type: Plain text
658 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid ""
661 "#include E<lt>malloc.hE<gt>\n"
662 "#include E<lt>stdlib.hE<gt>\n"
663 "#include E<lt>string.hE<gt>\n"
664 "\\&\n"
665 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
666 "\\&\n"
667 "static void\n"
668 "display_mallinfo2(void)\n"
669 "{\n"
670 " struct mallinfo2 mi;\n"
671 "\\&\n"
672 " mi = mallinfo2();\n"
673 "\\&\n"
674 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
675 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
676 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
677 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
678 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
679 " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
680 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
681 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
682 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
683 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
684 "}\n"
685 "\\&\n"
686 "int\n"
687 "main(int argc, char *argv[])\n"
688 "{\n"
689 "#define MAX_ALLOCS 500000\n"
690 " char *alloc[MAX_ALLOCS];\n"
691 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
692 "\\&\n"
693 " if (argc E<lt> 3 || streq(argv[1], \"--help\")) {\n"
694 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
695 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
696 " exit(EXIT_FAILURE);\n"
697 " }\n"
698 "\\&\n"
699 " numBlocks = atoi(argv[1]);\n"
700 " blockSize = atoi(argv[2]);\n"
701 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
702 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
703 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
704 "\\&\n"
705 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
706 " display_mallinfo2();\n"
707 "\\&\n"
708 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
709 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
710 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
711 " exit(EXIT_FAILURE);\n"
712 " }\n"
713 "\\&\n"
714 " alloc[j] = malloc(blockSize);\n"
715 " if (alloc[j] == NULL) {\n"
716 " perror(\"malloc\");\n"
717 " exit(EXIT_FAILURE);\n"
718 " }\n"
719 " }\n"
720 "\\&\n"
721 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
722 " display_mallinfo2();\n"
723 "\\&\n"
724 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
725 " free(alloc[j]);\n"
726 "\\&\n"
727 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
728 " display_mallinfo2();\n"
729 "\\&\n"
730 " exit(EXIT_SUCCESS);\n"
731 "}\n"
732 msgstr ""
733 "#include E<lt>malloc.hE<gt>\n"
734 "#include E<lt>stdlib.hE<gt>\n"
735 "#include E<lt>string.hE<gt>\n"
736 "\\&\n"
737 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
738 "\\&\n"
739 "static void\n"
740 "display_mallinfo2(void)\n"
741 "{\n"
742 " struct mallinfo2 mi;\n"
743 "\\&\n"
744 " mi = mallinfo2();\n"
745 "\\&\n"
746 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
747 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
748 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
749 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
750 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
751 " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
752 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
753 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
754 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
755 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
756 "}\n"
757 "\\&\n"
758 "int\n"
759 "main(int argc, char *argv[])\n"
760 "{\n"
761 "#define MAX_ALLOCS 500000\n"
762 " char *alloc[MAX_ALLOCS];\n"
763 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
764 "\\&\n"
765 " if (argc E<lt> 3 || streq(argv[1], \"--help\")) {\n"
766 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
767 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
768 " exit(EXIT_FAILURE);\n"
769 " }\n"
770 "\\&\n"
771 " numBlocks = atoi(argv[1]);\n"
772 " blockSize = atoi(argv[2]);\n"
773 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
774 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
775 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
776 "\\&\n"
777 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
778 " display_mallinfo2();\n"
779 "\\&\n"
780 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
781 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
782 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
783 " exit(EXIT_FAILURE);\n"
784 " }\n"
785 "\\&\n"
786 " alloc[j] = malloc(blockSize);\n"
787 " if (alloc[j] == NULL) {\n"
788 " perror(\"malloc\");\n"
789 " exit(EXIT_FAILURE);\n"
790 " }\n"
791 " }\n"
792 "\\&\n"
793 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
794 " display_mallinfo2();\n"
795 "\\&\n"
796 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
797 " free(alloc[j]);\n"
798 "\\&\n"
799 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
800 " display_mallinfo2();\n"
801 "\\&\n"
802 " exit(EXIT_SUCCESS);\n"
803 "}\n"
804
805 #. SRC END
806 #. type: SH
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 #, no-wrap
810 msgid "SEE ALSO"
811 msgstr "انظر أيضًا"
812
813 #. type: Plain text
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 msgid ""
817 "B<mmap>(2), B<malloc>(3), B<malloc_info>(3), B<malloc_stats>(3), "
818 "B<malloc_trim>(3), B<mallopt>(3)"
819 msgstr ""
820 "B<mmap>(2), B<malloc>(3), B<malloc_info>(3), B<malloc_stats>(3), "
821 "B<malloc_trim>(3), B<mallopt>(3)"
822
823 #. type: TH
824 #: debian-trixie
825 #, no-wrap
826 msgid "2024-06-15"
827 msgstr "15 يونيو 2024"
828
829 #. type: TH
830 #: debian-trixie
831 #, no-wrap
832 msgid "Linux man-pages 6.9.1"
833 msgstr "صفحات دليل لينكس 6.9.1"
834
835 #. type: Plain text
836 #: debian-trixie
837 msgid "Standard C library (I<libc>, I<-lc>)"
838 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
839
840 #. type: Plain text
841 #: debian-trixie fedora-44 fedora-rawhide
842 #, no-wrap
843 msgid ""
844 "$ B<./a.out 1000 100 2>\n"
845 "============== Before allocating blocks ==============\n"
846 "Total non-mmapped bytes (arena): 0\n"
847 "# of free chunks (ordblks): 1\n"
848 "# of free fastbin blocks (smblks): 0\n"
849 "# of mapped regions (hblks): 0\n"
850 "Bytes in mapped regions (hblkhd): 0\n"
851 "Max. total allocated space (usmblks): 0\n"
852 "Free bytes held in fastbins (fsmblks): 0\n"
853 "Total allocated space (uordblks): 0\n"
854 "Total free space (fordblks): 0\n"
855 "Topmost releasable block (keepcost): 0\n"
856 "\\&\n"
857 "============== After allocating blocks ==============\n"
858 "Total non-mmapped bytes (arena): 135168\n"
859 "# of free chunks (ordblks): 1\n"
860 "# of free fastbin blocks (smblks): 0\n"
861 "# of mapped regions (hblks): 0\n"
862 "Bytes in mapped regions (hblkhd): 0\n"
863 "Max. total allocated space (usmblks): 0\n"
864 "Free bytes held in fastbins (fsmblks): 0\n"
865 "Total allocated space (uordblks): 104000\n"
866 "Total free space (fordblks): 31168\n"
867 "Topmost releasable block (keepcost): 31168\n"
868 "\\&\n"
869 "============== After freeing blocks ==============\n"
870 "Total non-mmapped bytes (arena): 135168\n"
871 "# of free chunks (ordblks): 501\n"
872 "# of free fastbin blocks (smblks): 0\n"
873 "# of mapped regions (hblks): 0\n"
874 "Bytes in mapped regions (hblkhd): 0\n"
875 "Max. total allocated space (usmblks): 0\n"
876 "Free bytes held in fastbins (fsmblks): 0\n"
877 "Total allocated space (uordblks): 52000\n"
878 "Total free space (fordblks): 83168\n"
879 "Topmost releasable block (keepcost): 31168\n"
880 msgstr ""
881 "$ B<./a.out 1000 100 2>\n"
882 "============== Before allocating blocks ==============\n"
883 "Total non-mmapped bytes (arena): 0\n"
884 "# of free chunks (ordblks): 1\n"
885 "# of free fastbin blocks (smblks): 0\n"
886 "# of mapped regions (hblks): 0\n"
887 "Bytes in mapped regions (hblkhd): 0\n"
888 "Max. total allocated space (usmblks): 0\n"
889 "Free bytes held in fastbins (fsmblks): 0\n"
890 "Total allocated space (uordblks): 0\n"
891 "Total free space (fordblks): 0\n"
892 "Topmost releasable block (keepcost): 0\n"
893 "\\&\n"
894 "============== After allocating blocks ==============\n"
895 "Total non-mmapped bytes (arena): 135168\n"
896 "# of free chunks (ordblks): 1\n"
897 "# of free fastbin blocks (smblks): 0\n"
898 "# of mapped regions (hblks): 0\n"
899 "Bytes in mapped regions (hblkhd): 0\n"
900 "Max. total allocated space (usmblks): 0\n"
901 "Free bytes held in fastbins (fsmblks): 0\n"
902 "Total allocated space (uordblks): 104000\n"
903 "Total free space (fordblks): 31168\n"
904 "Topmost releasable block (keepcost): 31168\n"
905 "\\&\n"
906 "============== After freeing blocks ==============\n"
907 "Total non-mmapped bytes (arena): 135168\n"
908 "# of free chunks (ordblks): 501\n"
909 "# of free fastbin blocks (smblks): 0\n"
910 "# of mapped regions (hblks): 0\n"
911 "Bytes in mapped regions (hblkhd): 0\n"
912 "Max. total allocated space (usmblks): 0\n"
913 "Free bytes held in fastbins (fsmblks): 0\n"
914 "Total allocated space (uordblks): 52000\n"
915 "Total free space (fordblks): 83168\n"
916 "Topmost releasable block (keepcost): 31168\n"
917
918 #. type: Plain text
919 #: debian-trixie fedora-44 fedora-rawhide
920 #, no-wrap
921 msgid ""
922 "#include E<lt>malloc.hE<gt>\n"
923 "#include E<lt>stdlib.hE<gt>\n"
924 "#include E<lt>string.hE<gt>\n"
925 "\\&\n"
926 "static void\n"
927 "display_mallinfo2(void)\n"
928 "{\n"
929 " struct mallinfo2 mi;\n"
930 "\\&\n"
931 " mi = mallinfo2();\n"
932 "\\&\n"
933 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
934 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
935 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
936 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
937 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
938 " printf(\"Max. total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
939 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
940 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
941 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
942 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
943 "}\n"
944 "\\&\n"
945 "int\n"
946 "main(int argc, char *argv[])\n"
947 "{\n"
948 "#define MAX_ALLOCS 2000000\n"
949 " char *alloc[MAX_ALLOCS];\n"
950 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
951 "\\&\n"
952 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
953 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
954 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
955 " exit(EXIT_FAILURE);\n"
956 " }\n"
957 "\\&\n"
958 " numBlocks = atoi(argv[1]);\n"
959 " blockSize = atoi(argv[2]);\n"
960 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
961 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
962 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
963 "\\&\n"
964 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
965 " display_mallinfo2();\n"
966 "\\&\n"
967 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
968 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
969 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
970 " exit(EXIT_FAILURE);\n"
971 " }\n"
972 "\\&\n"
973 " alloc[j] = malloc(blockSize);\n"
974 " if (alloc[j] == NULL) {\n"
975 " perror(\"malloc\");\n"
976 " exit(EXIT_FAILURE);\n"
977 " }\n"
978 " }\n"
979 "\\&\n"
980 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
981 " display_mallinfo2();\n"
982 "\\&\n"
983 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
984 " free(alloc[j]);\n"
985 "\\&\n"
986 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
987 " display_mallinfo2();\n"
988 "\\&\n"
989 " exit(EXIT_SUCCESS);\n"
990 "}\n"
991 msgstr ""
992 "#include E<lt>malloc.hE<gt>\n"
993 "#include E<lt>stdlib.hE<gt>\n"
994 "#include E<lt>string.hE<gt>\n"
995 "\\&\n"
996 "static void\n"
997 "display_mallinfo2(void)\n"
998 "{\n"
999 " struct mallinfo2 mi;\n"
1000 "\\&\n"
1001 " mi = mallinfo2();\n"
1002 "\\&\n"
1003 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
1004 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
1005 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
1006 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
1007 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
1008 " printf(\"Max. total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
1009 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
1010 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
1011 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
1012 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
1013 "}\n"
1014 "\\&\n"
1015 "int\n"
1016 "main(int argc, char *argv[])\n"
1017 "{\n"
1018 "#define MAX_ALLOCS 2000000\n"
1019 " char *alloc[MAX_ALLOCS];\n"
1020 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1021 "\\&\n"
1022 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1023 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1024 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
1025 " exit(EXIT_FAILURE);\n"
1026 " }\n"
1027 "\\&\n"
1028 " numBlocks = atoi(argv[1]);\n"
1029 " blockSize = atoi(argv[2]);\n"
1030 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1031 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1032 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1033 "\\&\n"
1034 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
1035 " display_mallinfo2();\n"
1036 "\\&\n"
1037 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1038 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1039 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
1040 " exit(EXIT_FAILURE);\n"
1041 " }\n"
1042 "\\&\n"
1043 " alloc[j] = malloc(blockSize);\n"
1044 " if (alloc[j] == NULL) {\n"
1045 " perror(\"malloc\");\n"
1046 " exit(EXIT_FAILURE);\n"
1047 " }\n"
1048 " }\n"
1049 "\\&\n"
1050 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
1051 " display_mallinfo2();\n"
1052 "\\&\n"
1053 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1054 " free(alloc[j]);\n"
1055 "\\&\n"
1056 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
1057 " display_mallinfo2();\n"
1058 "\\&\n"
1059 " exit(EXIT_SUCCESS);\n"
1060 "}\n"
1061
1062 #. type: TH
1063 #: fedora-44 fedora-rawhide
1064 #, no-wrap
1065 msgid "2024-07-23"
1066 msgstr "23 يوليو 2024"
1067
1068 #. type: TH
1069 #: fedora-44 fedora-rawhide
1070 #, no-wrap
1071 msgid "Linux man-pages 6.13"
1072 msgstr "صفحات دليل لينكس 6.13"
1073
1074 #. type: TH
1075 #: mageia-cauldron
1076 #, no-wrap
1077 msgid "2026-02-08"
1078 msgstr "8 فبراير 2026"
1079
1080 #. type: TH
1081 #: mageia-cauldron
1082 #, no-wrap
1083 msgid "Linux man-pages 6.17"
1084 msgstr "صفحات دليل لينكس 6.17"
1085
1086 #. type: Plain text
1087 #: mageia-cauldron
1088 #, no-wrap
1089 msgid ""
1090 "#include E<lt>malloc.hE<gt>\n"
1091 "#include E<lt>stdlib.hE<gt>\n"
1092 "#include E<lt>string.hE<gt>\n"
1093 "\\&\n"
1094 "static void\n"
1095 "display_mallinfo2(void)\n"
1096 "{\n"
1097 " struct mallinfo2 mi;\n"
1098 "\\&\n"
1099 " mi = mallinfo2();\n"
1100 "\\&\n"
1101 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
1102 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
1103 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
1104 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
1105 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
1106 " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
1107 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
1108 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
1109 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
1110 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
1111 "}\n"
1112 "\\&\n"
1113 "int\n"
1114 "main(int argc, char *argv[])\n"
1115 "{\n"
1116 "#define MAX_ALLOCS 500000\n"
1117 " char *alloc[MAX_ALLOCS];\n"
1118 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1119 "\\&\n"
1120 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1121 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1122 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
1123 " exit(EXIT_FAILURE);\n"
1124 " }\n"
1125 "\\&\n"
1126 " numBlocks = atoi(argv[1]);\n"
1127 " blockSize = atoi(argv[2]);\n"
1128 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1129 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1130 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1131 "\\&\n"
1132 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
1133 " display_mallinfo2();\n"
1134 "\\&\n"
1135 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1136 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1137 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
1138 " exit(EXIT_FAILURE);\n"
1139 " }\n"
1140 "\\&\n"
1141 " alloc[j] = malloc(blockSize);\n"
1142 " if (alloc[j] == NULL) {\n"
1143 " perror(\"malloc\");\n"
1144 " exit(EXIT_FAILURE);\n"
1145 " }\n"
1146 " }\n"
1147 "\\&\n"
1148 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
1149 " display_mallinfo2();\n"
1150 "\\&\n"
1151 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1152 " free(alloc[j]);\n"
1153 "\\&\n"
1154 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
1155 " display_mallinfo2();\n"
1156 "\\&\n"
1157 " exit(EXIT_SUCCESS);\n"
1158 "}\n"
1159 msgstr ""
1160 "#include E<lt>malloc.hE<gt>\n"
1161 "#include E<lt>stdlib.hE<gt>\n"
1162 "#include E<lt>string.hE<gt>\n"
1163 "\\&\n"
1164 "static void\n"
1165 "display_mallinfo2(void)\n"
1166 "{\n"
1167 " struct mallinfo2 mi;\n"
1168 "\\&\n"
1169 " mi = mallinfo2();\n"
1170 "\\&\n"
1171 " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n"
1172 " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n"
1173 " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n"
1174 " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n"
1175 " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n"
1176 " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n"
1177 " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n"
1178 " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n"
1179 " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n"
1180 " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n"
1181 "}\n"
1182 "\\&\n"
1183 "int\n"
1184 "main(int argc, char *argv[])\n"
1185 "{\n"
1186 "#define MAX_ALLOCS 500000\n"
1187 " char *alloc[MAX_ALLOCS];\n"
1188 " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n"
1189 "\\&\n"
1190 " if (argc E<lt> 3 || strcmp(argv[1], \"--help\") == 0) {\n"
1191 " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n"
1192 " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n"
1193 " exit(EXIT_FAILURE);\n"
1194 " }\n"
1195 "\\&\n"
1196 " numBlocks = atoi(argv[1]);\n"
1197 " blockSize = atoi(argv[2]);\n"
1198 " freeStep = (argc E<gt> 3) ? atoi(argv[3]) : 1;\n"
1199 " freeBegin = (argc E<gt> 4) ? atoi(argv[4]) : 0;\n"
1200 " freeEnd = (argc E<gt> 5) ? atoi(argv[5]) : numBlocks;\n"
1201 "\\&\n"
1202 " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n"
1203 " display_mallinfo2();\n"
1204 "\\&\n"
1205 " for (size_t j = 0; j E<lt> numBlocks; j++) {\n"
1206 " if (numBlocks E<gt>= MAX_ALLOCS) {\n"
1207 " fprintf(stderr, \"Too many allocations\\[rs]n\");\n"
1208 " exit(EXIT_FAILURE);\n"
1209 " }\n"
1210 "\\&\n"
1211 " alloc[j] = malloc(blockSize);\n"
1212 " if (alloc[j] == NULL) {\n"
1213 " perror(\"malloc\");\n"
1214 " exit(EXIT_FAILURE);\n"
1215 " }\n"
1216 " }\n"
1217 "\\&\n"
1218 " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n"
1219 " display_mallinfo2();\n"
1220 "\\&\n"
1221 " for (size_t j = freeBegin; j E<lt> freeEnd; j += freeStep)\n"
1222 " free(alloc[j]);\n"
1223 "\\&\n"
1224 " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n"
1225 " display_mallinfo2();\n"
1226 "\\&\n"
1227 " exit(EXIT_SUCCESS);\n"
1228 "}\n"
1229
1230 #. type: TH
1231 #: opensuse-leap-16-1 opensuse-tumbleweed
1232 #, no-wrap
1233 msgid "Linux man-pages (unreleased)"
1234 msgstr "صفحات دليل لينكس (لم تصدر بعد)"