Debian Codegraph @

po/ro/man7/attributes.7.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.25.1\n"
8 "POT-Creation-Date: 2026-06-05 06:18+0200\n"
9 "PO-Revision-Date: 2025-03-30 19:13+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\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=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.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 "atribute"
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 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 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 "NUME"
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 - concepte de siguranță 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 "DESCRIERE"
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<Notă>: textul acestei pagini de manual se bazează pe materialul preluat "
69 "din secțiunea „POSIX Safety Concepts” a manualului GNU C Library. Detalii "
70 "suplimentare despre subiectele descrise aici pot fi găsite în acel manual."
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 "Diverse pagini de manual ale funcțiilor includ o secțiune ATRIBUTE care "
81 "descrie siguranța apelării funcției în diverse contexte. Această secțiune "
82 "adnotează funcțiile cu următoarele marcaje de siguranță:"
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 "Funcțiile I<MT-Safe> sau Thread-Safe pot fi apelate în siguranță în prezența "
99 "altor fire de execuție. MT, în MT-Safe, înseamnă Multi Thread. (multiple "
100 "fire de execuție)"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Being MT-Safe does not imply a function is atomic, nor that it uses any of "
107 "the memory synchronization mechanisms POSIX exposes to users. It is even "
108 "possible that calling MT-Safe functions in sequence does not yield an MT-"
109 "Safe combination. For example, having a thread call two MT-Safe functions "
110 "one right after the other does not guarantee behavior equivalent to atomic "
111 "execution of a combination of both functions, since concurrent calls in "
112 "other threads may interfere in a destructive way."
113 msgstr ""
114 "A fi MT-Safe nu înseamnă că o funcție este atomică și nici că utilizează "
115 "vreunul dintre mecanismele de sincronizare a memoriei pe care POSIX le "
116 "expune utilizatorilor. Este chiar posibil ca apelarea funcțiilor MT-Safe în "
117 "succesiune să nu producă o combinație MT-Safe. De exemplu, apelarea de către "
118 "un fir de execuție a două funcții MT-Safe una imediat după alta nu "
119 "garantează un comportament echivalent cu execuția atomică a unei combinații "
120 "a ambelor funcții, deoarece apelurile simultane în alte fire de execuție pot "
121 "interfera într-un mod distructiv."
122
123 #
124 #
125 #
126 #. .TP
127 #. .I AS-Safe
128 #. .I AS-Safe
129 #. or Async-Signal-Safe functions are safe to call from
130 #. asynchronous signal handlers.
131 #. AS, in AS-Safe, stands for Asynchronous Signal.
132 #. Many functions that are AS-Safe may set
133 #. .IR errno ,
134 #. or modify the floating-point environment,
135 #. because their doing so does not make them
136 #. unsuitable for use in signal handlers.
137 #. However, programs could misbehave should asynchronous signal handlers
138 #. modify this thread-local state,
139 #. and the signal handling machinery cannot be counted on to
140 #. preserve it.
141 #. Therefore, signal handlers that call functions that may set
142 #. .I errno
143 #. or modify the floating-point environment
144 #. .I must
145 #. save their original values, and restore them before returning.
146 #. .TP
147 #. .I AC-Safe
148 #. .I AC-Safe
149 #. or Async-Cancel-Safe functions are safe to call when
150 #. asynchronous cancelation is enabled.
151 #. AC in AC-Safe stands for Asynchronous Cancelation.
152 #. The POSIX standard defines only three functions to be AC-Safe, namely
153 #. .BR pthread_cancel (3),
154 #. .BR pthread_setcancelstate (3),
155 #. and
156 #. .BR pthread_setcanceltype (3).
157 #. At present the GNU C Library provides no
158 #. guarantees beyond these three functions,
159 #. but does document which functions are presently AC-Safe.
160 #. This documentation is provided for use
161 #. by the GNU C Library developers.
162 #. Just like signal handlers, cancelation cleanup routines must configure
163 #. the floating point environment they require.
164 #. The routines cannot assume a floating point environment,
165 #. particularly when asynchronous cancelation is enabled.
166 #. If the configuration of the floating point
167 #. environment cannot be performed atomically then it is also possible that
168 #. the environment encountered is internally inconsistent.
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "Whole-program optimizations that could inline functions across library "
174 "interfaces may expose unsafe reordering, and so performing inlining across "
175 "the GNU C Library interface is not recommended. The documented MT-Safety "
176 "status is not guaranteed under whole-program optimization. However, "
177 "functions defined in user-visible headers are designed to be safe for "
178 "inlining."
179 msgstr ""
180 "Optimizările întregului program care ar putea include funcții în interfețe "
181 "de bibliotecă pot expune o reordonare nesigură și, prin urmare, nu se "
182 "recomandă includerea în interfața bibliotecii GNU C. Statutul MT-Safety "
183 "documentat nu este garantat în cazul optimizării întregului program. Cu "
184 "toate acestea, funcțiile definite în antetele vizibile pentru utilizator "
185 "sunt proiectate să fie sigure pentru „inlining”."
186
187 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
188 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
189 #. type: TP
190 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
191 #. ", " AS-Unsafe ", " AC-Unsafe
192 #. type: TP
193 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
194 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
195 #. type: TP
196 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
197 #. ", " AS-Unsafe ", " AC-Unsafe
198 #. type: TP
199 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
200 #. ", " AS-Unsafe ", " AC-Unsafe
201 #. type: TP
202 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
203 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
204 #. type: TP
205 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
206 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
207 #. type: TP
208 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
209 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
210 #. type: TP
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid "I<MT-Unsafe>"
215 msgstr "I<MT-Unsafe>"
216
217 #
218 #
219 #
220 #
221 #
222 #
223 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
224 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
225 #. functions are not
226 #. safe to call within the safety contexts described above.
227 #. Calling them
228 #. within such contexts invokes undefined behavior.
229 #. Functions not explicitly documented as safe in a safety context should
230 #. be regarded as Unsafe.
231 #. .TP
232 #. .I Preliminary
233 #. .I Preliminary
234 #. safety properties are documented, indicating these
235 #. properties may
236 #. .I not
237 #. be counted on in future releases of
238 #. the GNU C Library.
239 #. Such preliminary properties are the result of an assessment of the
240 #. properties of our current implementation,
241 #. rather than of what is mandated and permitted
242 #. by current and future standards.
243 #. Although we strive to abide by the standards, in some cases our
244 #. implementation is safe even when the standard does not demand safety,
245 #. and in other cases our implementation does not meet the standard safety
246 #. requirements.
247 #. The latter are most likely bugs; the former, when marked
248 #. as
249 #. .IR Preliminary ,
250 #. should not be counted on: future standards may
251 #. require changes that are not compatible with the additional safety
252 #. properties afforded by the current implementation.
253 #. Furthermore,
254 #. the POSIX standard does not offer a detailed definition of safety.
255 #. We assume that, by "safe to call", POSIX means that,
256 #. as long as the program does not invoke undefined behavior,
257 #. the "safe to call" function behaves as specified,
258 #. and does not cause other functions to deviate from their specified behavior.
259 #. We have chosen to use its loose
260 #. definitions of safety, not because they are the best definitions to use,
261 #. but because choosing them harmonizes this manual with POSIX.
262 #. Please keep in mind that these are preliminary definitions and annotations,
263 #. and certain aspects of the definitions are still under
264 #. discussion and might be subject to clarification or change.
265 #. Over time,
266 #. we envision evolving the preliminary safety notes into stable commitments,
267 #. as stable as those of our interfaces.
268 #. As we do, we will remove the
269 #. .I Preliminary
270 #. keyword from safety notes.
271 #. As long as the keyword remains, however,
272 #. they are not to be regarded as a promise of future behavior.
273 #. type: Plain text
274 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
275 #. ", " AS-Unsafe ", " AC-Unsafe
276 #. functions are not
277 #. safe to call within the safety contexts described above.
278 #. Calling them
279 #. within such contexts invokes undefined behavior.
280 #. Functions not explicitly documented as safe in a safety context should
281 #. be regarded as Unsafe.
282 #. .TP
283 #. .I Preliminary
284 #. .I Preliminary
285 #. safety properties are documented, indicating these
286 #. properties may
287 #. .I not
288 #. be counted on in future releases of
289 #. the GNU C Library.
290 #. Such preliminary properties are the result of an assessment of the
291 #. properties of our current implementation,
292 #. rather than of what is mandated and permitted
293 #. by current and future standards.
294 #. Although we strive to abide by the standards, in some cases our
295 #. implementation is safe even when the standard does not demand safety,
296 #. and in other cases our implementation does not meet the standard safety
297 #. requirements.
298 #. The latter are most likely bugs; the former, when marked
299 #. as
300 #. .IR Preliminary ,
301 #. should not be counted on: future standards may
302 #. require changes that are not compatible with the additional safety
303 #. properties afforded by the current implementation.
304 #. Furthermore,
305 #. the POSIX standard does not offer a detailed definition of safety.
306 #. We assume that, by "safe to call", POSIX means that,
307 #. as long as the program does not invoke undefined behavior,
308 #. the "safe to call" function behaves as specified,
309 #. and does not cause other functions to deviate from their specified behavior.
310 #. We have chosen to use its loose
311 #. definitions of safety, not because they are the best definitions to use,
312 #. but because choosing them harmonizes this manual with POSIX.
313 #. Please keep in mind that these are preliminary definitions and annotations,
314 #. and certain aspects of the definitions are still under
315 #. discussion and might be subject to clarification or change.
316 #. Over time,
317 #. we envision evolving the preliminary safety notes into stable commitments,
318 #. as stable as those of our interfaces.
319 #. As we do, we will remove the
320 #. .I Preliminary
321 #. keyword from safety notes.
322 #. As long as the keyword remains, however,
323 #. they are not to be regarded as a promise of future behavior.
324 #. type: Plain text
325 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
326 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
327 #. functions are not
328 #. safe to call within the safety contexts described above.
329 #. Calling them
330 #. within such contexts invokes undefined behavior.
331 #. Functions not explicitly documented as safe in a safety context should
332 #. be regarded as Unsafe.
333 #. .TP
334 #. .I Preliminary
335 #. .I Preliminary
336 #. safety properties are documented, indicating these
337 #. properties may
338 #. .I not
339 #. be counted on in future releases of
340 #. the GNU C Library.
341 #. Such preliminary properties are the result of an assessment of the
342 #. properties of our current implementation,
343 #. rather than of what is mandated and permitted
344 #. by current and future standards.
345 #. Although we strive to abide by the standards, in some cases our
346 #. implementation is safe even when the standard does not demand safety,
347 #. and in other cases our implementation does not meet the standard safety
348 #. requirements.
349 #. The latter are most likely bugs; the former, when marked
350 #. as
351 #. .IR Preliminary ,
352 #. should not be counted on: future standards may
353 #. require changes that are not compatible with the additional safety
354 #. properties afforded by the current implementation.
355 #. Furthermore,
356 #. the POSIX standard does not offer a detailed definition of safety.
357 #. We assume that, by "safe to call", POSIX means that,
358 #. as long as the program does not invoke undefined behavior,
359 #. the "safe to call" function behaves as specified,
360 #. and does not cause other functions to deviate from their specified behavior.
361 #. We have chosen to use its loose
362 #. definitions of safety, not because they are the best definitions to use,
363 #. but because choosing them harmonizes this manual with POSIX.
364 #. Please keep in mind that these are preliminary definitions and annotations,
365 #. and certain aspects of the definitions are still under
366 #. discussion and might be subject to clarification or change.
367 #. Over time,
368 #. we envision evolving the preliminary safety notes into stable commitments,
369 #. as stable as those of our interfaces.
370 #. As we do, we will remove the
371 #. .I Preliminary
372 #. keyword from safety notes.
373 #. As long as the keyword remains, however,
374 #. they are not to be regarded as a promise of future behavior.
375 #. type: Plain text
376 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
377 #. ", " AS-Unsafe ", " AC-Unsafe
378 #. functions are not
379 #. safe to call within the safety contexts described above.
380 #. Calling them
381 #. within such contexts invokes undefined behavior.
382 #. Functions not explicitly documented as safe in a safety context should
383 #. be regarded as Unsafe.
384 #. .TP
385 #. .I Preliminary
386 #. .I Preliminary
387 #. safety properties are documented, indicating these
388 #. properties may
389 #. .I not
390 #. be counted on in future releases of
391 #. the GNU C Library.
392 #. Such preliminary properties are the result of an assessment of the
393 #. properties of our current implementation,
394 #. rather than of what is mandated and permitted
395 #. by current and future standards.
396 #. Although we strive to abide by the standards, in some cases our
397 #. implementation is safe even when the standard does not demand safety,
398 #. and in other cases our implementation does not meet the standard safety
399 #. requirements.
400 #. The latter are most likely bugs; the former, when marked
401 #. as
402 #. .IR Preliminary ,
403 #. should not be counted on: future standards may
404 #. require changes that are not compatible with the additional safety
405 #. properties afforded by the current implementation.
406 #. Furthermore,
407 #. the POSIX standard does not offer a detailed definition of safety.
408 #. We assume that, by "safe to call", POSIX means that,
409 #. as long as the program does not invoke undefined behavior,
410 #. the "safe to call" function behaves as specified,
411 #. and does not cause other functions to deviate from their specified behavior.
412 #. We have chosen to use its loose
413 #. definitions of safety, not because they are the best definitions to use,
414 #. but because choosing them harmonizes this manual with POSIX.
415 #. Please keep in mind that these are preliminary definitions and annotations,
416 #. and certain aspects of the definitions are still under
417 #. discussion and might be subject to clarification or change.
418 #. Over time,
419 #. we envision evolving the preliminary safety notes into stable commitments,
420 #. as stable as those of our interfaces.
421 #. As we do, we will remove the
422 #. .I Preliminary
423 #. keyword from safety notes.
424 #. As long as the keyword remains, however,
425 #. they are not to be regarded as a promise of future behavior.
426 #. type: Plain text
427 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
428 #. ", " AS-Unsafe ", " AC-Unsafe
429 #. functions are not
430 #. safe to call within the safety contexts described above.
431 #. Calling them
432 #. within such contexts invokes undefined behavior.
433 #. Functions not explicitly documented as safe in a safety context should
434 #. be regarded as Unsafe.
435 #. .TP
436 #. .I Preliminary
437 #. .I Preliminary
438 #. safety properties are documented, indicating these
439 #. properties may
440 #. .I not
441 #. be counted on in future releases of
442 #. the GNU C Library.
443 #. Such preliminary properties are the result of an assessment of the
444 #. properties of our current implementation,
445 #. rather than of what is mandated and permitted
446 #. by current and future standards.
447 #. Although we strive to abide by the standards, in some cases our
448 #. implementation is safe even when the standard does not demand safety,
449 #. and in other cases our implementation does not meet the standard safety
450 #. requirements.
451 #. The latter are most likely bugs; the former, when marked
452 #. as
453 #. .IR Preliminary ,
454 #. should not be counted on: future standards may
455 #. require changes that are not compatible with the additional safety
456 #. properties afforded by the current implementation.
457 #. Furthermore,
458 #. the POSIX standard does not offer a detailed definition of safety.
459 #. We assume that, by "safe to call", POSIX means that,
460 #. as long as the program does not invoke undefined behavior,
461 #. the "safe to call" function behaves as specified,
462 #. and does not cause other functions to deviate from their specified behavior.
463 #. We have chosen to use its loose
464 #. definitions of safety, not because they are the best definitions to use,
465 #. but because choosing them harmonizes this manual with POSIX.
466 #. Please keep in mind that these are preliminary definitions and annotations,
467 #. and certain aspects of the definitions are still under
468 #. discussion and might be subject to clarification or change.
469 #. Over time,
470 #. we envision evolving the preliminary safety notes into stable commitments,
471 #. as stable as those of our interfaces.
472 #. As we do, we will remove the
473 #. .I Preliminary
474 #. keyword from safety notes.
475 #. As long as the keyword remains, however,
476 #. they are not to be regarded as a promise of future behavior.
477 #. type: Plain text
478 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
479 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
480 #. functions are not
481 #. safe to call within the safety contexts described above.
482 #. Calling them
483 #. within such contexts invokes undefined behavior.
484 #. Functions not explicitly documented as safe in a safety context should
485 #. be regarded as Unsafe.
486 #. .TP
487 #. .I Preliminary
488 #. .I Preliminary
489 #. safety properties are documented, indicating these
490 #. properties may
491 #. .I not
492 #. be counted on in future releases of
493 #. the GNU C Library.
494 #. Such preliminary properties are the result of an assessment of the
495 #. properties of our current implementation,
496 #. rather than of what is mandated and permitted
497 #. by current and future standards.
498 #. Although we strive to abide by the standards, in some cases our
499 #. implementation is safe even when the standard does not demand safety,
500 #. and in other cases our implementation does not meet the standard safety
501 #. requirements.
502 #. The latter are most likely bugs; the former, when marked
503 #. as
504 #. .IR Preliminary ,
505 #. should not be counted on: future standards may
506 #. require changes that are not compatible with the additional safety
507 #. properties afforded by the current implementation.
508 #. Furthermore,
509 #. the POSIX standard does not offer a detailed definition of safety.
510 #. We assume that, by "safe to call", POSIX means that,
511 #. as long as the program does not invoke undefined behavior,
512 #. the "safe to call" function behaves as specified,
513 #. and does not cause other functions to deviate from their specified behavior.
514 #. We have chosen to use its loose
515 #. definitions of safety, not because they are the best definitions to use,
516 #. but because choosing them harmonizes this manual with POSIX.
517 #. Please keep in mind that these are preliminary definitions and annotations,
518 #. and certain aspects of the definitions are still under
519 #. discussion and might be subject to clarification or change.
520 #. Over time,
521 #. we envision evolving the preliminary safety notes into stable commitments,
522 #. as stable as those of our interfaces.
523 #. As we do, we will remove the
524 #. .I Preliminary
525 #. keyword from safety notes.
526 #. As long as the keyword remains, however,
527 #. they are not to be regarded as a promise of future behavior.
528 #. type: Plain text
529 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
530 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
531 #. functions are not
532 #. safe to call within the safety contexts described above.
533 #. Calling them
534 #. within such contexts invokes undefined behavior.
535 #. Functions not explicitly documented as safe in a safety context should
536 #. be regarded as Unsafe.
537 #. .TP
538 #. .I Preliminary
539 #. .I Preliminary
540 #. safety properties are documented, indicating these
541 #. properties may
542 #. .I not
543 #. be counted on in future releases of
544 #. the GNU C Library.
545 #. Such preliminary properties are the result of an assessment of the
546 #. properties of our current implementation,
547 #. rather than of what is mandated and permitted
548 #. by current and future standards.
549 #. Although we strive to abide by the standards, in some cases our
550 #. implementation is safe even when the standard does not demand safety,
551 #. and in other cases our implementation does not meet the standard safety
552 #. requirements.
553 #. The latter are most likely bugs; the former, when marked
554 #. as
555 #. .IR Preliminary ,
556 #. should not be counted on: future standards may
557 #. require changes that are not compatible with the additional safety
558 #. properties afforded by the current implementation.
559 #. Furthermore,
560 #. the POSIX standard does not offer a detailed definition of safety.
561 #. We assume that, by "safe to call", POSIX means that,
562 #. as long as the program does not invoke undefined behavior,
563 #. the "safe to call" function behaves as specified,
564 #. and does not cause other functions to deviate from their specified behavior.
565 #. We have chosen to use its loose
566 #. definitions of safety, not because they are the best definitions to use,
567 #. but because choosing them harmonizes this manual with POSIX.
568 #. Please keep in mind that these are preliminary definitions and annotations,
569 #. and certain aspects of the definitions are still under
570 #. discussion and might be subject to clarification or change.
571 #. Over time,
572 #. we envision evolving the preliminary safety notes into stable commitments,
573 #. as stable as those of our interfaces.
574 #. As we do, we will remove the
575 #. .I Preliminary
576 #. keyword from safety notes.
577 #. As long as the keyword remains, however,
578 #. they are not to be regarded as a promise of future behavior.
579 #. type: Plain text
580 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
581 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
582 #. functions are not
583 #. safe to call within the safety contexts described above.
584 #. Calling them
585 #. within such contexts invokes undefined behavior.
586 #. Functions not explicitly documented as safe in a safety context should
587 #. be regarded as Unsafe.
588 #. .TP
589 #. .I Preliminary
590 #. .I Preliminary
591 #. safety properties are documented, indicating these
592 #. properties may
593 #. .I not
594 #. be counted on in future releases of
595 #. the GNU C Library.
596 #. Such preliminary properties are the result of an assessment of the
597 #. properties of our current implementation,
598 #. rather than of what is mandated and permitted
599 #. by current and future standards.
600 #. Although we strive to abide by the standards, in some cases our
601 #. implementation is safe even when the standard does not demand safety,
602 #. and in other cases our implementation does not meet the standard safety
603 #. requirements.
604 #. The latter are most likely bugs; the former, when marked
605 #. as
606 #. .IR Preliminary ,
607 #. should not be counted on: future standards may
608 #. require changes that are not compatible with the additional safety
609 #. properties afforded by the current implementation.
610 #. Furthermore,
611 #. the POSIX standard does not offer a detailed definition of safety.
612 #. We assume that, by "safe to call", POSIX means that,
613 #. as long as the program does not invoke undefined behavior,
614 #. the "safe to call" function behaves as specified,
615 #. and does not cause other functions to deviate from their specified behavior.
616 #. We have chosen to use its loose
617 #. definitions of safety, not because they are the best definitions to use,
618 #. but because choosing them harmonizes this manual with POSIX.
619 #. Please keep in mind that these are preliminary definitions and annotations,
620 #. and certain aspects of the definitions are still under
621 #. discussion and might be subject to clarification or change.
622 #. Over time,
623 #. we envision evolving the preliminary safety notes into stable commitments,
624 #. as stable as those of our interfaces.
625 #. As we do, we will remove the
626 #. .I Preliminary
627 #. keyword from safety notes.
628 #. As long as the keyword remains, however,
629 #. they are not to be regarded as a promise of future behavior.
630 #. type: Plain text
631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
633 msgid ""
634 "I<MT-Unsafe> functions are not safe to call in a multithreaded programs."
635 msgstr ""
636 "Funcțiile I<MT-Unsafe> nu pot fi apelate în siguranță în programele "
637 "multithreaded (executate folosind mai multe fire)."
638
639 #
640 #
641 #
642 #
643 #
644 #
645 #
646 #
647 #
648 #
649 #
650 #. .SS Unsafe features
651 #. Functions that are unsafe to call in certain contexts are annotated with
652 #. keywords that document their features that make them unsafe to call.
653 #. AS-Unsafe features in this section indicate the functions are never safe
654 #. to call when asynchronous signals are enabled.
655 #. AC-Unsafe features
656 #. indicate they are never safe to call when asynchronous cancelation is
657 #. .\" enabled.
658 #. There are no MT-Unsafe marks in this section.
659 #. .TP
660 #. .\" .I code
661 #. Functions marked with
662 #. .I lock
663 #. as an AS-Unsafe feature may be
664 #. .\" interrupted by a signal while holding a non-recursive lock.
665 #. If the signal handler calls another such function that takes the same lock,
666 #. the result is a deadlock.
667 #. Functions annotated with
668 #. .I lock
669 #. as an AC-Unsafe feature may, if canceled asynchronously,
670 #. fail to release a lock that would have been released if their execution
671 #. had not been interrupted by asynchronous thread cancelation.
672 #. Once a lock is left taken,
673 #. attempts to take that lock will block indefinitely.
674 #. .TP
675 #. .I corrupt
676 #. Functions marked with
677 #. .\" .I corrupt
678 #. as an AS-Unsafe feature may corrupt
679 #. data structures and misbehave when they interrupt,
680 #. or are interrupted by, another such function.
681 #. Unlike functions marked with
682 #. .IR lock ,
683 #. these take recursive locks to avoid MT-Safety problems,
684 #. but this is not enough to stop a signal handler from observing
685 #. a partially-updated data structure.
686 #. Further corruption may arise from the interrupted function's
687 #. failure to notice updates made by signal handlers.
688 #. Functions marked with
689 #. .I corrupt
690 #. as an AC-Unsafe feature may leave
691 #. data structures in a corrupt, partially updated state.
692 #. Subsequent uses of the data structure may misbehave.
693 #. .\" A special case, probably not worth documenting separately, involves
694 #. .\" reallocing, or even freeing pointers. Any case involving free could
695 #. .\" be easily turned into an ac-safe leak by resetting the pointer before
696 #. .\" releasing it; I don't think we have any case that calls for this sort
697 #. .\" of fixing. Fixing the realloc cases would require a new interface:
698 #. .\" instead of @code{ptr=realloc(ptr,size)} we'd have to introduce
699 #. .\" @code{acsafe_realloc(&ptr,size)} that would modify ptr before
700 #. .\" releasing the old memory. The ac-unsafe realloc could be implemented
701 #. .\" in terms of an internal interface with this semantics (say
702 #. .\" __acsafe_realloc), but since realloc can be overridden, the function
703 #. .\" we call to implement realloc should not be this internal interface,
704 #. .\" but another internal interface that calls __acsafe_realloc if realloc
705 #. .\" was not overridden, and calls the overridden realloc with async
706 #. .\" cancel disabled. --lxoliva
707 #. .TP
708 #. .I heap
709 #. Functions marked with
710 #. .I heap
711 #. may call heap memory management functions from the
712 #. .BR malloc (3)/ free (3)
713 #. family of functions and are only as safe as those functions.
714 #. This note is thus equivalent to:
715 #. | AS-Unsafe lock | AC-Unsafe lock fd mem |
716 #. .\" @sampsafety{@asunsafe{@asulock{}}@acunsafe{@aculock{} @acsfd{} @acsmem{}}}
717 #. .\"
718 #. .\" Check for cases that should have used plugin instead of or in
719 #. .\" addition to this. Then, after rechecking gettext, adjust i18n if
720 #. .\" needed.
721 #. .TP
722 #. .I dlopen
723 #. Functions marked with
724 #. .I dlopen
725 #. use the dynamic loader to load
726 #. shared libraries into the current execution image.
727 #. This involves opening files, mapping them into memory,
728 #. allocating additional memory, resolving symbols,
729 #. applying relocations and more,
730 #. all of this while holding internal dynamic loader locks.
731 #. The locks are enough for these functions to be AS-Unsafe and AC-Unsafe,
732 #. but other issues may arise.
733 #. At present this is a placeholder for all
734 #. potential safety issues raised by
735 #. .BR dlopen (3).
736 #. .\" dlopen runs init and fini sections of the module; does this mean
737 #. .\" dlopen always implies plugin?
738 #. .TP
739 #. .I plugin
740 #. Functions annotated with
741 #. .I plugin
742 #. may run code from plugins that
743 #. may be external to the GNU C Library.
744 #. Such plugin functions are assumed to be
745 #. MT-Safe, AS-Unsafe and AC-Unsafe.
746 #. Examples of such plugins are stack unwinding libraries,
747 #. name service switch (NSS) and character set conversion (iconv) back-ends.
748 #. Although the plugins mentioned as examples are all brought in by means
749 #. of dlopen, the
750 #. .I plugin
751 #. keyword does not imply any direct
752 #. involvement of the dynamic loader or the
753 #. .I libdl
754 #. interfaces,
755 #. those are covered by
756 #. .IR dlopen .
757 #. For example, if one function loads a module and finds the addresses
758 #. of some of its functions,
759 #. while another just calls those already-resolved functions,
760 #. the former will be marked with
761 #. .IR dlopen ,
762 #. whereas the latter will get the
763 #. .IR plugin .
764 #. When a single function takes all of these actions, then it gets both marks.
765 #. .TP
766 #. .I i18n
767 #. Functions marked with
768 #. .I i18n
769 #. may call internationalization
770 #. functions of the
771 #. .BR gettext (3)
772 #. family and will be only as safe as those
773 #. functions.
774 #. This note is thus equivalent to:
775 #. | MT-Safe env | AS-Unsafe corrupt heap dlopen | AC-Unsafe corrupt |
776 #. .\" @sampsafety{@mtsafe{@mtsenv{}}@asunsafe{@asucorrupt{} @ascuheap{} @ascudlopen{}}@acunsafe{@acucorrupt{}}}
777 #. .TP
778 #. .I timer
779 #. Functions marked with
780 #. .I timer
781 #. use the
782 #. .BR alarm (3)
783 #. function or
784 #. similar to set a time-out for a system call or a long-running operation.
785 #. In a multi-threaded program, there is a risk that the time-out signal
786 #. will be delivered to a different thread,
787 #. thus failing to interrupt the intended thread.
788 #. Besides being MT-Unsafe, such functions are always
789 #. AS-Unsafe, because calling them in signal handlers may interfere with
790 #. timers set in the interrupted code, and AC-Unsafe,
791 #. because there is no safe way to guarantee an earlier timer
792 #. will be reset in case of asynchronous cancelation.
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 msgid ""
797 "Other keywords that appear in safety notes are defined in subsequent "
798 "sections."
799 msgstr ""
800 "Alte cuvinte-cheie care apar în notele de siguranță sunt definite în "
801 "secțiunile următoare."
802
803 #. type: SS
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 #, no-wrap
807 msgid "Conditionally safe features"
808 msgstr "Caracteristici de siguranță condițională"
809
810 #. type: Plain text
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 msgid ""
814 "For some features that make functions unsafe to call in certain contexts, "
815 "there are known ways to avoid the safety problem other than refraining from "
816 "calling the function altogether. The keywords that follow refer to such "
817 "features, and each of their definitions indicates how the whole program "
818 "needs to be constrained in order to remove the safety problem indicated by "
819 "the keyword. Only when all the reasons that make a function unsafe are "
820 "observed and addressed, by applying the documented constraints, does the "
821 "function become safe to call in a context."
822 msgstr ""
823 "Pentru unele caracteristici care fac ca apelarea funcțiilor să fie nesigură "
824 "în anumite contexte, există modalități cunoscute de a evita problema "
825 "securității, altele decât abținerea totală de la apelarea funcției. "
826 "Cuvintele-cheie care urmează se referă la astfel de caracteristici, iar "
827 "fiecare dintre definițiile lor indică modul în care întregul program trebuie "
828 "să fie constrâns pentru a elimina problema de securitate indicată de "
829 "cuvântul-cheie. Numai atunci când toate motivele care fac o funcție nesigură "
830 "sunt observate și abordate, prin aplicarea constrângerilor documentate, "
831 "funcția devine sigură pentru a fi apelată într-un context."
832
833 #. type: TP
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "I<init>"
838 msgstr "I<init>"
839
840 #. type: Plain text
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 msgid ""
844 "Functions marked with I<init> as an MT-Unsafe feature perform MT-Unsafe "
845 "initialization when they are first called."
846 msgstr ""
847 "Funcțiile marcate cu I<init> ca o caracteristică MT-Unsafe efectuează "
848 "inițializarea MT-Unsafe atunci când sunt apelate pentru prima dată."
849
850 #
851 #
852 #
853 #
854 #
855 #. Functions marked with
856 #. .I init
857 #. as an AS-Unsafe or AC-Unsafe feature use the GNU C Library internal
858 #. .I libc_once
859 #. machinery or similar to initialize internal data structures.
860 #. If a signal handler interrupts such an initializer,
861 #. and calls any function that also performs
862 #. .I libc_once
863 #. initialization, it will deadlock if the thread library has been loaded.
864 #. Furthermore, if an initializer is partially complete before it is canceled
865 #. or interrupted by a signal whose handler requires the same initialization,
866 #. some or all of the initialization may be performed more than once,
867 #. leaking resources or even resulting in corrupt internal data.
868 #. Applications that need to call functions marked with
869 #. .I init
870 #. as an AS-Safety or AC-Unsafe feature should ensure
871 #. the initialization is performed
872 #. before configuring signal handlers or enabling cancelation,
873 #. so that the AS-Safety and AC-Safety issues related with
874 #. .I libc_once
875 #. do not arise.
876 #. .\" We may have to extend the annotations to cover conditions in which
877 #. .\" initialization may or may not occur, since an initial call in a safe
878 #. .\" context is no use if the initialization doesn't take place at that
879 #. .\" time: it doesn't remove the risk for later calls.
880 #. type: Plain text
881 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
882 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
883 msgid ""
884 "Calling such a function at least once in single-threaded mode removes this "
885 "specific cause for the function to be regarded as MT-Unsafe. If no other "
886 "cause for that remains, the function can then be safely called after other "
887 "threads are started."
888 msgstr ""
889 "Apelarea unei astfel de funcții cel puțin o dată în modul single-threaded "
890 "(un singur fir de execuție) elimină această cauză specifică pentru care "
891 "funcția este considerată MT-Unsafe. Dacă nu rămâne nicio altă cauză, funcția "
892 "poate fi apelată în siguranță după pornirea altor fire de execuție."
893
894 #. type: TP
895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
897 #, no-wrap
898 msgid "I<race>"
899 msgstr "I<race>"
900
901 #
902 #
903 #
904 #
905 #
906 #
907 #
908 #. We consider access to objects passed as (indirect) arguments to
909 #. functions to be data race free.
910 #. The assurance of data race free objects
911 #. is the caller's responsibility.
912 #. We will not mark a function as MT-Unsafe or AS-Unsafe
913 #. if it misbehaves when users fail to take the measures required by
914 #. POSIX to avoid data races when dealing with such objects.
915 #. As a general rule, if a function is documented as reading from
916 #. an object passed (by reference) to it, or modifying it,
917 #. users ought to use memory synchronization primitives
918 #. to avoid data races just as they would should they perform
919 #. the accesses themselves rather than by calling the library function.
920 #. Standard I/O
921 #. .RI ( "FILE *" )
922 #. streams are the exception to the general rule,
923 #. in that POSIX mandates the library to guard against data races
924 #. in many functions that manipulate objects of this specific opaque type.
925 #. We regard this as a convenience provided to users,
926 #. rather than as a general requirement whose expectations
927 #. should extend to other types.
928 #. In order to remind users that guarding certain arguments is their
929 #. responsibility, we will annotate functions that take objects of certain
930 #. types as arguments.
931 #. We draw the line for objects passed by users as follows:
932 #. objects whose types are exposed to users,
933 #. and that users are expected to access directly,
934 #. such as memory buffers, strings,
935 #. and various user-visible structured types, do
936 #. .I not
937 #. give reason for functions to be annotated with
938 #. .IR race .
939 #. It would be noisy and redundant with the general requirement,
940 #. and not many would be surprised by the library's lack of internal
941 #. guards when accessing objects that can be accessed directly by users.
942 #. As for objects that are opaque or opaque-like,
943 #. in that they are to be manipulated only by passing them
944 #. to library functions (e.g.,
945 #. .IR FILE ,
946 #. .IR DIR ,
947 #. .IR obstack ,
948 #. .IR iconv_t ),
949 #. there might be additional expectations as to internal coordination
950 #. of access by the library.
951 #. We will annotate, with
952 #. .I race
953 #. followed by a colon and the argument name,
954 #. functions that take such objects but that do not take
955 #. care of synchronizing access to them by default.
956 #. For example,
957 #. .I FILE
958 #. stream
959 #. .I unlocked
960 #. functions
961 #. .RB ( unlocked_stdio (3))
962 #. will be annotated,
963 #. but those that perform implicit locking on
964 #. .I FILE
965 #. streams by default will not,
966 #. even though the implicit locking may be disabled on a per-stream basis.
967 #. In either case, we will not regard as MT-Unsafe functions that may
968 #. access user-supplied objects in unsafe ways should users fail to ensure
969 #. the accesses are well defined.
970 #. The notion prevails that users are expected to safeguard against
971 #. data races any user-supplied objects that the library accesses
972 #. on their behalf.
973 #. .\" The above describes @mtsrace; @mtasurace is described below.
974 #. This user responsibility does not apply, however,
975 #. to objects controlled by the library itself,
976 #. such as internal objects and static buffers used
977 #. to return values from certain calls.
978 #. When the library doesn't guard them against concurrent uses,
979 #. these cases are regarded as MT-Unsafe and AS-Unsafe (although the
980 #. .I race
981 #. mark under AS-Unsafe will be omitted
982 #. as redundant with the one under MT-Unsafe).
983 #. As in the case of user-exposed objects,
984 #. the mark may be followed by a colon and an identifier.
985 #. The identifier groups all functions that operate on a
986 #. certain unguarded object; users may avoid the MT-Safety issues related
987 #. with unguarded concurrent access to such internal objects by creating a
988 #. non-recursive mutex related with the identifier,
989 #. and always holding the mutex when calling any function marked
990 #. as racy on that identifier,
991 #. as they would have to should the identifier be
992 #. an object under user control.
993 #. The non-recursive mutex avoids the MT-Safety issue,
994 #. but it trades one AS-Safety issue for another,
995 #. so use in asynchronous signals remains undefined.
996 #. When the identifier relates to a static buffer used to hold return values,
997 #. the mutex must be held for as long as the buffer remains in use
998 #. by the caller.
999 #. Many functions that return pointers to static buffers offer reentrant
1000 #. variants that store return values in caller-supplied buffers instead.
1001 #. In some cases, such as
1002 #. .BR tmpname (3),
1003 #. the variant is chosen not by calling an alternate entry point,
1004 #. but by passing a non-null pointer to the buffer in which the
1005 #. returned values are to be stored.
1006 #. These variants are generally preferable in multi-threaded programs,
1007 #. although some of them are not MT-Safe because of other internal buffers,
1008 #. also documented with
1009 #. .I race
1010 #. notes.
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid ""
1015 "Functions annotated with I<race> as an MT-Safety issue operate on objects in "
1016 "ways that may cause data races or similar forms of destructive interference "
1017 "out of concurrent execution. In some cases, the objects are passed to the "
1018 "functions by users; in others, they are used by the functions to return "
1019 "values to users; in others, they are not even exposed to users."
1020 msgstr ""
1021 "Funcțiile adnotate cu I<race> ca o problemă de siguranță MT operează asupra "
1022 "obiectelor în moduri care pot cauza curse de date sau forme similare de "
1023 "interferență distructivă în afara execuției simultane. În unele cazuri, "
1024 "obiectele sunt transmise funcțiilor de către utilizatori; în altele, acestea "
1025 "sunt utilizate de către funcții pentru a returna valori utilizatorilor; în "
1026 "altele, acestea nici măcar nu sunt expuse utilizatorilor."
1027
1028 #. type: TP
1029 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1030 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1031 #, no-wrap
1032 msgid "I<const>"
1033 msgstr "I<const>"
1034
1035 #. and AS-Unsafe,
1036 #. equally
1037 #. and AS-Unsafe
1038 #. and AS-Safe
1039 #. type: Plain text
1040 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1041 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1042 msgid ""
1043 "Functions marked with I<const> as an MT-Safety issue non-atomically modify "
1044 "internal objects that are better regarded as constant, because a substantial "
1045 "portion of the GNU C Library accesses them without synchronization. Unlike "
1046 "I<race>, which causes both readers and writers of internal objects to be "
1047 "regarded as MT-Unsafe, this mark is applied to writers only. Writers remain "
1048 "MT-Unsafe to call, but the then-mandatory constness of objects they modify "
1049 "enables readers to be regarded as MT-Safe (as long as no other reasons for "
1050 "them to be unsafe remain), since the lack of synchronization is not a "
1051 "problem when the objects are effectively constant."
1052 msgstr ""
1053 "Funcțiile marcate cu I<const> ca o problemă de MT-Safety modifică non-atomic "
1054 "obiecte interne care sunt mai bine considerate constante, deoarece o parte "
1055 "substanțială a bibliotecii GNU C le accesează fără sincronizare. Spre "
1056 "deosebire de I<race>, care face ca atât cititorii, cât și scriitorii de "
1057 "obiecte interne să fie considerați MT-Unsafe, acest marcaj este aplicat doar "
1058 "scriitorilor. Scriitorii rămân MT-Unsafe la apelare, dar constanța "
1059 "obligatorie a obiectelor pe care le modifică permite cititorilor să fie "
1060 "considerați MT-Safe (atât timp cât nu există alte motive pentru care să fie "
1061 "nesiguri), deoarece lipsa sincronizării nu este o problemă atunci când "
1062 "obiectele sunt efectiv constante."
1063
1064 #
1065 #. The non-recursive locking removes the MT-Safety problem,
1066 #. but it trades one AS-Safety problem for another,
1067 #. so use in asynchronous signals remains undefined.
1068 #. .\" But what if, instead of marking modifiers with const:id and readers
1069 #. .\" with just id, we marked writers with race:id and readers with ro:id?
1070 #. .\" Instead of having to define each instance of 'id', we'd have a
1071 #. .\" general pattern governing all such 'id's, wherein race:id would
1072 #. .\" suggest the need for an exclusive/write lock to make the function
1073 #. .\" safe, whereas ro:id would indicate 'id' is expected to be read-only,
1074 #. .\" but if any modifiers are called (while holding an exclusive lock),
1075 #. .\" then ro:id-marked functions ought to be guarded with a read lock for
1076 #. .\" safe operation. ro:env or ro:locale, for example, seems to convey
1077 #. .\" more clearly the expectations and the meaning, than just env or
1078 #. .\" locale.
1079 #. type: Plain text
1080 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1081 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1082 msgid ""
1083 "The identifier that follows the I<const> mark will appear by itself as a "
1084 "safety note in readers. Programs that wish to work around this safety "
1085 "issue, so as to call writers, may use a non-recursive read-write lock "
1086 "associated with the identifier, and guard I<all> calls to functions marked "
1087 "with I<const> followed by the identifier with a write lock, and I<all> calls "
1088 "to functions marked with the identifier by itself with a read lock."
1089 msgstr ""
1090 "Identificatorul care urmează marcajul I<const> va apărea de la sine ca o "
1091 "notă de siguranță în cititoare. Programele care doresc să ocolească această "
1092 "problemă de siguranță, astfel încât să apeleze scriitorii, pot utiliza un "
1093 "blocaj de citire-scriere non-recursiv asociat identificatorului și să "
1094 "protejeze apelurile I<all> către funcțiile marcate cu I<const> urmate de "
1095 "identificator cu un blocaj de scriere și apelurile I<all> către funcțiile "
1096 "marcate cu identificatorul de la sine cu un blocaj de citire."
1097
1098 #. type: TP
1099 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1101 #, no-wrap
1102 msgid "I<sig>"
1103 msgstr "I<sig>"
1104
1105 #. (that implies an identical AS-Safety issue, omitted for brevity)
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<sig> as a MT-Safety issue may temporarily install a "
1111 "signal handler for internal purposes, which may interfere with other uses of "
1112 "the signal, identified after a colon."
1113 msgstr ""
1114 "Funcțiile marcate cu I<sig> ca o problemă de siguranță MT pot instala "
1115 "temporar un gestionar de semnal în scopuri interne, care poate interfera cu "
1116 "alte utilizări ale semnalului, identificat după două puncte (:)."
1117
1118 #
1119 #
1120 #
1121 #. There is no safe way to guarantee the original signal handler is
1122 #. restored in case of asynchronous cancelation,
1123 #. therefore so-marked functions are also AC-Unsafe.
1124 #. .\" fixme: at least deferred cancelation should get it right, and would
1125 #. .\" obviate the restoring bit below, and the qualifier above.
1126 #. Besides the measures recommended to work around the
1127 #. MT-Safety and AS-Safety problem,
1128 #. in order to avert the cancelation problem,
1129 #. disabling asynchronous cancelation
1130 #. .I and
1131 #. installing a cleanup handler to restore the signal to the desired state
1132 #. and to release the mutex are recommended.
1133 #. type: Plain text
1134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1136 msgid ""
1137 "This safety problem can be worked around by ensuring that no other uses of "
1138 "the signal will take place for the duration of the call. Holding a non-"
1139 "recursive mutex while calling all functions that use the same temporary "
1140 "signal; blocking that signal before the call and resetting its handler "
1141 "afterwards is recommended."
1142 msgstr ""
1143 "Această problemă de siguranță poate fi rezolvată prin asigurarea faptului că "
1144 "nu vor avea loc alte utilizări ale semnalului pe durata apelului. Se "
1145 "recomandă menținerea unui mutex non-recursiv în timpul apelării tuturor "
1146 "funcțiilor care utilizează același semnal temporar; blocarea semnalului "
1147 "respectiv înainte de apel și reinițializarea gestionarului acestuia după "
1148 "apel."
1149
1150 #. type: TP
1151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1153 #, no-wrap
1154 msgid "I<term>"
1155 msgstr "I<term>"
1156
1157 #. The same window enables changes made by asynchronous signals to be lost.
1158 #. These functions are also AS-Unsafe,
1159 #. but the corresponding mark is omitted as redundant.
1160 #. type: Plain text
1161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1163 msgid ""
1164 "Functions marked with I<term> as an MT-Safety issue may change the terminal "
1165 "settings in the recommended way, namely: call B<tcgetattr>(3), modify some "
1166 "flags, and then call B<tcsetattr>(3), this creates a window in which changes "
1167 "made by other threads are lost. Thus, functions marked with I<term> are MT-"
1168 "Unsafe."
1169 msgstr ""
1170 "Funcțiile marcate cu I<term> ca fiind o problemă de MT-Safety pot modifica "
1171 "parametrii terminalului în modul recomandat, și anume: apelează "
1172 "B<tcgetattr>(3), modifică unele opțiuni și apoi apelează B<tcsetattr>(3), "
1173 "ceea ce creează o fereastră în care modificările efectuate de alte fire se "
1174 "pierd. Astfel, funcțiile marcate cu I<term> sunt MT-Unsafe."
1175
1176 #
1177 #
1178 #
1179 #. Functions marked with
1180 #. .I term
1181 #. as an AC-Safety issue are supposed to
1182 #. restore terminal settings to their original state,
1183 #. after temporarily changing them, but they may fail to do so if canceled.
1184 #. .\" fixme: at least deferred cancelation should get it right, and would
1185 #. .\" obviate the restoring bit below, and the qualifier above.
1186 #. Besides the measures recommended to work around the
1187 #. MT-Safety and AS-Safety problem,
1188 #. in order to avert the cancelation problem,
1189 #. disabling asynchronous cancelation
1190 #. .I and
1191 #. installing a cleanup handler to
1192 #. restore the terminal settings to the original state and to release the
1193 #. mutex are recommended.
1194 #. type: Plain text
1195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1197 msgid ""
1198 "It is thus advisable for applications using the terminal to avoid concurrent "
1199 "and reentrant interactions with it, by not using it in signal handlers or "
1200 "blocking signals that might use it, and holding a lock while calling these "
1201 "functions and interacting with the terminal. This lock should also be used "
1202 "for mutual exclusion with functions marked with I<race:tcattr(fd)>, where "
1203 "I<fd> is a file descriptor for the controlling terminal. The caller may use "
1204 "a single mutex for simplicity, or use one mutex per terminal, even if "
1205 "referenced by different file descriptors."
1206 msgstr ""
1207 "Prin urmare, este recomandabil ca aplicațiile care utilizează terminalul să "
1208 "evite interacțiunile concurente și reentrante cu acesta, neutilizându-l în "
1209 "gestionarii de semnale sau blocând semnalele care l-ar putea utiliza și "
1210 "deținând un blocaj în timp ce apelează aceste funcții și interacționează cu "
1211 "terminalul. Această blocare ar trebui, de asemenea, utilizată pentru "
1212 "excluderea reciprocă cu funcții marcate cu I<race:tcattr(fd)>, unde I<fd> "
1213 "este un descriptor de fișier pentru terminalul de control. Apelantul poate "
1214 "utiliza un singur mutex pentru simplificare sau poate utiliza un mutex "
1215 "pentru fiecare terminal, chiar dacă se face referire la acesta prin "
1216 "descriptori de fișier diferiți."
1217
1218 #. type: SS
1219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1221 #, no-wrap
1222 msgid "Other safety remarks"
1223 msgstr "Alte observații privind siguranța"
1224
1225 #. type: Plain text
1226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1228 msgid ""
1229 "Additional keywords may be attached to functions, indicating features that "
1230 "do not make a function unsafe to call, but that may need to be taken into "
1231 "account in certain classes of programs:"
1232 msgstr ""
1233 "Funcțiilor li se pot atașa cuvinte-cheie suplimentare, indicând "
1234 "caracteristici care nu fac ca apelarea unei funcții să fie nesigură, dar "
1235 "care ar putea fi luate în considerare în anumite clase de programe:"
1236
1237 #. type: TP
1238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1240 #, no-wrap
1241 msgid "I<locale>"
1242 msgstr "I<locale>"
1243
1244 #. type: Plain text
1245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1247 msgid ""
1248 "Functions annotated with I<locale> as an MT-Safety issue read from the "
1249 "locale object without any form of synchronization. Functions annotated with "
1250 "I<locale> called concurrently with locale changes may behave in ways that do "
1251 "not correspond to any of the locales active during their execution, but an "
1252 "unpredictable mix thereof."
1253 msgstr ""
1254 "Funcțiile notate cu I<locale> ca o problemă de siguranță MT citesc din "
1255 "obiectul de configurare regională fără nicio formă de sincronizare. "
1256 "Funcțiile adnotate cu I<locale> apelate concomitent cu modificările "
1257 "configurării regionale se pot comporta în moduri care nu corespund niciuneia "
1258 "dintre configurațiile regionale active în timpul execuției lor, ci unui "
1259 "amestec imprevizibil al acestora."
1260
1261 #. or AS-Unsafe,
1262 #. Should the locking strategy suggested under @code{const} be used,
1263 #. failure to guard locale uses is not as fatal as data races in
1264 #. general: unguarded uses will @emph{not} follow dangling pointers or
1265 #. access uninitialized, unmapped or recycled memory. Each access will
1266 #. read from a consistent locale object that is or was active at some
1267 #. point during its execution. Without synchronization, however, it
1268 #. cannot even be assumed that, after a change in locale, earlier
1269 #. locales will no longer be used, even after the newly-chosen one is
1270 #. used in the thread. Nevertheless, even though unguarded reads from
1271 #. the locale will not violate type safety, functions that access the
1272 #. locale multiple times may invoke all sorts of undefined behavior
1273 #. because of the unexpected locale changes.
1274 #. type: Plain text
1275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1277 msgid ""
1278 "We do not mark these functions as MT-Unsafe, however, because functions that "
1279 "modify the locale object are marked with I<const:locale> and regarded as "
1280 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1281 "are running or asynchronous signals are enabled, and so the locale can be "
1282 "considered effectively constant in these contexts, which makes the former "
1283 "safe."
1284 msgstr ""
1285 "Cu toate acestea, nu marcăm aceste funcții ca MT-Unsafe, deoarece funcțiile "
1286 "care modifică obiectul de configurare regională sunt marcate cu "
1287 "I<const:locale> și considerate nesigure. Fiind nesigure, acestea din urmă nu "
1288 "trebuie să fie apelate atunci când rulează mai multe fire de execuție sau "
1289 "când sunt activate semnale asincrone și, astfel, configurările regionale pot "
1290 "fi considerate efectiv constante în aceste contexte, ceea ce le face sigure."
1291
1292 #. type: TP
1293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1295 #, no-wrap
1296 msgid "I<env>"
1297 msgstr "I<env>"
1298
1299 #. type: Plain text
1300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1302 msgid ""
1303 "Functions marked with I<env> as an MT-Safety issue access the environment "
1304 "with B<getenv>(3) or similar, without any guards to ensure safety in the "
1305 "presence of concurrent modifications."
1306 msgstr ""
1307 "Funcțiile marcate cu I<env> ca o problemă de siguranță MT accesează mediul "
1308 "cu B<getenv>(3) sau similar, fără nicio protecție pentru a asigura siguranța "
1309 "în prezența modificărilor simultane."
1310
1311 #. or AS-Unsafe,
1312 #. type: Plain text
1313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1315 msgid ""
1316 "We do not mark these functions as MT-Unsafe, however, because functions that "
1317 "modify the environment are all marked with I<const:env> and regarded as "
1318 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1319 "are running or asynchronous signals are enabled, and so the environment can "
1320 "be considered effectively constant in these contexts, which makes the former "
1321 "safe."
1322 msgstr ""
1323 "Cu toate acestea, nu marcăm aceste funcții ca MT-Unsafe, deoarece funcțiile "
1324 "care modifică mediul sunt toate marcate cu I<const:env> și considerate "
1325 "nesigure. Fiind nesigure, acestea din urmă nu trebuie să fie apelate atunci "
1326 "când rulează mai multe fire de execuție sau când sunt activate semnale "
1327 "asincrone, astfel încât mediul poate fi considerat efectiv constant în "
1328 "aceste contexte, ceea ce le face sigure."
1329
1330 #. type: TP
1331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1333 #, no-wrap
1334 msgid "I<hostid>"
1335 msgstr "I<hostid>"
1336
1337 #. type: Plain text
1338 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1339 #: opensuse-leap-16-1 opensuse-tumbleweed
1340 msgid ""
1341 "Functions marked with I<hostid> as an MT-Safety issue read from the system-"
1342 "wide data structures that hold the \"host ID\" of the machine. These data "
1343 "structures cannot generally be modified atomically. Since it is expected "
1344 "that the \"host ID\" will not normally change, the function that reads from "
1345 "it (B<gethostid>(3)) is regarded as safe, whereas the function that "
1346 "modifies it (B<sethostid>(3)) is marked with I<const:hostid>, indicating it "
1347 "may require special care if it is to be called. In this specific case, the "
1348 "special care amounts to system-wide (not merely intra-process) coordination."
1349 msgstr ""
1350 "Funcțiile marcate cu I<hostid> ca o problemă de siguranță MT citesc din "
1351 "structurile de date la nivel de sistem care conțin „ID-ul de gazdă” al "
1352 "mașinii. În general, aceste structuri de date nu pot fi modificate atomic. "
1353 "Deoarece se preconizează că „ID-ul gazdei” nu se va modifica în mod normal, "
1354 "funcția care citește din acesta (B<gethostid>(3)) este considerată sigură, "
1355 "în timp ce funcția care îl modifică (B<sethostid>(3)) este marcată cu "
1356 "I<const:hostid>, indicând faptul că ar putea necesita o atenție specială "
1357 "dacă va fi apelată. În acest caz specific, grija specială înseamnă "
1358 "coordonare la nivelul întregului sistem (nu doar în interiorul procesului)."
1359
1360 #. type: TP
1361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1363 #, no-wrap
1364 msgid "I<sigintr>"
1365 msgstr "I<sigintr>"
1366
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 "Functions marked with I<sigintr> as an MT-Safety issue access the GNU C "
1372 "Library I<_sigintr> internal data structure without any guards to ensure "
1373 "safety in the presence of concurrent modifications."
1374 msgstr ""
1375 "Funcțiile marcate cu I<sigintr> ca o problemă de siguranță MT accesează "
1376 "structura internă de date I<_sigintr> a Bibliotecii GNU C fără nicio "
1377 "protecție pentru a asigura siguranța în prezența modificărilor simultane."
1378
1379 #
1380 #
1381 #
1382 #
1383 #
1384 #. or AS-Unsafe,
1385 #. .TP
1386 #. .I fd
1387 #. Functions annotated with
1388 #. .I fd
1389 #. as an AC-Safety issue may leak file
1390 #. descriptors if asynchronous thread cancelation interrupts their
1391 #. execution.
1392 #. Functions that allocate or deallocate file descriptors will generally be
1393 #. marked as such.
1394 #. Even if they attempted to protect the file descriptor
1395 #. allocation and deallocation with cleanup regions,
1396 #. allocating a new descriptor and storing its number where the cleanup region
1397 #. could release it cannot be performed as a single atomic operation.
1398 #. Similarly,
1399 #. releasing the descriptor and taking it out of the data structure
1400 #. normally responsible for releasing it cannot be performed atomically.
1401 #. There will always be a window in which the descriptor cannot be released
1402 #. because it was not stored in the cleanup handler argument yet,
1403 #. or it was already taken out before releasing it.
1404 #. .\" It cannot be taken out after release:
1405 #. an open descriptor could mean either that the descriptor still
1406 #. has to be closed,
1407 #. or that it already did so but the descriptor was
1408 #. reallocated by another thread or signal handler.
1409 #. Such leaks could be internally avoided, with some performance penalty,
1410 #. by temporarily disabling asynchronous thread cancelation.
1411 #. However,
1412 #. since callers of allocation or deallocation functions would have to do
1413 #. this themselves, to avoid the same sort of leak in their own layer,
1414 #. it makes more sense for the library to assume they are taking care of it
1415 #. than to impose a performance penalty that is redundant when the problem
1416 #. is solved in upper layers, and insufficient when it is not.
1417 #. This remark by itself does not cause a function to be regarded as
1418 #. AC-Unsafe.
1419 #. However, cumulative effects of such leaks may pose a
1420 #. problem for some programs.
1421 #. If this is the case,
1422 #. suspending asynchronous cancelation for the duration of calls
1423 #. to such functions is recommended.
1424 #. .TP
1425 #. .I mem
1426 #. Functions annotated with
1427 #. .I mem
1428 #. as an AC-Safety issue may leak
1429 #. memory if asynchronous thread cancelation interrupts their execution.
1430 #. The problem is similar to that of file descriptors: there is no atomic
1431 #. interface to allocate memory and store its address in the argument to a
1432 #. cleanup handler,
1433 #. or to release it and remove its address from that argument,
1434 #. without at least temporarily disabling asynchronous cancelation,
1435 #. which these functions do not do.
1436 #. This remark does not by itself cause a function to be regarded as
1437 #. generally AC-Unsafe.
1438 #. However, cumulative effects of such leaks may be
1439 #. severe enough for some programs that disabling asynchronous cancelation
1440 #. for the duration of calls to such functions may be required.
1441 #. type: Plain text
1442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1444 msgid ""
1445 "We do not mark these functions as MT-Unsafe, however, because functions that "
1446 "modify this data structure are all marked with I<const:sigintr> and regarded "
1447 "as unsafe. Being unsafe, the latter are not to be called when multiple "
1448 "threads are running or asynchronous signals are enabled, and so the data "
1449 "structure can be considered effectively constant in these contexts, which "
1450 "makes the former safe."
1451 msgstr ""
1452 "Cu toate acestea, nu marcăm aceste funcții ca MT-Unsafe, deoarece funcțiile "
1453 "care modifică această structură de date sunt toate marcate cu "
1454 "I<const:sigintr> și considerate nesigure. Fiind nesigure, acestea din urmă "
1455 "nu trebuie să fie apelate atunci când rulează mai multe fire de execuție sau "
1456 "când sunt activate semnale asincrone, astfel încât structura de date poate "
1457 "fi considerată efectiv constantă în aceste contexte, ceea ce le face pe "
1458 "primele sigure."
1459
1460 #. type: TP
1461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1463 #, no-wrap
1464 msgid "I<cwd>"
1465 msgstr "I<cwd>"
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 "Functions marked with I<cwd> as an MT-Safety issue may temporarily change "
1472 "the current working directory during their execution, which may cause "
1473 "relative pathnames to be resolved in unexpected ways in other threads or "
1474 "within asynchronous signal or cancelation handlers."
1475 msgstr ""
1476 "Funcțiile marcate cu I<cwd> ca o problemă de siguranță MT pot modifica "
1477 "temporar directorul curent de lucru în timpul execuției lor, ceea ce poate "
1478 "determina rezolvarea în moduri neașteptate a numelor de rute relative în "
1479 "alte fire de execuție sau în cadrul gestionarilor asincroni de semnal sau de "
1480 "anulare."
1481
1482 #
1483 #. or AS-Unsafe,
1484 #. .TP
1485 #. .I !posix
1486 #. This remark, as an MT-Safety, AS-Safety or AC-Safety
1487 #. note to a function,
1488 #. indicates the safety status of the function is known to differ
1489 #. from the specified status in the POSIX standard.
1490 #. For example, POSIX does not require a function to be Safe,
1491 #. but our implementation is, or vice-versa.
1492 #. For the time being, the absence of this remark does not imply the safety
1493 #. properties we documented are identical to those mandated by POSIX for
1494 #. the corresponding functions.
1495 #. type: Plain text
1496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1498 msgid ""
1499 "This is not enough of a reason to mark so-marked functions as MT-Unsafe, but "
1500 "when this behavior is optional (e.g., B<nftw>(3) with B<FTW_CHDIR>), "
1501 "avoiding the option may be a good alternative to using full pathnames or "
1502 "file descriptor-relative (e.g., B<openat>(2)) system calls."
1503 msgstr ""
1504 "Acesta nu este un motiv suficient pentru a marca funcțiile astfel marcate ca "
1505 "MT-Unsafe, dar atunci când acest comportament este opțional (de exemplu, "
1506 "B<nftw>(3) cu B<FTW_CHDIR>), evitarea opțiunii poate fi o alternativă bună "
1507 "la utilizarea numelor de rută complete sau a apelurilor de sistem relative "
1508 "la descriptorul de fișier (de exemplu, B<openat>(2))."
1509
1510 #. type: TP
1511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1513 #, no-wrap
1514 msgid "I<:identifier>"
1515 msgstr "I<:identifier>"
1516
1517 #. type: Plain text
1518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1520 msgid ""
1521 "Annotations may sometimes be followed by identifiers, intended to group "
1522 "several functions that, for example, access the data structures in an unsafe "
1523 "way, as in I<race> and I<const>, or to provide more specific information, "
1524 "such as naming a signal in a function marked with I<sig>. It is envisioned "
1525 "that it may be applied to I<lock> and I<corrupt> as well in the future."
1526 msgstr ""
1527 "Adnotările pot fi uneori urmate de identificatori, destinați să grupeze mai "
1528 "multe funcții care, de exemplu, accesează structurile de date într-un mod "
1529 "nesigur, ca în I<race> și I<const>, sau să furnizeze informații mai "
1530 "specifice, cum ar fi numirea unui semnal într-o funcție marcată cu I<sig>. "
1531 "Se preconizează că, în viitor, aceasta poate fi aplicată și la I<lock> și "
1532 "I<corrupt>."
1533
1534 #. type: Plain text
1535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1537 msgid ""
1538 "In most cases, the identifier will name a set of functions, but it may name "
1539 "global objects or function arguments, or identifiable properties or logical "
1540 "components associated with them, with a notation such as, for example, "
1541 "I<:buf(arg)> to denote a buffer associated with the argument I<arg>, or "
1542 "I<:tcattr(fd)> to denote the terminal attributes of a file descriptor I<fd>."
1543 msgstr ""
1544 "În majoritatea cazurilor, identificatorul va numi un set de funcții, dar "
1545 "poate numi obiecte globale sau argumente de funcții, sau proprietăți "
1546 "identificabile sau componente logice asociate cu acestea, cu o notație "
1547 "precum, de exemplu, I<:buf(arg)> pentru a desemna un tampon asociat cu "
1548 "argumentul I<arg>, sau I<:tcattr(fd)> pentru a desemna atributele terminale "
1549 "ale unui descriptor de fișier I<fd>."
1550
1551 #. type: Plain text
1552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1554 msgid ""
1555 "The most common use for identifiers is to provide logical groups of "
1556 "functions and arguments that need to be protected by the same "
1557 "synchronization primitive in order to ensure safe operation in a given "
1558 "context."
1559 msgstr ""
1560 "Cea mai frecventă utilizare a identificatorilor este de a furniza grupuri "
1561 "logice de funcții și argumente care trebuie să fie protejate de aceeași "
1562 "primitivă de sincronizare pentru a asigura funcționarea sigură într-un "
1563 "anumit context."
1564
1565 #. type: TP
1566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1568 #, no-wrap
1569 msgid "I</condition>"
1570 msgstr "I</condition>"
1571
1572 #. Such conditions as
1573 #. .I /hurd
1574 #. or
1575 #. .I /!linux!bsd
1576 #. indicate the preceding marker only
1577 #. applies when the underlying kernel is the HURD,
1578 #. or when it is neither Linux nor a BSD kernel, respectively.
1579 #. type: Plain text
1580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1582 msgid ""
1583 "Some safety annotations may be conditional, in that they only apply if a "
1584 "boolean expression involving arguments, global variables or even the "
1585 "underlying kernel evaluates to true. For example, I</!ps> and I</"
1586 "one_per_line> indicate the preceding marker only applies when argument I<ps> "
1587 "is NULL, or global variable I<one_per_line> is nonzero."
1588 msgstr ""
1589 "Unele adnotări de siguranță pot fi condiționate, în sensul că se aplică "
1590 "numai dacă o expresie booleană care implică argumente, variabile globale sau "
1591 "chiar nucleul subiacent este evaluată la adevărat (true). De exemplu, I</!"
1592 "ps> și I</one_per_line> indică faptul că marcajul precedent se aplică numai "
1593 "atunci când argumentul I<ps> este NULL sau variabila globală I<one_per_line> "
1594 "este diferită de zero."
1595
1596 #. type: Plain text
1597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1599 msgid ""
1600 "When all marks that render a function unsafe are adorned with such "
1601 "conditions, and none of the named conditions hold, then the function can be "
1602 "regarded as safe."
1603 msgstr ""
1604 "Atunci când toate marcajele care fac o funcție nesigură sunt „împodobite” cu "
1605 "astfel de condiții și niciuna dintre condițiile menționate nu se aplică, "
1606 "atunci funcția poate fi considerată sigură."
1607
1608 #. type: SH
1609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1611 #, no-wrap
1612 msgid "SEE ALSO"
1613 msgstr "CONSULTAȚI ȘI"
1614
1615 #. type: Plain text
1616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1618 msgid "B<pthreads>(7), B<signal-safety>(7)"
1619 msgstr "B<pthreads>(7), B<signal-safety>(7)"
1620
1621 #. type: TH
1622 #: debian-trixie
1623 #, no-wrap
1624 msgid "2024-05-02"
1625 msgstr "2 mai 2024"
1626
1627 #. type: TH
1628 #: debian-trixie
1629 #, no-wrap
1630 msgid "Linux man-pages 6.9.1"
1631 msgstr "Pagini de manual de Linux 6.9.1"
1632
1633 #. type: Plain text
1634 #: debian-trixie
1635 msgid ""
1636 "The function marked with I<hostid> as an MT-Safety issue reads from the "
1637 "system-wide data structures that hold the \"host ID\" of the machine. These "
1638 "data structures cannot generally be modified atomically. Since it is "
1639 "expected that the \"host ID\" will not normally change, the function that "
1640 "reads from it (B<gethostid>(3)) is regarded as safe, whereas the function "
1641 "that modifies it (B<sethostid>(3)) is marked with I<const:hostid>, "
1642 "indicating it may require special care if it is to be called. In this "
1643 "specific case, the special care amounts to system-wide (not merely intra-"
1644 "process) coordination."
1645 msgstr ""
1646 "Funcția marcată cu I<hostid> ca o problemă de siguranță MT citește din "
1647 "structurile de date la nivel de sistem care conțin „ID-ul de gazdă” al "
1648 "mașinii. În general, aceste structuri de date nu pot fi modificate atomic. "
1649 "Deoarece se preconizează că „ID-ul gazdei” nu se va modifica în mod normal, "
1650 "funcția care citește din acesta (B<gethostid>(3)) este considerată sigură, "
1651 "în timp ce funcția care îl modifică (B<sethostid>(3)) este marcată cu "
1652 "I<const:hostid>, indicând faptul că ar putea necesita o atenție specială "
1653 "dacă va fi apelată. În acest caz specific, grija specială înseamnă "
1654 "coordonare la nivelul întregului sistem (nu doar în interiorul procesului)."
1655
1656 #. type: TH
1657 #: fedora-44 fedora-rawhide
1658 #, no-wrap
1659 msgid "2024-11-17"
1660 msgstr "17 noiembrie 2024"
1661
1662 #. type: TH
1663 #: fedora-44 fedora-rawhide
1664 #, no-wrap
1665 msgid "Linux man-pages 6.13"
1666 msgstr "Pagini de manual de Linux 6.13"
1667
1668 #. type: TH
1669 #: mageia-cauldron
1670 #, no-wrap
1671 msgid "Linux man-pages 6.17"
1672 msgstr "Pagini de manual de Linux 6.17"
1673
1674 #. type: TH
1675 #: opensuse-leap-16-1 opensuse-tumbleweed
1676 #, no-wrap
1677 msgid "Linux man-pages (unreleased)"
1678 msgstr "Pagini de manual Linux (nepublicate)"