Debian Codegraph @

po/ar/man3/dlopen.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n 4.30.2\n"
9 "POT-Creation-Date: 2026-06-05 06:22+0200\n"
10 "PO-Revision-Date: 2026-06-05 22:08+0400\n"
11 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
12 "Language-Team: Arabic <[email protected]>\n"
13 "Language: ar\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 &&"
18 " n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "dlopen"
26 msgstr "dlopen"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 فبراير 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "صفحات دليل لينكس 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "الاسم"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "dlclose, dlopen, dlmopen - open and close a shared object"
52 msgstr "dlclose, dlopen, dlmopen - فتح وإغلاق كائن مشترك"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "المكتبة"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Dynamic linking library (I<libdl>,\\ I<-ldl>)"
65 msgstr "مكتبة الربط الديناميكي (I<libdl>،\\ I<-ldl>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "موجز"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>dlfcn.hE<gt>>\n"
79 msgstr "B<#include E<lt>dlfcn.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
83 #: opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n"
87 "B<int dlclose(void *>I<handle>B<);>\n"
88 msgstr ""
89 "B<void *dlopen(const char *>I<path>B<, int >I<flags>B<);>\n"
90 "B<int dlclose(void *>I<handle>B<);>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "B<#define _GNU_SOURCE>\n"
97 msgstr "B<#define _GNU_SOURCE>\n"
98
99 #. type: Plain text
100 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
101 #: opensuse-tumbleweed
102 #, no-wrap
103 msgid ""
104 "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);"
105 ">\n"
106 msgstr ""
107 "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<path>B<, int >I<flags>B<);"
108 ">\n"
109
110 #. type: SH
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid "DESCRIPTION"
115 msgstr "الوصف"
116
117 #. type: SS
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid "dlopen()"
122 msgstr "dlopen()"
123
124 #. type: Plain text
125 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
126 #: opensuse-tumbleweed
127 msgid ""
128 "The function B<dlopen>() loads the dynamic shared object (shared library) "
129 "file named by the null-terminated string I<path> and returns an opaque "
130 "\"handle\" for the loaded object. This handle is employed with other "
131 "functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), "
132 "B<dlinfo>(3), and B<dlclose>()."
133 msgstr ""
134 "الدالة B<dlopen>() تُحمّل ملف الكائن المشترك الديناميكي (المكتبة المشتركة) "
135 "المُسمى بسلسلة المحارف المنتهية بصفر I<path> وتُعيد \"مقبضًا\" غير شفاف"
136 " للكائن "
137 "المُحمّل. يُستخدم هذا المقبض مع دوال أخرى في واجهة برمجة تطبيقات dlopen، مثل "
138 "B<dlsym>(3) وB<dladdr>(3) وB<dlinfo>(3) وB<dlclose>()."
139
140 #. FIXME On Solaris, when handle is NULL, we seem to get back
141 #. a handle for (something like) the root of the namespace.
142 #. The point here is that if we do a dlmopen(LM_ID_NEWLM), then
143 #. the path==NULL case returns a different handle than
144 #. in the initial namespace. But, on glibc, the same handle is
145 #. returned. This is probably a bug in glibc.
146 #. type: Plain text
147 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
148 #: opensuse-tumbleweed
149 msgid ""
150 "If I<path> is NULL, then the returned handle is for the main program. If "
151 "I<path> contains a slash (\"/\"), then it is interpreted as a (relative or "
152 "absolute) pathname. Otherwise, the dynamic linker searches for the object "
153 "as follows (see B<ld.so>(8) for further details):"
154 msgstr ""
155 "إذا كان I<path> NULL، فإن المقبض المُعاد يكون للبرنامج الرئيس. إذا احتوى "
156 "I<path> على شرطة مائلة (\"/\")، فإنه يُفسر كاسم مسار (نسبي أو مطلق). وإلا، "
157 "يبحث الرابط الديناميكي عن الكائن كما يلي (انظر B<ld.so>(8) لمزيد من "
158 "التفاصيل):"
159
160 #. type: IP
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "\\[bu]"
165 msgstr "\\[bu]"
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "(ELF only) If the calling object (i.e., the shared library or executable "
172 "from which B<dlopen>() is called) contains a DT_RPATH tag, and does not "
173 "contain a DT_RUNPATH tag, then the directories listed in the DT_RPATH tag "
174 "are searched."
175 msgstr ""
176 "(ELF فقط) إذا احتوى الكائن المُستدعي (أي المكتبة المشتركة أو القابل للتنفيذ "
177 "الذي يُستدعى منه B<dlopen>()) على علامة DT_RPATH، ولم يحتوي على علامة "
178 "DT_RUNPATH، فإن الأدلة المدرجة في علامة DT_RPATH تُبحث."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "If, at the time that the program was started, the environment variable "
185 "B<LD_LIBRARY_PATH> was defined to contain a colon-separated list of "
186 "directories, then these are searched. (As a security measure, this variable "
187 "is ignored for set-user-ID and set-group-ID programs.)"
188 msgstr ""
189 "إذا، في وقت بدء البرنامج، كان المتغير البيئي B<LD_LIBRARY_PATH> مُعرّفًا"
190 " ليحتوي "
191 "على قائمة أدلة مفصولة بنقطتين، فإن هذه تُبحث. (كإجراء أمني، يُتجاهل هذا "
192 "المتغير للبرامج ذات معرف المستخدم المُعيَّن ومعرف المجموعة المُعيَّن.)"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "(ELF only) If the calling object contains a DT_RUNPATH tag, then the "
199 "directories listed in that tag are searched."
200 msgstr ""
201 "(ELF فقط) إذا احتوى الكائن المُستدعي على علامة DT_RUNPATH، فإن الأدلة المدرجة "
202 "في تلك العلامة تُبحث."
203
204 #. type: Plain text
205 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
206 #: opensuse-tumbleweed
207 msgid ""
208 "The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is "
209 "checked to see whether it contains an entry for I<path>."
210 msgstr ""
211 "ملف الخبيئة I</etc/ld.so.cache> (الذي يُحافظ عليه B<ldconfig>(8)) يُفحص"
212 " لمعرفة "
213 "ما إذا كان يحتوي على إدخال لـ I<path>."
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid "The directories I</lib> and I</usr/lib> are searched (in that order)."
219 msgstr "الأدلة I</lib> وI</usr/lib> تُبحث (بهذا الترتيب)."
220
221 #. type: Plain text
222 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
223 #: opensuse-tumbleweed
224 msgid ""
225 "If the object specified by I<path> has dependencies on other shared objects, "
226 "then these are also automatically loaded by the dynamic linker using the "
227 "same rules. (This process may occur recursively, if those objects in turn "
228 "have dependencies, and so on.)"
229 msgstr ""
230 "إذا كان للكائن المُحدد بواسطة I<path> تبعيات على كائنات مشتركة أخرى، فإن هذه "
231 "تُحمّل آليًا بواسطة الرابط الديناميكي باستخدام نفس القواعد. (قد تحدث هذه "
232 "العملية بشكل تكراري، إذا كانت تلك الكائنات بدورها لها تبعيات، وهكذا.)"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid "One of the following two values must be included in I<flags>:"
238 msgstr "يجب تضمين إحدى القيمتين التاليتين في I<flags>:"
239
240 #. type: TP
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "B<RTLD_LAZY>"
245 msgstr "B<RTLD_LAZY>"
246
247 #. commit 12b5b6b7f78ea111e89bbf638294a5413c791072
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "Perform lazy binding. Resolve symbols only as the code that references them "
253 "is executed. If the symbol is never referenced, then it is never resolved. "
254 "(Lazy binding is performed only for function references; references to "
255 "variables are always immediately bound when the shared object is loaded.) "
256 "Since glibc 2.1.1, this flag is overridden by the effect of the "
257 "B<LD_BIND_NOW> environment variable."
258 msgstr ""
259 "نفذ الربط الكسول. حل الرموز فقط عند تنفيذ الكود الذي يُشير إليها. إذا لم يُشر "
260 "إلى الرمز أبدًا، فإنه لا يُحل أبدًا. (يُجرى الربط الكسول فقط لإشارات الدوال؛ "
261 "إشارات المتغيرات تُربط فورًا عند تحميل الكائن المشترك.) منذ glibc 2.1.1،"
262 " يُلغى "
263 "هذا العلم بتأثير المتغير البيئي B<LD_BIND_NOW>."
264
265 #. type: TP
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "B<RTLD_NOW>"
270 msgstr "B<RTLD_NOW>"
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "If this value is specified, or the environment variable B<LD_BIND_NOW> is "
277 "set to a nonempty string, all undefined symbols in the shared object are "
278 "resolved before B<dlopen>() returns. If this cannot be done, an error is "
279 "returned."
280 msgstr ""
281 "إذا حُددت هذه القيمة، أو عُيّن المتغير البيئي B<LD_BIND_NOW> إلى سلسلة محارف "
282 "غير فارغة، فإن جميع الرموز غير المُعرّفة في الكائن المشترك تُحل قبل أن تُعيد "
283 "B<dlopen>(). إذا لم يمكن فعل ذلك، تُعاد رسالة خطأ."
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid "Zero or more of the following values may also be ORed in I<flags>:"
289 msgstr "قد تُضاف صفر أو أكثر من القيم التالية باستخدام عملية OR في I<flags>:"
290
291 #. type: TP
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "B<RTLD_GLOBAL>"
296 msgstr "B<RTLD_GLOBAL>"
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid ""
302 "The symbols defined by this shared object will be made available for symbol "
303 "resolution of subsequently loaded shared objects."
304 msgstr ""
305 "ستُتاح الرموز المُعرَّفة بواسطة هذا الكائن المشترك لحل الرموز للكائنات"
306 " المشتركة "
307 "المُحمَّلة لاحقًا."
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<RTLD_LOCAL>"
314 msgstr "B<RTLD_LOCAL>"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "This is the converse of B<RTLD_GLOBAL>, and the default if neither flag is "
321 "specified. Symbols defined in this shared object are not made available to "
322 "resolve references in subsequently loaded shared objects."
323 msgstr ""
324 "هذا هو عكس B<RTLD_GLOBAL>، والمبدئي إذا لم يُحدَّد أي علم. الرموز المُعرَّفة"
325 " في "
326 "هذا الكائن المشترك لا تُتاح لحل المراجع في الكائنات المشتركة المُحمَّلة"
327 " لاحقًا."
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<RTLD_NODELETE> (since glibc 2.2)"
334 msgstr "B<RTLD_NODELETE> (منذ glibc 2.2)"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "Do not unload the shared object during B<dlclose>(). Consequently, the "
341 "object's static and global variables are not reinitialized if the object is "
342 "reloaded with B<dlopen>() at a later time."
343 msgstr ""
344 "لا تُفرغ الكائن المشترك أثناء B<dlclose>(). وبالتالي، لا تُعاد تهيئة"
345 " المتغيرات "
346 "الثابتة والعامة للكائن إذا أُعيد تحميل الكائن باستخدام B<dlopen>() في وقت "
347 "لاحق."
348
349 #. type: TP
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<RTLD_NOLOAD> (since glibc 2.2)"
354 msgstr "B<RTLD_NOLOAD> (منذ glibc 2.2)"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "Don't load the shared object. This can be used to test if the object is "
361 "already resident (B<dlopen>() returns NULL if it is not, or the object's "
362 "handle if it is resident). This flag can also be used to promote the flags "
363 "on a shared object that is already loaded. For example, a shared object "
364 "that was previously loaded with B<RTLD_LOCAL> can be reopened with "
365 "B<RTLD_NOLOAD\\ |\\ RTLD_GLOBAL>."
366 msgstr ""
367 "لا تُحمِّل الكائن المشترك. يمكن استخدام هذا لاختبار ما إذا كان الكائن مقيمًا "
368 "بالفعل (يُرجع B<dlopen>() NULL إذا لم يكن، أو مقبض الكائن إذا كان مقيمًا). "
369 "يمكن أيضًا استخدام هذا العلم لترقية الأعلام على كائن مشترك مُحمَّل بالفعل."
370 " على "
371 "سبيل المثال، يمكن إعادة فتح كائن مشترك كان مُحمَّلاً سابقًا باستخدام "
372 "B<RTLD_LOCAL> باستخدام B<RTLD_NOLOAD\\ |\\ RTLD_GLOBAL>."
373
374 #. type: TP
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "B<RTLD_DEEPBIND> (since glibc 2.3.4)"
379 msgstr "B<RTLD_DEEPBIND> (منذ glibc 2.3.4)"
380
381 #. Inimitably described by UD in
382 #. http://sources.redhat.com/ml/libc-hacker/2004-09/msg00083.html.
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "Place the lookup scope of the symbols in this shared object ahead of the "
388 "global scope. This means that a self-contained object will use its own "
389 "symbols in preference to global symbols with the same name contained in "
390 "objects that have already been loaded."
391 msgstr ""
392 "ضَع نطاق البحث عن الرموز في هذا الكائن المشترك قبل النطاق العام. هذا يعني أن "
393 "الكائن المستقل سيستخدم رموزه الخاصة بتفضيل على الرموز العامة التي تحمل الاسم "
394 "نفسه والموجودة في الكائنات المُحمَّلة بالفعل."
395
396 #. type: Plain text
397 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
398 #: opensuse-tumbleweed
399 msgid ""
400 "If I<path> is NULL, then the returned handle is for the main program. When "
401 "given to B<dlsym>(3), this handle causes a search for a symbol in the main "
402 "program, followed by all shared objects loaded at program startup, and then "
403 "all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>."
404 msgstr ""
405 "إذا كان I<path> NULL، فإن المقبض المُرجَع هو للبرنامج الرئيس. عند إعطائه إلى "
406 "B<dlsym>(3)، يتسبب هذا المقبض في بحث عن رمز في البرنامج الرئيس، متبوعًا بجميع "
407 "الكائنات المشتركة المُحمَّلة عند بدء البرنامج، ثم جميع الكائنات المشتركة "
408 "المُحمَّلة بواسطة B<dlopen>() مع العلم B<RTLD_GLOBAL>."
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid ""
414 "Symbol references in the shared object are resolved using (in order): "
415 "symbols in the link map of objects loaded for the main program and its "
416 "dependencies; symbols in shared objects (and their dependencies) that were "
417 "previously opened with B<dlopen>() using the B<RTLD_GLOBAL> flag; and "
418 "definitions in the shared object itself (and any dependencies that were "
419 "loaded for that object)."
420 msgstr ""
421 "تُحل مراجع الرموز في الكائن المشترك باستخدام (بالترتيب): الرموز في خريطة "
422 "الربط للكائنات المُحمَّلة للبرنامج الرئيس وتبعياته؛ الرموز في الكائنات"
423 " المشتركة "
424 "(وتبعياتها) التي فُتحت سابقًا باستخدام B<dlopen>() باستخدام العلم "
425 "B<RTLD_GLOBAL>؛ والتعريفات في الكائن المشترك نفسه (وأي تبعيات حُمِّلت لذلك "
426 "الكائن)."
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "Any global symbols in the executable that were placed into its dynamic "
433 "symbol table by B<ld>(1) can also be used to resolve references in a "
434 "dynamically loaded shared object. Symbols may be placed in the dynamic "
435 "symbol table either because the executable was linked with the flag \"-"
436 "rdynamic\" (or, synonymously, \"--export-dynamic\"), which causes all of the "
437 "executable's global symbols to be placed in the dynamic symbol table, or "
438 "because B<ld>(1) noted a dependency on a symbol in another object during "
439 "static linking."
440 msgstr ""
441 "يمكن أيضًا استخدام أي رموز عامة في الملف التنفيذي وُضعت في جدول الرموز "
442 "الديناميكي بواسطة B<ld>(1) لحل المراجع في كائن مشترك مُحمَّل ديناميكيًا. قد"
443 " تُوضع "
444 "الرموز في جدول الرموز الديناميكي إما لأن الملف التنفيذي رُبط باستخدام العلم "
445 "\"-rdynamic\" (أو، بالمرادف، \"--export-dynamic\")، الذي يتسبب في وضع جميع "
446 "الرموز العامة للملف التنفيذي في جدول الرموز الديناميكي، أو لأن B<ld>(1) لاحظ "
447 "اعتمادًا على رمز في كائن آخر أثناء الربط الثابت."
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "If the same shared object is opened again with B<dlopen>(), the same object "
454 "handle is returned. The dynamic linker maintains reference counts for "
455 "object handles, so a dynamically loaded shared object is not deallocated "
456 "until B<dlclose>() has been called on it as many times as B<dlopen>() has "
457 "succeeded on it. Constructors (see below) are called only when the object "
458 "is actually loaded into memory (i.e., when the reference count increases to "
459 "1)."
460 msgstr ""
461 "إذا فُتح نفس الكائن المشترك مرة أخرى باستخدام B<dlopen>()، يُرجَع نفس مقبض "
462 "الكائن. يحتفظ الرابط الديناميكي بأعداد مراجع لمقابض الكائنات، لذلك لا يُحرر "
463 "كائن مشترك مُحمَّل ديناميكيًا حتى يُستدعى B<dlclose>() عليه بعدد مرات نجاح "
464 "B<dlopen>() عليه. تُستدعى المنشئات (انظر أدناه) فقط عندما يُحمَّل الكائن"
465 " فعليًا "
466 "في الذاكرة (أي عندما يزيد عدد المراجع إلى 1)."
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "A subsequent B<dlopen>() call that loads the same shared object with "
473 "B<RTLD_NOW> may force symbol resolution for a shared object earlier loaded "
474 "with B<RTLD_LAZY>. Similarly, an object that was previously opened with "
475 "B<RTLD_LOCAL> can be promoted to B<RTLD_GLOBAL> in a subsequent B<dlopen>()."
476 msgstr ""
477 "قد يُجبر استدعاء B<dlopen>() لاحق يُحمِّل نفس الكائن المشترك باستخدام "
478 "B<RTLD_NOW> على حل الرموز لكائن مشترك حُمِّل سابقًا باستخدام B<RTLD_LAZY>. "
479 "وبالمثل، يمكن ترقية كائن فُتح سابقًا باستخدام B<RTLD_LOCAL> إلى B<RTLD_GLOBAL"
480 "> "
481 "في استدعاء B<dlopen>() لاحق."
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid "If B<dlopen>() fails for any reason, it returns NULL."
487 msgstr "إذا فشل B<dlopen>() لأي سبب، يُرجع NULL."
488
489 #. type: SS
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 #, no-wrap
493 msgid "dlmopen()"
494 msgstr "dlmopen()"
495
496 #. type: Plain text
497 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
498 #: opensuse-tumbleweed
499 msgid ""
500 "This function performs the same task as B<dlopen>()\\[em]the I<path> and "
501 "I<flags> arguments, as well as the return value, are the same, except for "
502 "the differences noted below."
503 msgstr ""
504 "تُؤدي هذه الدالة نفس مهمة B<dlopen>()\\[em]وسيطات I<path> و I<flags>، "
505 "بالإضافة إلى القيمة المُرجَعة، هي نفسها، باستثناء الاختلافات المُشار إليها "
506 "أدناه."
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid ""
512 "The B<dlmopen>() function differs from B<dlopen>() primarily in that it "
513 "accepts an additional argument, I<lmid>, that specifies the link-map list "
514 "(also referred to as a I<namespace>) in which the shared object should be "
515 "loaded. (By comparison, B<dlopen>() adds the dynamically loaded shared "
516 "object to the same namespace as the shared object from which the "
517 "B<dlopen>() call is made.) The I<Lmid_t> type is an opaque handle that "
518 "refers to a namespace."
519 msgstr ""
520 "تختلف الدالة B<dlmopen>() عن B<dlopen>() بشكل أساسي في أنها تقبل وسيطة "
521 "إضافية، I<lmid>، تُحدد قائمة خريطة الربط (المشار إليها أيضًا باسم "
522 "I<namespace>) التي يجب تحميل الكائن المشترك فيها. (بالمقارنة، تُضيف "
523 "B<dlopen>() الكائن المشترك المُحمَّل ديناميكيًا إلى نفس مساحة الاسم مثل"
524 " الكائن "
525 "المشترك الذي يُستدعى منه B<dlopen>().) النوع I<Lmid_t> هو مقبض غير شفاف يُشير "
526 "إلى مساحة اسم."
527
528 #. FIXME: Is using dlinfo() RTLD_DI_LMID the right technique?
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid ""
533 "The I<lmid> argument is either the ID of an existing namespace (which can be "
534 "obtained using the B<dlinfo>(3) B<RTLD_DI_LMID> request) or one of the "
535 "following special values:"
536 msgstr ""
537 "وسيطة I<lmid> إما أن تكون معرف مساحة اسم موجودة (يمكن الحصول عليه باستخدام "
538 "طلب B<dlinfo>(3) B<RTLD_DI_LMID>) أو إحدى القيم الخاصة التالية:"
539
540 #. type: TP
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 #, no-wrap
544 msgid "B<LM_ID_BASE>"
545 msgstr "B<LM_ID_BASE>"
546
547 #. type: Plain text
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 msgid ""
551 "Load the shared object in the initial namespace (i.e., the application's "
552 "namespace)."
553 msgstr "حُمِّل الكائن المشترك في النطاق المبدئي (أي نطاق التطبيق)."
554
555 #. type: TP
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, no-wrap
559 msgid "B<LM_ID_NEWLM>"
560 msgstr "B<LM_ID_NEWLM>"
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "Create a new namespace and load the shared object in that namespace. The "
567 "object must have been correctly linked to reference all of the other shared "
568 "objects that it requires, since the new namespace is initially empty."
569 msgstr ""
570 "أنشئ نطاقًا جديدًا وحُمِّل الكائن المشترك في ذلك النطاق. يجب أن يكون الكائن"
571 " قد "
572 "وُصل بشكل صحيح للإشارة إلى جميع الكائنات المشتركة الأخرى التي يحتاجها، لأن "
573 "النطاق الجديد فارغ مبدئيًا."
574
575 #. type: Plain text
576 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
577 #: opensuse-tumbleweed
578 msgid ""
579 "If I<path> is NULL, then the only permitted value for I<lmid> is "
580 "B<LM_ID_BASE>."
581 msgstr ""
582 "إذا كان I<المسار> فارغًا (NULL)، فإن القيمة الوحيدة المسموح بها لـ I<lmid> هي "
583 "B<LM_ID_BASE>."
584
585 #. type: SS
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "dlclose()"
590 msgstr "dlclose()"
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 msgid ""
596 "The function B<dlclose>() decrements the reference count on the dynamically "
597 "loaded shared object referred to by I<handle>."
598 msgstr ""
599 "تقلل الدالة B<dlclose>() عدد المراجع على الكائن المشترك المُحمَّل ديناميكيًا "
600 "المشار إليه بـ I<المقبض>."
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid ""
606 "If the object's reference count drops to zero and no symbols in this object "
607 "are required by other objects, then the object is unloaded after first "
608 "calling any destructors defined for the object. (Symbols in this object "
609 "might be required in another object because this object was opened with the "
610 "B<RTLD_GLOBAL> flag and one of its symbols satisfied a relocation in another "
611 "object.)"
612 msgstr ""
613 "إذا انخفض عدد مراجع الكائن إلى الصفر ولم تكن أي رموز في هذا الكائن مطلوبة "
614 "بواسطة كائنات أخرى، فإن الكائن يُفرغ بعد استدعاء أي مدمرات مُعرَّفة للكائن"
615 " أولاً. "
616 "(قد تكون الرموز في هذا الكائن مطلوبة في كائن آخر لأن هذا الكائن فُتح مع العلم "
617 "B<RTLD_GLOBAL> وأحد رموزه حقق إعادة توطين في كائن آخر.)"
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid ""
623 "All shared objects that were automatically loaded when B<dlopen>() was "
624 "invoked on the object referred to by I<handle> are recursively closed in the "
625 "same manner."
626 msgstr ""
627 "جميع الكائنات المشتركة التي حُمّلت آليًا عند استدعاء B<dlopen>() على الكائن "
628 "المشار إليه بـ I<المقبض> تُغلق بشكل تكراري بنفس الطريقة."
629
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "A successful return from B<dlclose>() does not guarantee that the symbols "
635 "associated with I<handle> are removed from the caller's address space. In "
636 "addition to references resulting from explicit B<dlopen>() calls, a shared "
637 "object may have been implicitly loaded (and reference counted) because of "
638 "dependencies in other shared objects. Only when all references have been "
639 "released can the shared object be removed from the address space."
640 msgstr ""
641 "لا يضمن الإرجاع الناجح من B<dlclose>() إزالة الرموز المرتبطة بـ I<المقبض> من "
642 "مساحة عنوان المستدعي. بالإضافة إلى المراجع الناتجة عن استدعاءات B<dlopen>() "
643 "الصريحة، قد يكون الكائن المشترك حُمِّل ضمنيًا (وتم عد مراجعه) بسبب التبعيات"
644 " في "
645 "كائنات مشتركة أخرى. فقط عندما تُحرر جميع المراجع يمكن إزالة الكائن المشترك من "
646 "مساحة العنوان."
647
648 #. type: SH
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 #, no-wrap
652 msgid "RETURN VALUE"
653 msgstr "قيمة الإرجاع"
654
655 #. type: Plain text
656 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
657 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
658 msgid ""
659 "On success, B<dlopen>() and B<dlmopen>() return a non-NULL handle for the "
660 "loaded object. On error (file could not be found, was not readable, had the "
661 "wrong format, or caused errors during loading), these functions return NULL."
662 msgstr ""
663 "عند النجاح، تُرجع B<dlopen>() و B<dlmopen>() مقبضًا غير فارغ (non-NULL)"
664 " للكائن "
665 "المُحمَّل. عند الخطأ (لم يُعثر على الملف، أو لم يكن قابلاً للقراءة، أو كان"
666 " بتنسيق "
667 "خاطئ، أو تسبب في أخطاء أثناء التحميل)، تُرجع هذه الدوال NULL."
668
669 #. type: Plain text
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 msgid ""
673 "On success, B<dlclose>() returns 0; on error, it returns a nonzero value."
674 msgstr "عند النجاح، تُرجع B<dlclose>() 0؛ عند الخطأ، تُرجع قيمة غير صفرية."
675
676 #. type: Plain text
677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
679 msgid "Errors from these functions can be diagnosed using B<dlerror>(3)."
680 msgstr "يمكن تشخيص الأخطاء من هذه الدوال باستخدام B<dlerror>(3)."
681
682 #. type: SH
683 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
684 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
685 #, no-wrap
686 msgid "ATTRIBUTES"
687 msgstr "السمات"
688
689 #. type: Plain text
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 msgid ""
693 "For an explanation of the terms used in this section, see B<attributes>(7)."
694 msgstr ""
695 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
696
697 #. type: tbl table
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "Interface"
702 msgstr "الواجهة"
703
704 #. type: tbl table
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "Attribute"
709 msgstr "السمة"
710
711 #. type: tbl table
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 #, no-wrap
715 msgid "Value"
716 msgstr "القيمة"
717
718 #. type: tbl table
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid ".na\n"
723 msgstr ".na\n"
724
725 #. type: tbl table
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 #, no-wrap
729 msgid ".nh\n"
730 msgstr ".nh\n"
731
732 #. type: tbl table
733 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
734 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
735 #, no-wrap
736 msgid ""
737 "B<dlopen>(),\n"
738 "B<dlmopen>(),\n"
739 "B<dlclose>()"
740 msgstr ""
741 "B<dlopen>(),\n"
742 "B<dlmopen>(),\n"
743 "B<dlclose>()"
744
745 #. type: tbl table
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 #, no-wrap
749 msgid "Thread safety"
750 msgstr "سلامة الخيوط"
751
752 #. type: tbl table
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 #, no-wrap
756 msgid "MT-Safe"
757 msgstr "MT-Safe"
758
759 #. type: SH
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, no-wrap
763 msgid "STANDARDS"
764 msgstr "المعايير"
765
766 #. type: TP
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 #, no-wrap
770 msgid "B<dlopen>()"
771 msgstr "B<dlopen>()"
772
773 #. type: TQ
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 #, no-wrap
777 msgid "B<dlclose>()"
778 msgstr "B<dlclose>()"
779
780 #. type: Plain text
781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
783 msgid "POSIX.1-2008."
784 msgstr "POSIX.1-2008."
785
786 #. type: TP
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 #, no-wrap
790 msgid "B<dlmopen>()"
791 msgstr "B<dlmopen>()"
792
793 #. type: TQ
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 #, no-wrap
797 msgid "B<RTLD_NOLOAD>"
798 msgstr "B<RTLD_NOLOAD>"
799
800 #. type: TQ
801 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
802 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
803 #, no-wrap
804 msgid "B<RTLD_NODELETE>"
805 msgstr "B<RTLD_NODELETE>"
806
807 #. type: Plain text
808 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
809 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
810 msgid "GNU."
811 msgstr "GNU."
812
813 #. type: TP
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 #, no-wrap
817 msgid "B<RTLD_DEEPBIND>"
818 msgstr "B<RTLD_DEEPBIND>"
819
820 #. type: Plain text
821 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
822 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
823 msgid "Solaris."
824 msgstr "سولاريس."
825
826 #. type: SH
827 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
828 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
829 #, no-wrap
830 msgid "HISTORY"
831 msgstr "التاريخ"
832
833 #. type: Plain text
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 msgid "glibc 2.0. POSIX.1-2001."
837 msgstr "glibc 2.0. POSIX.1-2001."
838
839 #. type: Plain text
840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
842 msgid "glibc 2.3.4."
843 msgstr "glibc 2.3.4."
844
845 #. type: SH
846 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
847 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
848 #, no-wrap
849 msgid "NOTES"
850 msgstr "ملاحظات"
851
852 #. type: SS
853 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
854 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
855 #, no-wrap
856 msgid "dlmopen() and namespaces"
857 msgstr "dlmopen() والنطاقات"
858
859 #. type: Plain text
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 msgid ""
863 "A link-map list defines an isolated namespace for the resolution of symbols "
864 "by the dynamic linker. Within a namespace, dependent shared objects are "
865 "implicitly loaded according to the usual rules, and symbol references are "
866 "likewise resolved according to the usual rules, but such resolution is "
867 "confined to the definitions provided by the objects that have been "
868 "(explicitly and implicitly) loaded into the namespace."
869 msgstr ""
870 "تعرّف قائمة خريطة الوصل نطاقًا معزولاً لحل الرموز بواسطة الواصل الديناميكي. "
871 "داخل النطاق، تُحمّل الكائنات المشتركة التابعة ضمنيًا وفقًا للقواعد المعتادة، "
872 "وتُحل مراجع الرموز بالمثل وفقًا للقواعد المعتادة، ولكن هذا الحل يقتصر على "
873 "التعريفات المقدمة بواسطة الكائنات التي حُمّلت (صراحةً وضمنيًا) في النطاق."
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "The B<dlmopen>() function permits object-load isolation\\[em]the ability to "
880 "load a shared object in a new namespace without exposing the rest of the "
881 "application to the symbols made available by the new object. Note that the "
882 "use of the B<RTLD_LOCAL> flag is not sufficient for this purpose, since it "
883 "prevents a shared object's symbols from being available to I<any> other "
884 "shared object. In some cases, we may want to make the symbols provided by a "
885 "dynamically loaded shared object available to (a subset of) other shared "
886 "objects without exposing those symbols to the entire application. This can "
887 "be achieved by using a separate namespace and the B<RTLD_GLOBAL> flag."
888 msgstr ""
889 "تسمح الدالة B<dlmopen>() بعزل تحميل الكائنات\\[em]أي القدرة على تحميل كائن "
890 "مشترك في نطاق أسماء جديد دون كشف باقي التطبيق للرموز التي يوفرها الكائن "
891 "الجديد. لاحظ أن استخدام العلم B<RTLD_LOCAL> غير كافٍ لهذا الغرض، لأنه يمنع "
892 "رموز الكائن المشترك من أن تكون متاحة I<لأي> كائن مشترك آخر. في بعض الحالات،"
893 " قد "
894 "نرغب في جعل الرموز التي يوفرها كائن مشترك محمّل ديناميكيًا متاحة لمجموعة"
895 " فرعية "
896 "من الكائنات المشتركة الأخرى دون كشف هذه الرموز للتطبيق بأكمله. يمكن تحقيق "
897 "ذلك باستخدام نطاق أسماء منفصل والعلم B<RTLD_GLOBAL>."
898
899 #. type: Plain text
900 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
901 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
902 msgid ""
903 "The B<dlmopen>() function also can be used to provide better isolation than "
904 "the B<RTLD_LOCAL> flag. In particular, shared objects loaded with "
905 "B<RTLD_LOCAL> may be promoted to B<RTLD_GLOBAL> if they are dependencies of "
906 "another shared object loaded with B<RTLD_GLOBAL>. Thus, B<RTLD_LOCAL> is "
907 "insufficient to isolate a loaded shared object except in the (uncommon) "
908 "case where one has explicit control over all shared object dependencies."
909 msgstr ""
910 "يمكن أيضًا استخدام الدالة B<dlmopen>() لتوفير عزل أفضل من العلم "
911 "B<RTLD_LOCAL>. على وجه الخصوص، قد تُرقّى الكائنات المشتركة المحمّلة بـ "
912 "B<RTLD_LOCAL> إلى B<RTLD_GLOBAL> إذا كانت تابعة لكائن مشترك آخر محمّل بـ "
913 "B<RTLD_GLOBAL>. وبالتالي، فإن B<RTLD_LOCAL> غير كافٍ لعزل كائن مشترك محمّل"
914 " إلا "
915 "في الحالة (النادرة) حيث يكون لدى المرء تحكم صريح في جميع تبعيات الكائن "
916 "المشترك."
917
918 #. type: Plain text
919 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
920 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
921 msgid ""
922 "Possible uses of B<dlmopen>() are plugins where the author of the plugin-"
923 "loading framework can't trust the plugin authors and does not wish any "
924 "undefined symbols from the plugin framework to be resolved to plugin "
925 "symbols. Another use is to load the same object more than once. Without "
926 "the use of B<dlmopen>(), this would require the creation of distinct copies "
927 "of the shared object file. Using B<dlmopen>(), this can be achieved by "
928 "loading the same shared object file into different namespaces."
929 msgstr ""
930 "الاستخدامات المحتملة لـ B<dlmopen>() هي الإضافات حيث لا يثق مؤلف إطار تحميل "
931 "الإضافات بمؤلفي الإضافات ولا يرغب في حل أي رموز غير معرفة من إطار الإضافة "
932 "إلى رموز الإضافة. استخدام آخر هو تحميل نفس الكائن أكثر من مرة. بدون استخدام "
933 "B<dlmopen>()، سيتطلب ذلك إنشاء نسخ متميزة من ملف الكائن المشترك. باستخدام "
934 "B<dlmopen>()، يمكن تحقيق ذلك بتحميل نفس ملف الكائن المشترك في نطاقات أسماء "
935 "مختلفة."
936
937 #. DL_NNS
938 #. type: Plain text
939 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
940 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
941 msgid "The glibc implementation supports a maximum of 16 namespaces."
942 msgstr "يدعم تطبيق glibc حدًا أقصى يبلغ 16 نطاق أسماء."
943
944 #. type: SS
945 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
946 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
947 #, no-wrap
948 msgid "Initialization and finalization functions"
949 msgstr "دوال التهيئة والإنهاء"
950
951 #. info gcc "C Extensions" "Function attributes"
952 #. type: Plain text
953 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
954 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
955 msgid ""
956 "Shared objects may export functions using the "
957 "B<__attribute__((constructor))> and B<__attribute__((destructor))> function "
958 "attributes. Constructor functions are executed before B<dlopen>() returns, "
959 "and destructor functions are executed before B<dlclose>() returns. A "
960 "shared object may export multiple constructors and destructors, and "
961 "priorities can be associated with each function to determine the order in "
962 "which they are executed. See the B<gcc> info pages (under \"Function "
963 "attributes\") for further information."
964 msgstr ""
965 "قد تُصدّر الكائنات المشتركة دوال باستخدام سمات الدالة "
966 "B<__attribute__((constructor))> و B<__attribute__((destructor))>. تُنفّذ دوال "
967 "البناء قبل أن تعود B<dlopen>()، وتُنفّذ دوال التدمير قبل أن تعود B<dlclose"
968 ">(). "
969 "قد يُصدّر الكائن المشترك عدة بناة ومدمّرات، ويمكن ربط أولويات بكل دالة لتحديد "
970 "الترتيب الذي تُنفّذ به. راجع صفحات معلومات B<gcc> (تحت \"سمات الدالة\") لمزيد "
971 "من المعلومات."
972
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 msgid ""
977 "An older method of (partially) achieving the same result is via the use of "
978 "two special symbols recognized by the linker: B<_init> and B<_fini>. If a "
979 "dynamically loaded shared object exports a routine named B<_init>(), then "
980 "that code is executed after loading a shared object, before B<dlopen>() "
981 "returns. If the shared object exports a routine named B<_fini>(), then that "
982 "routine is called just before the object is unloaded. In this case, one "
983 "must avoid linking against the system startup files, which contain default "
984 "versions of these files; this can be done by using the B<gcc>(1) I<-"
985 "nostartfiles> command-line option."
986 msgstr ""
987 "طريقة أقدم لتحقيق نفس النتيجة (جزئيًا) هي عبر استخدام رمزين خاصين يتعرف "
988 "عليهما الرابط: B<_init> و B<_fini>. إذا صَدّر كائن مشترك محمّل ديناميكيًا"
989 " روتينًا "
990 "باسم B<_init>()، فسيُنفّذ هذا الكود بعد تحميل الكائن المشترك، قبل أن تعود "
991 "B<dlopen>(). إذا صَدّر الكائن المشترك روتينًا باسم B<_fini>()، فسيُستدعى هذا "
992 "الروتين قبل تفريغ الكائن مباشرة. في هذه الحالة، يجب تجنب الربط مع ملفات بدء "
993 "تشغيل النظام، التي تحتوي على إصدارات مبدئية من هذه الملفات؛ يمكن فعل ذلك "
994 "باستخدام خيار سطر الأوامر B<gcc>(1) I<-nostartfiles>."
995
996 #. Using these routines, or the gcc
997 #. .B \-nostartfiles
998 #. or
999 #. .B \-nostdlib
1000 #. options, is not recommended.
1001 #. Their use may result in undesired behavior,
1002 #. since the constructor/destructor routines will not be executed
1003 #. (unless special measures are taken).
1004 #. .\" void _init(void) __attribute__((constructor));
1005 #. .\" void _fini(void) __attribute__((destructor));
1006 #. type: Plain text
1007 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1008 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1009 msgid ""
1010 "Use of B<_init> and B<_fini> is now deprecated in favor of the "
1011 "aforementioned constructors and destructors, which among other advantages, "
1012 "permit multiple initialization and finalization functions to be defined."
1013 msgstr ""
1014 "استخدام B<_init> و B<_fini> أصبح الآن مهملاً لصالح البناة والمدمّرين"
1015 " المذكورين "
1016 "أعلاه، والذين، من بين مزايا أخرى، يسمحون بتعريف دوال تهيئة وإنهاء متعددة."
1017
1018 #. type: Plain text
1019 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1020 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1021 msgid ""
1022 "Since glibc 2.2.3, B<atexit>(3) can be used to register an exit handler "
1023 "that is automatically called when a shared object is unloaded."
1024 msgstr ""
1025 "منذ glibc 2.2.3، يمكن استخدام B<atexit>(3) لتسجيل معالج خروج يُستدعى آليًا "
1026 "عند تفريغ كائن مشترك."
1027
1028 #. type: SS
1029 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1030 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1031 #, no-wrap
1032 msgid "History"
1033 msgstr "السجل"
1034
1035 #. type: Plain text
1036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1038 msgid "These functions are part of the dlopen API, derived from SunOS."
1039 msgstr "هذه الدوال جزء من واجهة برمجة تطبيقات dlopen، المشتقة من SunOS."
1040
1041 #. type: SH
1042 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1043 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1044 #, no-wrap
1045 msgid "BUGS"
1046 msgstr "العلل"
1047
1048 #. dlerror(): "invalid mode"
1049 #. https://sourceware.org/bugzilla/show_bug.cgi?id=18684
1050 #. type: Plain text
1051 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1052 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1053 msgid ""
1054 "As at glibc 2.24, specifying the B<RTLD_GLOBAL> flag when calling "
1055 "B<dlmopen>() generates an error. Furthermore, specifying B<RTLD_GLOBAL> "
1056 "when calling B<dlopen>() results in a program crash (B<SIGSEGV>) if the "
1057 "call is made from any object loaded in a namespace other than the initial "
1058 "namespace."
1059 msgstr ""
1060 "اعتبارًا من glibc 2.24، يُولّد تحديد العلم B<RTLD_GLOBAL> عند استدعاء "
1061 "B<dlmopen>() خطأ. علاوة على ذلك، يُؤدي تحديد B<RTLD_GLOBAL> عند استدعاء "
1062 "B<dlopen>() إلى تعطل البرنامج (B<SIGSEGV>) إذا تم الاستدعاء من أي كائن محمّل "
1063 "في نطاق أسماء غير النطاق الأولي."
1064
1065 #. type: SH
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 #, no-wrap
1069 msgid "EXAMPLES"
1070 msgstr "أمثلة"
1071
1072 #. type: Plain text
1073 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1074 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1075 msgid ""
1076 "The program below loads the (glibc) math library, looks up the address of "
1077 "the B<cos>(3) function, and prints the cosine of 2.0. The following is an "
1078 "example of building and running the program:"
1079 msgstr ""
1080 "يُحمّل البرنامج أدناه مكتبة الرياضيات (glibc)، ويبحث عن عنوان الدالة "
1081 "B<cos>(3)، ويطبع جيب التمام لـ 2.0. فيما يلي مثال لبناء البرنامج وتشغيله:"
1082
1083 #. type: Plain text
1084 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1085 #: opensuse-tumbleweed
1086 #, no-wrap
1087 msgid ""
1088 "$B< cc dlopen_demo.c -ldl>;\n"
1089 "$B< ./a.out>;\n"
1090 "-0.416147\n"
1091 msgstr ""
1092 "$B< cc dlopen_demo.c -ldl>;\n"
1093 "$B< ./a.out>;\n"
1094 "-0.416147\n"
1095
1096 #. type: SS
1097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1099 #, no-wrap
1100 msgid "Program source"
1101 msgstr "مصدر البرنامج"
1102
1103 #. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08
1104 #. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07
1105 #. http://austingroupbugs.net/view.php?id=74
1106 #. type: Plain text
1107 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1108 #: opensuse-tumbleweed
1109 #, no-wrap
1110 msgid ""
1111 "#include E<lt>dlfcn.hE<gt>\n"
1112 "#include E<lt>stdio.hE<gt>\n"
1113 "#include E<lt>stdlib.hE<gt>\n"
1114 "\\&\n"
1115 "#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n"
1116 " string such as \"libm.so.6\") */\n"
1117 "int\n"
1118 "main(void)\n"
1119 "{\n"
1120 " void *handle;\n"
1121 " typeof(double (double)) *cosine;\n"
1122 " char *error;\n"
1123 "\\&\n"
1124 " handle = dlopen(LIBM_SO, RTLD_LAZY);\n"
1125 " if (!handle) {\n"
1126 " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n"
1127 " exit(EXIT_FAILURE);\n"
1128 " }\n"
1129 "\\&\n"
1130 " dlerror(); /* Clear any existing error */\n"
1131 "\\&\n"
1132 " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n"
1133 "\\&\n"
1134 " /* According to the ISO C standard, casting between function\n"
1135 " pointers and \\[aq]void *\\[aq], as done above, produces undefined"
1136 " results.\n"
1137 " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n"
1138 " proposed the following workaround:\n"
1139 "\\&\n"
1140 " *(void **) &cosine = dlsym(handle, \"cos\");\n"
1141 "\\&\n"
1142 " This (clumsy) cast conforms with the ISO C standard and will\n"
1143 " avoid any compiler warnings.\n"
1144 "\\&\n"
1145 " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n"
1146 " by requiring that conforming implementations support casting\n"
1147 " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some"
1148 " compilers\n"
1149 " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about"
1150 " the\n"
1151 " cast used in this program. */\n"
1152 "\\&\n"
1153 " error = dlerror();\n"
1154 " if (error != NULL) {\n"
1155 " fprintf(stderr, \"%s\\[rs]n\", error);\n"
1156 " exit(EXIT_FAILURE);\n"
1157 " }\n"
1158 "\\&\n"
1159 " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n"
1160 " dlclose(handle);\n"
1161 " exit(EXIT_SUCCESS);\n"
1162 "}\n"
1163 msgstr ""
1164 "#include E<lt>dlfcn.hE<gt>\n"
1165 "#include E<lt>stdio.hE<gt>\n"
1166 "#include E<lt>stdlib.hE<gt>\n"
1167 "\\&\n"
1168 "#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n"
1169 " string such as \"libm.so.6\") */\n"
1170 "int\n"
1171 "main(void)\n"
1172 "{\n"
1173 " void *handle;\n"
1174 " typeof(double (double)) *cosine;\n"
1175 " char *error;\n"
1176 "\\&\n"
1177 " handle = dlopen(LIBM_SO, RTLD_LAZY);\n"
1178 " if (!handle) {\n"
1179 " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n"
1180 " exit(EXIT_FAILURE);\n"
1181 " }\n"
1182 "\\&\n"
1183 " dlerror(); /* Clear any existing error */\n"
1184 "\\&\n"
1185 " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n"
1186 "\\&\n"
1187 " /* According to the ISO C standard, casting between function\n"
1188 " pointers and \\[aq]void *\\[aq], as done above, produces undefined"
1189 " results.\n"
1190 " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n"
1191 " proposed the following workaround:\n"
1192 "\\&\n"
1193 " *(void **) &cosine = dlsym(handle, \"cos\");\n"
1194 "\\&\n"
1195 " This (clumsy) cast conforms with the ISO C standard and will\n"
1196 " avoid any compiler warnings.\n"
1197 "\\&\n"
1198 " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n"
1199 " by requiring that conforming implementations support casting\n"
1200 " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some"
1201 " compilers\n"
1202 " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about"
1203 " the\n"
1204 " cast used in this program. */\n"
1205 "\\&\n"
1206 " error = dlerror();\n"
1207 " if (error != NULL) {\n"
1208 " fprintf(stderr, \"%s\\[rs]n\", error);\n"
1209 " exit(EXIT_FAILURE);\n"
1210 " }\n"
1211 "\\&\n"
1212 " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n"
1213 " dlclose(handle);\n"
1214 " exit(EXIT_SUCCESS);\n"
1215 "}\n"
1216
1217 #. SRC END
1218 #. type: SH
1219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1221 #, no-wrap
1222 msgid "SEE ALSO"
1223 msgstr "انظر أيضًا"
1224
1225 #. type: Plain text
1226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1228 msgid ""
1229 "B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), "
1230 "B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), "
1231 "B<ldconfig>(8)"
1232 msgstr ""
1233 "B<ld>(1), B<ldd>(1), B<pldd>(1), B<dl_iterate_phdr>(3), B<dladdr>(3), "
1234 "B<dlerror>(3), B<dlinfo>(3), B<dlsym>(3), B<rtld-audit>(7), B<ld.so>(8), "
1235 "B<ldconfig>(8)"
1236
1237 #. type: Plain text
1238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1240 msgid "gcc info pages, ld info pages"
1241 msgstr "صفحات معلومات gcc، صفحات معلومات ld"
1242
1243 #. type: TH
1244 #: debian-trixie
1245 #, no-wrap
1246 msgid "2024-06-15"
1247 msgstr "15 يونيو 2024"
1248
1249 #. type: TH
1250 #: debian-trixie
1251 #, no-wrap
1252 msgid "Linux man-pages 6.9.1"
1253 msgstr "صفحات دليل لينكس 6.9.1"
1254
1255 #. type: Plain text
1256 #: debian-trixie
1257 msgid "Dynamic linking library (I<libdl>, I<-ldl>)"
1258 msgstr "مكتبة الربط الديناميكي (I<libdl>، I<-ldl>)"
1259
1260 #. type: Plain text
1261 #: debian-trixie fedora-44 fedora-rawhide
1262 #, no-wrap
1263 msgid ""
1264 "B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n"
1265 "B<int dlclose(void *>I<handle>B<);>\n"
1266 msgstr ""
1267 "B<void *dlopen(const char *>I<filename>B<, int >I<flags>B<);>\n"
1268 "B<int dlclose(void *>I<handle>B<);>\n"
1269
1270 #. type: Plain text
1271 #: debian-trixie fedora-44 fedora-rawhide
1272 #, no-wrap
1273 msgid ""
1274 "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags"
1275 ">B<);>\n"
1276 msgstr ""
1277 "B<void *dlmopen(Lmid_t >I<lmid>B<, const char *>I<filename>B<, int >I<flags"
1278 ">B<);>\n"
1279
1280 #. type: Plain text
1281 #: debian-trixie fedora-44 fedora-rawhide
1282 msgid ""
1283 "The function B<dlopen>() loads the dynamic shared object (shared library) "
1284 "file named by the null-terminated string I<filename> and returns an opaque "
1285 "\"handle\" for the loaded object. This handle is employed with other "
1286 "functions in the dlopen API, such as B<dlsym>(3), B<dladdr>(3), "
1287 "B<dlinfo>(3), and B<dlclose>()."
1288 msgstr ""
1289 "تُحمّل الدالة B<dlopen>() ملف الكائن المشترك الديناميكي (المكتبة المشتركة) "
1290 "المُسمى بسلسلة المحارف المنتهية بصفر I<filename> وتُعيد \"مقبضًا\" غير شفاف "
1291 "للكائن المحمّل. يُستخدم هذا المقبض مع دوال أخرى في واجهة برمجة تطبيقات"
1292 " dlopen، "
1293 "مثل B<dlsym>(3), B<dladdr>(3), B<dlinfo>(3), و B<dlclose>()."
1294
1295 #. FIXME On Solaris, when handle is NULL, we seem to get back
1296 #. a handle for (something like) the root of the namespace.
1297 #. The point here is that if we do a dlmopen(LM_ID_NEWLM), then
1298 #. the filename==NULL case returns a different handle than
1299 #. in the initial namespace. But, on glibc, the same handle is
1300 #. returned. This is probably a bug in glibc.
1301 #. type: Plain text
1302 #: debian-trixie fedora-44 fedora-rawhide
1303 msgid ""
1304 "If I<filename> is NULL, then the returned handle is for the main program. "
1305 "If I<filename> contains a slash (\"/\"), then it is interpreted as a "
1306 "(relative or absolute) pathname. Otherwise, the dynamic linker searches for "
1307 "the object as follows (see B<ld.so>(8) for further details):"
1308 msgstr ""
1309 "إذا كان I<filename> NULL، فإن المقبض المُعاد يكون للبرنامج الرئيس. إذا احتوى "
1310 "I<filename> على شرطة مائلة (\"/\")، فسيُفسر كاسم مسار (نسبي أو مطلق). وإلا، "
1311 "يبحث الرابط الديناميكي عن الكائن كما يلي (راجع B<ld.so>(8) لمزيد من "
1312 "التفاصيل):"
1313
1314 #. type: Plain text
1315 #: debian-trixie fedora-44 fedora-rawhide
1316 msgid ""
1317 "The cache file I</etc/ld.so.cache> (maintained by B<ldconfig>(8)) is "
1318 "checked to see whether it contains an entry for I<filename>."
1319 msgstr ""
1320 "يُفحص ملف الخبيئة I</etc/ld.so.cache> (الذي يُديره B<ldconfig>(8)) لمعرفة ما "
1321 "إذا كان يحتوي على مدخل لـ I<filename>."
1322
1323 #. type: Plain text
1324 #: debian-trixie fedora-44 fedora-rawhide
1325 msgid ""
1326 "If the object specified by I<filename> has dependencies on other shared "
1327 "objects, then these are also automatically loaded by the dynamic linker "
1328 "using the same rules. (This process may occur recursively, if those objects "
1329 "in turn have dependencies, and so on.)"
1330 msgstr ""
1331 "إذا كان الكائن المحدد بواسطة I<filename> يعتمد على كائنات مشتركة أخرى، فسيتم "
1332 "تحميلها آليًا بواسطة الرابط الديناميكي باستخدام نفس القواعد. (قد تحدث هذه "
1333 "العملية بشكل متكرر، إذا كانت تلك الكائنات بدورها تعتمد على أخرى، وهكذا "
1334 "دواليك.)"
1335
1336 #. type: Plain text
1337 #: debian-trixie fedora-44 fedora-rawhide
1338 msgid ""
1339 "If I<filename> is NULL, then the returned handle is for the main program. "
1340 "When given to B<dlsym>(3), this handle causes a search for a symbol in the "
1341 "main program, followed by all shared objects loaded at program startup, and "
1342 "then all shared objects loaded by B<dlopen>() with the flag B<RTLD_GLOBAL>."
1343 msgstr ""
1344 "إذا كان I<filename> NULL، فإن المقبض المُعاد يكون للبرنامج الرئيس. عند إعطائه "
1345 "لـ B<dlsym>(3)، يتسبب هذا المقبض في البحث عن رمز في البرنامج الرئيس، متبوعًا "
1346 "بجميع الكائنات المشتركة المُحمّلة عند بدء تشغيل البرنامج، ثم جميع الكائنات "
1347 "المشتركة المُحمّلة بواسطة B<dlopen>() مع العلم B<RTLD_GLOBAL>."
1348
1349 #. type: Plain text
1350 #: debian-trixie fedora-44 fedora-rawhide
1351 msgid ""
1352 "This function performs the same task as B<dlopen>()\\[em]the I<filename> and "
1353 "I<flags> arguments, as well as the return value, are the same, except for "
1354 "the differences noted below."
1355 msgstr ""
1356 "تؤدي هذه الدالة نفس مهمة B<dlopen>()\\[em]وسيطات I<filename> و I<flags>، "
1357 "بالإضافة إلى القيمة المُعادة، هي نفسها، باستثناء الاختلافات المذكورة أدناه."
1358
1359 #. type: Plain text
1360 #: debian-trixie fedora-44 fedora-rawhide
1361 msgid ""
1362 "If I<filename> is NULL, then the only permitted value for I<lmid> is "
1363 "B<LM_ID_BASE>."
1364 msgstr ""
1365 "إذا كان I<filename> NULL، فإن القيمة الوحيدة المسموح بها لـ I<lmid> هي "
1366 "B<LM_ID_BASE>."
1367
1368 #. type: Plain text
1369 #: debian-trixie fedora-44 fedora-rawhide
1370 #, no-wrap
1371 msgid ""
1372 "$ B<cc dlopen_demo.c -ldl>\n"
1373 "$ B<./a.out>\n"
1374 "-0.416147\n"
1375 msgstr ""
1376 "$ B<cc dlopen_demo.c -ldl>\n"
1377 "$ B<./a.out>\n"
1378 "-0.416147\n"
1379
1380 #. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08
1381 #. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07
1382 #. http://austingroupbugs.net/view.php?id=74
1383 #. type: Plain text
1384 #: debian-trixie
1385 #, no-wrap
1386 msgid ""
1387 "#include E<lt>dlfcn.hE<gt>\n"
1388 "#include E<lt>stdio.hE<gt>\n"
1389 "#include E<lt>stdlib.hE<gt>\n"
1390 "\\&\n"
1391 "#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n"
1392 " string such as \"libm.so.6\") */\n"
1393 "int\n"
1394 "main(void)\n"
1395 "{\n"
1396 " void *handle;\n"
1397 " double (*cosine)(double);\n"
1398 " char *error;\n"
1399 "\\&\n"
1400 " handle = dlopen(LIBM_SO, RTLD_LAZY);\n"
1401 " if (!handle) {\n"
1402 " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n"
1403 " exit(EXIT_FAILURE);\n"
1404 " }\n"
1405 "\\&\n"
1406 " dlerror(); /* Clear any existing error */\n"
1407 "\\&\n"
1408 " cosine = (double (*)(double)) dlsym(handle, \"cos\");\n"
1409 "\\&\n"
1410 " /* According to the ISO C standard, casting between function\n"
1411 " pointers and \\[aq]void *\\[aq], as done above, produces undefined"
1412 " results.\n"
1413 " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n"
1414 " proposed the following workaround:\n"
1415 "\\&\n"
1416 " *(void **) (&cosine) = dlsym(handle, \"cos\");\n"
1417 "\\&\n"
1418 " This (clumsy) cast conforms with the ISO C standard and will\n"
1419 " avoid any compiler warnings.\n"
1420 "\\&\n"
1421 " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n"
1422 " by requiring that conforming implementations support casting\n"
1423 " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some"
1424 " compilers\n"
1425 " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about"
1426 " the\n"
1427 " cast used in this program. */\n"
1428 "\\&\n"
1429 " error = dlerror();\n"
1430 " if (error != NULL) {\n"
1431 " fprintf(stderr, \"%s\\[rs]n\", error);\n"
1432 " exit(EXIT_FAILURE);\n"
1433 " }\n"
1434 "\\&\n"
1435 " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n"
1436 " dlclose(handle);\n"
1437 " exit(EXIT_SUCCESS);\n"
1438 "}\n"
1439 msgstr ""
1440 "#include E<lt>dlfcn.hE<gt>\n"
1441 "#include E<lt>stdio.hE<gt>\n"
1442 "#include E<lt>stdlib.hE<gt>\n"
1443 "\\&\n"
1444 "#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n"
1445 " string such as \"libm.so.6\") */\n"
1446 "int\n"
1447 "main(void)\n"
1448 "{\n"
1449 " void *handle;\n"
1450 " double (*cosine)(double);\n"
1451 " char *error;\n"
1452 "\\&\n"
1453 " handle = dlopen(LIBM_SO, RTLD_LAZY);\n"
1454 " if (!handle) {\n"
1455 " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n"
1456 " exit(EXIT_FAILURE);\n"
1457 " }\n"
1458 "\\&\n"
1459 " dlerror(); /* Clear any existing error */\n"
1460 "\\&\n"
1461 " cosine = (double (*)(double)) dlsym(handle, \"cos\");\n"
1462 "\\&\n"
1463 " /* According to the ISO C standard, casting between function\n"
1464 " pointers and \\[aq]void *\\[aq], as done above, produces undefined"
1465 " results.\n"
1466 " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n"
1467 " proposed the following workaround:\n"
1468 "\\&\n"
1469 " *(void **) (&cosine) = dlsym(handle, \"cos\");\n"
1470 "\\&\n"
1471 " This (clumsy) cast conforms with the ISO C standard and will\n"
1472 " avoid any compiler warnings.\n"
1473 "\\&\n"
1474 " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n"
1475 " by requiring that conforming implementations support casting\n"
1476 " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some"
1477 " compilers\n"
1478 " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about"
1479 " the\n"
1480 " cast used in this program. */\n"
1481 "\\&\n"
1482 " error = dlerror();\n"
1483 " if (error != NULL) {\n"
1484 " fprintf(stderr, \"%s\\[rs]n\", error);\n"
1485 " exit(EXIT_FAILURE);\n"
1486 " }\n"
1487 "\\&\n"
1488 " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n"
1489 " dlclose(handle);\n"
1490 " exit(EXIT_SUCCESS);\n"
1491 "}\n"
1492
1493 #. type: TH
1494 #: fedora-44 fedora-rawhide
1495 #, no-wrap
1496 msgid "2025-01-05"
1497 msgstr "5 يناير 2025"
1498
1499 #. type: TH
1500 #: fedora-44 fedora-rawhide
1501 #, no-wrap
1502 msgid "Linux man-pages 6.13"
1503 msgstr "صفحات دليل لينكس 6.13"
1504
1505 #. http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08
1506 #. http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07
1507 #. http://austingroupbugs.net/view.php?id=74
1508 #. type: Plain text
1509 #: fedora-44 fedora-rawhide
1510 #, no-wrap
1511 msgid ""
1512 "#include E<lt>dlfcn.hE<gt>\n"
1513 "#include E<lt>stdio.hE<gt>\n"
1514 "#include E<lt>stdlib.hE<gt>\n"
1515 "\\&\n"
1516 "#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n"
1517 " string such as \"libm.so.6\") */\n"
1518 "int\n"
1519 "main(void)\n"
1520 "{\n"
1521 " void *handle;\n"
1522 " typeof(double (double)) *cosine;\n"
1523 " char *error;\n"
1524 "\\&\n"
1525 " handle = dlopen(LIBM_SO, RTLD_LAZY);\n"
1526 " if (!handle) {\n"
1527 " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n"
1528 " exit(EXIT_FAILURE);\n"
1529 " }\n"
1530 "\\&\n"
1531 " dlerror(); /* Clear any existing error */\n"
1532 "\\&\n"
1533 " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n"
1534 "\\&\n"
1535 " /* According to the ISO C standard, casting between function\n"
1536 " pointers and \\[aq]void *\\[aq], as done above, produces undefined"
1537 " results.\n"
1538 " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n"
1539 " proposed the following workaround:\n"
1540 "\\&\n"
1541 " *(void **) &cosine = dlsym(handle, \"cos\");\n"
1542 "\\&\n"
1543 " This (clumsy) cast conforms with the ISO C standard and will\n"
1544 " avoid any compiler warnings.\n"
1545 "\\&\n"
1546 " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n"
1547 " by requiring that conforming implementations support casting\n"
1548 " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some"
1549 " compilers\n"
1550 " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about"
1551 " the\n"
1552 " cast used in this program. */\n"
1553 "\\&\n"
1554 " error = dlerror();\n"
1555 " if (error != NULL) {\n"
1556 " fprintf(stderr, \"%s\\[rs]n\", error);\n"
1557 " exit(EXIT_FAILURE);\n"
1558 " }\n"
1559 "\\&\n"
1560 " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n"
1561 " dlclose(handle);\n"
1562 " exit(EXIT_SUCCESS);\n"
1563 "}\n"
1564 msgstr ""
1565 "#include E<lt>dlfcn.hE<gt>\n"
1566 "#include E<lt>stdio.hE<gt>\n"
1567 "#include E<lt>stdlib.hE<gt>\n"
1568 "\\&\n"
1569 "#include E<lt>gnu/lib-names.hE<gt> /* Defines LIBM_SO (which will be a\n"
1570 " string such as \"libm.so.6\") */\n"
1571 "int\n"
1572 "main(void)\n"
1573 "{\n"
1574 " void *handle;\n"
1575 " typeof(double (double)) *cosine;\n"
1576 " char *error;\n"
1577 "\\&\n"
1578 " handle = dlopen(LIBM_SO, RTLD_LAZY);\n"
1579 " if (!handle) {\n"
1580 " fprintf(stderr, \"%s\\[rs]n\", dlerror());\n"
1581 " exit(EXIT_FAILURE);\n"
1582 " }\n"
1583 "\\&\n"
1584 " dlerror(); /* Clear any existing error */\n"
1585 "\\&\n"
1586 " cosine = (typeof(double (double)) *) dlsym(handle, \"cos\");\n"
1587 "\\&\n"
1588 " /* According to the ISO C standard, casting between function\n"
1589 " pointers and \\[aq]void *\\[aq], as done above, produces undefined"
1590 " results.\n"
1591 " POSIX.1-2001 and POSIX.1-2008 accepted this state of affairs and\n"
1592 " proposed the following workaround:\n"
1593 "\\&\n"
1594 " *(void **) &cosine = dlsym(handle, \"cos\");\n"
1595 "\\&\n"
1596 " This (clumsy) cast conforms with the ISO C standard and will\n"
1597 " avoid any compiler warnings.\n"
1598 "\\&\n"
1599 " The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters\n"
1600 " by requiring that conforming implementations support casting\n"
1601 " \\[aq]void *\\[aq] to a function pointer. Nevertheless, some"
1602 " compilers\n"
1603 " (e.g., gcc with the \\[aq]-pedantic\\[aq] option) may complain about"
1604 " the\n"
1605 " cast used in this program. */\n"
1606 "\\&\n"
1607 " error = dlerror();\n"
1608 " if (error != NULL) {\n"
1609 " fprintf(stderr, \"%s\\[rs]n\", error);\n"
1610 " exit(EXIT_FAILURE);\n"
1611 " }\n"
1612 "\\&\n"
1613 " printf(\"%f\\[rs]n\", (*cosine)(2.0));\n"
1614 " dlclose(handle);\n"
1615 " exit(EXIT_SUCCESS);\n"
1616 "}\n"
1617
1618 #. type: TH
1619 #: mageia-cauldron
1620 #, no-wrap
1621 msgid "Linux man-pages 6.17"
1622 msgstr "صفحات دليل لينكس 6.17"
1623
1624 #. type: TH
1625 #: opensuse-leap-16-1 opensuse-tumbleweed
1626 #, no-wrap
1627 msgid "Linux man-pages (unreleased)"
1628 msgstr "صفحات دليل لينكس (لم تصدر بعد)"
1629