# 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:22+0200\n" "PO-Revision-Date: 2026-06-05 22: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 "dlopen" msgstr "dlopen" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 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 "dlclose, dlopen, dlmopen - open and close a shared object" msgstr "dlclose, dlopen, dlmopen - فتح وإغلاق كائن مشترك" #. 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 "Dynamic linking library (I,\\ I<-ldl>)" msgstr "مكتبة الربط الديناميكي (I،\\ I<-ldl>)" #. 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 Edlfcn.hE>\n" msgstr "B<#include Edlfcn.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "BIB<, int >IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, int >IB<);>\n" "BIB<);>\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<#define _GNU_SOURCE>\n" msgstr "B<#define _GNU_SOURCE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const char *>IB<, int >IB<);" ">\n" msgstr "" "BIB<, const char *>IB<, int >IB<);" ">\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: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "dlopen()" msgstr "dlopen()" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The function B() loads the dynamic shared object (shared library) " "file named by the null-terminated string I and returns an opaque " "\"handle\" for the loaded object. This handle is employed with other " "functions in the dlopen API, such as B(3), B(3), " "B(3), and B()." msgstr "" "الدالة B() تُحمّل ملف الكائن المشترك الديناميكي (المكتبة المشتركة) " "المُسمى بسلسلة المحارف المنتهية بصفر I وتُعيد \"مقبضًا\" غير شفاف" " للكائن " "المُحمّل. يُستخدم هذا المقبض مع دوال أخرى في واجهة برمجة تطبيقات dlopen، مثل " "B(3) وB(3) وB(3) وB()." #. FIXME On Solaris, when handle is NULL, we seem to get back #. a handle for (something like) the root of the namespace. #. The point here is that if we do a dlmopen(LM_ID_NEWLM), then #. the path==NULL case returns a different handle than #. in the initial namespace. But, on glibc, the same handle is #. returned. This is probably a bug in glibc. #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I is NULL, then the returned handle is for the main program. If " "I contains a slash (\"/\"), then it is interpreted as a (relative or " "absolute) pathname. Otherwise, the dynamic linker searches for the object " "as follows (see B(8) for further details):" msgstr "" "إذا كان I NULL، فإن المقبض المُعاد يكون للبرنامج الرئيس. إذا احتوى " "I على شرطة مائلة (\"/\")، فإنه يُفسر كاسم مسار (نسبي أو مطلق). وإلا، " "يبحث الرابط الديناميكي عن الكائن كما يلي (انظر B(8) لمزيد من " "التفاصيل):" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "(ELF only) If the calling object (i.e., the shared library or executable " "from which B() is called) contains a DT_RPATH tag, and does not " "contain a DT_RUNPATH tag, then the directories listed in the DT_RPATH tag " "are searched." msgstr "" "(ELF فقط) إذا احتوى الكائن المُستدعي (أي المكتبة المشتركة أو القابل للتنفيذ " "الذي يُستدعى منه B()) على علامة DT_RPATH، ولم يحتوي على علامة " "DT_RUNPATH، فإن الأدلة المدرجة في علامة DT_RPATH تُبحث." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If, at the time that the program was started, the environment variable " "B was defined to contain a colon-separated list of " "directories, then these are searched. (As a security measure, this variable " "is ignored for set-user-ID and set-group-ID programs.)" msgstr "" "إذا، في وقت بدء البرنامج، كان المتغير البيئي B مُعرّفًا" " ليحتوي " "على قائمة أدلة مفصولة بنقطتين، فإن هذه تُبحث. (كإجراء أمني، يُتجاهل هذا " "المتغير للبرامج ذات معرف المستخدم المُعيَّن ومعرف المجموعة المُعيَّن.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "(ELF only) If the calling object contains a DT_RUNPATH tag, then the " "directories listed in that tag are searched." msgstr "" "(ELF فقط) إذا احتوى الكائن المُستدعي على علامة DT_RUNPATH، فإن الأدلة المدرجة " "في تلك العلامة تُبحث." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The cache file I (maintained by B(8)) is " "checked to see whether it contains an entry for I." msgstr "" "ملف الخبيئة I (الذي يُحافظ عليه B(8)) يُفحص" " لمعرفة " "ما إذا كان يحتوي على إدخال لـ I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The directories I and I are searched (in that order)." msgstr "الأدلة I وI تُبحث (بهذا الترتيب)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If the object specified by I has dependencies on other shared objects, " "then these are also automatically loaded by the dynamic linker using the " "same rules. (This process may occur recursively, if those objects in turn " "have dependencies, and so on.)" msgstr "" "إذا كان للكائن المُحدد بواسطة I تبعيات على كائنات مشتركة أخرى، فإن هذه " "تُحمّل آليًا بواسطة الرابط الديناميكي باستخدام نفس القواعد. (قد تحدث هذه " "العملية بشكل تكراري، إذا كانت تلك الكائنات بدورها لها تبعيات، وهكذا.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "One of the following two values must be included 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" msgstr "B" #. commit 12b5b6b7f78ea111e89bbf638294a5413c791072 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Perform lazy binding. Resolve symbols only as the code that references them " "is executed. If the symbol is never referenced, then it is never resolved. " "(Lazy binding is performed only for function references; references to " "variables are always immediately bound when the shared object is loaded.) " "Since glibc 2.1.1, this flag is overridden by the effect of the " "B environment variable." msgstr "" "نفذ الربط الكسول. حل الرموز فقط عند تنفيذ الكود الذي يُشير إليها. إذا لم يُشر " "إلى الرمز أبدًا، فإنه لا يُحل أبدًا. (يُجرى الربط الكسول فقط لإشارات الدوال؛ " "إشارات المتغيرات تُربط فورًا عند تحميل الكائن المشترك.) منذ glibc 2.1.1،" " يُلغى " "هذا العلم بتأثير المتغير البيئي 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 "" "If this value is specified, or the environment variable B is " "set to a nonempty string, all undefined symbols in the shared object are " "resolved before B() returns. If this cannot be done, an error is " "returned." msgstr "" "إذا حُددت هذه القيمة، أو عُيّن المتغير البيئي B إلى سلسلة محارف " "غير فارغة، فإن جميع الرموز غير المُعرّفة في الكائن المشترك تُحل قبل أن تُعيد " "B(). إذا لم يمكن فعل ذلك، تُعاد رسالة خطأ." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Zero or more of the following values may also 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" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The symbols defined by this shared object will be made available for symbol " "resolution of subsequently loaded shared objects." 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 "" "This is the converse of B, and the default if neither flag is " "specified. Symbols defined in this shared object are not made available to " "resolve references in subsequently loaded shared objects." 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 glibc 2.2)" msgstr "B (منذ glibc 2.2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Do not unload the shared object during B(). Consequently, the " "object's static and global variables are not reinitialized if the object is " "reloaded with B() at a later time." 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 (since glibc 2.2)" msgstr "B (منذ glibc 2.2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Don't load the shared object. This can be used to test if the object is " "already resident (B() returns NULL if it is not, or the object's " "handle if it is resident). This flag can also be used to promote the flags " "on a shared object that is already loaded. For example, a shared object " "that was previously loaded with B can be reopened with " "B." msgstr "" "لا تُحمِّل الكائن المشترك. يمكن استخدام هذا لاختبار ما إذا كان الكائن مقيمًا " "بالفعل (يُرجع B() NULL إذا لم يكن، أو مقبض الكائن إذا كان مقيمًا). " "يمكن أيضًا استخدام هذا العلم لترقية الأعلام على كائن مشترك مُحمَّل بالفعل." " على " "سبيل المثال، يمكن إعادة فتح كائن مشترك كان مُحمَّلاً سابقًا باستخدام " "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 (since glibc 2.3.4)" msgstr "B (منذ glibc 2.3.4)" #. Inimitably described by UD in #. http://sources.redhat.com/ml/libc-hacker/2004-09/msg00083.html. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Place the lookup scope of the symbols in this shared object ahead of the " "global scope. This means that a self-contained object will use its own " "symbols in preference to global symbols with the same name contained in " "objects that have already been loaded." msgstr "" "ضَع نطاق البحث عن الرموز في هذا الكائن المشترك قبل النطاق العام. هذا يعني أن " "الكائن المستقل سيستخدم رموزه الخاصة بتفضيل على الرموز العامة التي تحمل الاسم " "نفسه والموجودة في الكائنات المُحمَّلة بالفعل." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I is NULL, then the returned handle is for the main program. When " "given to B(3), this handle causes a search for a symbol in the main " "program, followed by all shared objects loaded at program startup, and then " "all shared objects loaded by B() with the flag B." msgstr "" "إذا كان I NULL، فإن المقبض المُرجَع هو للبرنامج الرئيس. عند إعطائه إلى " "B(3)، يتسبب هذا المقبض في بحث عن رمز في البرنامج الرئيس، متبوعًا بجميع " "الكائنات المشتركة المُحمَّلة عند بدء البرنامج، ثم جميع الكائنات المشتركة " "المُحمَّلة بواسطة B() مع العلم B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Symbol references in the shared object are resolved using (in order): " "symbols in the link map of objects loaded for the main program and its " "dependencies; symbols in shared objects (and their dependencies) that were " "previously opened with B() using the B flag; and " "definitions in the shared object itself (and any dependencies that were " "loaded for that object)." msgstr "" "تُحل مراجع الرموز في الكائن المشترك باستخدام (بالترتيب): الرموز في خريطة " "الربط للكائنات المُحمَّلة للبرنامج الرئيس وتبعياته؛ الرموز في الكائنات" " المشتركة " "(وتبعياتها) التي فُتحت سابقًا باستخدام B() باستخدام العلم " "B؛ والتعريفات في الكائن المشترك نفسه (وأي تبعيات حُمِّلت لذلك " "الكائن)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Any global symbols in the executable that were placed into its dynamic " "symbol table by B(1) can also be used to resolve references in a " "dynamically loaded shared object. Symbols may be placed in the dynamic " "symbol table either because the executable was linked with the flag \"-" "rdynamic\" (or, synonymously, \"--export-dynamic\"), which causes all of the " "executable's global symbols to be placed in the dynamic symbol table, or " "because B(1) noted a dependency on a symbol in another object during " "static linking." msgstr "" "يمكن أيضًا استخدام أي رموز عامة في الملف التنفيذي وُضعت في جدول الرموز " "الديناميكي بواسطة B(1) لحل المراجع في كائن مشترك مُحمَّل ديناميكيًا. قد" " تُوضع " "الرموز في جدول الرموز الديناميكي إما لأن الملف التنفيذي رُبط باستخدام العلم " "\"-rdynamic\" (أو، بالمرادف، \"--export-dynamic\")، الذي يتسبب في وضع جميع " "الرموز العامة للملف التنفيذي في جدول الرموز الديناميكي، أو لأن B(1) لاحظ " "اعتمادًا على رمز في كائن آخر أثناء الربط الثابت." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the same shared object is opened again with B(), the same object " "handle is returned. The dynamic linker maintains reference counts for " "object handles, so a dynamically loaded shared object is not deallocated " "until B() has been called on it as many times as B() has " "succeeded on it. Constructors (see below) are called only when the object " "is actually loaded into memory (i.e., when the reference count increases to " "1)." msgstr "" "إذا فُتح نفس الكائن المشترك مرة أخرى باستخدام B()، يُرجَع نفس مقبض " "الكائن. يحتفظ الرابط الديناميكي بأعداد مراجع لمقابض الكائنات، لذلك لا يُحرر " "كائن مشترك مُحمَّل ديناميكيًا حتى يُستدعى B() عليه بعدد مرات نجاح " "B() عليه. تُستدعى المنشئات (انظر أدناه) فقط عندما يُحمَّل الكائن" " فعليًا " "في الذاكرة (أي عندما يزيد عدد المراجع إلى 1)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A subsequent B() call that loads the same shared object with " "B may force symbol resolution for a shared object earlier loaded " "with B. Similarly, an object that was previously opened with " "B can be promoted to B in a subsequent B()." msgstr "" "قد يُجبر استدعاء B() لاحق يُحمِّل نفس الكائن المشترك باستخدام " "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 "If B() fails for any reason, it returns NULL." msgstr "إذا فشل B() لأي سبب، يُرجع NULL." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "dlmopen()" msgstr "dlmopen()" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "This function performs the same task as B()\\[em]the I and " "I arguments, as well as the return value, are the same, except for " "the differences noted below." msgstr "" "تُؤدي هذه الدالة نفس مهمة B()\\[em]وسيطات I و I، " "بالإضافة إلى القيمة المُرجَعة، هي نفسها، باستثناء الاختلافات المُشار إليها " "أدناه." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function differs from B() primarily in that it " "accepts an additional argument, I, that specifies the link-map list " "(also referred to as a I) in which the shared object should be " "loaded. (By comparison, B() adds the dynamically loaded shared " "object to the same namespace as the shared object from which the " "B() call is made.) The I type is an opaque handle that " "refers to a namespace." msgstr "" "تختلف الدالة B() عن B() بشكل أساسي في أنها تقبل وسيطة " "إضافية، I، تُحدد قائمة خريطة الربط (المشار إليها أيضًا باسم " "I) التي يجب تحميل الكائن المشترك فيها. (بالمقارنة، تُضيف " "B() الكائن المشترك المُحمَّل ديناميكيًا إلى نفس مساحة الاسم مثل" " الكائن " "المشترك الذي يُستدعى منه B().) النوع I هو مقبض غير شفاف يُشير " "إلى مساحة اسم." #. FIXME: Is using dlinfo() RTLD_DI_LMID the right technique? #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument is either the ID of an existing namespace (which can be " "obtained using the B(3) B request) or one of the " "following special values:" msgstr "" "وسيطة I إما أن تكون معرف مساحة اسم موجودة (يمكن الحصول عليه باستخدام " "طلب B(3) 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 "" "Load the shared object in the initial namespace (i.e., the application's " "namespace)." 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 "" "Create a new namespace and load the shared object in that namespace. The " "object must have been correctly linked to reference all of the other shared " "objects that it requires, since the new namespace is initially empty." msgstr "" "أنشئ نطاقًا جديدًا وحُمِّل الكائن المشترك في ذلك النطاق. يجب أن يكون الكائن" " قد " "وُصل بشكل صحيح للإشارة إلى جميع الكائنات المشتركة الأخرى التي يحتاجها، لأن " "النطاق الجديد فارغ مبدئيًا." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I is NULL, then the only permitted value for I is " "B." msgstr "" "إذا كان I<المسار> فارغًا (NULL)، فإن القيمة الوحيدة المسموح بها لـ I هي " "B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "dlclose()" msgstr "dlclose()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The function B() decrements the reference count on the dynamically " "loaded shared object referred to by I." msgstr "" "تقلل الدالة B() عدد المراجع على الكائن المشترك المُحمَّل ديناميكيًا " "المشار إليه بـ I<المقبض>." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the object's reference count drops to zero and no symbols in this object " "are required by other objects, then the object is unloaded after first " "calling any destructors defined for the object. (Symbols in this object " "might be required in another object because this object was opened with the " "B flag and one of its symbols satisfied a relocation in another " "object.)" msgstr "" "إذا انخفض عدد مراجع الكائن إلى الصفر ولم تكن أي رموز في هذا الكائن مطلوبة " "بواسطة كائنات أخرى، فإن الكائن يُفرغ بعد استدعاء أي مدمرات مُعرَّفة للكائن" " أولاً. " "(قد تكون الرموز في هذا الكائن مطلوبة في كائن آخر لأن هذا الكائن فُتح مع العلم " "B وأحد رموزه حقق إعادة توطين في كائن آخر.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "All shared objects that were automatically loaded when B() was " "invoked on the object referred to by I are recursively closed in the " "same manner." msgstr "" "جميع الكائنات المشتركة التي حُمّلت آليًا عند استدعاء B() على الكائن " "المشار إليه بـ I<المقبض> تُغلق بشكل تكراري بنفس الطريقة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A successful return from B() does not guarantee that the symbols " "associated with I are removed from the caller's address space. In " "addition to references resulting from explicit B() calls, a shared " "object may have been implicitly loaded (and reference counted) because of " "dependencies in other shared objects. Only when all references have been " "released can the shared object be removed from the address space." msgstr "" "لا يضمن الإرجاع الناجح من B() إزالة الرموز المرتبطة بـ 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() and B() return a non-NULL handle for the " "loaded object. On error (file could not be found, was not readable, had the " "wrong format, or caused errors during loading), these functions return NULL." msgstr "" "عند النجاح، تُرجع B() و B() مقبضًا غير فارغ (non-NULL)" " للكائن " "المُحمَّل. عند الخطأ (لم يُعثر على الملف، أو لم يكن قابلاً للقراءة، أو كان" " بتنسيق " "خاطئ، أو تسبب في أخطاء أثناء التحميل)، تُرجع هذه الدوال NULL." #. 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 error, it returns a nonzero value." msgstr "عند النجاح، تُرجع B() 0؛ عند الخطأ، تُرجع قيمة غير صفرية." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Errors from these functions can be diagnosed using 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(),\n" "B()" msgstr "" "B(),\n" "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 "STANDARDS" 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: TQ #: 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 "POSIX.1-2008." msgstr "POSIX.1-2008." #. 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" 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" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "GNU." msgstr "GNU." #. 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 "Solaris." 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: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.0. POSIX.1-2001." msgstr "glibc 2.0. POSIX.1-2001." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.3.4." msgstr "glibc 2.3.4." #. 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: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "dlmopen() and namespaces" msgstr "dlmopen() والنطاقات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A link-map list defines an isolated namespace for the resolution of symbols " "by the dynamic linker. Within a namespace, dependent shared objects are " "implicitly loaded according to the usual rules, and symbol references are " "likewise resolved according to the usual rules, but such resolution is " "confined to the definitions provided by the objects that have been " "(explicitly and implicitly) loaded into the namespace." msgstr "" "تعرّف قائمة خريطة الوصل نطاقًا معزولاً لحل الرموز بواسطة الواصل الديناميكي. " "داخل النطاق، تُحمّل الكائنات المشتركة التابعة ضمنيًا وفقًا للقواعد المعتادة، " "وتُحل مراجع الرموز بالمثل وفقًا للقواعد المعتادة، ولكن هذا الحل يقتصر على " "التعريفات المقدمة بواسطة الكائنات التي حُمّلت (صراحةً وضمنيًا) في النطاق." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function permits object-load isolation\\[em]the ability to " "load a shared object in a new namespace without exposing the rest of the " "application to the symbols made available by the new object. Note that the " "use of the B flag is not sufficient for this purpose, since it " "prevents a shared object's symbols from being available to I other " "shared object. In some cases, we may want to make the symbols provided by a " "dynamically loaded shared object available to (a subset of) other shared " "objects without exposing those symbols to the entire application. This can " "be achieved by using a separate namespace and the B flag." msgstr "" "تسمح الدالة B() بعزل تحميل الكائنات\\[em]أي القدرة على تحميل كائن " "مشترك في نطاق أسماء جديد دون كشف باقي التطبيق للرموز التي يوفرها الكائن " "الجديد. لاحظ أن استخدام العلم B غير كافٍ لهذا الغرض، لأنه يمنع " "رموز الكائن المشترك من أن تكون متاحة I<لأي> كائن مشترك آخر. في بعض الحالات،" " قد " "نرغب في جعل الرموز التي يوفرها كائن مشترك محمّل ديناميكيًا متاحة لمجموعة" " فرعية " "من الكائنات المشتركة الأخرى دون كشف هذه الرموز للتطبيق بأكمله. يمكن تحقيق " "ذلك باستخدام نطاق أسماء منفصل والعلم B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function also can be used to provide better isolation than " "the B flag. In particular, shared objects loaded with " "B may be promoted to B if they are dependencies of " "another shared object loaded with B. Thus, B is " "insufficient to isolate a loaded shared object except in the (uncommon) " "case where one has explicit control over all shared object dependencies." msgstr "" "يمكن أيضًا استخدام الدالة B() لتوفير عزل أفضل من العلم " "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 "" "Possible uses of B() are plugins where the author of the plugin-" "loading framework can't trust the plugin authors and does not wish any " "undefined symbols from the plugin framework to be resolved to plugin " "symbols. Another use is to load the same object more than once. Without " "the use of B(), this would require the creation of distinct copies " "of the shared object file. Using B(), this can be achieved by " "loading the same shared object file into different namespaces." msgstr "" "الاستخدامات المحتملة لـ B() هي الإضافات حيث لا يثق مؤلف إطار تحميل " "الإضافات بمؤلفي الإضافات ولا يرغب في حل أي رموز غير معرفة من إطار الإضافة " "إلى رموز الإضافة. استخدام آخر هو تحميل نفس الكائن أكثر من مرة. بدون استخدام " "B()، سيتطلب ذلك إنشاء نسخ متميزة من ملف الكائن المشترك. باستخدام " "B()، يمكن تحقيق ذلك بتحميل نفس ملف الكائن المشترك في نطاقات أسماء " "مختلفة." #. DL_NNS #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The glibc implementation supports a maximum of 16 namespaces." msgstr "يدعم تطبيق glibc حدًا أقصى يبلغ 16 نطاق أسماء." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Initialization and finalization functions" msgstr "دوال التهيئة والإنهاء" #. info gcc "C Extensions" "Function attributes" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Shared objects may export functions using the " "B<__attribute__((constructor))> and B<__attribute__((destructor))> function " "attributes. Constructor functions are executed before B() returns, " "and destructor functions are executed before B() returns. A " "shared object may export multiple constructors and destructors, and " "priorities can be associated with each function to determine the order in " "which they are executed. See the B info pages (under \"Function " "attributes\") for further information." msgstr "" "قد تُصدّر الكائنات المشتركة دوال باستخدام سمات الدالة " "B<__attribute__((constructor))> و B<__attribute__((destructor))>. تُنفّذ دوال " "البناء قبل أن تعود B()، وتُنفّذ دوال التدمير قبل أن تعود B(). " "قد يُصدّر الكائن المشترك عدة بناة ومدمّرات، ويمكن ربط أولويات بكل دالة لتحديد " "الترتيب الذي تُنفّذ به. راجع صفحات معلومات B (تحت \"سمات الدالة\") لمزيد " "من المعلومات." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An older method of (partially) achieving the same result is via the use of " "two special symbols recognized by the linker: B<_init> and B<_fini>. If a " "dynamically loaded shared object exports a routine named B<_init>(), then " "that code is executed after loading a shared object, before B() " "returns. If the shared object exports a routine named B<_fini>(), then that " "routine is called just before the object is unloaded. In this case, one " "must avoid linking against the system startup files, which contain default " "versions of these files; this can be done by using the B(1) I<-" "nostartfiles> command-line option." msgstr "" "طريقة أقدم لتحقيق نفس النتيجة (جزئيًا) هي عبر استخدام رمزين خاصين يتعرف " "عليهما الرابط: B<_init> و B<_fini>. إذا صَدّر كائن مشترك محمّل ديناميكيًا" " روتينًا " "باسم B<_init>()، فسيُنفّذ هذا الكود بعد تحميل الكائن المشترك، قبل أن تعود " "B(). إذا صَدّر الكائن المشترك روتينًا باسم B<_fini>()، فسيُستدعى هذا " "الروتين قبل تفريغ الكائن مباشرة. في هذه الحالة، يجب تجنب الربط مع ملفات بدء " "تشغيل النظام، التي تحتوي على إصدارات مبدئية من هذه الملفات؛ يمكن فعل ذلك " "باستخدام خيار سطر الأوامر B(1) I<-nostartfiles>." #. Using these routines, or the gcc #. .B \-nostartfiles #. or #. .B \-nostdlib #. options, is not recommended. #. Their use may result in undesired behavior, #. since the constructor/destructor routines will not be executed #. (unless special measures are taken). #. .\" void _init(void) __attribute__((constructor)); #. .\" void _fini(void) __attribute__((destructor)); #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Use of B<_init> and B<_fini> is now deprecated in favor of the " "aforementioned constructors and destructors, which among other advantages, " "permit multiple initialization and finalization functions to be defined." msgstr "" "استخدام B<_init> و B<_fini> أصبح الآن مهملاً لصالح البناة والمدمّرين" " المذكورين " "أعلاه، والذين، من بين مزايا أخرى، يسمحون بتعريف دوال تهيئة وإنهاء متعددة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Since glibc 2.2.3, B(3) can be used to register an exit handler " "that is automatically called when a shared object is unloaded." msgstr "" "منذ glibc 2.2.3، يمكن استخدام B(3) لتسجيل معالج خروج يُستدعى آليًا " "عند تفريغ كائن مشترك." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "History" msgstr "السجل" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "These functions are part of the dlopen API, derived from SunOS." msgstr "هذه الدوال جزء من واجهة برمجة تطبيقات dlopen، المشتقة من SunOS." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "العلل" #. dlerror(): "invalid mode" #. https://sourceware.org/bugzilla/show_bug.cgi?id=18684 #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As at glibc 2.24, specifying the B flag when calling " "B() generates an error. Furthermore, specifying B " "when calling B() results in a program crash (B) if the " "call is made from any object loaded in a namespace other than the initial " "namespace." msgstr "" "اعتبارًا من glibc 2.24، يُولّد تحديد العلم B عند استدعاء " "B() خطأ. علاوة على ذلك، يُؤدي تحديد 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 "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 loads the (glibc) math library, looks up the address of " "the B(3) function, and prints the cosine of 2.0. The following is an " "example of building and running the program:" msgstr "" "يُحمّل البرنامج أدناه مكتبة الرياضيات (glibc)، ويبحث عن عنوان الدالة " "B(3)، ويطبع جيب التمام لـ 2.0. فيما يلي مثال لبناء البرنامج وتشغيله:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< cc dlopen_demo.c -ldl>;\n" "$B< ./a.out>;\n" "-0.416147\n" msgstr "" "$B< cc dlopen_demo.c -ldl>;\n" "$B< ./a.out>;\n" "-0.416147\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 "مصدر البرنامج" #. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 #. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 #. http://austingroupbugs.net/view.php?id=74 #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Edlfcn.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "#include Egnu/lib-names.hE /* Defines LIBM_SO (which will be a\n" " string such as \"libm.so.6\") */\n" "int\n" "main(void)\n" "{\n" " void *handle;\n" " typeof(double (double)) *cosine;\n" " char *error;\n" "\\&\n" " handle = dlopen(LIBM_SO, RTLD_LAZY);\n" " if (!handle) {\n" " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " dlerror(); /* Clear any existing error */\n" "\\&\n" " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" "\\&\n" " /* According to the ISO C standard, casting between function\n" " pointers and \\[aq]void *\\[aq], as done above, produces undefined" " results.\n" " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" " proposed the following workaround:\n" "\\&\n" " *(void **) &cosine = dlsym(handle, \"cos\");\n" "\\&\n" " This (clumsy) cast conforms with the ISO C standard and will\n" " avoid any compiler warnings.\n" "\\&\n" " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" " by requiring that conforming implementations support casting\n" " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some" " compilers\n" " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about" " the\n" " cast used in this program. */\n" "\\&\n" " error = dlerror();\n" " if (error != NULL) {\n" " fprintf(stderr, \"%s\\[rs]n\", error);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" " dlclose(handle);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Edlfcn.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "#include Egnu/lib-names.hE /* Defines LIBM_SO (which will be a\n" " string such as \"libm.so.6\") */\n" "int\n" "main(void)\n" "{\n" " void *handle;\n" " typeof(double (double)) *cosine;\n" " char *error;\n" "\\&\n" " handle = dlopen(LIBM_SO, RTLD_LAZY);\n" " if (!handle) {\n" " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " dlerror(); /* Clear any existing error */\n" "\\&\n" " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" "\\&\n" " /* According to the ISO C standard, casting between function\n" " pointers and \\[aq]void *\\[aq], as done above, produces undefined" " results.\n" " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" " proposed the following workaround:\n" "\\&\n" " *(void **) &cosine = dlsym(handle, \"cos\");\n" "\\&\n" " This (clumsy) cast conforms with the ISO C standard and will\n" " avoid any compiler warnings.\n" "\\&\n" " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" " by requiring that conforming implementations support casting\n" " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some" " compilers\n" " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about" " the\n" " cast used in this program. */\n" "\\&\n" " error = dlerror();\n" " if (error != NULL) {\n" " fprintf(stderr, \"%s\\[rs]n\", error);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" " dlclose(handle);\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(1), B(1), B(1), B(3), B(3), " "B(3), B(3), B(3), B(7), B(8), " "B(8)" msgstr "" "B(1), B(1), B(1), B(3), B(3), " "B(3), B(3), B(3), B(7), B(8), " "B(8)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "gcc info pages, ld info pages" msgstr "صفحات معلومات gcc، صفحات معلومات ld" #. 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 "Dynamic linking library (I, I<-ldl>)" msgstr "مكتبة الربط الديناميكي (I، I<-ldl>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, int >IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, int >IB<);>\n" "BIB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, const char *>IB<, int >IB<);>\n" msgstr "" "BIB<, const char *>IB<, int >IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The function B() loads the dynamic shared object (shared library) " "file named by the null-terminated string I and returns an opaque " "\"handle\" for the loaded object. This handle is employed with other " "functions in the dlopen API, such as B(3), B(3), " "B(3), and B()." msgstr "" "تُحمّل الدالة B() ملف الكائن المشترك الديناميكي (المكتبة المشتركة) " "المُسمى بسلسلة المحارف المنتهية بصفر I وتُعيد \"مقبضًا\" غير شفاف " "للكائن المحمّل. يُستخدم هذا المقبض مع دوال أخرى في واجهة برمجة تطبيقات" " dlopen، " "مثل B(3), B(3), B(3), و B()." #. FIXME On Solaris, when handle is NULL, we seem to get back #. a handle for (something like) the root of the namespace. #. The point here is that if we do a dlmopen(LM_ID_NEWLM), then #. the filename==NULL case returns a different handle than #. in the initial namespace. But, on glibc, the same handle is #. returned. This is probably a bug in glibc. #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If I is NULL, then the returned handle is for the main program. " "If I contains a slash (\"/\"), then it is interpreted as a " "(relative or absolute) pathname. Otherwise, the dynamic linker searches for " "the object as follows (see B(8) for further details):" msgstr "" "إذا كان I NULL، فإن المقبض المُعاد يكون للبرنامج الرئيس. إذا احتوى " "I على شرطة مائلة (\"/\")، فسيُفسر كاسم مسار (نسبي أو مطلق). وإلا، " "يبحث الرابط الديناميكي عن الكائن كما يلي (راجع B(8) لمزيد من " "التفاصيل):" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The cache file I (maintained by B(8)) is " "checked to see whether it contains an entry for I." msgstr "" "يُفحص ملف الخبيئة I (الذي يُديره B(8)) لمعرفة ما " "إذا كان يحتوي على مدخل لـ I." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If the object specified by I has dependencies on other shared " "objects, then these are also automatically loaded by the dynamic linker " "using the same rules. (This process may occur recursively, if those objects " "in turn have dependencies, and so on.)" msgstr "" "إذا كان الكائن المحدد بواسطة I يعتمد على كائنات مشتركة أخرى، فسيتم " "تحميلها آليًا بواسطة الرابط الديناميكي باستخدام نفس القواعد. (قد تحدث هذه " "العملية بشكل متكرر، إذا كانت تلك الكائنات بدورها تعتمد على أخرى، وهكذا " "دواليك.)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If I is NULL, then the returned handle is for the main program. " "When given to B(3), this handle causes a search for a symbol in the " "main program, followed by all shared objects loaded at program startup, and " "then all shared objects loaded by B() with the flag B." msgstr "" "إذا كان I NULL، فإن المقبض المُعاد يكون للبرنامج الرئيس. عند إعطائه " "لـ B(3)، يتسبب هذا المقبض في البحث عن رمز في البرنامج الرئيس، متبوعًا " "بجميع الكائنات المشتركة المُحمّلة عند بدء تشغيل البرنامج، ثم جميع الكائنات " "المشتركة المُحمّلة بواسطة B() مع العلم B." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "This function performs the same task as B()\\[em]the I and " "I arguments, as well as the return value, are the same, except for " "the differences noted below." msgstr "" "تؤدي هذه الدالة نفس مهمة B()\\[em]وسيطات I و I، " "بالإضافة إلى القيمة المُعادة، هي نفسها، باستثناء الاختلافات المذكورة أدناه." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If I is NULL, then the only permitted value for I is " "B." msgstr "" "إذا كان I NULL، فإن القيمة الوحيدة المسموح بها لـ I هي " "B." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B\n" "$ B<./a.out>\n" "-0.416147\n" msgstr "" "$ B\n" "$ B<./a.out>\n" "-0.416147\n" #. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 #. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 #. http://austingroupbugs.net/view.php?id=74 #. type: Plain text #: debian-trixie #, no-wrap msgid "" "#include Edlfcn.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "#include Egnu/lib-names.hE /* Defines LIBM_SO (which will be a\n" " string such as \"libm.so.6\") */\n" "int\n" "main(void)\n" "{\n" " void *handle;\n" " double (*cosine)(double);\n" " char *error;\n" "\\&\n" " handle = dlopen(LIBM_SO, RTLD_LAZY);\n" " if (!handle) {\n" " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " dlerror(); /* Clear any existing error */\n" "\\&\n" " cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" "\\&\n" " /* According to the ISO C standard, casting between function\n" " pointers and \\[aq]void *\\[aq], as done above, produces undefined" " results.\n" " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" " proposed the following workaround:\n" "\\&\n" " *(void **) (&cosine) = dlsym(handle, \"cos\");\n" "\\&\n" " This (clumsy) cast conforms with the ISO C standard and will\n" " avoid any compiler warnings.\n" "\\&\n" " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" " by requiring that conforming implementations support casting\n" " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some" " compilers\n" " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about" " the\n" " cast used in this program. */\n" "\\&\n" " error = dlerror();\n" " if (error != NULL) {\n" " fprintf(stderr, \"%s\\[rs]n\", error);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" " dlclose(handle);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Edlfcn.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "#include Egnu/lib-names.hE /* Defines LIBM_SO (which will be a\n" " string such as \"libm.so.6\") */\n" "int\n" "main(void)\n" "{\n" " void *handle;\n" " double (*cosine)(double);\n" " char *error;\n" "\\&\n" " handle = dlopen(LIBM_SO, RTLD_LAZY);\n" " if (!handle) {\n" " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " dlerror(); /* Clear any existing error */\n" "\\&\n" " cosine = (double (*)(double)) dlsym(handle, \"cos\");\n" "\\&\n" " /* According to the ISO C standard, casting between function\n" " pointers and \\[aq]void *\\[aq], as done above, produces undefined" " results.\n" " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" " proposed the following workaround:\n" "\\&\n" " *(void **) (&cosine) = dlsym(handle, \"cos\");\n" "\\&\n" " This (clumsy) cast conforms with the ISO C standard and will\n" " avoid any compiler warnings.\n" "\\&\n" " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" " by requiring that conforming implementations support casting\n" " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some" " compilers\n" " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about" " the\n" " cast used in this program. */\n" "\\&\n" " error = dlerror();\n" " if (error != NULL) {\n" " fprintf(stderr, \"%s\\[rs]n\", error);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" " dlclose(handle);\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2025-01-05" msgstr "5 يناير 2025" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08 #. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07 #. http://austingroupbugs.net/view.php?id=74 #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Edlfcn.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "#include Egnu/lib-names.hE /* Defines LIBM_SO (which will be a\n" " string such as \"libm.so.6\") */\n" "int\n" "main(void)\n" "{\n" " void *handle;\n" " typeof(double (double)) *cosine;\n" " char *error;\n" "\\&\n" " handle = dlopen(LIBM_SO, RTLD_LAZY);\n" " if (!handle) {\n" " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " dlerror(); /* Clear any existing error */\n" "\\&\n" " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" "\\&\n" " /* According to the ISO C standard, casting between function\n" " pointers and \\[aq]void *\\[aq], as done above, produces undefined" " results.\n" " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" " proposed the following workaround:\n" "\\&\n" " *(void **) &cosine = dlsym(handle, \"cos\");\n" "\\&\n" " This (clumsy) cast conforms with the ISO C standard and will\n" " avoid any compiler warnings.\n" "\\&\n" " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" " by requiring that conforming implementations support casting\n" " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some" " compilers\n" " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about" " the\n" " cast used in this program. */\n" "\\&\n" " error = dlerror();\n" " if (error != NULL) {\n" " fprintf(stderr, \"%s\\[rs]n\", error);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" " dlclose(handle);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Edlfcn.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "#include Egnu/lib-names.hE /* Defines LIBM_SO (which will be a\n" " string such as \"libm.so.6\") */\n" "int\n" "main(void)\n" "{\n" " void *handle;\n" " typeof(double (double)) *cosine;\n" " char *error;\n" "\\&\n" " handle = dlopen(LIBM_SO, RTLD_LAZY);\n" " if (!handle) {\n" " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " dlerror(); /* Clear any existing error */\n" "\\&\n" " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n" "\\&\n" " /* According to the ISO C standard, casting between function\n" " pointers and \\[aq]void *\\[aq], as done above, produces undefined" " results.\n" " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n" " proposed the following workaround:\n" "\\&\n" " *(void **) &cosine = dlsym(handle, \"cos\");\n" "\\&\n" " This (clumsy) cast conforms with the ISO C standard and will\n" " avoid any compiler warnings.\n" "\\&\n" " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n" " by requiring that conforming implementations support casting\n" " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some" " compilers\n" " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about" " the\n" " cast used in this program. */\n" "\\&\n" " error = dlerror();\n" " if (error != NULL) {\n" " fprintf(stderr, \"%s\\[rs]n\", error);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n" " dlclose(handle);\n" " exit(EXIT_SUCCESS);\n" "}\n" #. 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 "صفحات دليل لينكس (لم تصدر بعد)"