Debian Codegraph @

po/ru/man7/attributes.7.po

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