Debian Codegraph @

po/ar/man3/pthread_key_create.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
9 "PO-Revision-Date: 2026-06-02 20:00+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "pthread_key_create"
25 msgstr "pthread_key_create"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2025-05-17"
32 msgstr "17 مايو 2025"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "pthread_key_create, pthread_key_delete, pthread_setspecific, "
52 "pthread_getspecific - management of thread-specific data"
53 msgstr ""
54 "pthread_key_create, pthread_key_delete, pthread_setspecific, "
55 "pthread_getspecific - إدارة بيانات خاصة بالخيط"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "SYNOPSIS"
62 msgstr "موجز"
63
64 #. type: Plain text
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "B<#include E<lt>pthread.hE<gt>>\n"
69 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid ""
76 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
77 "B< typeof(void (void *)) *>I<destr_function>B<;>\n"
78 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
79 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
80 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
81 msgstr ""
82 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
83 "B< typeof(void (void *)) *>I<destr_function>B<;>\n"
84 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
85 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
86 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr "الوصف"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Programs often need global or static variables that have different values in "
100 "different threads. Since threads share one memory space, this cannot be "
101 "achieved with regular variables. Thread-specific data is the POSIX threads "
102 "answer to this need."
103 msgstr ""
104 "غالبًا ما تحتاج البرامج إلى متغيرات عامة أو ثابتة لها قيم مختلفة في خيوط "
105 "مختلفة. نظرًا لأن الخيوط تشترك في مساحة ذاكرة واحدة، لا يمكن تحقيق ذلك "
106 "باستخدام المتغيرات العادية. البيانات الخاصة بالخيط هي إجابة خيوط POSIX لهذه "
107 "الحاجة."
108
109 #. type: Plain text
110 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
111 #: opensuse-tumbleweed
112 msgid ""
113 "Each thread possesses a private memory block, the thread-specific data area, "
114 "or TSD area for short. This area is indexed by TSD keys. The TSD area "
115 "associates values of type I<void\\ *> to TSD keys. TSD keys are common to "
116 "all threads, but the value associated with a given TSD key can be different "
117 "in each thread."
118 msgstr ""
119 "يمتلك كل خيط كتلة ذاكرة خاصة، منطقة البيانات الخاصة بالخيط، أو منطقة TSD "
120 "للاختصار. تُفهرس هذه المنطقة بمفاتيح TSD. تربط منطقة TSD قيمًا من النوع "
121 "I<void\\ *> بمفاتيح TSD. مفاتيح TSD مشتركة بين جميع الخيوط، لكن القيمة "
122 "المرتبطة بمفتاح TSD معين يمكن أن تكون مختلفة في كل خيط."
123
124 #. type: Plain text
125 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
126 #: opensuse-tumbleweed
127 msgid ""
128 "For concreteness, the TSD areas can be viewed as arrays of I<void\\ *> "
129 "pointers, TSD keys as integer indices into these arrays, and the value of a "
130 "TSD key as the value of the corresponding array element in the calling "
131 "thread."
132 msgstr ""
133 "للتحديد، يمكن عرض مناطق TSD كمصفوفات من المؤشرات I<void\\ *>، ومفاتيح TSD "
134 "كمؤشرات صحيحة إلى هذه المصفوفات، وقيمة مفتاح TSD كقيمة عنصر المصفوفة المقابل "
135 "في الخيط المستدعي."
136
137 #. type: Plain text
138 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
139 #: opensuse-tumbleweed
140 msgid ""
141 "When a thread is created, its TSD area initially associates NULL with all "
142 "keys."
143 msgstr "عند إنشاء خيط، تربط منطقة TSD الخاصة به مبدئيًا NULL بجميع المفاتيح."
144
145 #. type: Plain text
146 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
147 #: opensuse-tumbleweed
148 msgid ""
149 "B<pthread_key_create>() allocates a new TSD key. The key is stored in the "
150 "location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> on "
151 "the number of keys allocated at a given time. The value initially "
152 "associated with the returned key is NULL in all currently executing threads."
153 msgstr ""
154 "تخصص B<pthread_key_create>() مفتاح TSD جديد. يُخزَّن المفتاح في الموقع المشار "
155 "إليه بواسطة I<key>. يوجد حد أقصى قدره B<PTHREAD_KEYS_MAX> على عدد المفاتيح "
156 "المخصصة في وقت معين. القيمة المرتبطة مبدئيًا بالمفتاح المُعاد هي NULL في جميع "
157 "الخيوط المنفذة حاليًا."
158
159 #. type: Plain text
160 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
161 #: opensuse-tumbleweed
162 msgid ""
163 "The I<destr_function> argument, if not NULL, specifies a destructor function "
164 "associated with the key. When a thread terminates via B<pthread_exit>() or "
165 "by cancelation, I<destr_function> is called with arguments the value "
166 "associated with the key in that thread. The I<destr_function> is not called "
167 "if that value is NULL. The order in which destructor functions are called "
168 "at thread termination time is unspecified."
169 msgstr ""
170 "الوسيطة I<destr_function>، إن لم تكن NULL، تحدد دالة مدمرة مرتبطة بالمفتاح. "
171 "عندما يُنهى خيط عبر B<pthread_exit>() أو بالإلغاء، تُستدعى I<destr_function> "
172 "مع وسائط القيمة المرتبطة بالمفتاح في ذلك الخيط. لا تُستدعى I<destr_function> "
173 "إذا كانت تلك القيمة NULL. الترتيب الذي تُستدعى به الدوال المدمرة عند وقت "
174 "إنهاء الخيط غير محدد."
175
176 #. type: Plain text
177 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
178 #: opensuse-tumbleweed
179 msgid ""
180 "Before the destructor function is called, the NULL value is associated with "
181 "the key in the current thread. A destructor function might, however, re-"
182 "associate non-NULL values to that key or some other key. To deal with this, "
183 "if after all the destructors have been called for all non-NULL values, there "
184 "are still some non-NULL values with associated destructors, then the process "
185 "is repeated. The glibc implementation stops the process after "
186 "B<PTHREAD_DESTRUCTOR_ITERATIONS> iterations, even if some non-NULL values "
187 "with associated descriptors remain. Other implementations may loop "
188 "indefinitely."
189 msgstr ""
190 "قبل استدعاء الدالة المدمرة، تُربط القيمة NULL بالمفتاح في الخيط الحالي. قد "
191 "تعيد الدالة المدمرة، مع ذلك، ربط قيم غير NULL بذلك المفتاح أو بمفتاح آخر. "
192 "للتعامل مع هذا، إذا بعد استدعاء جميع المدمرات لجميع القيم غير NULL، بقيت بعض "
193 "القيم غير NULL مع مدمرات مرتبطة، تُكرر العملية. يوقف تطبيق glibc العملية بعد "
194 "B<PTHREAD_DESTRUCTOR_ITERATIONS> تكرارات، حتى لو بقيت بعض القيم غير NULL مع "
195 "مدمرات مرتبطة. قد تكرر التطبيقات الأخرى إلى أجل غير مسمى."
196
197 #. type: Plain text
198 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
199 #: opensuse-tumbleweed
200 msgid ""
201 "B<pthread_key_delete>() deallocates a TSD key. It does not check whether "
202 "non-NULL values are associated with that key in the currently executing "
203 "threads, nor call the destructor function associated with the key."
204 msgstr ""
205 "تلغي B<pthread_key_delete>() تخصيص مفتاح TSD. لا تتحقق مما إذا كانت قيم غير "
206 "NULL مرتبطة بذلك المفتاح في الخيوط المنفذة حاليًا، ولا تستدعي الدالة المدمرة "
207 "المرتبطة بالمفتاح."
208
209 #. type: Plain text
210 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
211 #: opensuse-tumbleweed
212 msgid ""
213 "B<pthread_setspecific>() changes the value associated with I<key> in the "
214 "calling thread, storing the given I<pointer> instead."
215 msgstr ""
216 "تغير B<pthread_setspecific>() القيمة المرتبطة بـ I<key> في الخيط المستدعي، "
217 "مخزنة I<pointer> المعطى بدلاً من ذلك."
218
219 #. type: Plain text
220 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
221 #: opensuse-tumbleweed
222 msgid ""
223 "B<pthread_getspecific>() returns the value currently associated with I<key> "
224 "in the calling thread."
225 msgstr ""
226 "ترجع B<pthread_getspecific>() القيمة المرتبطة حاليًا بـ I<key> في الخيط "
227 "المستدعي."
228
229 #. type: SH
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "RETURN VALUE"
234 msgstr "قيمة الإرجاع"
235
236 #. type: Plain text
237 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
238 #: opensuse-tumbleweed
239 msgid ""
240 "B<pthread_key_create>(), B<pthread_key_delete>(), and "
241 "B<pthread_setspecific>() return 0 on success and a non-zero error code on "
242 "failure. If successful, B<pthread_key_create>() stores the newly allocated "
243 "key in the location pointed to by its I<key> argument."
244 msgstr ""
245 "ترجع B<pthread_key_create>() و B<pthread_key_delete>() و "
246 "B<pthread_setspecific>() 0 عند النجاح ورمز خطأ غير صفري عند الفشل. إذا نجحت، "
247 "تخزن B<pthread_key_create>() المفتاح المخصص حديثًا في الموقع المشار إليه "
248 "بواسطة وسيطتها I<key>."
249
250 #. type: Plain text
251 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
252 #: opensuse-tumbleweed
253 msgid ""
254 "B<pthread_getspecific>() returns the value associated with I<key> on "
255 "success, and NULL on error."
256 msgstr ""
257 "ترجع B<pthread_getspecific>() القيمة المرتبطة بـ I<key> عند النجاح، وNULL "
258 "عند الخطأ."
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "ERRORS"
265 msgstr "الأخطاء"
266
267 #. type: Plain text
268 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
269 #: opensuse-tumbleweed
270 msgid "B<pthread_key_create>() returns the following error code on error:"
271 msgstr "ترجع B<pthread_key_create>() رمز الخطأ التالي عند الخطأ:"
272
273 #. type: TP
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "B<EAGAIN>"
278 msgstr "B<EAGAIN>"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid "B<PTHREAD_KEYS_MAX> keys are already allocated."
284 msgstr "مفاتيح B<PTHREAD_KEYS_MAX> مخصصة بالفعل."
285
286 #. type: Plain text
287 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
288 #: opensuse-tumbleweed
289 msgid ""
290 "B<pthread_key_delete>() and B<pthread_setspecific>() return the following "
291 "error code on error:"
292 msgstr ""
293 "ترجع B<pthread_key_delete>() و B<pthread_setspecific>() رمز الخطأ التالي عند "
294 "الخطأ:"
295
296 #. type: TP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<EINVAL>"
301 msgstr "B<EINVAL>"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "I<key> is not a valid, allocated TSD key."
307 msgstr "I<key> ليس مفتاح TSD صالحًا ومخصصًا."
308
309 #. type: Plain text
310 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
311 #: opensuse-tumbleweed
312 msgid ""
313 "B<pthread_getspecific>() returns NULL if I<key> is not a valid, allocated "
314 "TSD key."
315 msgstr ""
316 "ترجع B<pthread_getspecific>() NULL إذا كان I<key> ليس مفتاح TSD صالحًا ومخصصًا."
317
318 #. type: SH
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "SEE ALSO"
323 msgstr "انظر أيضًا"
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid "pthread_create(3), pthread_exit(3), pthread_testcancel(3)."
329 msgstr "pthread_create(3), pthread_exit(3), pthread_testcancel(3)."
330
331 #. type: SH
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "EXAMPLE"
336 msgstr "مثال"
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "The following code fragment allocates a thread-specific array of 100 "
343 "characters, with automatic reclamation at thread exit:"
344 msgstr ""
345 "يُخصص مقطع الشيفرة التالي مصفوفة خاصة بالخيط من 100 حرف، مع استعادة آلية عند "
346 "خروج الخيط:"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, no-wrap
352 msgid ""
353 "B</* Key for the thread-specific buffer */\n"
354 "static pthread_key_t buffer_key;\n"
355 "\\&\n"
356 "/* Once-only initialisation of the key */\n"
357 "static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT;\n"
358 "\\&\n"
359 "/* Allocate the thread-specific buffer */\n"
360 "void buffer_alloc(void)\n"
361 "{\n"
362 " pthread_once(&buffer_key_once, buffer_key_alloc);\n"
363 " pthread_setspecific(buffer_key, malloc(100));\n"
364 "}\n"
365 "\\&\n"
366 "/* Return the thread-specific buffer */\n"
367 "char * get_buffer(void)\n"
368 "{\n"
369 " return (char *) pthread_getspecific(buffer_key);\n"
370 "}\n"
371 "\\&\n"
372 "/* Allocate the key */\n"
373 "static void buffer_key_alloc()\n"
374 "{\n"
375 " pthread_key_create(&buffer_key, buffer_destroy);\n"
376 "}\n"
377 "\\&\n"
378 "/* Free the thread-specific buffer */\n"
379 "static void buffer_destroy(void * buf)\n"
380 "{\n"
381 " free(buf);\n"
382 "}>\n"
383 msgstr ""
384 "B</* Key for the thread-specific buffer */\n"
385 "static pthread_key_t buffer_key;\n"
386 "\\&\n"
387 "/* Once-only initialisation of the key */\n"
388 "static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT;\n"
389 "\\&\n"
390 "/* Allocate the thread-specific buffer */\n"
391 "void buffer_alloc(void)\n"
392 "{\n"
393 " pthread_once(&buffer_key_once, buffer_key_alloc);\n"
394 " pthread_setspecific(buffer_key, malloc(100));\n"
395 "}\n"
396 "\\&\n"
397 "/* Return the thread-specific buffer */\n"
398 "char * get_buffer(void)\n"
399 "{\n"
400 " return (char *) pthread_getspecific(buffer_key);\n"
401 "}\n"
402 "\\&\n"
403 "/* Allocate the key */\n"
404 "static void buffer_key_alloc()\n"
405 "{\n"
406 " pthread_key_create(&buffer_key, buffer_destroy);\n"
407 "}\n"
408 "\\&\n"
409 "/* Free the thread-specific buffer */\n"
410 "static void buffer_destroy(void * buf)\n"
411 "{\n"
412 " free(buf);\n"
413 "}>\n"
414
415 #. type: TH
416 #: debian-trixie
417 #, no-wrap
418 msgid "2024-06-16"
419 msgstr "16 يونيو 2024"
420
421 #. type: TH
422 #: debian-trixie
423 #, no-wrap
424 msgid "Linux man-pages 6.9.1"
425 msgstr "صفحات دليل لينكس 6.9.1"
426
427 #. type: Plain text
428 #: debian-trixie
429 #, no-wrap
430 msgid ""
431 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
432 "B< void (*>I<destr_function>B<) (void *));>\n"
433 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
434 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
435 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
436 msgstr ""
437 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
438 "B< void (*>I<destr_function>B<) (void *));>\n"
439 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
440 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
441 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
442
443 #. type: Plain text
444 #: debian-trixie fedora-44 fedora-rawhide
445 msgid ""
446 "Each thread possesses a private memory block, the thread-specific data area, "
447 "or TSD area for short. This area is indexed by TSD keys. The TSD area "
448 "associates values of type B<void *> to TSD keys. TSD keys are common to all "
449 "threads, but the value associated with a given TSD key can be different in "
450 "each thread."
451 msgstr ""
452 "يمتلك كل خيط كتلة ذاكرة خاصة، منطقة البيانات الخاصة بالخيط، أو منطقة TSD "
453 "للاختصار. تُفهرس هذه المنطقة بمفاتيح TSD. تربط منطقة TSD قيمًا من النوع B<void "
454 "*> بمفاتيح TSD. مفاتيح TSD مشتركة بين جميع الخيوط، لكن القيمة المرتبطة "
455 "بمفتاح TSD معين قد تكون مختلفة في كل خيط."
456
457 #. type: Plain text
458 #: debian-trixie fedora-44 fedora-rawhide
459 msgid ""
460 "For concreteness, the TSD areas can be viewed as arrays of B<void *> "
461 "pointers, TSD keys as integer indices into these arrays, and the value of a "
462 "TSD key as the value of the corresponding array element in the calling "
463 "thread."
464 msgstr ""
465 "للتوضيح، يمكن النظر إلى مناطق TSD كمصفوفات من المؤشرات B<void *>، ومفاتيح "
466 "TSD كمؤشرات صحيحة إلى هذه المصفوفات، وقيمة مفتاح TSD كقيمة عنصر المصفوفة "
467 "المقابل في الخيط المستدعي."
468
469 #. type: Plain text
470 #: debian-trixie fedora-44 fedora-rawhide
471 msgid ""
472 "When a thread is created, its TSD area initially associates B<NULL> with all "
473 "keys."
474 msgstr "عند إنشاء خيط، تربط منطقة TSD الخاصة به مبدئيًا B<NULL> بجميع المفاتيح."
475
476 #. type: Plain text
477 #: debian-trixie fedora-44 fedora-rawhide
478 msgid ""
479 "B<pthread_key_create> allocates a new TSD key. The key is stored in the "
480 "location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> on "
481 "the number of keys allocated at a given time. The value initially "
482 "associated with the returned key is B<NULL> in all currently executing "
483 "threads."
484 msgstr ""
485 "يُخصص B<pthread_key_create> مفتاح TSD جديد. يُخزن المفتاح في الموقع المشار "
486 "إليه بواسطة I<key>. يوجد حد أقصى قدره B<PTHREAD_KEYS_MAX> على عدد المفاتيح "
487 "المخصصة في وقت معين. القيمة المرتبطة مبدئيًا بالمفتاح المُعاد هي B<NULL> في "
488 "جميع الخيوط المنفذة حاليًا."
489
490 #. type: Plain text
491 #: debian-trixie fedora-44 fedora-rawhide
492 msgid ""
493 "The I<destr_function> argument, if not B<NULL>, specifies a destructor "
494 "function associated with the key. When a thread terminates via "
495 "B<pthread_exit> or by cancelation, I<destr_function> is called with "
496 "arguments the value associated with the key in that thread. The "
497 "I<destr_function> is not called if that value is B<NULL>. The order in "
498 "which destructor functions are called at thread termination time is "
499 "unspecified."
500 msgstr ""
501 "الوسيط I<destr_function>، إذا لم يكن B<NULL>، يُحدد دالة مدمرة مرتبطة "
502 "بالمفتاح. عندما يُنهي خيط عبر B<pthread_exit> أو بالإلغاء، تُستدعى "
503 "I<destr_function> مع وسائط القيمة المرتبطة بالمفتاح في ذلك الخيط. لا تُستدعى "
504 "I<destr_function> إذا كانت تلك القيمة B<NULL>. الترتيب الذي تُستدعى به الدوال "
505 "المدمرة عند وقت إنهاء الخيط غير محدد."
506
507 #. type: Plain text
508 #: debian-trixie fedora-44 fedora-rawhide
509 msgid ""
510 "Before the destructor function is called, the B<NULL> value is associated "
511 "with the key in the current thread. A destructor function might, however, "
512 "re-associate non-B<NULL> values to that key or some other key. To deal with "
513 "this, if after all the destructors have been called for all non-B<NULL> "
514 "values, there are still some non-B<NULL> values with associated destructors, "
515 "then the process is repeated. The glibc implementation stops the process "
516 "after B<PTHREAD_DESTRUCTOR_ITERATIONS> iterations, even if some non-B<NULL> "
517 "values with associated descriptors remain. Other implementations may loop "
518 "indefinitely."
519 msgstr ""
520 "قبل استدعاء الدالة المدمرة، تُربط القيمة B<NULL> بالمفتاح في الخيط الحالي. قد "
521 "تعيد الدالة المدمرة، مع ذلك، ربط قيم غير B<NULL> بذلك المفتاح أو بمفتاح آخر. "
522 "للتعامل مع هذا، إذا بعد استدعاء جميع المدمرات لجميع القيم غير B<NULL>، بقيت "
523 "بعض القيم غير B<NULL> مع مدمرات مرتبطة، تُكرر العملية. يُوقف تطبيق glibc "
524 "العملية بعد B<PTHREAD_DESTRUCTOR_ITERATIONS> تكرارًا، حتى لو بقيت بعض القيم "
525 "غير B<NULL> مع واصفات مرتبطة. قد تُكرر التطبيقات الأخرى إلى أجل غير مسمى."
526
527 #. type: Plain text
528 #: debian-trixie fedora-44 fedora-rawhide
529 msgid ""
530 "B<pthread_key_delete> deallocates a TSD key. It does not check whether non-"
531 "B<NULL> values are associated with that key in the currently executing "
532 "threads, nor call the destructor function associated with the key."
533 msgstr ""
534 "يُحرر B<pthread_key_delete> مفتاح TSD. لا يتحقق مما إذا كانت قيم غير B<NULL> "
535 "مرتبطة بذلك المفتاح في الخيوط المنفذة حاليًا، ولا يستدعي الدالة المدمرة "
536 "المرتبطة بالمفتاح."
537
538 #. type: Plain text
539 #: debian-trixie fedora-44 fedora-rawhide
540 msgid ""
541 "B<pthread_setspecific> changes the value associated with I<key> in the "
542 "calling thread, storing the given I<pointer> instead."
543 msgstr ""
544 "يُغير B<pthread_setspecific> القيمة المرتبطة بـ I<key> في الخيط المستدعي، "
545 "مخزنًا المؤشر I<pointer> المعطى بدلاً من ذلك."
546
547 #. type: Plain text
548 #: debian-trixie fedora-44 fedora-rawhide
549 msgid ""
550 "B<pthread_getspecific> returns the value currently associated with I<key> in "
551 "the calling thread."
552 msgstr ""
553 "يُعيد B<pthread_getspecific> القيمة المرتبطة حاليًا بـ I<key> في الخيط "
554 "المستدعي."
555
556 #. type: Plain text
557 #: debian-trixie fedora-44 fedora-rawhide
558 msgid ""
559 "B<pthread_key_create>, B<pthread_key_delete>, and B<pthread_setspecific> "
560 "return 0 on success and a non-zero error code on failure. If successful, "
561 "B<pthread_key_create> stores the newly allocated key in the location pointed "
562 "to by its I<key> argument."
563 msgstr ""
564 "تُعيد B<pthread_key_create> و B<pthread_key_delete> و B<pthread_setspecific> "
565 "0 عند النجاح ورمز خطأ غير صفري عند الفشل. إذا نجحت، تُخزن "
566 "B<pthread_key_create> المفتاح المُخصص حديثًا في الموقع المشار إليه بواسطة "
567 "وسيطها I<key>."
568
569 #. type: Plain text
570 #: debian-trixie fedora-44 fedora-rawhide
571 msgid ""
572 "B<pthread_getspecific> returns the value associated with I<key> on success, "
573 "and B<NULL> on error."
574 msgstr ""
575 "تُعيد B<pthread_getspecific> القيمة المرتبطة بـ I<key> عند النجاح، و B<NULL> "
576 "عند الخطأ."
577
578 #. type: Plain text
579 #: debian-trixie fedora-44 fedora-rawhide
580 msgid "B<pthread_key_create> returns the following error code on error:"
581 msgstr "تُعيد B<pthread_key_create> رمز الخطأ التالي عند الخطأ:"
582
583 #. type: Plain text
584 #: debian-trixie fedora-44 fedora-rawhide
585 msgid ""
586 "B<pthread_key_delete> and B<pthread_setspecific> return the following error "
587 "code on error:"
588 msgstr ""
589 "تُعيد B<pthread_key_delete> و B<pthread_setspecific> رمز الخطأ التالي عند "
590 "الخطأ:"
591
592 #. type: Plain text
593 #: debian-trixie fedora-44 fedora-rawhide
594 msgid ""
595 "B<pthread_getspecific> returns B<NULL> if I<key> is not a valid, allocated "
596 "TSD key."
597 msgstr ""
598 "تُعيد B<pthread_getspecific> B<NULL> إذا لم يكن I<key> مفتاح TSD صالحًا ومخصصًا."
599
600 #. type: TH
601 #: fedora-44 fedora-rawhide
602 #, no-wrap
603 msgid "2025-01-11"
604 msgstr "11 يناير 2025"
605
606 #. type: TH
607 #: fedora-44 fedora-rawhide
608 #, no-wrap
609 msgid "Linux man-pages 6.13"
610 msgstr "صفحات دليل لينكس 6.13"
611
612 #. type: TH
613 #: mageia-cauldron
614 #, no-wrap
615 msgid "Linux man-pages 6.17"
616 msgstr "صفحات دليل لينكس 6.17"
617
618 #. type: TH
619 #: opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "Linux man-pages (unreleased)"
622 msgstr "صفحات دليل لينكس (لم تصدر بعد)"