# 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\n" "POT-Creation-Date: 2026-06-05 06:31+0200\n" "PO-Revision-Date: 2026-05-20 21:08+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 "mmap" msgstr "mmap" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-03-19" msgstr "19 مارس 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 "mmap, munmap - map or unmap files or devices into memory" msgstr "mmap، munmap - يخطط أو يفصل الملفات أو الأجهزة في الذاكرة" #. 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 Esys/mman.hE>\n" msgstr "B<#include Esys/mman.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "Bsize_t length;\n" "B< void >IB<[>IB<], size_t >IB<, int >IB<, int >IB<,>\n" "B< int >IB<, off_t >IB<);>\n" "Bsize_t length;\n" "B< void >IB<[>IB<], size_t >IB<);>\n" msgstr "" "Bsize_t length;\n" "B< void >IB<[>IB<], size_t >IB<, int >IB<, int >IB<,>\n" "B< int >IB<, off_t >IB<);>\n" "Bsize_t length;\n" "B< void >IB<[>IB<], size_t >IB<);>\n" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "See VERSIONS for information on feature test macro requirements." msgstr "انظر VERSIONS للحصول على معلومات حول متطلبات ماكرو اختبار الميزات." #. 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 "" "B() creates a new mapping in the virtual address space of the calling " "process. The starting address for the new mapping is specified in I. " "The I argument specifies the length of the mapping (which must be " "greater than 0)." msgstr "" "تُنشئ B() تخطيطًا جديدًا في مساحة العناوين الافتراضية للعملية المستدعِية. " "يُحدد العنوان الابتدائي للتخطيط الجديد في I. يُحدد المعامل I طول " "التخطيط (الذي يجب أن يكون أكبر من 0)." #. Before Linux 2.6.24, the address was rounded up to the next page #. boundary; since Linux 2.6.24, it is rounded down! #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is NULL, then the kernel chooses the (page-aligned) address at " "which to create the mapping; this is the most portable method of creating a " "new mapping. If I is not NULL, then the kernel takes it as a hint " "about where to place the mapping; on Linux, the kernel will pick a nearby " "page boundary (but always above or equal to the value specified by I) and attempt to create the mapping there. If another " "mapping already exists there, the kernel picks a new address that may or may " "not depend on the hint. The address of the new mapping is returned as the " "result of the call." msgstr "" "إذا كان I هو NULL، فإن النواة تختار العنوان (المحاذي للصفحة) الذي " "ستُنشئ التخطيط عنده؛ وهذه هي الطريقة الأكثر قابلية للنقل لإنشاء تخطيط جديد. " "أما إذا لم يكن I هو NULL، فإن النواة تعتبره تلميحًا حول مكان وضع " "التخطيط؛ وفي لينكس، ستختار النواة حدود صفحة قريبة (ولكن دائمًا أعلى من أو " "تساوي القيمة المحددة في I) وتحاول إنشاء التخطيط " "هناك. وإذا وجد تخطيط آخر هناك بالفعل، تختار النواة عنوانًا جديدًا قد يعتمد أو " "لا يعتمد على التلميح. ويُعاد عنوان التخطيط الجديد كناتج للاستدعاء." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The contents of a file mapping (as opposed to an anonymous mapping; see " "B below), are initialized using I bytes starting at " "offset I in the file (or other object) referred to by the file " "descriptor I. I must be a multiple of the page size as returned " "by I." msgstr "" "تُهيأ محتويات تخطيط الملف (على عكس التخطيط المجهول؛ انظر B " "أدناه)، باستخدام بايتات بطول I بدءًا من الإزاحة I في الملف " "(أو أي كائن آخر) المشار إليه بواسطة واصف الملف I. يجب أن تكون I " "مضاعفًا لحجم الصفحة كما يعيده I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "After the B() call has returned, the file descriptor, I, can be " "closed immediately without invalidating the mapping." msgstr "" "بعد عودة استدعاء B()، يمكن إغلاق واصف الملف، I، فورًا دون إبطال " "التخطيط." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument describes the desired memory protection of the mapping " "(and must not conflict with the open mode of the file). It is either " "B or the bitwise OR of one or more of the following flags:" msgstr "" "يصف المعامل I حماية الذاكرة المطلوبة للتخطيط (ويجب ألا يتعارض مع وضع " "فتح الملف). وهو إما B أو ناتج عملية OR الثنائية لعلامة أو أكثر من " "العلامات التالية:" #. 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 "Pages may be executed." 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 "Pages may be read." 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 "Pages may be written." 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 "Pages may not be accessed." msgstr "لا يمكن الوصول إلى الصفحات." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "The flags argument" msgstr "معامل العلامات (flags)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument determines whether updates to the mapping are visible " "to other processes mapping the same region, and whether updates are carried " "through to the underlying file. This behavior is determined by including " "exactly one of the following values in I:" msgstr "" "يحدد المعامل I ما إذا كانت التحديثات على التخطيط مرئية للعمليات " "الأخرى التي تخطط نفس المنطقة، وما إذا كانت التحديثات تُنقل إلى الملف الأساسي. " "ويُحدد هذا السلوك بتضمين قيمة واحدة فقط من القيم التالية في I:" #. 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 "" "Share this mapping. Updates to the mapping are visible to other processes " "mapping the same region, and (in the case of file-backed mappings) are " "carried through to the underlying file. (To precisely control when updates " "are carried through to the underlying file requires the use of 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 "B (since Linux 4.15)" msgstr "B (منذ لينكس 4.15)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This flag provides the same behavior as B except that " "B mappings ignore unknown flags in I. By contrast, when " "creating a mapping using B, the kernel verifies all " "passed flags are known and fails the mapping with the error B " "for unknown flags. This mapping type is also required to be able to use " "some mapping flags (e.g., B)." msgstr "" "توفر هذه العلامة نفس سلوك B باستثناء أن تخطيطات B " "تتجاهل العلامات غير المعروفة في I. وبالمقابل، عند إنشاء تخطيط " "باستخدام B، تتحقق النواة من أن جميع العلامات الممرة " "معروفة وتُفشل التخطيط بالخطأ B للعلامات غير المعروفة. كما أن هذا " "النوع من التخطيط مطلوب للتمكن من استخدام بعض علامات التخطيط (مثل " "B)." #. 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 "" "Create a private copy-on-write mapping. Updates to the mapping are not " "visible to other processes mapping the same file, and are not carried " "through to the underlying file. It is unspecified whether changes made to " "the file after the B() call are visible in the mapped region." msgstr "" "إنشاء تخطيط خاص بنظام النسخ عند الكتابة (copy-on-write). لا تكون التحديثات " "على التخطيط مرئية للعمليات الأخرى التي تخطط نفس الملف، ولا تُنقل إلى الملف " "الأساسي. وغير محدد ما إذا كانت التغييرات التي أُجريت على الملف بعد استدعاء " "B() ستكون مرئية في المنطقة المخططة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Both B and B are described in POSIX.1-2001 and " "POSIX.1-2008. B is a Linux extension." msgstr "" "كلا العلامتين B و B موصوفتان في POSIX.1-2001 و " "POSIX.1-2008. أما B فهي امتداد للينكس." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In addition, zero or more of the following values can be ORed in I:" msgstr "" "بالإضافة إلى ذلك، يمكن إجراء عملية OR لصفر أو أكثر من القيم التالية في " "I:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.4.20, 2.6)" msgstr "B (منذ لينكس 2.4.20، 2.6)" #. See http://lwn.net/Articles/294642 "Tangled up in threads", 19 Aug 08 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Put the mapping into the first 2 Gigabytes of the process address space. " "This flag is supported only on x86-64, for 64-bit programs. It was added to " "allow thread stacks to be allocated somewhere in the first 2\\ GB of memory, " "so as to improve context-switch performance on some early 64-bit " "processors. Modern x86-64 processors no longer have this performance " "problem, so use of this flag is not required on those systems. The " "B flag is ignored when B is set." msgstr "" "وضع التخطيط في أول 2 جيجابايت من مساحة عناوين العملية. تدعم هذه العلامة فقط " "على معمارية x86-64، للبرامج ذات 64 بت. أُضيفت للسماح بتخصيص كدسات الخيوط في " "مكان ما ضمن أول 2 جيجابايت من الذاكرة، لتحسين أداء تبديل السياق في بعض " "معالجات 64 بت المبكرة. لم تعد معالجات x86-64 الحديثة تعاني من مشكلة الأداء " "هذه، لذا لا يشترط استخدام هذه العلامة في تلك الأنظمة. تُتجاهل العلامة " "B عند ضبط B." #. 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 "" "Synonym for B; provided for compatibility with other " "implementations." msgstr "مرادف لـ B؛ توفر للتوافق مع التنفيذات الأخرى." #. 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" #. See the pgoff overflow check in do_mmap(). #. See the offset check in sys_mmap in arch/x86/kernel/sys_x86_64.c. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The mapping is not backed by any file; its contents are initialized to " "zero. The I argument is ignored; however, some implementations require " "I to be -1 if B (or B) is specified, and " "portable applications should ensure this. The I argument should be " "zero. Support for B in conjunction with B was " "added in Linux 2.4." msgstr "" "التخطيط غير مدعوم بأي ملف؛ وتُهيأ محتوياته إلى الصفر. يُتجاهل المعامل I؛ " "ومع ذلك، تتطلب بعض التنفيذات أن يكون I مساويًا لـ -1 إذا حُددت " "B (أو B)، ويجب أن تضمن التطبيقات القابلة للنقل ذلك. " "يجب أن يكون المعامل I صفرًا. أُضيفت دعم B مع " "B في لينكس 2.4." #. 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" #. Introduced in 1.1.36, removed in 1.3.24. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This flag is ignored. (Long ago\\[em]Linux 2.0 and earlier\\[em]it signaled " "that attempts to write to the underlying file should fail with B. " "But this was a source of denial-of-service attacks.)" msgstr "" "تُتجاهل هذه العلامة. (منذ زمن بعيد -لينكس 2.0 وما قبله- كانت تشير إلى أن " "محاولات الكتابة إلى الملف الأساسي يجب أن تفشل بالخطأ B. ولكن هذا " "كان مصدرًا لهجمات حجب الخدمة)." #. 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" #. #-#-#-#-# archlinux: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# debian-trixie: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# debian-unstable: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# fedora-44: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# fedora-rawhide: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# mageia-cauldron: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# opensuse-leap-16-1: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #. #-#-#-#-# opensuse-tumbleweed: mmap.2.pot (PACKAGE VERSION) #-#-#-#-# #. Introduced in 1.1.38, removed in 1.3.24. Flag tested in proc_follow_link. #. (Long ago, it signaled that the underlying file is an executable. #. However, that information was not really used anywhere.) #. Linus talked about DOS related to MAP_EXECUTABLE, but he was thinking of #. MAP_DENYWRITE? #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This flag is ignored." 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" #. On some systems, this was required as the opposite of #. MAP_ANONYMOUS -- mtk, 1 May 2007 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Compatibility flag. Ignored." 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 "" "Don't interpret I as a hint: place the mapping at exactly that " "address. I must be suitably aligned: for most architectures a " "multiple of the page size is sufficient; however, some architectures may " "impose additional restrictions. If the memory region specified by I " "and I overlaps pages of any existing mapping(s), then the overlapped " "part of the existing mapping(s) will be discarded. If the specified address " "cannot be used, B() will fail." msgstr "" "لا تفسر I كتلميح: ضع التخطيط عند هذا العنوان تمامًا. يجب محاذاة I " "بشكل مناسب: في معظم المعماريات يكفي أن يكون مضاعفًا لحجم الصفحة؛ ومع ذلك، قد " "تفرض بعض المعماريات قيودًا إضافية. إذا كانت منطقة الذاكرة المحددة بواسطة " "I و I تتداخل مع صفحات أي تخطيط (أو تخطيطات) موجودة، فسيُهمل " "الجزء المتداخل من التخطيط (التخطيطات) الموجودة. إذا تعذر استخدام العنوان " "المحدد، فستفشل B()." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Software that aspires to be portable should use the B flag with " "care, keeping in mind that the exact layout of a process's memory mappings " "is allowed to change significantly between Linux versions, C library " "versions, and operating system releases. I" msgstr "" "يجب على البرمجيات التي تطمح لأن تكون قابلة للنقل استخدام العلامة " "B بحذر، مع الأخذ في الاعتبار أنه يُسمح بتغيير المخطط الدقيق " "لتخطيطات ذاكرة العملية بشكل كبير بين إصدارات لينكس، وإصدارات مكتبة سي، " "وإصدارات أنظمة التشغيل. I<اقرأ بعناية مناقشة هذه العلامة في قسم الملاحظات " "(NOTES)!>" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.17)" msgstr "B (منذ لينكس 4.17)" #. commit a4ff8e8620d3f4f50ac4b41e8067b7d395056843 #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "This flag provides behavior that is similar to B with respect to " "the I enforcement, but differs in that B never " "clobbers a preexisting mapped range. If the requested range would collide " "with an existing mapping, then this call fails with the error B " "This flag can therefore be used as a way to atomically (with respect to " "other threads) attempt to map an address range: one thread will succeed; " "all others will report failure." msgstr "" "توفر هذه العلامة سلوكًا مشابهًا لـ B فيما يتعلق بفرض العنوان " "I، ولكنها تختلف في أن B لا تمسح أبدًا أي نطاق مخطط " "مسبقًا. إذا اصطدم النطاق المطلوب مع تخطيط موجود، فإن هذا الاستدعاء يفشل " "بالخطأ B. لذا يمكن استخدام هذه العلامة كوسيلة لمحاولة تخطيط نطاق " "عناوين بشكل ذري (فيما يتعلق بالخيوط الأخرى): سينجح خيط واحد؛ وستبلغ جميع " "الخيوط الأخرى عن الفشل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that older kernels which do not recognize the B " "flag will typically (upon detecting a collision with a preexisting mapping) " "fall back to a \\[lq]non-B\\[rq] type of behavior: they will " "return an address that is different from the requested address. Therefore, " "backward-compatible software should check the returned address against the " "requested address." msgstr "" "لاحظ أن النوى القديمة التي لا تتعرف على العلامة B " "ستتراجع عادةً (عند اكتشاف تصادم مع تخطيط موجود مسبقًا) إلى سلوك من نوع \"غير " "B\": حيث ستعيد عنوانًا يختلف عن العنوان المطلوب. لذا، يجب على " "البرمجيات المتوافقة مع الإصدارات السابقة التحقق من العنوان المعاد ومقارنته " "بالعنوان المطلوب." #. 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-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This flag is used for stacks. It indicates to the kernel virtual memory " "system that the mapping should extend downward in memory. Touching an " "address in the \"guard\" page below the mapping will cause the mapping to " "grow by a page. This growth can be repeated until the mapping grows to " "within a page of the high end of the next lower mapping, at which point " "touching the \"guard\" page will result in a B signal." msgstr "" "يُستخدم هذا العلامة في المكدسات. وهي تشير إلى نظام الذاكرة الافتراضية في " "النواة بأن التعيين يجب أن يمتد لأسفل في الذاكرة. وسيؤدي الوصول إلى عنوان في " "صفحة ”الحماية“ الموجودة أسفل التعيين إلى توسيع التعيين بمقدار صفحة واحدة. " "ويمكن تكرار هذا التوسيع حتى يصل التعيين إلى مسافة صفحة واحدة من الطرف الأعلى " "للتعيين الأدنى التالي، وعند هذه النقطة سيؤدي الوصول إلى صفحة ”الحماية“ إلى " "إصدار إشارة B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.6.32)" msgstr "B (منذ لينكس 2.6.32)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Allocate the mapping using \"huge\" pages. See the Linux kernel source file " "I for further information, as " "well as NOTES, below." msgstr "" "تخصيص التخطيط باستخدام الصفحات \"الضخمة\". انظر ملف مصدر نواة لينكس " "I لمزيد من المعلومات، بالإضافة " "إلى قسم الملاحظات (NOTES) أدناه." #. 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: TQ #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 3.8)" msgstr "B (منذ لينكس 3.8)" #. See https://lwn.net/Articles/533499/ #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Used in conjunction with B to select alternative hugetlb page " "sizes (respectively, 2\\ MB and 1\\ GB) on systems that support multiple " "hugetlb page sizes." msgstr "" "تُستخدم مع B لاختيار أحجام بديلة لصفحات hugetlb (على التوالي، 2 " "ميجابايت و 1 جيجابايت) في الأنظمة التي تدعم أحجامًا متعددة لصفحات hugetlb." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "More generally, the desired huge page size can be configured by encoding the " "base-2 logarithm of the desired page size in the six bits at the offset " "B. (A value of zero in this bit field provides the default " "huge page size; the default huge page size can be discovered via the " "I field exposed by I.) Thus, the above two " "constants are defined as:" msgstr "" "بشكل عام، يمكن ضبط حجم الصفحة الضخمة المطلوب بترميز اللوغاريتم للأساس 2 لحجم " "الصفحة المطلوب في البتات الستة عند الإزاحة B. (قيمة الصفر في " "حقل البتات هذا توفر حجم الصفحة الضخمة المبدئي؛ يمكن اكتشاف حجم الصفحة الضخمة " "المبدئي عبر حقل I المعروض في I). وبذلك، يُعرف " "الثابتان المذكوران أعلاه كالتالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#define MAP_HUGE_2MB (21 EE MAP_HUGE_SHIFT)\n" "#define MAP_HUGE_1GB (30 EE MAP_HUGE_SHIFT)\n" msgstr "" "#define MAP_HUGE_2MB (21 EE MAP_HUGE_SHIFT)\n" "#define MAP_HUGE_1GB (30 EE MAP_HUGE_SHIFT)\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The range of huge page sizes that are supported by the system can be " "discovered by listing the subdirectories in I." msgstr "" "يمكن اكتشاف نطاق أحجام الصفحات الضخمة التي يدعمها النظام بسرد الأدلة الفرعية " "في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.5.37)" msgstr "B (منذ لينكس 2.5.37)" #. If set, the mapped pages will not be swapped out. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Mark the mapped region to be locked in the same way as B(2). This " "implementation will try to populate (prefault) the whole range but the " "B() call doesn't fail with B if this fails. Therefore major " "faults might happen later on. So the semantic is not as strong as " "B(2). One should use B() plus B(2) when major faults " "are not acceptable after the initialization of the mapping. The " "B flag is ignored in older kernels." msgstr "" "تعليم المنطقة المخططة لتُقفل بنفس طريقة B(2). سيحاول هذا التنفيذ ملء " "النطاق بالكامل مسبقًا ولكن لا يفشل استدعاء B() بالخطأ B إذا فشل " "ذلك. لذا قد تحدث أخطاء جسيمة (major faults) لاحقًا. وبذلك فإن الدلالة ليست " "بقوة B(2). يجب استخدام B() بالإضافة لـ B(2) عندما لا " "تكون الأخطاء الجسيمة مقبولة بعد تهيئة التخطيط. تُتجاهل العلامة B " "في النوى القديمة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.5.46)" msgstr "B (منذ لينكس 2.5.46)" #. commit 54cb8821de07f2ffcd28c380ce9b93d5784b40d7 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This flag is meaningful only in conjunction with B. Don't " "perform read-ahead: create page tables entries only for pages that are " "already present in RAM. Since Linux 2.6.23, this flag causes " "B to do nothing. One day, the combination of B " "and B may be reimplemented." msgstr "" "هذه العلامة ذات معنى فقط عند استخدامها مع B. لا تقم بالقراءة " "المسبقة: أنشئ مدخلات جداول الصفحات فقط للصفحات الموجودة بالفعل في RAM. منذ " "لينكس 2.6.23، تجعل هذه العلامة B لا تفعل شيئًا. قد يُعاد تنفيذ " "الجمع بين B و B يومًا ما." #. 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Do not reserve swap space for this mapping. When swap space is reserved, " "one has the guarantee that it is possible to modify the mapping. When swap " "space is not reserved one might get B upon a write if no physical " "memory is available. See also the discussion of the file I in B(5). Before Linux 2.6, this flag had " "effect only for private writable mappings." msgstr "" "عدم حجز مساحة تبديل (swap) لهذا التخطيط. عند حجز مساحة التبديل، يكون هناك " "ضمان بإمكانية تعديل التخطيط. وعندما لا تُحجز مساحة التبديل، قد تحصل على إشارة " "B عند الكتابة إذا لم تتوفر ذاكرة فيزيائية. انظر أيضًا مناقشة الملف " "I في B(5). قبل لينكس 2.6، كان " "لهذه العلامة تأثير فقط على التخطيطات الخاصة القابلة للكتابة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.5.46)" msgstr "B (منذ لينكس 2.5.46)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Populate (prefault) page tables for a mapping. For a file mapping, this " "causes read-ahead on the file. This will help to reduce blocking on page " "faults later. The B() call doesn't fail if the mapping cannot be " "populated (for example, due to limitations on the number of mapped huge " "pages when using B). Support for B in " "conjunction with private mappings was added in Linux 2.6.23." msgstr "" "ملء (خطأ مسبق) جداول الصفحات للتخطيط. بالنسبة لتخطيط الملفات، يؤدي هذا " "للقراءة المسبقة للملف. سيساعد هذا في تقليل الحجب بسبب أخطاء الصفحات لاحقًا. " "لا يفشل استدعاء B() إذا تعذر ملء التخطيط (على سبيل المثال، بسبب قيود " "على عدد الصفحات الضخمة المخططة عند استخدام B). أُضيفت دعم " "B مع التخطيطات الخاصة في لينكس 2.6.23." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.6.27)" msgstr "B (منذ لينكس 2.6.27)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Allocate the mapping at an address suitable for a process or thread stack." msgstr "تخصيص التخطيط عند عنوان مناسب لكدسة عملية أو خيط." #. See http://lwn.net/Articles/294642 "Tangled up in threads", 19 Aug 08 #. commit cd98a04a59e2f94fa64d5bf1e26498d27427d5e7 #. http://thread.gmane.org/gmane.linux.kernel/720412 #. "pthread_create() slow for many threads; also time to revisit 64b #. context switch optimization?" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This flag is currently a no-op on Linux. However, by employing this flag, " "applications can ensure that they transparently obtain support if the flag " "is implemented in the future. Thus, it is used in the glibc threading " "implementation to allow for the fact that some architectures may (later) " "require special treatment for stack allocations. A further reason to employ " "this flag is portability: B exists (and has an effect) on some " "other systems (e.g., some of the BSDs)." msgstr "" "هذه العلامة حاليًا لا تفعل شيئًا في لينكس. ومع ذلك، باستخدام هذه العلامة، يمكن " "للتطبيقات ضمان حصولها بشكل شفاف على الدعم إذا نُفذت العلامة في المستقبل. " "وبذلك، تُستخدم في تنفيذ الخيوط في glibc لمراعاة حقيقة أن بعض المعماريات قد " "تتطلب (لاحقًا) معاملة خاصة لتخصيصات الكدسة. سبب آخر لاستخدام هذه العلامة هو " "قابلية النقل: فالعلامة B موجودة (ولها تأثير) في بعض الأنظمة " "الأخرى (مثل بعض أنظمة BSD)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 4.15)" msgstr "B (منذ لينكس 4.15)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This flag is available only with the B mapping type; " "mappings of type B will silently ignore this flag. This flag is " "supported only for files supporting DAX (direct mapping of persistent " "memory). For other files, creating a mapping with this flag results in an " "B error." msgstr "" "تتوفر هذه العلامة فقط مع نوع التخطيط B؛ وستتجاهل " "التخطيطات من نوع B هذه العلامة بصمت. تُدعم هذه العلامة فقط " "للملفات التي تدعم DAX (التخطيط المباشر للذاكرة المستديمة). أما للملفات " "الأخرى، فإن إنشاء تخطيط بهذه العلامة يؤدي لخطأ B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Shared file mappings with this flag provide the guarantee that while some " "memory is mapped writable in the address space of the process, it will be " "visible in the same file at the same offset even after the system crashes or " "is rebooted. In conjunction with the use of appropriate CPU instructions, " "this provides users of such mappings with a more efficient way of making " "data modifications persistent." msgstr "" "توفر تخطيطات الملفات المشتركة بهذه العلامة ضمانًا بأنه بينما تكون بعض الذاكرة " "مخططة كقابلة للكتابة في مساحة عناوين العملية، فإنها ستكون مرئية في نفس الملف " "عند نفس الإزاحة حتى بعد تعطل النظام أو إعادة تشغيله. وبالتزامن مع استخدام " "تعليمات CPU المناسبة، يوفر هذا لمستخدمي هذه التخطيطات طريقة أكثر كفاءة لجعل " "تعديلات البيانات مستديمة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 2.6.33)" msgstr "B (منذ لينكس 2.6.33)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Don't clear anonymous pages. This flag is intended to improve performance " "on embedded devices. This flag is honored only if the kernel was configured " "with the B option. Because of the security " "implications, that option is normally enabled only on embedded devices (i." "e., devices where one has complete control of the contents of user memory)." msgstr "" "عدم مسح الصفحات المجهولة. تهدف هذه العلامة لتحسين الأداء في الأجهزة المدمجة. " "لا تُحترم هذه العلامة إلا إذا ضُبطت النواة بخيار " "B. وبسبب الآثار الأمنية، لا يُفعل هذا الخيار " "عادةً إلا في الأجهزة المدمجة (أي الأجهزة التي يمتلك فيها الشخص تحكمًا كاملاً في " "محتويات ذاكرة المستخدم)." #. FIXME . for later review when Issue 8 is one day released... #. POSIX may add MAP_ANON in the future #. http://austingroupbugs.net/tag_view_page.php?tag_id=8 #. http://austingroupbugs.net/view.php?id=850 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Of the above flags, only B is specified in POSIX.1-2001 and " "POSIX.1-2008. However, most systems also support B (or its " "synonym B)." msgstr "" "من بين العلامات المذكورة أعلاه، حُددت B فقط في POSIX.1-2001 و " "POSIX.1-2008. ومع ذلك، تدعم معظم الأنظمة أيضًا B (أو مرادفها " "B)." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "munmap()" msgstr "munmap()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call deletes the mappings for the specified address " "range, and causes further references to addresses within the range to " "generate invalid memory references. The region is also automatically " "unmapped when the process is terminated. On the other hand, closing the " "file descriptor does not unmap the region." msgstr "" "يحذف استدعاء النظام B() التخطيطات لنطاق العناوين المحدد، ويؤدي إلى " "أن تولد المراجع اللاحقة للعناوين داخل النطاق مراجع ذاكرة غير صالحة. كما يُفصل " "النطاق آليًا عند إنهاء العملية. ومن ناحية أخرى، فإن إغلاق واصف الملف لا يفصل " "النطاق." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The address I must be a multiple of the page size (but I need " "not be). All pages containing a part of the indicated range are unmapped, " "and subsequent references to these pages will generate B. It is " "not an error if the indicated range does not contain any mapped pages." msgstr "" "يجب أن يكون العنوان I مضاعفًا لحجم الصفحة (ولكن I لا يشترط " "ذلك). تُفصل جميع الصفحات التي تحتوي على جزء من النطاق المشار إليه، وستولد " "المراجع اللاحقة لهذه الصفحات إشارة B. ولا يعتبر خطأً إذا لم يحتوي " "النطاق المشار إليه على أي صفحات مخططة." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns a pointer to the mapped area. On error, the " "value B (that is, I<(void\\ *)\\ -1>) is returned, and I " "is set to indicate the error." msgstr "" "عند النجاح، تعيد B() مؤشرًا إلى المنطقة المخططة. وعند حدوث خطأ، تُعاد " "القيمة B (أي I<(void\\ *)\\ -1>)، وتُضبط I للإشارة إلى " "الخطأ." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns 0. On failure, it returns -1, and I " "is set to indicate the error (probably to B)." msgstr "" "عند النجاح، تعيد الدالة B() القيمة 0. وعند الفشل، تعيد -1، وتُضبط " "قيمة I لتبين الخطأ (غالبًا إلى B)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" 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 "" "A file descriptor refers to a non-regular file. Or a file mapping was " "requested, but I is not open for reading. Or B was " "requested and B is set, but I is not open in read/write " "(B) mode. Or B is set, but the file is append-only." msgstr "" "واصف الملف يشير إلى ملف غير منتظم. أو طُلب تخطيط ملف، ولكن I ليس مفتوحًا " "للقراءة. أو طُلب B وضُبطت B، ولكن I ليس مفتوحًا في " "وضع القراءة/الكتابة (B). أو ضُبطت B، ولكن الملف مخصص " "للإلحاق فقط." #. 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 "" "The file has been locked, or too much memory has been locked (see " "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 "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is not a valid file descriptor (and B was not set)." msgstr "I ليس واصف ملف صالحًا (ولم تُضبط B)." #. 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 "" "B was specified in I, and the range covered by " "I and I clashes with an existing mapping." msgstr "" "حُددت الراية B في I، ويتعارض النطاق الذي يغطيه " "I و I مع تخطيط موجود." #. 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 "" "We don't like I, I, or I (e.g., they are too large, or " "not aligned on a page boundary)." msgstr "" "قيم I أو I أو I غير مقبولة (على سبيل المثال، هي كبيرة " "جدًا، أو غير محاذية لحدود الصفحة)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "(since Linux 2.6.12) I was 0." msgstr "(منذ لينكس 2.6.12) كانت قيمة I هي 0." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I contained none of B, B, or " "B." msgstr "" "لم تتضمن I أيًا من B أو B أو " "B." #. 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" #. This is for shared anonymous segments #. [2.6.7] shmem_zero_setup()-->shmem_file_setup()-->get_empty_filp() #. .TP #. .B ENOEXEC #. A file could not be mapped for reading. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The system-wide limit on the total number of open files has been reached." 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 "" "The underlying filesystem of the specified file does not support memory " "mapping." 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 "No memory is available." msgstr "لا توجد ذاكرة متاحة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The process's maximum number of mappings would have been exceeded. This " "error can also occur for B(), when unmapping a region in the middle " "of an existing mapping, since this results in two smaller mappings on either " "side of the region being unmapped." msgstr "" "تجاوز العملية للعدد الأقصى من التخطيطات. يمكن أن يحدث هذا الخطأ أيضًا مع " "B() عند إلغاء تخطيط منطقة في منتصف تخطيط موجود، لأن هذا ينتج عنه " "تخطيطان أصغر على جانبي المنطقة التي أُلغي تخطيطها." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "(since Linux 4.7) The process's B limit, described in " "B(2), would have been exceeded." msgstr "" "(منذ لينكس 4.7) سيتم تجاوز حد B للعملية، الموصوف في " "B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "We don't like I, because it exceeds the virtual address space of the " "CPU." msgstr "رُفض العنوان I لأنه يتجاوز فضاء العناوين الافتراضية للمعالج." #. 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 "" "On 32-bit architecture together with the large file extension (i.e., using " "64-bit I): the number of pages used for I plus number of " "pages used for I would overflow I (32 bits)." msgstr "" "في معمارية 32 بت مع امتداد الملفات الكبيرة (أي باستخدام I ذي 64 بت): " "عدد الصفحات المستخدمة لـ I بالإضافة لعدد الصفحات المستخدمة لـ " "I سيؤدي لفيض في I (32 بت)." #. 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" #. (Since Linux 2.4.25 / Linux 2.6.0.) #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument asks for B but the mapped area belongs to a " "file on a filesystem that was mounted no-exec." msgstr "" "تطلب المعطاة I الصلاحية B لكن المنطقة المخططة تنتمي إلى ملف " "في نظام ملفات وُصل بخيار منع التنفيذ no-exec." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The operation was prevented by a file seal; see B(2)." msgstr "مُنعت العملية بواسطة ختم ملف؛ انظر B(2)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The B flag was specified, but the caller was not privileged " "(did not have the B capability) and is not a member of the " "I group; see the description of I in B(5)." msgstr "" "حُددت الراية B، لكن المستدعِي B ليس لديه امتيازات (لا " "يملك القدرة B) وليس عضوًا في المجموعة I؛ " "انظر وصف I في B(5)." #. 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 "" "B was set but the object specified by I is open for " "writing." msgstr "ضُبطت B ولكن الكائن المحدد بواسطة I مفتوح للكتابة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Use of a mapped region can result in these signals:" 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 "Attempted write into a region mapped as read-only." 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 "" "Attempted access to a page of the buffer that lies beyond the end of the " "mapped file. For an explanation of the treatment of the bytes in the page " "that corresponds to the end of a mapped file that is not a multiple of the " "page size, see NOTES." msgstr "" "محاولة الوصول إلى صفحة في المخزن المؤقت تقع خارج نهاية الملف المخطط. للاطلاع " "على شرح لمعاملة البايتات في الصفحة التي تقابل نهاية ملف مخطط لا يمثل طوله " "مضاعفًا لحجم الصفحة، انظر قسم ملاحظات NOTES." #. 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-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "الإصدارات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On some hardware architectures (e.g., i386), B implies " "B. It is architecture dependent whether B implies " "B or not. Portable programs should always set B if " "they intend to execute code in the new mapping." msgstr "" "في بعض معماريات العتاد (مثل i386)، تتضمن الصلاحية B ضمنيًا " "B. ويعتمد الأمر على المعمارية فيما إذا كانت B تتضمن " "B أم لا. يجب على البرامج المنقولة تعيين B دائمًا إذا " "كانت تنوي تنفيذ كود في التخطيط الجديد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The portable way to create a mapping is to specify I as 0 (NULL), and " "omit B from I. In this case, the system chooses the " "address for the mapping; the address is chosen so as not to conflict with " "any existing mapping, and will not be 0. If the B flag is " "specified, and I is 0 (NULL), then the mapped address will be 0 (NULL)." msgstr "" "الطريقة المنقولة لإنشاء تخطيط هي تحديد I بقيمة 0 (NULL)، وحذف " "B من I. في هذه الحالة، يختار النظام عنوان التخطيط؛ ويُختار " "العنوان بحيث لا يتعارض مع أي تخطيط موجود، ولن يكون 0. إذا حُددت الراية " "B وكان I هو 0 (NULL)، فسيكون العنوان المخطط 0 (NULL)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Certain I constants are defined only if suitable feature test macros " "are defined (possibly by default): B<_DEFAULT_SOURCE> with glibc 2.19 or " "later; or B<_BSD_SOURCE> or B<_SVID_SOURCE> in glibc 2.19 and earlier. " "(Employing B<_GNU_SOURCE> also suffices, and requiring that macro " "specifically would have been more logical, since these flags are all Linux-" "specific.) The relevant flags are: B, B (and the " "synonym B), B, B, B, " "B, B, B, B, " "B, B, and B." msgstr "" "تُعرف ثوابت معينة في I فقط إذا عُرفت وحدات ماكرو لاختبار الميزات " "المناسبة (ربما بشكل مبدئي آلي): B<_DEFAULT_SOURCE> مع glibc 2.19 أو أحدث؛ أو " "B<_BSD_SOURCE> أو B<_SVID_SOURCE> في glibc 2.19 وما قبله. (استخدام " "B<_GNU_SOURCE> يكفي أيضًا، وكان طلب هذا الماكرو تحديدًا أكثر منطقية، لأن هذه " "الرايات كلها خاصة بلينكس). الرايات ذات الصلة هي: B، و " "B (ومرادفها B)، و B، و " "B، و B، و B، و B، و " "B، و B، و B، و B، و " "B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "C library/kernel differences" msgstr "الاختلافات بين مكتبة C والنواة" #. Since around glibc 2.1/2.2, depending on the platform. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This page describes the interface provided by the glibc B() wrapper " "function. Originally, this function invoked a system call of the same " "name. Since Linux 2.4, that system call has been superseded by B(2), " "and nowadays the glibc B() wrapper function invokes B(2) with " "a suitably adjusted value for I." msgstr "" "تصف هذه الصفحة الواجهة التي توفرها دالة الغلاف B() في glibc. في الأصل، " "كانت هذه الدالة تستدعي نداء نظام بنفس الاسم. ومنذ لينكس 2.4، حل نداء النظام " "B(2) محل هذا النداء، وحاليًا تستدعي دالة غلاف B() في glibc نداء " "B(2) مع قيمة معدلة لـ I." #. 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "POSIX.1-2024." msgstr "POSIX.1-2024." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. SVr4 documents additional error codes ENXIO and ENODEV. #. SUSv2 documents additional error codes EMFILE and EOVERFLOW. #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "SVr4, 4.4BSD, SUSv1, POSIX.1-1996." msgstr "SVr4, 4.4BSD, SUSv1, POSIX.1-1996." #. POSIX.1-2001: It shall be defined to -1 or 0 or 200112L. #. -1: unavailable, 0: ask using sysconf(). #. glibc defines it to 1. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On POSIX systems on which B(), B(2), and B() are " "available, B<_POSIX_MAPPED_FILES> is defined in Iunistd.hE> to a " "value greater than 0. (See also B(3).)" msgstr "" "في أنظمة POSIX التي تتوفر فيها B() و B(2) و B()، يُعرَّف " "B<_POSIX_MAPPED_FILES> في Iunistd.hE> بقيمة أكبر من 0. (انظر أيضًا " "B(3))." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Memory mapped by B() is preserved across B(2), with the same " "attributes." msgstr "تُحفظ الذاكرة المخططة بواسطة B() عبر B(2)، بنفس السمات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A file is mapped in multiples of the page size. For a file that is not a " "multiple of the page size, the remaining bytes in the partial page at the " "end of the mapping are zeroed when mapped, and modifications to that region " "are not written out to the file. The effect of changing the size of the " "underlying file of a mapping on the pages that correspond to added or " "removed regions of the file is unspecified." msgstr "" "يُخطط الملف بمضاعفات حجم الصفحة. بالنسبة للملف الذي لا يمثل طوله مضاعفًا لحجم " "الصفحة، تُصفّر البايتات المتبقية في الصفحة الجزئية في نهاية التخطيط عند " "التخطيط، ولا تُكتب التعديلات على تلك المنطقة في الملف. إن تأثير تغيير حجم " "الملف الأساسي للتخطيط على الصفحات التي تقابل المناطق المضافة أو المزالة من " "الملف غير محدد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An application can determine which pages of a mapping are currently resident " "in the buffer/page cache using B(2)." msgstr "" "يمكن للتطبيق تحديد الصفحات من التخطيط الموجودة حاليًا في خبيئة Cache الصفحة/" "المخزن المؤقت باستخدام B(2)." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Using MAP_FIXED safely" msgstr "استخدام MAP_FIXED بأمان" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The only safe use for B is where the address range specified by " "I and I was previously reserved using another mapping; " "otherwise, the use of B is hazardous because it forcibly removes " "preexisting mappings, making it easy for a multithreaded process to corrupt " "its own address space." msgstr "" "الاستخدام الآمن الوحيد لـ B هو عندما يكون نطاق العناوين المحدد " "بواسطة I و I قد حُجز مسبقًا باستخدام تخطيط آخر؛ وبخلاف ذلك، فإن " "استخدام B يعد خطرًا لأنه يزيل التخطيطات الموجودة مسبقًا قسرًا، مما " "يسهل على العملية متعددة الخيوط إفساد فضاء عناوينها الخاص." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "For example, suppose that thread A looks through IpidI in " "order to locate an unused address range that it can map using B, " "while thread B simultaneously acquires part or all of that same address " "range. When thread A subsequently employs B, it will " "effectively clobber the mapping that thread B created. In this scenario, " "thread B need not create a mapping directly; simply making a library call " "that, internally, uses B(3) to load some other shared library, will " "suffice. The B(3) call will map the library into the process's " "address space. Furthermore, almost any library call may be implemented in a " "way that adds memory mappings to the address space, either with this " "technique, or by simply allocating memory. Examples include B(2), " "B(3), B(3), and the PAM libraries E<.UR http:\\://" "www.linux-pam.org> E<.UE .>" msgstr "" "على سبيل المثال، افترض أن الخيط A يبحث في IpidI لتحديد موقع " "نطاق عناوين غير مستخدم يمكنه تخطيطه باستخدام B، بينما يحصل الخيط " "B في الوقت نفسه على جزء من نفس نطاق العناوين هذا أو كله. عندما يستخدم الخيط " "A لاحقًا B، فإنه سيمحو فعليًا التخطيط الذي أنشأه الخيط B. في " "هذا السيناريو، لا يحتاج الخيط B لإنشاء تخطيط مباشرة؛ إذ يكفي مجرد إجراء نداء " "لمكتبة تستخدم داخليًا B(3) لتحميل مكتبة مشتركة أخرى. سيقوم نداء " "B(3) بتخطيط المكتبة في فضاء عناوين العملية. علاوة على ذلك، يمكن " "تنفيذ أي نداء مكتبة تقريبًا بطريقة تضيف تخطيطات ذاكرة إلى فضاء العناوين، إما " "بهذه التقنية أو بمجرد تخصيص الذاكرة. تشمل الأمثلة B(2)، و B(3)، " "و B(3)، ومكتبات PAM E<.UR http:\\://www.linux-pam.org> E<." "UE .>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Since Linux 4.17, a multithreaded program can use the B " "flag to avoid the hazard described above when attempting to create a mapping " "at a fixed address that has not been reserved by a preexisting mapping." msgstr "" "منذ لينكس 4.17، يمكن لبرنامج متعدد الخيوط استخدام الراية " "B لتجنب الخطر الموصوف أعلاه عند محاولة إنشاء تخطيط في " "عنوان ثابت لم يُحجز بواسطة تخطيط موجود مسبقًا." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Timestamps changes for file-backed mappings" msgstr "تغييرات الطوابع الزمنية للتخطيطات المدعومة بملفات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For file-backed mappings, the I field for the mapped file may be " "updated at any time between the B() and the corresponding unmapping; " "the first reference to a mapped page will update the field if it has not " "been already." msgstr "" "بالنسبة للتخطيطات المدعومة بملفات، قد يُحدث الحقل I للملف المخطط في " "أي وقت بين B() وإلغاء التخطيط المقابل؛ وسيقوم أول وصول لصفحة مخططة " "بتحديث الحقل إذا لم يكن قد حُدث بالفعل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I and I field for a file mapped with B " "and B will be updated after a write to the mapped region, and " "before a subsequent B(2) with the B or B flag, if " "one occurs." msgstr "" "سيُحدث الحقلان I و I لملف مخطط بـ B و " "B بعد الكتابة إلى المنطقة المخططة، وقبل نداء B(2) لاحق " "باستخدام الراية B أو B، إن وجد." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Huge page (Huge TLB) mappings" msgstr "تخطيطات الصفحات الضخمة (Huge TLB)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For mappings that employ huge pages, the requirements for the arguments of " "B() and B() differ somewhat from the requirements for " "mappings that use the native system page size." msgstr "" "بالنسبة للتخطيطات التي تستخدم صفحات ضخمة، تختلف متطلبات معطيات B() و " "B() نوعًا ما عن متطلبات التخطيطات التي تستخدم حجم صفحة النظام الأصلي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For B(), I must be a multiple of the underlying huge page " "size. The system automatically aligns I to be a multiple of the " "underlying huge page size." msgstr "" "بالنسبة لـ B()، يجب أن يكون I مضاعفًا لحجم الصفحة الضخمة " "الأساسي. يضبط النظام آليًا I ليكون مضاعفًا لحجم الصفحة الضخمة الأساسي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For B(), I, and I must both be a multiple of the " "underlying huge page size." msgstr "" "بالنسبة لـ B()، يجب أن يكون كل من I و I مضاعفًا لحجم " "الصفحة الضخمة الأساسي." #. type: SH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "CAVEATS" msgstr "تحذيرات" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Unlike typical B(3) implementations, B() does not prevent " "creating objects larger than B. Objects that are larger than " "B only work in limited ways in C (in particular, pointer " "subtraction results in undefined behavior if the result would be bigger than " "B). On top of that, GCC also assumes that no object is bigger " "than B. B is usually half of the address space " "size; so for 32-bit processes, it is usually B<0x7fffffff> (almost 2 GiB)." msgstr "" "على عكس تطبيقات B(3) النموذجية، لا يمنع B() إنشاء كائنات أكبر " "من B. الكائنات الأكبر من B تعمل بطرق محدودة فقط في " "لغة C (على وجه الخصوص، يؤدي طرح المؤشرات إلى سلوك غير محدد إذا كانت النتيجة " "أكبر من B). علاوة على ذلك، يفترض GCC أيضًا أنه لا يوجد كائن أكبر " "من B. عادة ما يكون B نصف حجم فضاء العناوين؛ لذا " "بالنسبة للعمليات ذات 32 بت، يكون عادةً B<0x7fffffff> (حوالي 2 جيجابايت)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "العلل" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On Linux, there are no guarantees like those suggested above under " "B. By default, any process can be killed at any moment when " "the system runs out of memory." msgstr "" "في لينكس، لا توجد ضمانات مثل تلك المقترحة أعلاه تحت B. " "مبدئيًا، يمكن قتل أي عملية في أي لحظة عندما تنفد ذاكرة النظام." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Before Linux 2.6.7, the B flag has effect only if I is " "specified as B." msgstr "" "قبل لينكس 2.6.7، لم يكن للراية B تأثير إلا إذا حُددت I " "بأنها B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "SUSv3 specifies that B() should fail if I is 0. However, " "before Linux 2.6.12, B() succeeded in this case: no mapping was " "created and the call returned I. Since Linux 2.6.12, B() fails " "with the error B for this case." msgstr "" "يحدد SUSv3 أن B() يجب أن يفشل إذا كانت I هي 0. ومع ذلك، قبل " "لينكس 2.6.12، كان B() ينجح في هذه الحالة: لم يُنشأ أي تخطيط وأعاد " "النداء القيمة I. ومنذ لينكس 2.6.12، يفشل B() مع الخطأ B " "في هذه الحالة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "POSIX specifies that the system shall always zero fill any partial page at " "the end of the object and that system will never write any modification of " "the object beyond its end. On Linux, when you write data to such partial " "page after the end of the object, the data stays in the page cache even " "after the file is closed and unmapped and even though the data is never " "written to the file itself, subsequent mappings may see the modified " "content. In some cases, this could be fixed by calling B(2) before " "the unmap takes place; however, this doesn't work on B(5) (for " "example, when using the POSIX shared memory interface documented in " "B(7))." msgstr "" "يحدد POSIX أن النظام سيقوم دائمًا بملء أي صفحة جزئية في نهاية الكائن بالأصفار " "وأن النظام لن يكتب أبدًا أي تعديل للكائن خارج نهايته. في لينكس، عند كتابة " "بيانات إلى مثل هذه الصفحة الجزئية بعد نهاية الكائن، تظل البيانات في خبيئة " "Cache الصفحة حتى بعد إغلاق الملف وإلغاء تخطيطه وبالرغم من أن البيانات لا " "تُكتب أبدًا في الملف نفسه، إلا أن التخطيطات اللاحقة قد ترى المحتوى المعدل. في " "بعض الحالات، يمكن إصلاح ذلك باستدعاء B(2) قبل إلغاء التخطيط؛ ومع ذلك، " "لا يعمل هذا في B(5) (على سبيل المثال، عند استخدام واجهة ذاكرة POSIX " "المشتركة الموثقة في B(7))." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. FIXME . Add an example here that uses an anonymous shared region for #. IPC between parent and child. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following program prints part of the file specified in its first command-" "line argument to standard output. The range of bytes to be printed is " "specified via offset and length values in the second and third command-line " "arguments. The program creates a memory mapping of the required pages of " "the file and then uses B(2) to output the desired bytes." msgstr "" "يطبع البرنامج التالي جزءًا من الملف المحدد في معامل سطر الأوامر الأول الخاص " "به إلى المخرج المعياري. يُحدد نطاق البايتات المراد طباعتها عبر قيم الإزاحة " "والطول في معاملي سطر الأوامر الثاني والثالث. يُنشئ البرنامج تخطيط ذاكرة " "للصفحات المطلوبة من الملف ثم يستخدم B(2) لإخراج البايتات المطلوبة." #. 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 mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/mman.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *addr;\n" " off_t offset, pa_offset;\n" " size_t length;\n" " ssize_t s;\n" " struct stat sb;\n" "\\&\n" " if (argc E 3 || argc E 4) {\n" " fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDONLY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " if (fstat(fd, &sb) == -1) /* To obtain file size */\n" " err(EXIT_FAILURE, \"fstat\");\n" "\\&\n" " offset = atoi(argv[2]);\n" " pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" " /* offset for mmap() must be page aligned */\n" "\\&\n" " if (offset E= sb.st_size) {\n" " fprintf(stderr, \"offset is past end of file\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (argc == 4) {\n" " length = atoi(argv[3]);\n" " if (offset + length E sb.st_size)\n" " length = sb.st_size - offset;\n" " /* Can\\[aq]t display bytes past end of file */\n" "\\&\n" " } else { /* No length arg ==E display to end of file */\n" " length = sb.st_size - offset;\n" " }\n" "\\&\n" " addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" " MAP_PRIVATE, fd, pa_offset);\n" " if (addr == MAP_FAILED)\n" " err(EXIT_FAILURE, \"mmap\");\n" "\\&\n" " s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" " if (s != length) {\n" " if (s == -1)\n" " err(EXIT_FAILURE, \"write\");\n" "\\&\n" " fprintf(stderr, \"partial write\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " munmap(addr, length + offset - pa_offset);\n" " close(fd);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/mman.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *addr;\n" " off_t offset, pa_offset;\n" " size_t length;\n" " ssize_t s;\n" " struct stat sb;\n" "\\&\n" " if (argc E 3 || argc E 4) {\n" " fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDONLY);\n" " if (fd == -1)\n" " err(EXIT_FAILURE, \"open\");\n" "\\&\n" " if (fstat(fd, &sb) == -1) /* To obtain file size */\n" " err(EXIT_FAILURE, \"fstat\");\n" "\\&\n" " offset = atoi(argv[2]);\n" " pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" " /* offset for mmap() must be page aligned */\n" "\\&\n" " if (offset E= sb.st_size) {\n" " fprintf(stderr, \"offset is past end of file\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (argc == 4) {\n" " length = atoi(argv[3]);\n" " if (offset + length E sb.st_size)\n" " length = sb.st_size - offset;\n" " /* Can\\[aq]t display bytes past end of file */\n" "\\&\n" " } else { /* No length arg ==E display to end of file */\n" " length = sb.st_size - offset;\n" " }\n" "\\&\n" " addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" " MAP_PRIVATE, fd, pa_offset);\n" " if (addr == MAP_FAILED)\n" " err(EXIT_FAILURE, \"mmap\");\n" "\\&\n" " s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" " if (s != length) {\n" " if (s == -1)\n" " err(EXIT_FAILURE, \"write\");\n" "\\&\n" " fprintf(stderr, \"partial write\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " munmap(addr, length + offset - pa_offset);\n" " close(fd);\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(2), B(2), B(2), " "B(2), B(2), B(2), B(2), B(2), " "B(2), B(2), B(2), B(2), " "B(3), B(7)" msgstr "" "B(2), B(2), B(2), B(2), " "B(2), B(2), B(2), B(2), B(2), " "B(2), B(2), B(2), B(2), " "B(3), B(7)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The descriptions of the following files in B(5): IpidI, " "IpidI, and IpidI." msgstr "" "أوصاف الملفات التالية في B(5): IpidI، و IpidI، و IpidI." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B.O.\\& Gallmeister, POSIX.4, O'Reilly, pp.\\& 128\\[en]129 and 389\\[en]391." msgstr "" "ب. أ.\\& جالميستر، POSIX.4، دار أورايلي، ص.\\& 128\\[en]129 و 389\\[en]391." #. 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 "" "BIB<[.>IB<], size_t >IB<, int >IB<, int >IB<,>\n" "B< int >IB<, off_t >IB<);>\n" "BIB<[.>IB<], size_t >IB<);>\n" msgstr "" "BIB<[.>IB<], size_t >IB<, int >IB<, int >IB<,>\n" "B< int >IB<, off_t >IB<);>\n" "BIB<[.>IB<], size_t >IB<);>\n" #. type: Plain text #: debian-trixie msgid "See NOTES for information on feature test macro requirements." msgstr "" "انظر قسم ملاحظات NOTES للحصول على معلومات حول متطلبات وحدات ماكرو اختبار " "الميزات." #. commit a4ff8e8620d3f4f50ac4b41e8067b7d395056843 #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "This flag provides behavior that is similar to B with respect to " "the I enforcement, but differs in that B never " "clobbers a preexisting mapped range. If the requested range would collide " "with an existing mapping, then this call fails with the error B " "This flag can therefore be used as a way to atomically (with respect to " "other threads) attempt to map an address range: one thread will succeed; all " "others will report failure." msgstr "" "توفر هذه الراية سلوكًا مشابهًا لـ B فيما يتعلق بفرض I، لكنها " "تختلف في أن B لا تمحو أبدًا نطاقًا مخططًا موجودًا مسبقًا. " "إذا تعارض النطاق المطلوب مع تخطيط موجود، يفشل هذا النداء مع الخطأ B. وبالتالي يمكن استخدام هذه الراية كطريقة لمحاولة تخطيط نطاق عناوين بشكل " "ذري (بالنسبة للخيوط الأخرى): سينجح خيط واحد؛ وستبلغ جميع الخيوط الأخرى عن " "فشل." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron msgid "" "This flag is used for stacks. It indicates to the kernel virtual memory " "system that the mapping should extend downward in memory. The return " "address is one page lower than the memory area that is actually created in " "the process's virtual address space. Touching an address in the \"guard\" " "page below the mapping will cause the mapping to grow by a page. This " "growth can be repeated until the mapping grows to within a page of the high " "end of the next lower mapping, at which point touching the \"guard\" page " "will result in a B signal." msgstr "" "تُستخدم هذه العلامة للكدسات. وهي تشير لنظام الذاكرة الافتراضية في النواة بأن " "التخطيط يجب أن يمتد للأسفل في الذاكرة. العنوان المُعاد هو صفحة واحدة أقل من " "منطقة الذاكرة التي أُنشئت فعليًا في مساحة العناوين الافتراضية للعملية. سيؤدي " "الوصول لعنوان في صفحة \"الحماية\" أسفل التخطيط إلى نمو التخطيط بمقدار صفحة. " "يمكن تكرار هذا النمو حتى ينمو التخطيط ليصل إلى مسافة صفحة واحدة من الطرف " "العلوي للتخطيط الأدنى التالي، وعندها سيؤدي الوصول لصفحة \"الحماية\" إلى " "إشارة B." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Do not reserve swap space for this mapping. When swap space is reserved, " "one has the guarantee that it is possible to modify the mapping. When swap " "space is not reserved one might get B upon a write if no physical " "memory is available. See also the discussion of the file I in B(5). Before Linux 2.6, this flag had effect " "only for private writable mappings." msgstr "" "لا تحجز مساحة تبديل swap space لهذا التخطيط. عند حجز مساحة تبديل، يكون هناك " "ضمان بإمكانية تعديل التخطيط. وعند عدم حجز مساحة تبديل، قد تحصل على " "B عند الكتابة إذا لم تكن الذاكرة الفيزيائية متوفرة. انظر أيضًا " "مناقشة الملف I في B(5). قبل لينكس 2.6، " "لم يكن لهذه الراية تأثير إلا على التخطيطات الخاصة القابلة للكتابة." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B flag was specified, but the caller was not privileged " "(did not have the B capability) and is not a member of the " "I group; see the description of I in B(5)." msgstr "" "حُددت الراية B، لكن المستدعِي B ليس لديه امتيازات (لا " "يملك القدرة B) وليس عضوًا في المجموعة " "I؛ انظر وصف I في B(5)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. SVr4 documents additional error codes ENXIO and ENODEV. #. SUSv2 documents additional error codes EMFILE and EOVERFLOW. #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "POSIX.1-2001, SVr4, 4.4BSD." msgstr "POSIX.1-2001, SVr4, 4.4BSD." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "For example, suppose that thread A looks through IpidI in " "order to locate an unused address range that it can map using B, " "while thread B simultaneously acquires part or all of that same address " "range. When thread A subsequently employs B, it will " "effectively clobber the mapping that thread B created. In this scenario, " "thread B need not create a mapping directly; simply making a library call " "that, internally, uses B(3) to load some other shared library, will " "suffice. The B(3) call will map the library into the process's " "address space. Furthermore, almost any library call may be implemented in a " "way that adds memory mappings to the address space, either with this " "technique, or by simply allocating memory. Examples include B(2), " "B(3), B(3), and the PAM libraries E<.UR http://www." "linux-pam.org> E<.UE .>" msgstr "" "على سبيل المثال، افترض أن الخيط A يبحث في IpidI لتحديد موقع " "نطاق عناوين غير مستخدم يمكنه تخطيطه باستخدام B، بينما يحصل الخيط " "B في الوقت نفسه على جزء من نفس نطاق العناوين هذا أو كله. عندما يستخدم الخيط " "A لاحقًا B، فإنه سيمحو فعليًا التخطيط الذي أنشأه الخيط B. في " "هذا السيناريو، لا يحتاج الخيط B لإنشاء تخطيط مباشرة؛ إذ يكفي مجرد إجراء نداء " "لمكتبة تستخدم داخليًا B(3) لتحميل مكتبة مشتركة أخرى. سيقوم نداء " "B(3) بتخطيط المكتبة في فضاء عناوين العملية. علاوة على ذلك، يمكن " "تنفيذ أي نداء مكتبة تقريبًا بطريقة تضيف تخطيطات ذاكرة إلى فضاء العناوين، إما " "بهذه التقنية أو بمجرد تخصيص الذاكرة. تشمل الأمثلة B(2)، و B(3)، " "و B(3)، ومكتبات PAM E<.UR http://www.linux-pam.org> E<.UE .>" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/mman.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "#define handle_error(msg) \\[rs]\n" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *addr;\n" " off_t offset, pa_offset;\n" " size_t length;\n" " ssize_t s;\n" " struct stat sb;\n" "\\&\n" " if (argc E 3 || argc E 4) {\n" " fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDONLY);\n" " if (fd == -1)\n" " handle_error(\"open\");\n" "\\&\n" " if (fstat(fd, &sb) == -1) /* To obtain file size */\n" " handle_error(\"fstat\");\n" "\\&\n" " offset = atoi(argv[2]);\n" " pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" " /* offset for mmap() must be page aligned */\n" "\\&\n" " if (offset E= sb.st_size) {\n" " fprintf(stderr, \"offset is past end of file\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (argc == 4) {\n" " length = atoi(argv[3]);\n" " if (offset + length E sb.st_size)\n" " length = sb.st_size - offset;\n" " /* Can\\[aq]t display bytes past end of file */\n" "\\&\n" " } else { /* No length arg ==E display to end of file */\n" " length = sb.st_size - offset;\n" " }\n" "\\&\n" " addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" " MAP_PRIVATE, fd, pa_offset);\n" " if (addr == MAP_FAILED)\n" " handle_error(\"mmap\");\n" "\\&\n" " s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" " if (s != length) {\n" " if (s == -1)\n" " handle_error(\"write\");\n" "\\&\n" " fprintf(stderr, \"partial write\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " munmap(addr, length + offset - pa_offset);\n" " close(fd);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Efcntl.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/mman.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "#define handle_error(msg) \\[rs]\n" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int fd;\n" " char *addr;\n" " off_t offset, pa_offset;\n" " size_t length;\n" " ssize_t s;\n" " struct stat sb;\n" "\\&\n" " if (argc E 3 || argc E 4) {\n" " fprintf(stderr, \"%s file offset [length]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " fd = open(argv[1], O_RDONLY);\n" " if (fd == -1)\n" " handle_error(\"open\");\n" "\\&\n" " if (fstat(fd, &sb) == -1) /* To obtain file size */\n" " handle_error(\"fstat\");\n" "\\&\n" " offset = atoi(argv[2]);\n" " pa_offset = offset & \\[ti](sysconf(_SC_PAGE_SIZE) - 1);\n" " /* offset for mmap() must be page aligned */\n" "\\&\n" " if (offset E= sb.st_size) {\n" " fprintf(stderr, \"offset is past end of file\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (argc == 4) {\n" " length = atoi(argv[3]);\n" " if (offset + length E sb.st_size)\n" " length = sb.st_size - offset;\n" " /* Can\\[aq]t display bytes past end of file */\n" "\\&\n" " } else { /* No length arg ==E display to end of file */\n" " length = sb.st_size - offset;\n" " }\n" "\\&\n" " addr = mmap(NULL, length + offset - pa_offset, PROT_READ,\n" " MAP_PRIVATE, fd, pa_offset);\n" " if (addr == MAP_FAILED)\n" " handle_error(\"mmap\");\n" "\\&\n" " s = write(STDOUT_FILENO, addr + offset - pa_offset, length);\n" " if (s != length) {\n" " if (s == -1)\n" " handle_error(\"write\");\n" "\\&\n" " fprintf(stderr, \"partial write\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " munmap(addr, length + offset - pa_offset);\n" " close(fd);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128\\[en]129 and 389\\[en]391." msgstr "ب. أ. جالميستر، POSIX.4، دار أورايلي، ص. 128\\[en]129 و 389\\[en]391." #. 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-11" msgstr "11 فبراير 2026" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"