# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:30+0200\n" "PO-Revision-Date: 2026-06-02 18:56+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "mallinfo" msgstr "mallinfo" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-02-22" msgstr "22 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "mallinfo, mallinfo2 - obtain memory allocation information" msgstr "mallinfo، mallinfo2 - الحصول على معلومات تخصيص الذاكرة" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Emalloc.hE>\n" msgstr "B<#include Emalloc.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B\n" "B\n" msgstr "" "B\n" "B\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "These functions return a copy of a structure containing information about " "memory allocations performed by B(3) and related functions. The " "structure returned by each function contains the same fields. However, the " "older function, B(), is deprecated since the type used for the " "fields is too small (see BUGS)." msgstr "" "ترجع هذه الدوال نسخة من بنية تحتوي على معلومات حول تخصيصات الذاكرة التي تُنفذ " "بواسطة B(3) والدوال ذات الصلة. تحتوي البنية التي ترجعها كل دالة على " "نفس الحقول. ومع ذلك، فإن الدالة الأقدم، B()، مُهملة لأن النوع " "المستخدم للحقول صغير جدًا (انظر BUGS)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that not all allocations are visible to these functions; see BUGS and " "consider using B(3) instead." msgstr "" "لاحظ أنه ليست كل التخصيصات مرئية لهذه الدوال؛ انظر BUGS وفكر في استخدام " "B(3) بدلاً من ذلك." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I structure returned by B() is defined as follows:" msgstr "تُعرف بنية I التي ترجعها B() كما يلي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct mallinfo2 {\n" " size_t arena; /* Non-mmapped space allocated (bytes) */\n" " size_t ordblks; /* Number of free chunks */\n" " size_t smblks; /* Number of free fastbin blocks */\n" " size_t hblks; /* Number of mmapped regions */\n" " size_t hblkhd; /* Space allocated in mmapped regions\n" " (bytes) */\n" " size_t usmblks; /* See below */\n" " size_t fsmblks; /* Space in freed fastbin blocks (bytes) */\n" " size_t uordblks; /* Total allocated space (bytes) */\n" " size_t fordblks; /* Total free space (bytes) */\n" " size_t keepcost; /* Top-most, releasable space (bytes) */\n" "};\n" msgstr "" "struct mallinfo2 {\n" " size_t arena; /* المساحة المخصصة غير المُعيَّنة بـ mmap (بايت) */\n" " size_t ordblks; /* عدد القطع الحرة */\n" " size_t smblks; /* عدد كتل fastbin الحرة */\n" " size_t hblks; /* عدد المناطق المُعيَّنة بـ mmap */\n" " size_t hblkhd; /* المساحة المخصصة في المناطق المُعيَّنة بـ mmap\n" " (بايت) */\n" " size_t usmblks; /* انظر أدناه */\n" " size_t fsmblks; /* المساحة في كتل fastbin المحررة (بايت) */\n" " size_t uordblks; /* إجمالي المساحة المخصصة (بايت) */\n" " size_t fordblks; /* إجمالي المساحة الحرة (بايت) */\n" " size_t keepcost; /* المساحة القابلة للتحرير في الأعلى (بايت) */\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I structure returned by the deprecated B() function " "is exactly the same, except that the fields are typed as I." msgstr "" "بنية I التي ترجعها الدالة المُهملة B() هي نفسها تمامًا، " "باستثناء أن الحقول مكتوبة كنوع I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The structure fields contain the following information:" msgstr "تحتوي حقول البنية على المعلومات التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The total amount of memory allocated by means other than B(2) (i.e., " "memory allocated on the heap). This figure includes both in-use blocks and " "blocks on the free list." msgstr "" "إجمالي كمية الذاكرة المخصصة بوسائل غير B(2) (أي الذاكرة المخصصة على " "الكومة). يشمل هذا الرقم الكتل قيد الاستخدام والكتل الموجودة في القائمة الحرة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The number of ordinary (i.e., non-fastbin) free blocks." msgstr "عدد الكتل الحرة العادية (أي غير fastbin)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. the glibc info page wrongly says this field is unused #. https://sourceware.org/bugzilla/show_bug.cgi?id=26746 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The number of fastbin free blocks (see B(3))." msgstr "عدد كتل fastbin الحرة (انظر B(3))." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The number of blocks currently allocated using B(2). (See the " "discussion of B in B(3).)" msgstr "" "عدد الكتل المخصصة حاليًا باستخدام B(2). (انظر مناقشة " "B في B(3).)" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The number of bytes in blocks currently allocated using B(2)." msgstr "عدد البايتات في الكتل المخصصة حاليًا باستخدام B(2)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. It seems to have been zero since at least as far back as glibc 2.15 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This field is unused, and is always 0. Historically, it was the \"highwater " "mark\" for allocated space\\[em]that is, the maximum amount of space that " "was ever allocated (in bytes); this field was maintained only in " "nonthreading environments." msgstr "" "هذا الحقل غير مستخدم، وقيمته دائمًا 0. تاريخيًا، كان \"علامة المياه العالية\" " "للمساحة المخصصة\\[em]أي، أقصى كمية من المساحة تم تخصيصها على الإطلاق " "(بالبايت)؛ كان هذا الحقل يُحافظ عليه فقط في بيئات غير متعددة الخيوط." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. the glibc info page wrongly says this field is unused #. https://sourceware.org/bugzilla/show_bug.cgi?id=26746 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The total number of bytes in fastbin free blocks." msgstr "إجمالي عدد البايتات في الكتل الحرة في السلة السريعة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The total number of bytes used by in-use allocations." msgstr "إجمالي عدد البايتات المستخدمة بواسطة التخصيصات قيد الاستخدام." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The total number of bytes in free blocks." msgstr "إجمالي عدد البايتات في الكتل الحرة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The total amount of releasable free space at the top of the heap. This is " "the maximum number of bytes that could ideally (i.e., ignoring page " "alignment restrictions, and so on) be released by B(3)." msgstr "" "المبلغ الإجمالي للمساحة الحرة القابلة للتحرير في أعلى الكومة. هذا هو أقصى " "عدد من البايتات التي يمكن تحريرها نظريًا (أي بتجاهل قيود محاذاة الصفحة، وما " "إلى ذلك) بواسطة B(3)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "السمات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "الواجهة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "السمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "القيمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B(),\n" "B()" msgstr "" "B(),\n" "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "سلامة الخيوط" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Unsafe init const:mallopt" msgstr "MT-Unsafe init const:mallopt" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B()/ B() would access some global internal objects. " "If modify them with non-atomically, may get inconsistent results. The " "identifier I in I mean that B() would " "modify the global internal objects with atomics, that make sure " "B()/ B() is safe enough, others modify with non-" "atomically maybe not." msgstr "" "B()/ B() تصل إلى بعض الكائنات الداخلية العامة. إذا تم " "تعديلها بغير ذرية، فقد تُحصل نتائج غير متناسقة. المعرف I في I يعني أن B() تعدل الكائنات الداخلية العامة بذرية، مما يضمن " "أن B()/ B() آمنة بما يكفي، بينما التعديلات الأخرى بغير " "ذرية قد لا تكون كذلك." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "None." msgstr "لا شيء." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.0. SVID." msgstr "glibc 2.0. SVID." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. commit e3960d1c57e57f33e0e846d615788f4ede73b945 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.33." msgstr "glibc 2.33." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "العلل" #. FIXME . http://sourceware.org/bugzilla/show_bug.cgi?id=208 #. See the 24 Aug 2011 mail by Paul Pluzhnikov: #. "[patch] Fix mallinfo() to accumulate results for all arenas" #. on libc-alpha@sourceware.org #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B " "Allocations in other arenas are excluded. See B(3) and " "B(3) for alternatives that include information about other " "arenas." msgstr "" "B<تُعاد المعلومات لمنطقة تخصيص الذاكرة الرئيسية فقط.> تُستبعد التخصيصات في " "الساحات الأخرى. انظر B(3) و B(3) لبدائل تتضمن " "معلومات عن الساحات الأخرى." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The fields of the I structure that is returned by the older " "B() function are typed as I. However, because some internal " "bookkeeping values may be of type I, the reported values may wrap " "around zero and thus be inaccurate." msgstr "" "حقول بنية I التي تُعاد بواسطة الدالة الأقدم B() مكتوبة " "كنوع I. ومع ذلك، لأن بعض قيم المحاسبة الداخلية قد تكون من نوع I، " "فقد تلتف القيم المبلغ عنها حول الصفر وبالتالي تكون غير دقيقة." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below employs B() to retrieve memory allocation " "statistics before and after allocating and freeing some blocks of memory. " "The statistics are displayed on standard output." msgstr "" "يستخدم البرنامج أدناه B() لاسترداد إحصائيات تخصيص الذاكرة قبل " "وبعد تخصيص وتحرير بعض كتل الذاكرة. تُعرض الإحصائيات على المخرج القياسي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The first two command-line arguments specify the number and size of blocks " "to be allocated with B(3)." msgstr "" "تحدد الوسيطتان الأوليان لسطر الأوامر عدد وحجم الكتل التي سيتم تخصيصها " "باستخدام B(3)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The remaining three arguments specify which of the allocated blocks should " "be freed with B(3). These three arguments are optional, and specify " "(in order): the step size to be used in the loop that frees blocks (the " "default is 1, meaning free all blocks in the range); the ordinal position of " "the first block to be freed (default 0, meaning the first allocated block); " "and a number one greater than the ordinal position of the last block to be " "freed (default is one greater than the maximum block number). If these " "three arguments are omitted, then the defaults cause all allocated blocks to " "be freed." msgstr "" "الوسائط الثلاثة المتبقية تُحدد أي من الكتل المخصصة يجب تحريرها باستخدام " "B(3). هذه الوسائط الثلاثة اختيارية، وتُحدد (بالترتيب): حجم الخطوة " "المستخدم في الحلقة التي تحرر الكتل (المبدئي هو 1، أي تحرير جميع الكتل في " "النطاق)؛ الموضع الترتيبي لأول كتلة يُراد تحريرها (المبدئي 0، أي أول كتلة " "مخصصة)؛ ورقم أكبر بواحد من الموضع الترتيبي لآخر كتلة يُراد تحريرها (المبدئي " "هو أكبر بواحد من رقم الكتلة الأقصى). إذا حُذفت هذه الوسائط الثلاثة، فإن " "المبدئيات تؤدي إلى تحرير جميع الكتل المخصصة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In the following example run of the program, 1000 allocations of 100 bytes " "are performed, and then every second allocated block is freed:" msgstr "" "في تشغيل المثال التالي للبرنامج، أُجريت 1000 تخصيص بحجم 100 بايت، ثم حُررت كل " "كتلة مخصصة ثانية:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out 1000 100 2>;\n" "============== Before allocating blocks ==============\n" "Total non-mmapped bytes (arena): 0\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max.\\& total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 0\n" "Total free space (fordblks): 0\n" "Topmost releasable block (keepcost): 0\n" "\\&\n" "============== After allocating blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max.\\& total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 104000\n" "Total free space (fordblks): 31168\n" "Topmost releasable block (keepcost): 31168\n" "\\&\n" "============== After freeing blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 501\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max.\\& total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 52000\n" "Total free space (fordblks): 83168\n" "Topmost releasable block (keepcost): 31168\n" msgstr "" "$B< ./a.out 1000 100 2>;\n" "============== Before allocating blocks ==============\n" "Total non-mmapped bytes (arena): 0\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max.\\& total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 0\n" "Total free space (fordblks): 0\n" "Topmost releasable block (keepcost): 0\n" "\\&\n" "============== After allocating blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max.\\& total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 104000\n" "Total free space (fordblks): 31168\n" "Topmost releasable block (keepcost): 31168\n" "\\&\n" "============== After freeing blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 501\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max.\\& total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 52000\n" "Total free space (fordblks): 83168\n" "Topmost releasable block (keepcost): 31168\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Emalloc.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n" "\\&\n" "static void\n" "display_mallinfo2(void)\n" "{\n" " struct mallinfo2 mi;\n" "\\&\n" " mi = mallinfo2();\n" "\\&\n" " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n" " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n" " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n" " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n" " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n" " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n" " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n" " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n" " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n" " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" "#define MAX_ALLOCS 500000\n" " char *alloc[MAX_ALLOCS];\n" " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n" "\\&\n" " if (argc E 3 || streq(argv[1], \"--help\")) {\n" " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n" " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " numBlocks = atoi(argv[1]);\n" " blockSize = atoi(argv[2]);\n" " freeStep = (argc E 3) ? atoi(argv[3]) : 1;\n" " freeBegin = (argc E 4) ? atoi(argv[4]) : 0;\n" " freeEnd = (argc E 5) ? atoi(argv[5]) : numBlocks;\n" "\\&\n" " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = 0; j E numBlocks; j++) {\n" " if (numBlocks E= MAX_ALLOCS) {\n" " fprintf(stderr, \"Too many allocations\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " alloc[j] = malloc(blockSize);\n" " if (alloc[j] == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = freeBegin; j E freeEnd; j += freeStep)\n" " free(alloc[j]);\n" "\\&\n" " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Emalloc.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n" "\\&\n" "static void\n" "display_mallinfo2(void)\n" "{\n" " struct mallinfo2 mi;\n" "\\&\n" " mi = mallinfo2();\n" "\\&\n" " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n" " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n" " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n" " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n" " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n" " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n" " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n" " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n" " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n" " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" "#define MAX_ALLOCS 500000\n" " char *alloc[MAX_ALLOCS];\n" " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n" "\\&\n" " if (argc E 3 || streq(argv[1], \"--help\")) {\n" " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n" " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " numBlocks = atoi(argv[1]);\n" " blockSize = atoi(argv[2]);\n" " freeStep = (argc E 3) ? atoi(argv[3]) : 1;\n" " freeBegin = (argc E 4) ? atoi(argv[4]) : 0;\n" " freeEnd = (argc E 5) ? atoi(argv[5]) : numBlocks;\n" "\\&\n" " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = 0; j E numBlocks; j++) {\n" " if (numBlocks E= MAX_ALLOCS) {\n" " fprintf(stderr, \"Too many allocations\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " alloc[j] = malloc(blockSize);\n" " if (alloc[j] == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = freeBegin; j E freeEnd; j += freeStep)\n" " free(alloc[j]);\n" "\\&\n" " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(2), B(3), B(3), B(3), " "B(3), B(3)" msgstr "" "B(2), B(3), B(3), B(3), " "B(3), B(3)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B<./a.out 1000 100 2>\n" "============== Before allocating blocks ==============\n" "Total non-mmapped bytes (arena): 0\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max. total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 0\n" "Total free space (fordblks): 0\n" "Topmost releasable block (keepcost): 0\n" "\\&\n" "============== After allocating blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max. total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 104000\n" "Total free space (fordblks): 31168\n" "Topmost releasable block (keepcost): 31168\n" "\\&\n" "============== After freeing blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 501\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max. total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 52000\n" "Total free space (fordblks): 83168\n" "Topmost releasable block (keepcost): 31168\n" msgstr "" "$ B<./a.out 1000 100 2>\n" "============== Before allocating blocks ==============\n" "Total non-mmapped bytes (arena): 0\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max. total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 0\n" "Total free space (fordblks): 0\n" "Topmost releasable block (keepcost): 0\n" "\\&\n" "============== After allocating blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 1\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max. total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 104000\n" "Total free space (fordblks): 31168\n" "Topmost releasable block (keepcost): 31168\n" "\\&\n" "============== After freeing blocks ==============\n" "Total non-mmapped bytes (arena): 135168\n" "# of free chunks (ordblks): 501\n" "# of free fastbin blocks (smblks): 0\n" "# of mapped regions (hblks): 0\n" "Bytes in mapped regions (hblkhd): 0\n" "Max. total allocated space (usmblks): 0\n" "Free bytes held in fastbins (fsmblks): 0\n" "Total allocated space (uordblks): 52000\n" "Total free space (fordblks): 83168\n" "Topmost releasable block (keepcost): 31168\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Emalloc.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "static void\n" "display_mallinfo2(void)\n" "{\n" " struct mallinfo2 mi;\n" "\\&\n" " mi = mallinfo2();\n" "\\&\n" " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n" " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n" " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n" " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n" " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n" " printf(\"Max. total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n" " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n" " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n" " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n" " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" "#define MAX_ALLOCS 2000000\n" " char *alloc[MAX_ALLOCS];\n" " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n" "\\&\n" " if (argc E 3 || strcmp(argv[1], \"--help\") == 0) {\n" " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n" " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " numBlocks = atoi(argv[1]);\n" " blockSize = atoi(argv[2]);\n" " freeStep = (argc E 3) ? atoi(argv[3]) : 1;\n" " freeBegin = (argc E 4) ? atoi(argv[4]) : 0;\n" " freeEnd = (argc E 5) ? atoi(argv[5]) : numBlocks;\n" "\\&\n" " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = 0; j E numBlocks; j++) {\n" " if (numBlocks E= MAX_ALLOCS) {\n" " fprintf(stderr, \"Too many allocations\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " alloc[j] = malloc(blockSize);\n" " if (alloc[j] == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = freeBegin; j E freeEnd; j += freeStep)\n" " free(alloc[j]);\n" "\\&\n" " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Emalloc.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "static void\n" "display_mallinfo2(void)\n" "{\n" " struct mallinfo2 mi;\n" "\\&\n" " mi = mallinfo2();\n" "\\&\n" " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n" " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n" " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n" " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n" " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n" " printf(\"Max. total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n" " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n" " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n" " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n" " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" "#define MAX_ALLOCS 2000000\n" " char *alloc[MAX_ALLOCS];\n" " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n" "\\&\n" " if (argc E 3 || strcmp(argv[1], \"--help\") == 0) {\n" " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n" " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " numBlocks = atoi(argv[1]);\n" " blockSize = atoi(argv[2]);\n" " freeStep = (argc E 3) ? atoi(argv[3]) : 1;\n" " freeBegin = (argc E 4) ? atoi(argv[4]) : 0;\n" " freeEnd = (argc E 5) ? atoi(argv[5]) : numBlocks;\n" "\\&\n" " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = 0; j E numBlocks; j++) {\n" " if (numBlocks E= MAX_ALLOCS) {\n" " fprintf(stderr, \"Too many allocations\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " alloc[j] = malloc(blockSize);\n" " if (alloc[j] == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = freeBegin; j E freeEnd; j += freeStep)\n" " free(alloc[j]);\n" "\\&\n" " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: Plain text #: mageia-cauldron #, no-wrap msgid "" "#include Emalloc.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "static void\n" "display_mallinfo2(void)\n" "{\n" " struct mallinfo2 mi;\n" "\\&\n" " mi = mallinfo2();\n" "\\&\n" " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n" " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n" " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n" " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n" " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n" " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n" " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n" " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n" " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n" " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" "#define MAX_ALLOCS 500000\n" " char *alloc[MAX_ALLOCS];\n" " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n" "\\&\n" " if (argc E 3 || strcmp(argv[1], \"--help\") == 0) {\n" " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n" " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " numBlocks = atoi(argv[1]);\n" " blockSize = atoi(argv[2]);\n" " freeStep = (argc E 3) ? atoi(argv[3]) : 1;\n" " freeBegin = (argc E 4) ? atoi(argv[4]) : 0;\n" " freeEnd = (argc E 5) ? atoi(argv[5]) : numBlocks;\n" "\\&\n" " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = 0; j E numBlocks; j++) {\n" " if (numBlocks E= MAX_ALLOCS) {\n" " fprintf(stderr, \"Too many allocations\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " alloc[j] = malloc(blockSize);\n" " if (alloc[j] == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = freeBegin; j E freeEnd; j += freeStep)\n" " free(alloc[j]);\n" "\\&\n" " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Emalloc.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "static void\n" "display_mallinfo2(void)\n" "{\n" " struct mallinfo2 mi;\n" "\\&\n" " mi = mallinfo2();\n" "\\&\n" " printf(\"Total non-mmapped bytes (arena): %zu\\[rs]n\", mi.arena);\n" " printf(\"# of free chunks (ordblks): %zu\\[rs]n\", mi.ordblks);\n" " printf(\"# of free fastbin blocks (smblks): %zu\\[rs]n\", mi.smblks);\n" " printf(\"# of mapped regions (hblks): %zu\\[rs]n\", mi.hblks);\n" " printf(\"Bytes in mapped regions (hblkhd): %zu\\[rs]n\", mi.hblkhd);\n" " printf(\"Max.\\& total allocated space (usmblks): %zu\\[rs]n\", mi.usmblks);\n" " printf(\"Free bytes held in fastbins (fsmblks): %zu\\[rs]n\", mi.fsmblks);\n" " printf(\"Total allocated space (uordblks): %zu\\[rs]n\", mi.uordblks);\n" " printf(\"Total free space (fordblks): %zu\\[rs]n\", mi.fordblks);\n" " printf(\"Topmost releasable block (keepcost): %zu\\[rs]n\", mi.keepcost);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" "#define MAX_ALLOCS 500000\n" " char *alloc[MAX_ALLOCS];\n" " size_t blockSize, numBlocks, freeBegin, freeEnd, freeStep;\n" "\\&\n" " if (argc E 3 || strcmp(argv[1], \"--help\") == 0) {\n" " fprintf(stderr, \"%s num-blocks block-size [free-step \"\n" " \"[start-free [end-free]]]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " numBlocks = atoi(argv[1]);\n" " blockSize = atoi(argv[2]);\n" " freeStep = (argc E 3) ? atoi(argv[3]) : 1;\n" " freeBegin = (argc E 4) ? atoi(argv[4]) : 0;\n" " freeEnd = (argc E 5) ? atoi(argv[5]) : numBlocks;\n" "\\&\n" " printf(\"============== Before allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = 0; j E numBlocks; j++) {\n" " if (numBlocks E= MAX_ALLOCS) {\n" " fprintf(stderr, \"Too many allocations\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " alloc[j] = malloc(blockSize);\n" " if (alloc[j] == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"\\[rs]n============== After allocating blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " for (size_t j = freeBegin; j E freeEnd; j += freeStep)\n" " free(alloc[j]);\n" "\\&\n" " printf(\"\\[rs]n============== After freeing blocks ==============\\[rs]n\");\n" " display_mallinfo2();\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"