Debian Codegraph @

po/ar/man7/attributes.7.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:18+0200\n"
9 "PO-Revision-Date: 2026-05-12 20:12+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 "attributes"
25 msgstr "سمات"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 2026"
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 "attributes - POSIX safety concepts"
51 msgstr "attributes - مفاهيم السلامة في POSIX"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "DESCRIPTION"
58 msgstr "الوصف"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid ""
64 "I<Note>: the text of this man page is based on the material taken from the "
65 "\"POSIX Safety Concepts\" section of the GNU C Library manual. Further "
66 "details on the topics described here can be found in that manual."
67 msgstr ""
68 "I<ملاحظة>: نص صفحة الدليل هذه مبني على المادة المأخوذة من قسم \"مفاهيم "
69 "السلامة في POSIX\" من دليل مكتبة GNU C. يمكن العثور على تفاصيل إضافية حول "
70 "الموضوعات الموصوفة هنا في ذلك الدليل."
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 msgid ""
76 "Various function manual pages include a section ATTRIBUTES that describes "
77 "the safety of calling the function in various contexts. This section "
78 "annotates functions with the following safety markings:"
79 msgstr ""
80 "تتضمن صفحات دليل الدوال المختلفة قسماً بعنوان ATTRIBUTES يصف سلامة استدعاء "
81 "الدالة في سياقات مختلفة. يقوم هذا القسم بتعليق الدوال بعلامات السلامة "
82 "التالية:"
83
84 #. type: TP
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "I<MT-Safe>"
89 msgstr "I<MT-Safe>"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 msgid ""
95 "I<MT-Safe> or Thread-Safe functions are safe to call in the presence of "
96 "other threads. MT, in MT-Safe, stands for Multi Thread."
97 msgstr ""
98 "الدوال I<الآمنة للخيوط> أو Thread-Safe آمنة للاستدعاء في وجود خيوط أخرى. MT "
99 "في MT-Safe ترمز إلى Multi Thread (خيوط متعددة)."
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "Being MT-Safe does not imply a function is atomic, nor that it uses any of "
106 "the memory synchronization mechanisms POSIX exposes to users. It is even "
107 "possible that calling MT-Safe functions in sequence does not yield an MT-"
108 "Safe combination. For example, having a thread call two MT-Safe functions "
109 "one right after the other does not guarantee behavior equivalent to atomic "
110 "execution of a combination of both functions, since concurrent calls in "
111 "other threads may interfere in a destructive way."
112 msgstr ""
113 "كون الدالة آمنة للخيوط لا يعني أنها ذرية، ولا أنها تستخدم أي آليات مزامنة "
114 "للذاكرة التي يعرضها POSIX للمستخدمين. حتى أنه من الممكن أن استدعاء دوال آمنة "
115 "للخيوط بالتسلسل لا ينتج عنه تركيبة آمنة للخيوط. على سبيل المثال، جعل خيط "
116 "يستدعي دالتين آمنتين للخيوط واحدة تلو الأخرى لا يضمن سلوكاً مكافئاً للتنفيذ "
117 "الذري لتركيبة كلتا الدالتين، لأن الاستدعاءات المتزامنة في خيوط أخرى قد "
118 "تتداخل بطريقة مدمرة."
119
120 #. .TP
121 #. .I AS-Safe
122 #. .I AS-Safe
123 #. or Async-Signal-Safe functions are safe to call from
124 #. asynchronous signal handlers.
125 #. AS, in AS-Safe, stands for Asynchronous Signal.
126 #. Many functions that are AS-Safe may set
127 #. .IR errno ,
128 #. or modify the floating-point environment,
129 #. because their doing so does not make them
130 #. unsuitable for use in signal handlers.
131 #. However, programs could misbehave should asynchronous signal handlers
132 #. modify this thread-local state,
133 #. and the signal handling machinery cannot be counted on to
134 #. preserve it.
135 #. Therefore, signal handlers that call functions that may set
136 #. .I errno
137 #. or modify the floating-point environment
138 #. .I must
139 #. save their original values, and restore them before returning.
140 #. .TP
141 #. .I AC-Safe
142 #. .I AC-Safe
143 #. or Async-Cancel-Safe functions are safe to call when
144 #. asynchronous cancelation is enabled.
145 #. AC in AC-Safe stands for Asynchronous Cancelation.
146 #. The POSIX standard defines only three functions to be AC-Safe, namely
147 #. .BR pthread_cancel (3),
148 #. .BR pthread_setcancelstate (3),
149 #. and
150 #. .BR pthread_setcanceltype (3).
151 #. At present the GNU C Library provides no
152 #. guarantees beyond these three functions,
153 #. but does document which functions are presently AC-Safe.
154 #. This documentation is provided for use
155 #. by the GNU C Library developers.
156 #. Just like signal handlers, cancelation cleanup routines must configure
157 #. the floating point environment they require.
158 #. The routines cannot assume a floating point environment,
159 #. particularly when asynchronous cancelation is enabled.
160 #. If the configuration of the floating point
161 #. environment cannot be performed atomically then it is also possible that
162 #. the environment encountered is internally inconsistent.
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "Whole-program optimizations that could inline functions across library "
168 "interfaces may expose unsafe reordering, and so performing inlining across "
169 "the GNU C Library interface is not recommended. The documented MT-Safety "
170 "status is not guaranteed under whole-program optimization. However, "
171 "functions defined in user-visible headers are designed to be safe for "
172 "inlining."
173 msgstr ""
174 "تحسينات البرنامج الكامل التي قد تقوم بتضمين الدوال عبر واجهات المكتبة قد "
175 "تعرض إعادة ترتيب غير آمنة، ولذا لا يُوصى بإجراء التضمين عبر واجهة مكتبة GNU "
176 "C. حالة الأمان للخيوط الموثقة غير مضمونة تحت تحسين البرنامج الكامل. ومع ذلك، "
177 "فإن الدوال المعرفة في ملفات الرأس المرئية للمستخدم مصممة لتكون آمنة للتضمين."
178
179 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
180 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
181 #. type: TP
182 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
183 #. ", " AS-Unsafe ", " AC-Unsafe
184 #. type: TP
185 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
186 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
187 #. type: TP
188 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
189 #. ", " AS-Unsafe ", " AC-Unsafe
190 #. type: TP
191 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
192 #. ", " AS-Unsafe ", " AC-Unsafe
193 #. type: TP
194 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
195 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
196 #. type: TP
197 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
198 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
199 #. type: TP
200 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
201 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
202 #. type: TP
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "I<MT-Unsafe>"
207 msgstr "I<MT-Unsafe>"
208
209 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
210 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
211 #. functions are not
212 #. safe to call within the safety contexts described above.
213 #. Calling them
214 #. within such contexts invokes undefined behavior.
215 #. Functions not explicitly documented as safe in a safety context should
216 #. be regarded as Unsafe.
217 #. .TP
218 #. .I Preliminary
219 #. .I Preliminary
220 #. safety properties are documented, indicating these
221 #. properties may
222 #. .I not
223 #. be counted on in future releases of
224 #. the GNU C Library.
225 #. Such preliminary properties are the result of an assessment of the
226 #. properties of our current implementation,
227 #. rather than of what is mandated and permitted
228 #. by current and future standards.
229 #. Although we strive to abide by the standards, in some cases our
230 #. implementation is safe even when the standard does not demand safety,
231 #. and in other cases our implementation does not meet the standard safety
232 #. requirements.
233 #. The latter are most likely bugs; the former, when marked
234 #. as
235 #. .IR Preliminary ,
236 #. should not be counted on: future standards may
237 #. require changes that are not compatible with the additional safety
238 #. properties afforded by the current implementation.
239 #. Furthermore,
240 #. the POSIX standard does not offer a detailed definition of safety.
241 #. We assume that, by "safe to call", POSIX means that,
242 #. as long as the program does not invoke undefined behavior,
243 #. the "safe to call" function behaves as specified,
244 #. and does not cause other functions to deviate from their specified behavior.
245 #. We have chosen to use its loose
246 #. definitions of safety, not because they are the best definitions to use,
247 #. but because choosing them harmonizes this manual with POSIX.
248 #. Please keep in mind that these are preliminary definitions and annotations,
249 #. and certain aspects of the definitions are still under
250 #. discussion and might be subject to clarification or change.
251 #. Over time,
252 #. we envision evolving the preliminary safety notes into stable commitments,
253 #. as stable as those of our interfaces.
254 #. As we do, we will remove the
255 #. .I Preliminary
256 #. keyword from safety notes.
257 #. As long as the keyword remains, however,
258 #. they are not to be regarded as a promise of future behavior.
259 #. type: Plain text
260 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
261 #. ", " AS-Unsafe ", " AC-Unsafe
262 #. functions are not
263 #. safe to call within the safety contexts described above.
264 #. Calling them
265 #. within such contexts invokes undefined behavior.
266 #. Functions not explicitly documented as safe in a safety context should
267 #. be regarded as Unsafe.
268 #. .TP
269 #. .I Preliminary
270 #. .I Preliminary
271 #. safety properties are documented, indicating these
272 #. properties may
273 #. .I not
274 #. be counted on in future releases of
275 #. the GNU C Library.
276 #. Such preliminary properties are the result of an assessment of the
277 #. properties of our current implementation,
278 #. rather than of what is mandated and permitted
279 #. by current and future standards.
280 #. Although we strive to abide by the standards, in some cases our
281 #. implementation is safe even when the standard does not demand safety,
282 #. and in other cases our implementation does not meet the standard safety
283 #. requirements.
284 #. The latter are most likely bugs; the former, when marked
285 #. as
286 #. .IR Preliminary ,
287 #. should not be counted on: future standards may
288 #. require changes that are not compatible with the additional safety
289 #. properties afforded by the current implementation.
290 #. Furthermore,
291 #. the POSIX standard does not offer a detailed definition of safety.
292 #. We assume that, by "safe to call", POSIX means that,
293 #. as long as the program does not invoke undefined behavior,
294 #. the "safe to call" function behaves as specified,
295 #. and does not cause other functions to deviate from their specified behavior.
296 #. We have chosen to use its loose
297 #. definitions of safety, not because they are the best definitions to use,
298 #. but because choosing them harmonizes this manual with POSIX.
299 #. Please keep in mind that these are preliminary definitions and annotations,
300 #. and certain aspects of the definitions are still under
301 #. discussion and might be subject to clarification or change.
302 #. Over time,
303 #. we envision evolving the preliminary safety notes into stable commitments,
304 #. as stable as those of our interfaces.
305 #. As we do, we will remove the
306 #. .I Preliminary
307 #. keyword from safety notes.
308 #. As long as the keyword remains, however,
309 #. they are not to be regarded as a promise of future behavior.
310 #. type: Plain text
311 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
312 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
313 #. functions are not
314 #. safe to call within the safety contexts described above.
315 #. Calling them
316 #. within such contexts invokes undefined behavior.
317 #. Functions not explicitly documented as safe in a safety context should
318 #. be regarded as Unsafe.
319 #. .TP
320 #. .I Preliminary
321 #. .I Preliminary
322 #. safety properties are documented, indicating these
323 #. properties may
324 #. .I not
325 #. be counted on in future releases of
326 #. the GNU C Library.
327 #. Such preliminary properties are the result of an assessment of the
328 #. properties of our current implementation,
329 #. rather than of what is mandated and permitted
330 #. by current and future standards.
331 #. Although we strive to abide by the standards, in some cases our
332 #. implementation is safe even when the standard does not demand safety,
333 #. and in other cases our implementation does not meet the standard safety
334 #. requirements.
335 #. The latter are most likely bugs; the former, when marked
336 #. as
337 #. .IR Preliminary ,
338 #. should not be counted on: future standards may
339 #. require changes that are not compatible with the additional safety
340 #. properties afforded by the current implementation.
341 #. Furthermore,
342 #. the POSIX standard does not offer a detailed definition of safety.
343 #. We assume that, by "safe to call", POSIX means that,
344 #. as long as the program does not invoke undefined behavior,
345 #. the "safe to call" function behaves as specified,
346 #. and does not cause other functions to deviate from their specified behavior.
347 #. We have chosen to use its loose
348 #. definitions of safety, not because they are the best definitions to use,
349 #. but because choosing them harmonizes this manual with POSIX.
350 #. Please keep in mind that these are preliminary definitions and annotations,
351 #. and certain aspects of the definitions are still under
352 #. discussion and might be subject to clarification or change.
353 #. Over time,
354 #. we envision evolving the preliminary safety notes into stable commitments,
355 #. as stable as those of our interfaces.
356 #. As we do, we will remove the
357 #. .I Preliminary
358 #. keyword from safety notes.
359 #. As long as the keyword remains, however,
360 #. they are not to be regarded as a promise of future behavior.
361 #. type: Plain text
362 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
363 #. ", " AS-Unsafe ", " AC-Unsafe
364 #. functions are not
365 #. safe to call within the safety contexts described above.
366 #. Calling them
367 #. within such contexts invokes undefined behavior.
368 #. Functions not explicitly documented as safe in a safety context should
369 #. be regarded as Unsafe.
370 #. .TP
371 #. .I Preliminary
372 #. .I Preliminary
373 #. safety properties are documented, indicating these
374 #. properties may
375 #. .I not
376 #. be counted on in future releases of
377 #. the GNU C Library.
378 #. Such preliminary properties are the result of an assessment of the
379 #. properties of our current implementation,
380 #. rather than of what is mandated and permitted
381 #. by current and future standards.
382 #. Although we strive to abide by the standards, in some cases our
383 #. implementation is safe even when the standard does not demand safety,
384 #. and in other cases our implementation does not meet the standard safety
385 #. requirements.
386 #. The latter are most likely bugs; the former, when marked
387 #. as
388 #. .IR Preliminary ,
389 #. should not be counted on: future standards may
390 #. require changes that are not compatible with the additional safety
391 #. properties afforded by the current implementation.
392 #. Furthermore,
393 #. the POSIX standard does not offer a detailed definition of safety.
394 #. We assume that, by "safe to call", POSIX means that,
395 #. as long as the program does not invoke undefined behavior,
396 #. the "safe to call" function behaves as specified,
397 #. and does not cause other functions to deviate from their specified behavior.
398 #. We have chosen to use its loose
399 #. definitions of safety, not because they are the best definitions to use,
400 #. but because choosing them harmonizes this manual with POSIX.
401 #. Please keep in mind that these are preliminary definitions and annotations,
402 #. and certain aspects of the definitions are still under
403 #. discussion and might be subject to clarification or change.
404 #. Over time,
405 #. we envision evolving the preliminary safety notes into stable commitments,
406 #. as stable as those of our interfaces.
407 #. As we do, we will remove the
408 #. .I Preliminary
409 #. keyword from safety notes.
410 #. As long as the keyword remains, however,
411 #. they are not to be regarded as a promise of future behavior.
412 #. type: Plain text
413 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
414 #. ", " AS-Unsafe ", " AC-Unsafe
415 #. functions are not
416 #. safe to call within the safety contexts described above.
417 #. Calling them
418 #. within such contexts invokes undefined behavior.
419 #. Functions not explicitly documented as safe in a safety context should
420 #. be regarded as Unsafe.
421 #. .TP
422 #. .I Preliminary
423 #. .I Preliminary
424 #. safety properties are documented, indicating these
425 #. properties may
426 #. .I not
427 #. be counted on in future releases of
428 #. the GNU C Library.
429 #. Such preliminary properties are the result of an assessment of the
430 #. properties of our current implementation,
431 #. rather than of what is mandated and permitted
432 #. by current and future standards.
433 #. Although we strive to abide by the standards, in some cases our
434 #. implementation is safe even when the standard does not demand safety,
435 #. and in other cases our implementation does not meet the standard safety
436 #. requirements.
437 #. The latter are most likely bugs; the former, when marked
438 #. as
439 #. .IR Preliminary ,
440 #. should not be counted on: future standards may
441 #. require changes that are not compatible with the additional safety
442 #. properties afforded by the current implementation.
443 #. Furthermore,
444 #. the POSIX standard does not offer a detailed definition of safety.
445 #. We assume that, by "safe to call", POSIX means that,
446 #. as long as the program does not invoke undefined behavior,
447 #. the "safe to call" function behaves as specified,
448 #. and does not cause other functions to deviate from their specified behavior.
449 #. We have chosen to use its loose
450 #. definitions of safety, not because they are the best definitions to use,
451 #. but because choosing them harmonizes this manual with POSIX.
452 #. Please keep in mind that these are preliminary definitions and annotations,
453 #. and certain aspects of the definitions are still under
454 #. discussion and might be subject to clarification or change.
455 #. Over time,
456 #. we envision evolving the preliminary safety notes into stable commitments,
457 #. as stable as those of our interfaces.
458 #. As we do, we will remove the
459 #. .I Preliminary
460 #. keyword from safety notes.
461 #. As long as the keyword remains, however,
462 #. they are not to be regarded as a promise of future behavior.
463 #. type: Plain text
464 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
465 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
466 #. functions are not
467 #. safe to call within the safety contexts described above.
468 #. Calling them
469 #. within such contexts invokes undefined behavior.
470 #. Functions not explicitly documented as safe in a safety context should
471 #. be regarded as Unsafe.
472 #. .TP
473 #. .I Preliminary
474 #. .I Preliminary
475 #. safety properties are documented, indicating these
476 #. properties may
477 #. .I not
478 #. be counted on in future releases of
479 #. the GNU C Library.
480 #. Such preliminary properties are the result of an assessment of the
481 #. properties of our current implementation,
482 #. rather than of what is mandated and permitted
483 #. by current and future standards.
484 #. Although we strive to abide by the standards, in some cases our
485 #. implementation is safe even when the standard does not demand safety,
486 #. and in other cases our implementation does not meet the standard safety
487 #. requirements.
488 #. The latter are most likely bugs; the former, when marked
489 #. as
490 #. .IR Preliminary ,
491 #. should not be counted on: future standards may
492 #. require changes that are not compatible with the additional safety
493 #. properties afforded by the current implementation.
494 #. Furthermore,
495 #. the POSIX standard does not offer a detailed definition of safety.
496 #. We assume that, by "safe to call", POSIX means that,
497 #. as long as the program does not invoke undefined behavior,
498 #. the "safe to call" function behaves as specified,
499 #. and does not cause other functions to deviate from their specified behavior.
500 #. We have chosen to use its loose
501 #. definitions of safety, not because they are the best definitions to use,
502 #. but because choosing them harmonizes this manual with POSIX.
503 #. Please keep in mind that these are preliminary definitions and annotations,
504 #. and certain aspects of the definitions are still under
505 #. discussion and might be subject to clarification or change.
506 #. Over time,
507 #. we envision evolving the preliminary safety notes into stable commitments,
508 #. as stable as those of our interfaces.
509 #. As we do, we will remove the
510 #. .I Preliminary
511 #. keyword from safety notes.
512 #. As long as the keyword remains, however,
513 #. they are not to be regarded as a promise of future behavior.
514 #. type: Plain text
515 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
516 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
517 #. functions are not
518 #. safe to call within the safety contexts described above.
519 #. Calling them
520 #. within such contexts invokes undefined behavior.
521 #. Functions not explicitly documented as safe in a safety context should
522 #. be regarded as Unsafe.
523 #. .TP
524 #. .I Preliminary
525 #. .I Preliminary
526 #. safety properties are documented, indicating these
527 #. properties may
528 #. .I not
529 #. be counted on in future releases of
530 #. the GNU C Library.
531 #. Such preliminary properties are the result of an assessment of the
532 #. properties of our current implementation,
533 #. rather than of what is mandated and permitted
534 #. by current and future standards.
535 #. Although we strive to abide by the standards, in some cases our
536 #. implementation is safe even when the standard does not demand safety,
537 #. and in other cases our implementation does not meet the standard safety
538 #. requirements.
539 #. The latter are most likely bugs; the former, when marked
540 #. as
541 #. .IR Preliminary ,
542 #. should not be counted on: future standards may
543 #. require changes that are not compatible with the additional safety
544 #. properties afforded by the current implementation.
545 #. Furthermore,
546 #. the POSIX standard does not offer a detailed definition of safety.
547 #. We assume that, by "safe to call", POSIX means that,
548 #. as long as the program does not invoke undefined behavior,
549 #. the "safe to call" function behaves as specified,
550 #. and does not cause other functions to deviate from their specified behavior.
551 #. We have chosen to use its loose
552 #. definitions of safety, not because they are the best definitions to use,
553 #. but because choosing them harmonizes this manual with POSIX.
554 #. Please keep in mind that these are preliminary definitions and annotations,
555 #. and certain aspects of the definitions are still under
556 #. discussion and might be subject to clarification or change.
557 #. Over time,
558 #. we envision evolving the preliminary safety notes into stable commitments,
559 #. as stable as those of our interfaces.
560 #. As we do, we will remove the
561 #. .I Preliminary
562 #. keyword from safety notes.
563 #. As long as the keyword remains, however,
564 #. they are not to be regarded as a promise of future behavior.
565 #. type: Plain text
566 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
567 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
568 #. functions are not
569 #. safe to call within the safety contexts described above.
570 #. Calling them
571 #. within such contexts invokes undefined behavior.
572 #. Functions not explicitly documented as safe in a safety context should
573 #. be regarded as Unsafe.
574 #. .TP
575 #. .I Preliminary
576 #. .I Preliminary
577 #. safety properties are documented, indicating these
578 #. properties may
579 #. .I not
580 #. be counted on in future releases of
581 #. the GNU C Library.
582 #. Such preliminary properties are the result of an assessment of the
583 #. properties of our current implementation,
584 #. rather than of what is mandated and permitted
585 #. by current and future standards.
586 #. Although we strive to abide by the standards, in some cases our
587 #. implementation is safe even when the standard does not demand safety,
588 #. and in other cases our implementation does not meet the standard safety
589 #. requirements.
590 #. The latter are most likely bugs; the former, when marked
591 #. as
592 #. .IR Preliminary ,
593 #. should not be counted on: future standards may
594 #. require changes that are not compatible with the additional safety
595 #. properties afforded by the current implementation.
596 #. Furthermore,
597 #. the POSIX standard does not offer a detailed definition of safety.
598 #. We assume that, by "safe to call", POSIX means that,
599 #. as long as the program does not invoke undefined behavior,
600 #. the "safe to call" function behaves as specified,
601 #. and does not cause other functions to deviate from their specified behavior.
602 #. We have chosen to use its loose
603 #. definitions of safety, not because they are the best definitions to use,
604 #. but because choosing them harmonizes this manual with POSIX.
605 #. Please keep in mind that these are preliminary definitions and annotations,
606 #. and certain aspects of the definitions are still under
607 #. discussion and might be subject to clarification or change.
608 #. Over time,
609 #. we envision evolving the preliminary safety notes into stable commitments,
610 #. as stable as those of our interfaces.
611 #. As we do, we will remove the
612 #. .I Preliminary
613 #. keyword from safety notes.
614 #. As long as the keyword remains, however,
615 #. they are not to be regarded as a promise of future behavior.
616 #. type: Plain text
617 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
618 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
619 msgid ""
620 "I<MT-Unsafe> functions are not safe to call in a multithreaded programs."
621 msgstr ""
622 "الدوال I<غير الآمنة للخيوط> ليست آمنة للاستدعاء في برامج متعددة الخيوط."
623
624 #. .SS Unsafe features
625 #. Functions that are unsafe to call in certain contexts are annotated with
626 #. keywords that document their features that make them unsafe to call.
627 #. AS-Unsafe features in this section indicate the functions are never safe
628 #. to call when asynchronous signals are enabled.
629 #. AC-Unsafe features
630 #. indicate they are never safe to call when asynchronous cancelation is
631 #. .\" enabled.
632 #. There are no MT-Unsafe marks in this section.
633 #. .TP
634 #. .\" .I code
635 #. Functions marked with
636 #. .I lock
637 #. as an AS-Unsafe feature may be
638 #. .\" interrupted by a signal while holding a non-recursive lock.
639 #. If the signal handler calls another such function that takes the same lock,
640 #. the result is a deadlock.
641 #. Functions annotated with
642 #. .I lock
643 #. as an AC-Unsafe feature may, if canceled asynchronously,
644 #. fail to release a lock that would have been released if their execution
645 #. had not been interrupted by asynchronous thread cancelation.
646 #. Once a lock is left taken,
647 #. attempts to take that lock will block indefinitely.
648 #. .TP
649 #. .I corrupt
650 #. Functions marked with
651 #. .\" .I corrupt
652 #. as an AS-Unsafe feature may corrupt
653 #. data structures and misbehave when they interrupt,
654 #. or are interrupted by, another such function.
655 #. Unlike functions marked with
656 #. .IR lock ,
657 #. these take recursive locks to avoid MT-Safety problems,
658 #. but this is not enough to stop a signal handler from observing
659 #. a partially-updated data structure.
660 #. Further corruption may arise from the interrupted function's
661 #. failure to notice updates made by signal handlers.
662 #. Functions marked with
663 #. .I corrupt
664 #. as an AC-Unsafe feature may leave
665 #. data structures in a corrupt, partially updated state.
666 #. Subsequent uses of the data structure may misbehave.
667 #. .\" A special case, probably not worth documenting separately, involves
668 #. .\" reallocing, or even freeing pointers. Any case involving free could
669 #. .\" be easily turned into an ac-safe leak by resetting the pointer before
670 #. .\" releasing it; I don't think we have any case that calls for this sort
671 #. .\" of fixing. Fixing the realloc cases would require a new interface:
672 #. .\" instead of @code{ptr=realloc(ptr,size)} we'd have to introduce
673 #. .\" @code{acsafe_realloc(&ptr,size)} that would modify ptr before
674 #. .\" releasing the old memory. The ac-unsafe realloc could be implemented
675 #. .\" in terms of an internal interface with this semantics (say
676 #. .\" __acsafe_realloc), but since realloc can be overridden, the function
677 #. .\" we call to implement realloc should not be this internal interface,
678 #. .\" but another internal interface that calls __acsafe_realloc if realloc
679 #. .\" was not overridden, and calls the overridden realloc with async
680 #. .\" cancel disabled. --lxoliva
681 #. .TP
682 #. .I heap
683 #. Functions marked with
684 #. .I heap
685 #. may call heap memory management functions from the
686 #. .BR malloc (3)/ free (3)
687 #. family of functions and are only as safe as those functions.
688 #. This note is thus equivalent to:
689 #. | AS-Unsafe lock | AC-Unsafe lock fd mem |
690 #. .\" @sampsafety{@asunsafe{@asulock{}}@acunsafe{@aculock{} @acsfd{} @acsmem{}}}
691 #. .\"
692 #. .\" Check for cases that should have used plugin instead of or in
693 #. .\" addition to this. Then, after rechecking gettext, adjust i18n if
694 #. .\" needed.
695 #. .TP
696 #. .I dlopen
697 #. Functions marked with
698 #. .I dlopen
699 #. use the dynamic loader to load
700 #. shared libraries into the current execution image.
701 #. This involves opening files, mapping them into memory,
702 #. allocating additional memory, resolving symbols,
703 #. applying relocations and more,
704 #. all of this while holding internal dynamic loader locks.
705 #. The locks are enough for these functions to be AS-Unsafe and AC-Unsafe,
706 #. but other issues may arise.
707 #. At present this is a placeholder for all
708 #. potential safety issues raised by
709 #. .BR dlopen (3).
710 #. .\" dlopen runs init and fini sections of the module; does this mean
711 #. .\" dlopen always implies plugin?
712 #. .TP
713 #. .I plugin
714 #. Functions annotated with
715 #. .I plugin
716 #. may run code from plugins that
717 #. may be external to the GNU C Library.
718 #. Such plugin functions are assumed to be
719 #. MT-Safe, AS-Unsafe and AC-Unsafe.
720 #. Examples of such plugins are stack unwinding libraries,
721 #. name service switch (NSS) and character set conversion (iconv) back-ends.
722 #. Although the plugins mentioned as examples are all brought in by means
723 #. of dlopen, the
724 #. .I plugin
725 #. keyword does not imply any direct
726 #. involvement of the dynamic loader or the
727 #. .I libdl
728 #. interfaces,
729 #. those are covered by
730 #. .IR dlopen .
731 #. For example, if one function loads a module and finds the addresses
732 #. of some of its functions,
733 #. while another just calls those already-resolved functions,
734 #. the former will be marked with
735 #. .IR dlopen ,
736 #. whereas the latter will get the
737 #. .IR plugin .
738 #. When a single function takes all of these actions, then it gets both marks.
739 #. .TP
740 #. .I i18n
741 #. Functions marked with
742 #. .I i18n
743 #. may call internationalization
744 #. functions of the
745 #. .BR gettext (3)
746 #. family and will be only as safe as those
747 #. functions.
748 #. This note is thus equivalent to:
749 #. | MT-Safe env | AS-Unsafe corrupt heap dlopen | AC-Unsafe corrupt |
750 #. .\" @sampsafety{@mtsafe{@mtsenv{}}@asunsafe{@asucorrupt{} @ascuheap{} @ascudlopen{}}@acunsafe{@acucorrupt{}}}
751 #. .TP
752 #. .I timer
753 #. Functions marked with
754 #. .I timer
755 #. use the
756 #. .BR alarm (3)
757 #. function or
758 #. similar to set a time-out for a system call or a long-running operation.
759 #. In a multi-threaded program, there is a risk that the time-out signal
760 #. will be delivered to a different thread,
761 #. thus failing to interrupt the intended thread.
762 #. Besides being MT-Unsafe, such functions are always
763 #. AS-Unsafe, because calling them in signal handlers may interfere with
764 #. timers set in the interrupted code, and AC-Unsafe,
765 #. because there is no safe way to guarantee an earlier timer
766 #. will be reset in case of asynchronous cancelation.
767 #. type: Plain text
768 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
769 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
770 msgid ""
771 "Other keywords that appear in safety notes are defined in subsequent "
772 "sections."
773 msgstr ""
774 "الكلمات المفتاحية الأخرى التي تظهر في ملاحظات السلامة تُعرف في الأقسام "
775 "اللاحقة."
776
777 #. type: SS
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 #, no-wrap
781 msgid "Conditionally safe features"
782 msgstr "الميزات الآمنة بشروط"
783
784 #. type: Plain text
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 msgid ""
788 "For some features that make functions unsafe to call in certain contexts, "
789 "there are known ways to avoid the safety problem other than refraining from "
790 "calling the function altogether. The keywords that follow refer to such "
791 "features, and each of their definitions indicates how the whole program "
792 "needs to be constrained in order to remove the safety problem indicated by "
793 "the keyword. Only when all the reasons that make a function unsafe are "
794 "observed and addressed, by applying the documented constraints, does the "
795 "function become safe to call in a context."
796 msgstr ""
797 "بالنسبة لبعض الميزات التي تجعل الدوال غير آمنة للاستدعاء في سياقات معينة، "
798 "هناك طرق معروفة لتجنب مشكلة السلامة بخلاف الامتناع عن استدعاء الدالة "
799 "بالكامل. تشير الكلمات المفتاحية التالية إلى هذه الميزات، ويشير كل تعريف منها "
800 "إلى كيفية تقييد البرنامج الكامل لإزالة مشكلة السلامة المشار إليها بالكلمة "
801 "المفتاحية. فقط عندما يتم ملاحظة ومعالجة جميع الأسباب التي تجعل الدالة غير "
802 "آمنة، من خلال تطبيق القيود الموثقة، تصبح الدالة آمنة للاستدعاء في سياق ما."
803
804 #. type: TP
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 #, no-wrap
808 msgid "I<init>"
809 msgstr "I<init>"
810
811 #. type: Plain text
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 msgid ""
815 "Functions marked with I<init> as an MT-Unsafe feature perform MT-Unsafe "
816 "initialization when they are first called."
817 msgstr ""
818 "الدوال الموسومة بـ I<init> كميزة غير آمنة للخيوط تقوم بتهيئة غير آمنة للخيوط "
819 "عند استدعائها لأول مرة."
820
821 #. Functions marked with
822 #. .I init
823 #. as an AS-Unsafe or AC-Unsafe feature use the GNU C Library internal
824 #. .I libc_once
825 #. machinery or similar to initialize internal data structures.
826 #. If a signal handler interrupts such an initializer,
827 #. and calls any function that also performs
828 #. .I libc_once
829 #. initialization, it will deadlock if the thread library has been loaded.
830 #. Furthermore, if an initializer is partially complete before it is canceled
831 #. or interrupted by a signal whose handler requires the same initialization,
832 #. some or all of the initialization may be performed more than once,
833 #. leaking resources or even resulting in corrupt internal data.
834 #. Applications that need to call functions marked with
835 #. .I init
836 #. as an AS-Safety or AC-Unsafe feature should ensure
837 #. the initialization is performed
838 #. before configuring signal handlers or enabling cancelation,
839 #. so that the AS-Safety and AC-Safety issues related with
840 #. .I libc_once
841 #. do not arise.
842 #. .\" We may have to extend the annotations to cover conditions in which
843 #. .\" initialization may or may not occur, since an initial call in a safe
844 #. .\" context is no use if the initialization doesn't take place at that
845 #. .\" time: it doesn't remove the risk for later calls.
846 #. type: Plain text
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 msgid ""
850 "Calling such a function at least once in single-threaded mode removes this "
851 "specific cause for the function to be regarded as MT-Unsafe. If no other "
852 "cause for that remains, the function can then be safely called after other "
853 "threads are started."
854 msgstr ""
855 "استدعاء هذه الدالة مرة واحدة على الأقل في وضع الخيط الواحد يزيل هذا السبب "
856 "المحدد لاعتبار الدالة غير آمنة للخيوط. إذا لم يبق سبب آخر لذلك، يمكن عندها "
857 "استدعاء الدالة بأمان بعد بدء الخيوط الأخرى."
858
859 #. type: TP
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 #, no-wrap
863 msgid "I<race>"
864 msgstr "I<race>"
865
866 #. We consider access to objects passed as (indirect) arguments to
867 #. functions to be data race free.
868 #. The assurance of data race free objects
869 #. is the caller's responsibility.
870 #. We will not mark a function as MT-Unsafe or AS-Unsafe
871 #. if it misbehaves when users fail to take the measures required by
872 #. POSIX to avoid data races when dealing with such objects.
873 #. As a general rule, if a function is documented as reading from
874 #. an object passed (by reference) to it, or modifying it,
875 #. users ought to use memory synchronization primitives
876 #. to avoid data races just as they would should they perform
877 #. the accesses themselves rather than by calling the library function.
878 #. Standard I/O
879 #. .RI ( "FILE *" )
880 #. streams are the exception to the general rule,
881 #. in that POSIX mandates the library to guard against data races
882 #. in many functions that manipulate objects of this specific opaque type.
883 #. We regard this as a convenience provided to users,
884 #. rather than as a general requirement whose expectations
885 #. should extend to other types.
886 #. In order to remind users that guarding certain arguments is their
887 #. responsibility, we will annotate functions that take objects of certain
888 #. types as arguments.
889 #. We draw the line for objects passed by users as follows:
890 #. objects whose types are exposed to users,
891 #. and that users are expected to access directly,
892 #. such as memory buffers, strings,
893 #. and various user-visible structured types, do
894 #. .I not
895 #. give reason for functions to be annotated with
896 #. .IR race .
897 #. It would be noisy and redundant with the general requirement,
898 #. and not many would be surprised by the library's lack of internal
899 #. guards when accessing objects that can be accessed directly by users.
900 #. As for objects that are opaque or opaque-like,
901 #. in that they are to be manipulated only by passing them
902 #. to library functions (e.g.,
903 #. .IR FILE ,
904 #. .IR DIR ,
905 #. .IR obstack ,
906 #. .IR iconv_t ),
907 #. there might be additional expectations as to internal coordination
908 #. of access by the library.
909 #. We will annotate, with
910 #. .I race
911 #. followed by a colon and the argument name,
912 #. functions that take such objects but that do not take
913 #. care of synchronizing access to them by default.
914 #. For example,
915 #. .I FILE
916 #. stream
917 #. .I unlocked
918 #. functions
919 #. .RB ( unlocked_stdio (3))
920 #. will be annotated,
921 #. but those that perform implicit locking on
922 #. .I FILE
923 #. streams by default will not,
924 #. even though the implicit locking may be disabled on a per-stream basis.
925 #. In either case, we will not regard as MT-Unsafe functions that may
926 #. access user-supplied objects in unsafe ways should users fail to ensure
927 #. the accesses are well defined.
928 #. The notion prevails that users are expected to safeguard against
929 #. data races any user-supplied objects that the library accesses
930 #. on their behalf.
931 #. .\" The above describes @mtsrace; @mtasurace is described below.
932 #. This user responsibility does not apply, however,
933 #. to objects controlled by the library itself,
934 #. such as internal objects and static buffers used
935 #. to return values from certain calls.
936 #. When the library doesn't guard them against concurrent uses,
937 #. these cases are regarded as MT-Unsafe and AS-Unsafe (although the
938 #. .I race
939 #. mark under AS-Unsafe will be omitted
940 #. as redundant with the one under MT-Unsafe).
941 #. As in the case of user-exposed objects,
942 #. the mark may be followed by a colon and an identifier.
943 #. The identifier groups all functions that operate on a
944 #. certain unguarded object; users may avoid the MT-Safety issues related
945 #. with unguarded concurrent access to such internal objects by creating a
946 #. non-recursive mutex related with the identifier,
947 #. and always holding the mutex when calling any function marked
948 #. as racy on that identifier,
949 #. as they would have to should the identifier be
950 #. an object under user control.
951 #. The non-recursive mutex avoids the MT-Safety issue,
952 #. but it trades one AS-Safety issue for another,
953 #. so use in asynchronous signals remains undefined.
954 #. When the identifier relates to a static buffer used to hold return values,
955 #. the mutex must be held for as long as the buffer remains in use
956 #. by the caller.
957 #. Many functions that return pointers to static buffers offer reentrant
958 #. variants that store return values in caller-supplied buffers instead.
959 #. In some cases, such as
960 #. .BR tmpname (3),
961 #. the variant is chosen not by calling an alternate entry point,
962 #. but by passing a non-null pointer to the buffer in which the
963 #. returned values are to be stored.
964 #. These variants are generally preferable in multi-threaded programs,
965 #. although some of them are not MT-Safe because of other internal buffers,
966 #. also documented with
967 #. .I race
968 #. notes.
969 #. type: Plain text
970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
972 msgid ""
973 "Functions annotated with I<race> as an MT-Safety issue operate on objects in "
974 "ways that may cause data races or similar forms of destructive interference "
975 "out of concurrent execution. In some cases, the objects are passed to the "
976 "functions by users; in others, they are used by the functions to return "
977 "values to users; in others, they are not even exposed to users."
978 msgstr ""
979 "الدوال المشروحة بـ I<race> كمشكلة أمان للخيوط تعمل على كائنات بطرق قد تسبب "
980 "سباقات بيانات أو أشكالاً مماثلة من التداخل المدمر الناتج عن التنفيذ المتزامن. "
981 "في بعض الحالات، يتم تمرير الكائنات إلى الدوال بواسطة المستخدمين؛ وفي حالات "
982 "أخرى، تُستخدم بواسطة الدوال لإرجاع قيم للمستخدمين؛ وفي حالات أخرى، لا يتم حتى "
983 "كشفها للمستخدمين."
984
985 #. type: TP
986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
988 #, no-wrap
989 msgid "I<const>"
990 msgstr "I<const>"
991
992 #. and AS-Unsafe,
993 #. equally
994 #. and AS-Unsafe
995 #. and AS-Safe
996 #. type: Plain text
997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
999 msgid ""
1000 "Functions marked with I<const> as an MT-Safety issue non-atomically modify "
1001 "internal objects that are better regarded as constant, because a substantial "
1002 "portion of the GNU C Library accesses them without synchronization. Unlike "
1003 "I<race>, which causes both readers and writers of internal objects to be "
1004 "regarded as MT-Unsafe, this mark is applied to writers only. Writers remain "
1005 "MT-Unsafe to call, but the then-mandatory constness of objects they modify "
1006 "enables readers to be regarded as MT-Safe (as long as no other reasons for "
1007 "them to be unsafe remain), since the lack of synchronization is not a "
1008 "problem when the objects are effectively constant."
1009 msgstr ""
1010 "الدوال الموسومة بـ I<const> كمشكلة أمان للخيوط تقوم بتعديل كائنات داخلية "
1011 "بشكل غير ذري يُفضل اعتبارها ثابتة، لأن جزءاً كبيراً من مكتبة GNU C يصل إليها "
1012 "دون مزامنة. على عكس I<race>، الذي يتسبب في اعتبار كل من قارئي وكاتبي "
1013 "الكائنات الداخلية غير آمنين للخيوط، يتم تطبيق هذه العلامة على الكُتّاب فقط. "
1014 "يظل الكُتّاب غير آمنين للاستدعاء، لكن الثبات الإجباري للكائنات التي يعدلونها "
1015 "يمكن القُرّاء من اعتبارهم آمنين للخيوط (طالما لم تبق أسباب أخرى لعدم أمانهم)، "
1016 "لأن غياب المزامنة ليس مشكلة عندما تكون الكائنات ثابتة فعلياً."
1017
1018 #. The non-recursive locking removes the MT-Safety problem,
1019 #. but it trades one AS-Safety problem for another,
1020 #. so use in asynchronous signals remains undefined.
1021 #. .\" But what if, instead of marking modifiers with const:id and readers
1022 #. .\" with just id, we marked writers with race:id and readers with ro:id?
1023 #. .\" Instead of having to define each instance of 'id', we'd have a
1024 #. .\" general pattern governing all such 'id's, wherein race:id would
1025 #. .\" suggest the need for an exclusive/write lock to make the function
1026 #. .\" safe, whereas ro:id would indicate 'id' is expected to be read-only,
1027 #. .\" but if any modifiers are called (while holding an exclusive lock),
1028 #. .\" then ro:id-marked functions ought to be guarded with a read lock for
1029 #. .\" safe operation. ro:env or ro:locale, for example, seems to convey
1030 #. .\" more clearly the expectations and the meaning, than just env or
1031 #. .\" locale.
1032 #. type: Plain text
1033 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1034 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1035 msgid ""
1036 "The identifier that follows the I<const> mark will appear by itself as a "
1037 "safety note in readers. Programs that wish to work around this safety "
1038 "issue, so as to call writers, may use a non-recursive read-write lock "
1039 "associated with the identifier, and guard I<all> calls to functions marked "
1040 "with I<const> followed by the identifier with a write lock, and I<all> calls "
1041 "to functions marked with the identifier by itself with a read lock."
1042 msgstr ""
1043 "المُعرّف الذي يتبع علامة I<const> سيظهر بمفرده كملاحظة سلامة في القُرّاء. "
1044 "البرامج التي ترغب في تجاوز مشكلة السلامة هذه، لاستدعاء الكُتّاب، قد تستخدم قفل "
1045 "قراءة-كتابة غير استرجاعي مرتبط بالمُعرّف، وتحمي I<جميع> الاستدعاءات للدوال "
1046 "الموسومة بـ I<const> متبوعة بالمُعرّف بقفل كتابة، وI<جميع> الاستدعاءات للدوال "
1047 "الموسومة بالمُعرّف بمفرده بقفل قراءة."
1048
1049 #. type: TP
1050 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1051 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1052 #, no-wrap
1053 msgid "I<sig>"
1054 msgstr "I<sig>"
1055
1056 #. (that implies an identical AS-Safety issue, omitted for brevity)
1057 #. type: Plain text
1058 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1059 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1060 msgid ""
1061 "Functions marked with I<sig> as a MT-Safety issue may temporarily install a "
1062 "signal handler for internal purposes, which may interfere with other uses of "
1063 "the signal, identified after a colon."
1064 msgstr ""
1065 "الدوال الموسومة بـ I<sig> كمشكلة أمان للخيوط قد تقوم بتثبيت معالج إشارة "
1066 "مؤقتاً لأغراض داخلية، مما قد يتداخل مع الاستخدامات الأخرى للإشارة، المُعرّفة "
1067 "بعد نقطتين."
1068
1069 #. There is no safe way to guarantee the original signal handler is
1070 #. restored in case of asynchronous cancelation,
1071 #. therefore so-marked functions are also AC-Unsafe.
1072 #. .\" fixme: at least deferred cancelation should get it right, and would
1073 #. .\" obviate the restoring bit below, and the qualifier above.
1074 #. Besides the measures recommended to work around the
1075 #. MT-Safety and AS-Safety problem,
1076 #. in order to avert the cancelation problem,
1077 #. disabling asynchronous cancelation
1078 #. .I and
1079 #. installing a cleanup handler to restore the signal to the desired state
1080 #. and to release the mutex are recommended.
1081 #. type: Plain text
1082 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1083 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1084 msgid ""
1085 "This safety problem can be worked around by ensuring that no other uses of "
1086 "the signal will take place for the duration of the call. Holding a non-"
1087 "recursive mutex while calling all functions that use the same temporary "
1088 "signal; blocking that signal before the call and resetting its handler "
1089 "afterwards is recommended."
1090 msgstr ""
1091 "يمكن تجاوز مشكلة السلامة هذه بضمان عدم حدوث استخدامات أخرى للإشارة طوال مدة "
1092 "الاستدعاء. يُوصى بحمل كائن مزامنة (mutex) غير استرجاعي أثناء استدعاء جميع "
1093 "الدوال التي تستخدم نفس الإشارة المؤقتة؛ وحظر تلك الإشارة قبل الاستدعاء "
1094 "وإعادة تعيين معالجها بعده."
1095
1096 #. type: TP
1097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1099 #, no-wrap
1100 msgid "I<term>"
1101 msgstr "I<term>"
1102
1103 #. The same window enables changes made by asynchronous signals to be lost.
1104 #. These functions are also AS-Unsafe,
1105 #. but the corresponding mark is omitted as redundant.
1106 #. type: Plain text
1107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1109 msgid ""
1110 "Functions marked with I<term> as an MT-Safety issue may change the terminal "
1111 "settings in the recommended way, namely: call B<tcgetattr>(3), modify some "
1112 "flags, and then call B<tcsetattr>(3), this creates a window in which changes "
1113 "made by other threads are lost. Thus, functions marked with I<term> are MT-"
1114 "Unsafe."
1115 msgstr ""
1116 "الدوال الموسومة بـ I<term> كمشكلة أمان للخيوط قد تغير إعدادات الطرفية "
1117 "بالطريقة الموصى بها، وهي: استدعاء B<tcgetattr>(3)، تعديل بعض الأعلام، ثم "
1118 "استدعاء B<tcsetattr>(3)، مما يخلق نافذة يتم فيها فقدان التغييرات التي أجرتها "
1119 "خيوط أخرى. وبالتالي، الدوال الموسومة بـ I<term> غير آمنة للخيوط."
1120
1121 #. Functions marked with
1122 #. .I term
1123 #. as an AC-Safety issue are supposed to
1124 #. restore terminal settings to their original state,
1125 #. after temporarily changing them, but they may fail to do so if canceled.
1126 #. .\" fixme: at least deferred cancelation should get it right, and would
1127 #. .\" obviate the restoring bit below, and the qualifier above.
1128 #. Besides the measures recommended to work around the
1129 #. MT-Safety and AS-Safety problem,
1130 #. in order to avert the cancelation problem,
1131 #. disabling asynchronous cancelation
1132 #. .I and
1133 #. installing a cleanup handler to
1134 #. restore the terminal settings to the original state and to release the
1135 #. mutex are recommended.
1136 #. type: Plain text
1137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1139 msgid ""
1140 "It is thus advisable for applications using the terminal to avoid concurrent "
1141 "and reentrant interactions with it, by not using it in signal handlers or "
1142 "blocking signals that might use it, and holding a lock while calling these "
1143 "functions and interacting with the terminal. This lock should also be used "
1144 "for mutual exclusion with functions marked with I<race:tcattr(fd)>, where "
1145 "I<fd> is a file descriptor for the controlling terminal. The caller may use "
1146 "a single mutex for simplicity, or use one mutex per terminal, even if "
1147 "referenced by different file descriptors."
1148 msgstr ""
1149 "لذا يُنصح التطبيقات التي تستخدم الطرفية بتجنب التفاعلات المتزامنة وإعادة "
1150 "الدخول معها، بعدم استخدامها في معالجات الإشارات أو حظر الإشارات التي قد "
1151 "تستخدمها، وحمل قفل أثناء استدعاء هذه الدوال والتفاعل مع الطرفية. يجب أيضًا "
1152 "استخدام هذا القفل للاستبعاد المتبادل مع الدوال الموسومة بـ I<race:"
1153 "tcattr(fd)>، حيث I<fd> هو واصف ملف للطرفية المسيطرة. قد يستخدم المستدعي كائن "
1154 "مزامنة واحداً للبساطة، أو استخدام كائن مزامنة واحد لكل طرفية، حتى لو تمت "
1155 "الإشارة إليها بواسطة واصفات ملفات مختلفة."
1156
1157 #. type: SS
1158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1160 #, no-wrap
1161 msgid "Other safety remarks"
1162 msgstr "ملاحظات أمان أخرى"
1163
1164 #. type: Plain text
1165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1167 msgid ""
1168 "Additional keywords may be attached to functions, indicating features that "
1169 "do not make a function unsafe to call, but that may need to be taken into "
1170 "account in certain classes of programs:"
1171 msgstr ""
1172 "قد تُرفق كلمات مفتاحية إضافية بالدوال، للإشارة إلى ميزات لا تجعل استدعاء "
1173 "الدالة غير آمن، ولكن قد يلزم أخذها بعين الاعتبار في فئات معينة من البرامج:"
1174
1175 #. type: TP
1176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1178 #, no-wrap
1179 msgid "I<locale>"
1180 msgstr "I<locale>"
1181
1182 #. type: Plain text
1183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1185 msgid ""
1186 "Functions annotated with I<locale> as an MT-Safety issue read from the "
1187 "locale object without any form of synchronization. Functions annotated with "
1188 "I<locale> called concurrently with locale changes may behave in ways that do "
1189 "not correspond to any of the locales active during their execution, but an "
1190 "unpredictable mix thereof."
1191 msgstr ""
1192 "الدوال المُعلّمة بـ I<locale> كمشكلة أمان خيوط التنفيذ تقرأ من كائن الإعدادات "
1193 "المحلية دون أي شكل من أشكال التزامن. الدوال المُعلّمة بـ I<locale> التي تُستدعى "
1194 "بالتزامن مع تغييرات الإعدادات المحلية قد تتصرف بطرق لا تتوافق مع أي من "
1195 "الإعدادات المحلية النشطة أثناء تنفيذها، بل بمزيج غير متوقع منها."
1196
1197 #. or AS-Unsafe,
1198 #. Should the locking strategy suggested under @code{const} be used,
1199 #. failure to guard locale uses is not as fatal as data races in
1200 #. general: unguarded uses will @emph{not} follow dangling pointers or
1201 #. access uninitialized, unmapped or recycled memory. Each access will
1202 #. read from a consistent locale object that is or was active at some
1203 #. point during its execution. Without synchronization, however, it
1204 #. cannot even be assumed that, after a change in locale, earlier
1205 #. locales will no longer be used, even after the newly-chosen one is
1206 #. used in the thread. Nevertheless, even though unguarded reads from
1207 #. the locale will not violate type safety, functions that access the
1208 #. locale multiple times may invoke all sorts of undefined behavior
1209 #. because of the unexpected locale changes.
1210 #. type: Plain text
1211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1213 msgid ""
1214 "We do not mark these functions as MT-Unsafe, however, because functions that "
1215 "modify the locale object are marked with I<const:locale> and regarded as "
1216 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1217 "are running or asynchronous signals are enabled, and so the locale can be "
1218 "considered effectively constant in these contexts, which makes the former "
1219 "safe."
1220 msgstr ""
1221 "مع ذلك، لا نُعلّم هذه الدوال كغير آمنة للخيوط، لأن الدوال التي تُعدّل كائن "
1222 "الإعدادات المحلية مُعلّمة بـ I<const:locale> وتُعتبر غير آمنة. لكونها غير آمنة، "
1223 "لا ينبغي استدعاء الأخيرة عند تشغيل خيوط متعددة أو تمكين الإشارات غير "
1224 "المتزامنة، وبالتالي يمكن اعتبار الإعدادات المحلية ثابتة فعليًا في هذه "
1225 "السياقات، مما يجعل الأولى آمنة."
1226
1227 #. type: TP
1228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1230 #, no-wrap
1231 msgid "I<env>"
1232 msgstr "I<env>"
1233
1234 #. type: Plain text
1235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1237 msgid ""
1238 "Functions marked with I<env> as an MT-Safety issue access the environment "
1239 "with B<getenv>(3) or similar, without any guards to ensure safety in the "
1240 "presence of concurrent modifications."
1241 msgstr ""
1242 "الدوال المُعلّمة بـ I<env> كمشكلة أمان خيوط التنفيذ تصل إلى البيئة باستخدام "
1243 "B<getenv>(3) أو ما شابه، دون أي حراس لضمان الأمان في وجود تعديلات متزامنة."
1244
1245 #. or AS-Unsafe,
1246 #. type: Plain text
1247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1249 msgid ""
1250 "We do not mark these functions as MT-Unsafe, however, because functions that "
1251 "modify the environment are all marked with I<const:env> and regarded as "
1252 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1253 "are running or asynchronous signals are enabled, and so the environment can "
1254 "be considered effectively constant in these contexts, which makes the former "
1255 "safe."
1256 msgstr ""
1257 "مع ذلك، لا نُعلّم هذه الدوال كغير آمنة للخيوط، لأن الدوال التي تُعدّل البيئة "
1258 "كلها مُعلّمة بـ I<const:env> وتُعتبر غير آمنة. لكونها غير آمنة، لا ينبغي "
1259 "استدعاء الأخيرة عند تشغيل خيوط متعددة أو تمكين الإشارات غير المتزامنة، "
1260 "وبالتالي يمكن اعتبار البيئة ثابتة فعليًا في هذه السياقات، مما يجعل الأولى "
1261 "آمنة."
1262
1263 #. type: TP
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 #, no-wrap
1267 msgid "I<hostid>"
1268 msgstr "I<hostid>"
1269
1270 #. type: Plain text
1271 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1272 #: opensuse-leap-16-1 opensuse-tumbleweed
1273 msgid ""
1274 "Functions marked with I<hostid> as an MT-Safety issue read from the system-"
1275 "wide data structures that hold the \"host ID\" of the machine. These data "
1276 "structures cannot generally be modified atomically. Since it is expected "
1277 "that the \"host ID\" will not normally change, the function that reads from "
1278 "it (B<gethostid>(3)) is regarded as safe, whereas the function that "
1279 "modifies it (B<sethostid>(3)) is marked with I<const:hostid>, indicating it "
1280 "may require special care if it is to be called. In this specific case, the "
1281 "special care amounts to system-wide (not merely intra-process) coordination."
1282 msgstr ""
1283 "الدوال المُعلّمة بـ I<hostid> كمشكلة أمان خيوط التنفيذ تقرأ من هياكل البيانات "
1284 "على مستوى النظام التي تحتوي على \"معرف المضيف\" للجهاز. لا يمكن تعديل هياكل "
1285 "البيانات هذه بشكل ذري عمومًا. نظرًا لأنه من المتوقع ألا يتغير \"معرف المضيف\" "
1286 "عادةً، تُعتبر الدالة التي تقرأ منه (B<gethostid>(3)) آمنة، بينما الدالة التي "
1287 "تُعدّله (B<sethostid>(3)) مُعلّمة بـ I<const:hostid>، مما يشير إلى أنها قد تتطلب "
1288 "عناية خاصة إذا كان سيتم استدعاؤها. في هذه الحالة المحددة، تعادل العناية "
1289 "الخاصة التنسيق على مستوى النظام (وليس فقط داخل العملية)."
1290
1291 #. type: TP
1292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1294 #, no-wrap
1295 msgid "I<sigintr>"
1296 msgstr "I<sigintr>"
1297
1298 #. type: Plain text
1299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1301 msgid ""
1302 "Functions marked with I<sigintr> as an MT-Safety issue access the GNU C "
1303 "Library I<_sigintr> internal data structure without any guards to ensure "
1304 "safety in the presence of concurrent modifications."
1305 msgstr ""
1306 "الدوال المُعلّمة بـ I<sigintr> كمشكلة أمان خيوط التنفيذ تصل إلى هيكل البيانات "
1307 "الداخلي I<_sigintr> لمكتبة C لجنو دون أي حراس لضمان الأمان في وجود تعديلات "
1308 "متزامنة."
1309
1310 #. or AS-Unsafe,
1311 #. .TP
1312 #. .I fd
1313 #. Functions annotated with
1314 #. .I fd
1315 #. as an AC-Safety issue may leak file
1316 #. descriptors if asynchronous thread cancelation interrupts their
1317 #. execution.
1318 #. Functions that allocate or deallocate file descriptors will generally be
1319 #. marked as such.
1320 #. Even if they attempted to protect the file descriptor
1321 #. allocation and deallocation with cleanup regions,
1322 #. allocating a new descriptor and storing its number where the cleanup region
1323 #. could release it cannot be performed as a single atomic operation.
1324 #. Similarly,
1325 #. releasing the descriptor and taking it out of the data structure
1326 #. normally responsible for releasing it cannot be performed atomically.
1327 #. There will always be a window in which the descriptor cannot be released
1328 #. because it was not stored in the cleanup handler argument yet,
1329 #. or it was already taken out before releasing it.
1330 #. .\" It cannot be taken out after release:
1331 #. an open descriptor could mean either that the descriptor still
1332 #. has to be closed,
1333 #. or that it already did so but the descriptor was
1334 #. reallocated by another thread or signal handler.
1335 #. Such leaks could be internally avoided, with some performance penalty,
1336 #. by temporarily disabling asynchronous thread cancelation.
1337 #. However,
1338 #. since callers of allocation or deallocation functions would have to do
1339 #. this themselves, to avoid the same sort of leak in their own layer,
1340 #. it makes more sense for the library to assume they are taking care of it
1341 #. than to impose a performance penalty that is redundant when the problem
1342 #. is solved in upper layers, and insufficient when it is not.
1343 #. This remark by itself does not cause a function to be regarded as
1344 #. AC-Unsafe.
1345 #. However, cumulative effects of such leaks may pose a
1346 #. problem for some programs.
1347 #. If this is the case,
1348 #. suspending asynchronous cancelation for the duration of calls
1349 #. to such functions is recommended.
1350 #. .TP
1351 #. .I mem
1352 #. Functions annotated with
1353 #. .I mem
1354 #. as an AC-Safety issue may leak
1355 #. memory if asynchronous thread cancelation interrupts their execution.
1356 #. The problem is similar to that of file descriptors: there is no atomic
1357 #. interface to allocate memory and store its address in the argument to a
1358 #. cleanup handler,
1359 #. or to release it and remove its address from that argument,
1360 #. without at least temporarily disabling asynchronous cancelation,
1361 #. which these functions do not do.
1362 #. This remark does not by itself cause a function to be regarded as
1363 #. generally AC-Unsafe.
1364 #. However, cumulative effects of such leaks may be
1365 #. severe enough for some programs that disabling asynchronous cancelation
1366 #. for the duration of calls to such functions may be required.
1367 #. type: Plain text
1368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1370 msgid ""
1371 "We do not mark these functions as MT-Unsafe, however, because functions that "
1372 "modify this data structure are all marked with I<const:sigintr> and regarded "
1373 "as unsafe. Being unsafe, the latter are not to be called when multiple "
1374 "threads are running or asynchronous signals are enabled, and so the data "
1375 "structure can be considered effectively constant in these contexts, which "
1376 "makes the former safe."
1377 msgstr ""
1378 "مع ذلك، لا نُعلّم هذه الدوال كغير آمنة للخيوط، لأن الدوال التي تُعدّل هيكل "
1379 "البيانات هذا كلها مُعلّمة بـ I<const:sigintr> وتُعتبر غير آمنة. لكونها غير "
1380 "آمنة، لا ينبغي استدعاء الأخيرة عند تشغيل خيوط متعددة أو تمكين الإشارات غير "
1381 "المتزامنة، وبالتالي يمكن اعتبار هيكل البيانات ثابتًا فعليًا في هذه السياقات، "
1382 "مما يجعل الأولى آمنة."
1383
1384 #. type: TP
1385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1387 #, no-wrap
1388 msgid "I<cwd>"
1389 msgstr "I<cwd>"
1390
1391 #. type: Plain text
1392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1394 msgid ""
1395 "Functions marked with I<cwd> as an MT-Safety issue may temporarily change "
1396 "the current working directory during their execution, which may cause "
1397 "relative pathnames to be resolved in unexpected ways in other threads or "
1398 "within asynchronous signal or cancelation handlers."
1399 msgstr ""
1400 "الدوال المُعلّمة بـ I<cwd> كمشكلة أمان خيوط التنفيذ قد تُغيّر دليل العمل الحالي "
1401 "مؤقتًا أثناء تنفيذها، مما قد يتسبب في حل أسماء المسارات النسبية بطرق غير "
1402 "متوقعة في خيوط أخرى أو داخل معالجات الإشارات غير المتزامنة أو الإلغاء."
1403
1404 #. or AS-Unsafe,
1405 #. .TP
1406 #. .I !posix
1407 #. This remark, as an MT-Safety, AS-Safety or AC-Safety
1408 #. note to a function,
1409 #. indicates the safety status of the function is known to differ
1410 #. from the specified status in the POSIX standard.
1411 #. For example, POSIX does not require a function to be Safe,
1412 #. but our implementation is, or vice-versa.
1413 #. For the time being, the absence of this remark does not imply the safety
1414 #. properties we documented are identical to those mandated by POSIX for
1415 #. the corresponding functions.
1416 #. type: Plain text
1417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1419 msgid ""
1420 "This is not enough of a reason to mark so-marked functions as MT-Unsafe, but "
1421 "when this behavior is optional (e.g., B<nftw>(3) with B<FTW_CHDIR>), "
1422 "avoiding the option may be a good alternative to using full pathnames or "
1423 "file descriptor-relative (e.g., B<openat>(2)) system calls."
1424 msgstr ""
1425 "هذا ليس سببًا كافيًا لتعليم الدوال المُعلّمة بهذا الشكل كغير آمنة للخيوط، ولكن "
1426 "عندما يكون هذا السلوك اختياريًا (مثل B<nftw>(3) مع B<FTW_CHDIR>)، قد يكون "
1427 "تجنب الخيار بديلاً جيدًا لاستخدام أسماء المسارات الكاملة أو استدعاءات النظام "
1428 "المتعلقة بوصف الملف (مثل B<openat>(2))."
1429
1430 #. type: TP
1431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1433 #, no-wrap
1434 msgid "I<:identifier>"
1435 msgstr "I<:identifier>"
1436
1437 #. type: Plain text
1438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1440 msgid ""
1441 "Annotations may sometimes be followed by identifiers, intended to group "
1442 "several functions that, for example, access the data structures in an unsafe "
1443 "way, as in I<race> and I<const>, or to provide more specific information, "
1444 "such as naming a signal in a function marked with I<sig>. It is envisioned "
1445 "that it may be applied to I<lock> and I<corrupt> as well in the future."
1446 msgstr ""
1447 "قد تُتبع التعليقات أحيانًا بمُعرّفات، تهدف إلى تجميع عدة دوال تصل، على سبيل "
1448 "المثال، إلى هياكل البيانات بطريقة غير آمنة، كما في I<race> و I<const>، أو "
1449 "لتوفير معلومات أكثر تحديدًا، مثل تسمية إشارة في دالة مُعلّمة بـ I<sig>. من "
1450 "المتصور أنه قد يُطبق على I<lock> و I<corrupt> أيضًا في المستقبل."
1451
1452 #. type: Plain text
1453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1455 msgid ""
1456 "In most cases, the identifier will name a set of functions, but it may name "
1457 "global objects or function arguments, or identifiable properties or logical "
1458 "components associated with them, with a notation such as, for example, I<:"
1459 "buf(arg)> to denote a buffer associated with the argument I<arg>, or I<:"
1460 "tcattr(fd)> to denote the terminal attributes of a file descriptor I<fd>."
1461 msgstr ""
1462 "في معظم الحالات، سيُسمي المُعرّف مجموعة من الدوال، ولكنه قد يُسمي كائنات عامة أو "
1463 "وسائط دالة، أو خصائص قابلة للتحديد أو مكونات منطقية مرتبطة بها، بتدوين مثل، "
1464 "على سبيل المثال، I<:buf(arg)> للدلالة على مخزن مؤقت مرتبط بالوسيطة I<arg>، "
1465 "أو I<:tcattr(fd)> للدلالة على سمات الطرفية لوصف ملف I<fd>."
1466
1467 #. type: Plain text
1468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1470 msgid ""
1471 "The most common use for identifiers is to provide logical groups of "
1472 "functions and arguments that need to be protected by the same "
1473 "synchronization primitive in order to ensure safe operation in a given "
1474 "context."
1475 msgstr ""
1476 "الاستخدام الأكثر شيوعًا للمُعرّفات هو توفير مجموعات منطقية من الدوال والوسائط "
1477 "التي تحتاج إلى الحماية بواسطة نفس بدائية التزامن لضمان التشغيل الآمن في سياق "
1478 "معين."
1479
1480 #. type: TP
1481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1483 #, no-wrap
1484 msgid "I</condition>"
1485 msgstr "I</condition>"
1486
1487 #. Such conditions as
1488 #. .I /hurd
1489 #. or
1490 #. .I /!linux!bsd
1491 #. indicate the preceding marker only
1492 #. applies when the underlying kernel is the HURD,
1493 #. or when it is neither Linux nor a BSD kernel, respectively.
1494 #. type: Plain text
1495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1497 msgid ""
1498 "Some safety annotations may be conditional, in that they only apply if a "
1499 "boolean expression involving arguments, global variables or even the "
1500 "underlying kernel evaluates to true. For example, I</!ps> and I</"
1501 "one_per_line> indicate the preceding marker only applies when argument I<ps> "
1502 "is NULL, or global variable I<one_per_line> is nonzero."
1503 msgstr ""
1504 "قد تكون بعض تعليقات الأمان شرطية، حيث تنطبق فقط إذا كان تعبير منطقي يتضمن "
1505 "وسائط أو متغيرات عامة أو حتى النواة الأساسية يُقيّم إلى صحيح. على سبيل المثال، "
1506 "يشير I</!ps> و I</one_per_line> إلى أن العلامة السابقة تنطبق فقط عندما تكون "
1507 "الوسيطة I<ps> فارغة (NULL)، أو المتغير العام I<one_per_line> غير صفري."
1508
1509 #. type: Plain text
1510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1512 msgid ""
1513 "When all marks that render a function unsafe are adorned with such "
1514 "conditions, and none of the named conditions hold, then the function can be "
1515 "regarded as safe."
1516 msgstr ""
1517 "عندما تكون جميع العلامات التي تجعل الدالة غير آمنة مُزيّنة بمثل هذه الشروط، "
1518 "ولا ينطبق أي من الشروط المُسمّاة، يمكن اعتبار الدالة آمنة."
1519
1520 #. type: SH
1521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1523 #, no-wrap
1524 msgid "SEE ALSO"
1525 msgstr "انظر أيضًا"
1526
1527 #. type: Plain text
1528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1530 msgid "B<pthreads>(7), B<signal-safety>(7)"
1531 msgstr "B<pthreads>(7), B<signal-safety>(7)"
1532
1533 #. type: TH
1534 #: debian-trixie
1535 #, no-wrap
1536 msgid "2024-05-02"
1537 msgstr "2 مايو 2024"
1538
1539 #. type: TH
1540 #: debian-trixie
1541 #, no-wrap
1542 msgid "Linux man-pages 6.9.1"
1543 msgstr "صفحات دليل لينكس 6.9.1"
1544
1545 #. type: Plain text
1546 #: debian-trixie
1547 msgid ""
1548 "The function marked with I<hostid> as an MT-Safety issue reads from the "
1549 "system-wide data structures that hold the \"host ID\" of the machine. These "
1550 "data structures cannot generally be modified atomically. Since it is "
1551 "expected that the \"host ID\" will not normally change, the function that "
1552 "reads from it (B<gethostid>(3)) is regarded as safe, whereas the function "
1553 "that modifies it (B<sethostid>(3)) is marked with I<const:hostid>, "
1554 "indicating it may require special care if it is to be called. In this "
1555 "specific case, the special care amounts to system-wide (not merely intra-"
1556 "process) coordination."
1557 msgstr ""
1558 "الدالة المُعلّمة بـ I<hostid> كمشكلة أمان خيوط التنفيذ تقرأ من هياكل البيانات "
1559 "على مستوى النظام التي تحتوي على \"معرف المضيف\" للجهاز. لا يمكن تعديل هياكل "
1560 "البيانات هذه بشكل ذري عمومًا. نظرًا لأنه من المتوقع ألا يتغير \"معرف المضيف\" "
1561 "عادةً، تُعتبر الدالة التي تقرأ منه (B<gethostid>(3)) آمنة، بينما الدالة التي "
1562 "تُعدّله (B<sethostid>(3)) مُعلّمة بـ I<const:hostid>، مما يشير إلى أنها قد تتطلب "
1563 "عناية خاصة إذا كان سيتم استدعاؤها. في هذه الحالة المحددة، تعادل العناية "
1564 "الخاصة التنسيق على مستوى النظام (وليس فقط داخل العملية)."
1565
1566 #. type: TH
1567 #: fedora-44 fedora-rawhide
1568 #, no-wrap
1569 msgid "2024-11-17"
1570 msgstr "17 نوفمبر 2024"
1571
1572 #. type: TH
1573 #: fedora-44 fedora-rawhide
1574 #, no-wrap
1575 msgid "Linux man-pages 6.13"
1576 msgstr "صفحات دليل لينكس 6.13"
1577
1578 #. type: TH
1579 #: mageia-cauldron
1580 #, no-wrap
1581 msgid "Linux man-pages 6.17"
1582 msgstr "صفحات دليل لينكس 6.17"
1583
1584 #. type: TH
1585 #: opensuse-leap-16-1 opensuse-tumbleweed
1586 #, no-wrap
1587 msgid "Linux man-pages (unreleased)"
1588 msgstr "صفحات دليل لينكس (لم تصدر بعد)"