Debian Codegraph @

po/pl/man7/attributes.7.po

raw
1 # Polish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Michał Kułach <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:18+0200\n"
9 "PO-Revision-Date: 2025-04-13 13:39+0200\n"
10 "Last-Translator: Michał Kułach <[email protected]>\n"
11 "Language-Team: Polish <[email protected]>\n"
12 "Language: pl\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%10>=2 && n%10<=4 && (n%100<10 "
17 "|| n%100>=20) ? 1 : 2);\n"
18 "X-Generator: Lokalize 22.12.3\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 "attributes"
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 lutego 2026 r."
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Linux man-pages 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 "NAZWA"
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 - pojęcia bezpieczeństwa 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 "OPIS"
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<Uwaga>: tekst niniejszej strony podręcznika systemowego powstał w oparciu "
69 "o materiał z rozdziału \\[Bq]POSIX Safety Concepts\\[rq] podręcznika "
70 "biblioteki GNU C. Więcej szczegółów na temat poniższych tematów można "
71 "znaleźć tamże."
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 msgid ""
77 "Various function manual pages include a section ATTRIBUTES that describes "
78 "the safety of calling the function in various contexts. This section "
79 "annotates functions with the following safety markings:"
80 msgstr ""
81 "Różne strony podręcznika systemowego zawierają rozdział ATRYBUTY opisujący "
82 "bezpieczeństwa wywoływania funkcji w różnych sytuacjach. Niniejszy rozdział "
83 "opisuje funkcje z następującymi oznaczeniami bezpieczeństwa:"
84
85 #. type: TP
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "I<MT-Safe>"
90 msgstr "I<MT-bezpieczne>"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 msgid ""
96 "I<MT-Safe> or Thread-Safe functions are safe to call in the presence of "
97 "other threads. MT, in MT-Safe, stands for Multi Thread."
98 msgstr ""
99 "Funkcje I<MT-bezpieczne>, I<MT-Safe> lub wątkowo-bezpieczne można "
100 "bezpiecznie wywołać w obecności innych wątków. Cząstka MT w nazwie oznacza "
101 "wielowątkowość (ang. Multi Thread)."
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid ""
107 "Being MT-Safe does not imply a function is atomic, nor that it uses any of "
108 "the memory synchronization mechanisms POSIX exposes to users. It is even "
109 "possible that calling MT-Safe functions in sequence does not yield an MT-"
110 "Safe combination. For example, having a thread call two MT-Safe functions "
111 "one right after the other does not guarantee behavior equivalent to atomic "
112 "execution of a combination of both functions, since concurrent calls in "
113 "other threads may interfere in a destructive way."
114 msgstr ""
115 "Bycie MT-bezpieczną nie oznacza, że funkcja jest niepodzielna, ani że używa "
116 "jakichś mechanizmów synchronizacji pamięci, udostępnianych przez POSIX "
117 "użytkownikom. Możliwe jest nawet, że wywołania kolejnych funkcji MT-"
118 "bezpiecznych nie da w efekcie kombinacji MT-bezpiecznej. Przykładowo, jeśli "
119 "istnieje wątek wywołujący dwie funkcje MT-bezpieczne jedna po drugiej, nie "
120 "gwarantuje to zachowania równoważnego niepodzielnemu wykonaniu kombinacji "
121 "obu funkcji, ponieważ współbieżne wywołania w różnych wątkach mogą ze sobą "
122 "oddziaływać w destrukcyjny sposób."
123
124 #
125 #
126 #
127 #. .TP
128 #. .I AS-Safe
129 #. .I AS-Safe
130 #. or Async-Signal-Safe functions are safe to call from
131 #. asynchronous signal handlers.
132 #. AS, in AS-Safe, stands for Asynchronous Signal.
133 #. Many functions that are AS-Safe may set
134 #. .IR errno ,
135 #. or modify the floating-point environment,
136 #. because their doing so does not make them
137 #. unsuitable for use in signal handlers.
138 #. However, programs could misbehave should asynchronous signal handlers
139 #. modify this thread-local state,
140 #. and the signal handling machinery cannot be counted on to
141 #. preserve it.
142 #. Therefore, signal handlers that call functions that may set
143 #. .I errno
144 #. or modify the floating-point environment
145 #. .I must
146 #. save their original values, and restore them before returning.
147 #. .TP
148 #. .I AC-Safe
149 #. .I AC-Safe
150 #. or Async-Cancel-Safe functions are safe to call when
151 #. asynchronous cancelation is enabled.
152 #. AC in AC-Safe stands for Asynchronous Cancelation.
153 #. The POSIX standard defines only three functions to be AC-Safe, namely
154 #. .BR pthread_cancel (3),
155 #. .BR pthread_setcancelstate (3),
156 #. and
157 #. .BR pthread_setcanceltype (3).
158 #. At present the GNU C Library provides no
159 #. guarantees beyond these three functions,
160 #. but does document which functions are presently AC-Safe.
161 #. This documentation is provided for use
162 #. by the GNU C Library developers.
163 #. Just like signal handlers, cancelation cleanup routines must configure
164 #. the floating point environment they require.
165 #. The routines cannot assume a floating point environment,
166 #. particularly when asynchronous cancelation is enabled.
167 #. If the configuration of the floating point
168 #. environment cannot be performed atomically then it is also possible that
169 #. the environment encountered is internally inconsistent.
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 msgid ""
174 "Whole-program optimizations that could inline functions across library "
175 "interfaces may expose unsafe reordering, and so performing inlining across "
176 "the GNU C Library interface is not recommended. The documented MT-Safety "
177 "status is not guaranteed under whole-program optimization. However, "
178 "functions defined in user-visible headers are designed to be safe for "
179 "inlining."
180 msgstr ""
181 "Optymalizacje całych programów, które mogą doprowadzić do wyodrębnienia "
182 "funkcji jako podprogramu (funkcji otwartej) na przestrzeni interfejsów "
183 "biblioteki, mogą doprowadzić do niebezpiecznej zmiany kolejności, dlatego "
184 "nie zaleca się dokonywania takiego wyodrębniania na przestrzeni interfejsu "
185 "biblioteki GNU C. Udokumentowany status MT-bezpieczny nie jest gwarantowany "
186 "przy optymalizacji całych programów. Jednak funkcje zdefiniowane w "
187 "widocznych dla użytkownika nagłówkach, są zaprojektowane jako bezpieczne do "
188 "wyodrębniania."
189
190 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
191 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
192 #. type: TP
193 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
194 #. ", " AS-Unsafe ", " AC-Unsafe
195 #. type: TP
196 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
197 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
198 #. type: TP
199 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
200 #. ", " AS-Unsafe ", " AC-Unsafe
201 #. type: TP
202 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
203 #. ", " AS-Unsafe ", " AC-Unsafe
204 #. type: TP
205 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
206 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
207 #. type: TP
208 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
209 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
210 #. type: TP
211 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
212 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "I<MT-Unsafe>"
218 msgstr "I<MT-niebezpieczne>"
219
220 #
221 #
222 #
223 #
224 #
225 #
226 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
227 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
228 #. functions are not
229 #. safe to call within the safety contexts described above.
230 #. Calling them
231 #. within such contexts invokes undefined behavior.
232 #. Functions not explicitly documented as safe in a safety context should
233 #. be regarded as Unsafe.
234 #. .TP
235 #. .I Preliminary
236 #. .I Preliminary
237 #. safety properties are documented, indicating these
238 #. properties may
239 #. .I not
240 #. be counted on in future releases of
241 #. the GNU C Library.
242 #. Such preliminary properties are the result of an assessment of the
243 #. properties of our current implementation,
244 #. rather than of what is mandated and permitted
245 #. by current and future standards.
246 #. Although we strive to abide by the standards, in some cases our
247 #. implementation is safe even when the standard does not demand safety,
248 #. and in other cases our implementation does not meet the standard safety
249 #. requirements.
250 #. The latter are most likely bugs; the former, when marked
251 #. as
252 #. .IR Preliminary ,
253 #. should not be counted on: future standards may
254 #. require changes that are not compatible with the additional safety
255 #. properties afforded by the current implementation.
256 #. Furthermore,
257 #. the POSIX standard does not offer a detailed definition of safety.
258 #. We assume that, by "safe to call", POSIX means that,
259 #. as long as the program does not invoke undefined behavior,
260 #. the "safe to call" function behaves as specified,
261 #. and does not cause other functions to deviate from their specified behavior.
262 #. We have chosen to use its loose
263 #. definitions of safety, not because they are the best definitions to use,
264 #. but because choosing them harmonizes this manual with POSIX.
265 #. Please keep in mind that these are preliminary definitions and annotations,
266 #. and certain aspects of the definitions are still under
267 #. discussion and might be subject to clarification or change.
268 #. Over time,
269 #. we envision evolving the preliminary safety notes into stable commitments,
270 #. as stable as those of our interfaces.
271 #. As we do, we will remove the
272 #. .I Preliminary
273 #. keyword from safety notes.
274 #. As long as the keyword remains, however,
275 #. they are not to be regarded as a promise of future behavior.
276 #. type: Plain text
277 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
278 #. ", " AS-Unsafe ", " AC-Unsafe
279 #. functions are not
280 #. safe to call within the safety contexts described above.
281 #. Calling them
282 #. within such contexts invokes undefined behavior.
283 #. Functions not explicitly documented as safe in a safety context should
284 #. be regarded as Unsafe.
285 #. .TP
286 #. .I Preliminary
287 #. .I Preliminary
288 #. safety properties are documented, indicating these
289 #. properties may
290 #. .I not
291 #. be counted on in future releases of
292 #. the GNU C Library.
293 #. Such preliminary properties are the result of an assessment of the
294 #. properties of our current implementation,
295 #. rather than of what is mandated and permitted
296 #. by current and future standards.
297 #. Although we strive to abide by the standards, in some cases our
298 #. implementation is safe even when the standard does not demand safety,
299 #. and in other cases our implementation does not meet the standard safety
300 #. requirements.
301 #. The latter are most likely bugs; the former, when marked
302 #. as
303 #. .IR Preliminary ,
304 #. should not be counted on: future standards may
305 #. require changes that are not compatible with the additional safety
306 #. properties afforded by the current implementation.
307 #. Furthermore,
308 #. the POSIX standard does not offer a detailed definition of safety.
309 #. We assume that, by "safe to call", POSIX means that,
310 #. as long as the program does not invoke undefined behavior,
311 #. the "safe to call" function behaves as specified,
312 #. and does not cause other functions to deviate from their specified behavior.
313 #. We have chosen to use its loose
314 #. definitions of safety, not because they are the best definitions to use,
315 #. but because choosing them harmonizes this manual with POSIX.
316 #. Please keep in mind that these are preliminary definitions and annotations,
317 #. and certain aspects of the definitions are still under
318 #. discussion and might be subject to clarification or change.
319 #. Over time,
320 #. we envision evolving the preliminary safety notes into stable commitments,
321 #. as stable as those of our interfaces.
322 #. As we do, we will remove the
323 #. .I Preliminary
324 #. keyword from safety notes.
325 #. As long as the keyword remains, however,
326 #. they are not to be regarded as a promise of future behavior.
327 #. type: Plain text
328 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
329 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
330 #. functions are not
331 #. safe to call within the safety contexts described above.
332 #. Calling them
333 #. within such contexts invokes undefined behavior.
334 #. Functions not explicitly documented as safe in a safety context should
335 #. be regarded as Unsafe.
336 #. .TP
337 #. .I Preliminary
338 #. .I Preliminary
339 #. safety properties are documented, indicating these
340 #. properties may
341 #. .I not
342 #. be counted on in future releases of
343 #. the GNU C Library.
344 #. Such preliminary properties are the result of an assessment of the
345 #. properties of our current implementation,
346 #. rather than of what is mandated and permitted
347 #. by current and future standards.
348 #. Although we strive to abide by the standards, in some cases our
349 #. implementation is safe even when the standard does not demand safety,
350 #. and in other cases our implementation does not meet the standard safety
351 #. requirements.
352 #. The latter are most likely bugs; the former, when marked
353 #. as
354 #. .IR Preliminary ,
355 #. should not be counted on: future standards may
356 #. require changes that are not compatible with the additional safety
357 #. properties afforded by the current implementation.
358 #. Furthermore,
359 #. the POSIX standard does not offer a detailed definition of safety.
360 #. We assume that, by "safe to call", POSIX means that,
361 #. as long as the program does not invoke undefined behavior,
362 #. the "safe to call" function behaves as specified,
363 #. and does not cause other functions to deviate from their specified behavior.
364 #. We have chosen to use its loose
365 #. definitions of safety, not because they are the best definitions to use,
366 #. but because choosing them harmonizes this manual with POSIX.
367 #. Please keep in mind that these are preliminary definitions and annotations,
368 #. and certain aspects of the definitions are still under
369 #. discussion and might be subject to clarification or change.
370 #. Over time,
371 #. we envision evolving the preliminary safety notes into stable commitments,
372 #. as stable as those of our interfaces.
373 #. As we do, we will remove the
374 #. .I Preliminary
375 #. keyword from safety notes.
376 #. As long as the keyword remains, however,
377 #. they are not to be regarded as a promise of future behavior.
378 #. type: Plain text
379 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
380 #. ", " AS-Unsafe ", " AC-Unsafe
381 #. functions are not
382 #. safe to call within the safety contexts described above.
383 #. Calling them
384 #. within such contexts invokes undefined behavior.
385 #. Functions not explicitly documented as safe in a safety context should
386 #. be regarded as Unsafe.
387 #. .TP
388 #. .I Preliminary
389 #. .I Preliminary
390 #. safety properties are documented, indicating these
391 #. properties may
392 #. .I not
393 #. be counted on in future releases of
394 #. the GNU C Library.
395 #. Such preliminary properties are the result of an assessment of the
396 #. properties of our current implementation,
397 #. rather than of what is mandated and permitted
398 #. by current and future standards.
399 #. Although we strive to abide by the standards, in some cases our
400 #. implementation is safe even when the standard does not demand safety,
401 #. and in other cases our implementation does not meet the standard safety
402 #. requirements.
403 #. The latter are most likely bugs; the former, when marked
404 #. as
405 #. .IR Preliminary ,
406 #. should not be counted on: future standards may
407 #. require changes that are not compatible with the additional safety
408 #. properties afforded by the current implementation.
409 #. Furthermore,
410 #. the POSIX standard does not offer a detailed definition of safety.
411 #. We assume that, by "safe to call", POSIX means that,
412 #. as long as the program does not invoke undefined behavior,
413 #. the "safe to call" function behaves as specified,
414 #. and does not cause other functions to deviate from their specified behavior.
415 #. We have chosen to use its loose
416 #. definitions of safety, not because they are the best definitions to use,
417 #. but because choosing them harmonizes this manual with POSIX.
418 #. Please keep in mind that these are preliminary definitions and annotations,
419 #. and certain aspects of the definitions are still under
420 #. discussion and might be subject to clarification or change.
421 #. Over time,
422 #. we envision evolving the preliminary safety notes into stable commitments,
423 #. as stable as those of our interfaces.
424 #. As we do, we will remove the
425 #. .I Preliminary
426 #. keyword from safety notes.
427 #. As long as the keyword remains, however,
428 #. they are not to be regarded as a promise of future behavior.
429 #. type: Plain text
430 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
431 #. ", " AS-Unsafe ", " AC-Unsafe
432 #. functions are not
433 #. safe to call within the safety contexts described above.
434 #. Calling them
435 #. within such contexts invokes undefined behavior.
436 #. Functions not explicitly documented as safe in a safety context should
437 #. be regarded as Unsafe.
438 #. .TP
439 #. .I Preliminary
440 #. .I Preliminary
441 #. safety properties are documented, indicating these
442 #. properties may
443 #. .I not
444 #. be counted on in future releases of
445 #. the GNU C Library.
446 #. Such preliminary properties are the result of an assessment of the
447 #. properties of our current implementation,
448 #. rather than of what is mandated and permitted
449 #. by current and future standards.
450 #. Although we strive to abide by the standards, in some cases our
451 #. implementation is safe even when the standard does not demand safety,
452 #. and in other cases our implementation does not meet the standard safety
453 #. requirements.
454 #. The latter are most likely bugs; the former, when marked
455 #. as
456 #. .IR Preliminary ,
457 #. should not be counted on: future standards may
458 #. require changes that are not compatible with the additional safety
459 #. properties afforded by the current implementation.
460 #. Furthermore,
461 #. the POSIX standard does not offer a detailed definition of safety.
462 #. We assume that, by "safe to call", POSIX means that,
463 #. as long as the program does not invoke undefined behavior,
464 #. the "safe to call" function behaves as specified,
465 #. and does not cause other functions to deviate from their specified behavior.
466 #. We have chosen to use its loose
467 #. definitions of safety, not because they are the best definitions to use,
468 #. but because choosing them harmonizes this manual with POSIX.
469 #. Please keep in mind that these are preliminary definitions and annotations,
470 #. and certain aspects of the definitions are still under
471 #. discussion and might be subject to clarification or change.
472 #. Over time,
473 #. we envision evolving the preliminary safety notes into stable commitments,
474 #. as stable as those of our interfaces.
475 #. As we do, we will remove the
476 #. .I Preliminary
477 #. keyword from safety notes.
478 #. As long as the keyword remains, however,
479 #. they are not to be regarded as a promise of future behavior.
480 #. type: Plain text
481 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
482 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
483 #. functions are not
484 #. safe to call within the safety contexts described above.
485 #. Calling them
486 #. within such contexts invokes undefined behavior.
487 #. Functions not explicitly documented as safe in a safety context should
488 #. be regarded as Unsafe.
489 #. .TP
490 #. .I Preliminary
491 #. .I Preliminary
492 #. safety properties are documented, indicating these
493 #. properties may
494 #. .I not
495 #. be counted on in future releases of
496 #. the GNU C Library.
497 #. Such preliminary properties are the result of an assessment of the
498 #. properties of our current implementation,
499 #. rather than of what is mandated and permitted
500 #. by current and future standards.
501 #. Although we strive to abide by the standards, in some cases our
502 #. implementation is safe even when the standard does not demand safety,
503 #. and in other cases our implementation does not meet the standard safety
504 #. requirements.
505 #. The latter are most likely bugs; the former, when marked
506 #. as
507 #. .IR Preliminary ,
508 #. should not be counted on: future standards may
509 #. require changes that are not compatible with the additional safety
510 #. properties afforded by the current implementation.
511 #. Furthermore,
512 #. the POSIX standard does not offer a detailed definition of safety.
513 #. We assume that, by "safe to call", POSIX means that,
514 #. as long as the program does not invoke undefined behavior,
515 #. the "safe to call" function behaves as specified,
516 #. and does not cause other functions to deviate from their specified behavior.
517 #. We have chosen to use its loose
518 #. definitions of safety, not because they are the best definitions to use,
519 #. but because choosing them harmonizes this manual with POSIX.
520 #. Please keep in mind that these are preliminary definitions and annotations,
521 #. and certain aspects of the definitions are still under
522 #. discussion and might be subject to clarification or change.
523 #. Over time,
524 #. we envision evolving the preliminary safety notes into stable commitments,
525 #. as stable as those of our interfaces.
526 #. As we do, we will remove the
527 #. .I Preliminary
528 #. keyword from safety notes.
529 #. As long as the keyword remains, however,
530 #. they are not to be regarded as a promise of future behavior.
531 #. type: Plain text
532 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
533 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
534 #. functions are not
535 #. safe to call within the safety contexts described above.
536 #. Calling them
537 #. within such contexts invokes undefined behavior.
538 #. Functions not explicitly documented as safe in a safety context should
539 #. be regarded as Unsafe.
540 #. .TP
541 #. .I Preliminary
542 #. .I Preliminary
543 #. safety properties are documented, indicating these
544 #. properties may
545 #. .I not
546 #. be counted on in future releases of
547 #. the GNU C Library.
548 #. Such preliminary properties are the result of an assessment of the
549 #. properties of our current implementation,
550 #. rather than of what is mandated and permitted
551 #. by current and future standards.
552 #. Although we strive to abide by the standards, in some cases our
553 #. implementation is safe even when the standard does not demand safety,
554 #. and in other cases our implementation does not meet the standard safety
555 #. requirements.
556 #. The latter are most likely bugs; the former, when marked
557 #. as
558 #. .IR Preliminary ,
559 #. should not be counted on: future standards may
560 #. require changes that are not compatible with the additional safety
561 #. properties afforded by the current implementation.
562 #. Furthermore,
563 #. the POSIX standard does not offer a detailed definition of safety.
564 #. We assume that, by "safe to call", POSIX means that,
565 #. as long as the program does not invoke undefined behavior,
566 #. the "safe to call" function behaves as specified,
567 #. and does not cause other functions to deviate from their specified behavior.
568 #. We have chosen to use its loose
569 #. definitions of safety, not because they are the best definitions to use,
570 #. but because choosing them harmonizes this manual with POSIX.
571 #. Please keep in mind that these are preliminary definitions and annotations,
572 #. and certain aspects of the definitions are still under
573 #. discussion and might be subject to clarification or change.
574 #. Over time,
575 #. we envision evolving the preliminary safety notes into stable commitments,
576 #. as stable as those of our interfaces.
577 #. As we do, we will remove the
578 #. .I Preliminary
579 #. keyword from safety notes.
580 #. As long as the keyword remains, however,
581 #. they are not to be regarded as a promise of future behavior.
582 #. type: Plain text
583 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
584 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
585 #. functions are not
586 #. safe to call within the safety contexts described above.
587 #. Calling them
588 #. within such contexts invokes undefined behavior.
589 #. Functions not explicitly documented as safe in a safety context should
590 #. be regarded as Unsafe.
591 #. .TP
592 #. .I Preliminary
593 #. .I Preliminary
594 #. safety properties are documented, indicating these
595 #. properties may
596 #. .I not
597 #. be counted on in future releases of
598 #. the GNU C Library.
599 #. Such preliminary properties are the result of an assessment of the
600 #. properties of our current implementation,
601 #. rather than of what is mandated and permitted
602 #. by current and future standards.
603 #. Although we strive to abide by the standards, in some cases our
604 #. implementation is safe even when the standard does not demand safety,
605 #. and in other cases our implementation does not meet the standard safety
606 #. requirements.
607 #. The latter are most likely bugs; the former, when marked
608 #. as
609 #. .IR Preliminary ,
610 #. should not be counted on: future standards may
611 #. require changes that are not compatible with the additional safety
612 #. properties afforded by the current implementation.
613 #. Furthermore,
614 #. the POSIX standard does not offer a detailed definition of safety.
615 #. We assume that, by "safe to call", POSIX means that,
616 #. as long as the program does not invoke undefined behavior,
617 #. the "safe to call" function behaves as specified,
618 #. and does not cause other functions to deviate from their specified behavior.
619 #. We have chosen to use its loose
620 #. definitions of safety, not because they are the best definitions to use,
621 #. but because choosing them harmonizes this manual with POSIX.
622 #. Please keep in mind that these are preliminary definitions and annotations,
623 #. and certain aspects of the definitions are still under
624 #. discussion and might be subject to clarification or change.
625 #. Over time,
626 #. we envision evolving the preliminary safety notes into stable commitments,
627 #. as stable as those of our interfaces.
628 #. As we do, we will remove the
629 #. .I Preliminary
630 #. keyword from safety notes.
631 #. As long as the keyword remains, however,
632 #. they are not to be regarded as a promise of future behavior.
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid ""
637 "I<MT-Unsafe> functions are not safe to call in a multithreaded programs."
638 msgstr ""
639 "Funkcje I<MT-niebezpieczne> lub I<MT-Unsafe> nie są bezpieczne do wywołania "
640 "w programach wielowątkowych."
641
642 #
643 #
644 #
645 #
646 #
647 #
648 #
649 #
650 #
651 #
652 #
653 #. .SS Unsafe features
654 #. Functions that are unsafe to call in certain contexts are annotated with
655 #. keywords that document their features that make them unsafe to call.
656 #. AS-Unsafe features in this section indicate the functions are never safe
657 #. to call when asynchronous signals are enabled.
658 #. AC-Unsafe features
659 #. indicate they are never safe to call when asynchronous cancelation is
660 #. .\" enabled.
661 #. There are no MT-Unsafe marks in this section.
662 #. .TP
663 #. .\" .I code
664 #. Functions marked with
665 #. .I lock
666 #. as an AS-Unsafe feature may be
667 #. .\" interrupted by a signal while holding a non-recursive lock.
668 #. If the signal handler calls another such function that takes the same lock,
669 #. the result is a deadlock.
670 #. Functions annotated with
671 #. .I lock
672 #. as an AC-Unsafe feature may, if canceled asynchronously,
673 #. fail to release a lock that would have been released if their execution
674 #. had not been interrupted by asynchronous thread cancelation.
675 #. Once a lock is left taken,
676 #. attempts to take that lock will block indefinitely.
677 #. .TP
678 #. .I corrupt
679 #. Functions marked with
680 #. .\" .I corrupt
681 #. as an AS-Unsafe feature may corrupt
682 #. data structures and misbehave when they interrupt,
683 #. or are interrupted by, another such function.
684 #. Unlike functions marked with
685 #. .IR lock ,
686 #. these take recursive locks to avoid MT-Safety problems,
687 #. but this is not enough to stop a signal handler from observing
688 #. a partially-updated data structure.
689 #. Further corruption may arise from the interrupted function's
690 #. failure to notice updates made by signal handlers.
691 #. Functions marked with
692 #. .I corrupt
693 #. as an AC-Unsafe feature may leave
694 #. data structures in a corrupt, partially updated state.
695 #. Subsequent uses of the data structure may misbehave.
696 #. .\" A special case, probably not worth documenting separately, involves
697 #. .\" reallocing, or even freeing pointers. Any case involving free could
698 #. .\" be easily turned into an ac-safe leak by resetting the pointer before
699 #. .\" releasing it; I don't think we have any case that calls for this sort
700 #. .\" of fixing. Fixing the realloc cases would require a new interface:
701 #. .\" instead of @code{ptr=realloc(ptr,size)} we'd have to introduce
702 #. .\" @code{acsafe_realloc(&ptr,size)} that would modify ptr before
703 #. .\" releasing the old memory. The ac-unsafe realloc could be implemented
704 #. .\" in terms of an internal interface with this semantics (say
705 #. .\" __acsafe_realloc), but since realloc can be overridden, the function
706 #. .\" we call to implement realloc should not be this internal interface,
707 #. .\" but another internal interface that calls __acsafe_realloc if realloc
708 #. .\" was not overridden, and calls the overridden realloc with async
709 #. .\" cancel disabled. --lxoliva
710 #. .TP
711 #. .I heap
712 #. Functions marked with
713 #. .I heap
714 #. may call heap memory management functions from the
715 #. .BR malloc (3)/ free (3)
716 #. family of functions and are only as safe as those functions.
717 #. This note is thus equivalent to:
718 #. | AS-Unsafe lock | AC-Unsafe lock fd mem |
719 #. .\" @sampsafety{@asunsafe{@asulock{}}@acunsafe{@aculock{} @acsfd{} @acsmem{}}}
720 #. .\"
721 #. .\" Check for cases that should have used plugin instead of or in
722 #. .\" addition to this. Then, after rechecking gettext, adjust i18n if
723 #. .\" needed.
724 #. .TP
725 #. .I dlopen
726 #. Functions marked with
727 #. .I dlopen
728 #. use the dynamic loader to load
729 #. shared libraries into the current execution image.
730 #. This involves opening files, mapping them into memory,
731 #. allocating additional memory, resolving symbols,
732 #. applying relocations and more,
733 #. all of this while holding internal dynamic loader locks.
734 #. The locks are enough for these functions to be AS-Unsafe and AC-Unsafe,
735 #. but other issues may arise.
736 #. At present this is a placeholder for all
737 #. potential safety issues raised by
738 #. .BR dlopen (3).
739 #. .\" dlopen runs init and fini sections of the module; does this mean
740 #. .\" dlopen always implies plugin?
741 #. .TP
742 #. .I plugin
743 #. Functions annotated with
744 #. .I plugin
745 #. may run code from plugins that
746 #. may be external to the GNU C Library.
747 #. Such plugin functions are assumed to be
748 #. MT-Safe, AS-Unsafe and AC-Unsafe.
749 #. Examples of such plugins are stack unwinding libraries,
750 #. name service switch (NSS) and character set conversion (iconv) back-ends.
751 #. Although the plugins mentioned as examples are all brought in by means
752 #. of dlopen, the
753 #. .I plugin
754 #. keyword does not imply any direct
755 #. involvement of the dynamic loader or the
756 #. .I libdl
757 #. interfaces,
758 #. those are covered by
759 #. .IR dlopen .
760 #. For example, if one function loads a module and finds the addresses
761 #. of some of its functions,
762 #. while another just calls those already-resolved functions,
763 #. the former will be marked with
764 #. .IR dlopen ,
765 #. whereas the latter will get the
766 #. .IR plugin .
767 #. When a single function takes all of these actions, then it gets both marks.
768 #. .TP
769 #. .I i18n
770 #. Functions marked with
771 #. .I i18n
772 #. may call internationalization
773 #. functions of the
774 #. .BR gettext (3)
775 #. family and will be only as safe as those
776 #. functions.
777 #. This note is thus equivalent to:
778 #. | MT-Safe env | AS-Unsafe corrupt heap dlopen | AC-Unsafe corrupt |
779 #. .\" @sampsafety{@mtsafe{@mtsenv{}}@asunsafe{@asucorrupt{} @ascuheap{} @ascudlopen{}}@acunsafe{@acucorrupt{}}}
780 #. .TP
781 #. .I timer
782 #. Functions marked with
783 #. .I timer
784 #. use the
785 #. .BR alarm (3)
786 #. function or
787 #. similar to set a time-out for a system call or a long-running operation.
788 #. In a multi-threaded program, there is a risk that the time-out signal
789 #. will be delivered to a different thread,
790 #. thus failing to interrupt the intended thread.
791 #. Besides being MT-Unsafe, such functions are always
792 #. AS-Unsafe, because calling them in signal handlers may interfere with
793 #. timers set in the interrupted code, and AC-Unsafe,
794 #. because there is no safe way to guarantee an earlier timer
795 #. will be reset in case of asynchronous cancelation.
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 msgid ""
800 "Other keywords that appear in safety notes are defined in subsequent "
801 "sections."
802 msgstr ""
803 "Inne słowa kluczowe pojawiające się w uwagach nt. bezpieczeństwa "
804 "zdefiniowano w kolejnych rozdziałach."
805
806 #. type: SS
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 #, no-wrap
810 msgid "Conditionally safe features"
811 msgstr "Funkcjonalności warunkowo bezpieczne"
812
813 #. type: Plain text
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 msgid ""
817 "For some features that make functions unsafe to call in certain contexts, "
818 "there are known ways to avoid the safety problem other than refraining from "
819 "calling the function altogether. The keywords that follow refer to such "
820 "features, and each of their definitions indicates how the whole program "
821 "needs to be constrained in order to remove the safety problem indicated by "
822 "the keyword. Only when all the reasons that make a function unsafe are "
823 "observed and addressed, by applying the documented constraints, does the "
824 "function become safe to call in a context."
825 msgstr ""
826 "Dla niektórych funkcjonalności czyniących funkcje niebezpiecznymi do "
827 "wywołania w pewnych sytuacjach, znane są sposoby ominięcia kłopotów z "
828 "bezpieczeństwem, nie wymagające całkowitej rezygnacji z ich wywoływania. "
829 "Poniższe słowa kluczowe odnoszą się do takich funkcjonalności i każda z "
830 "definicji wskazuje, jak należy ograniczyć cały program, aby uniknąć problemu "
831 "z bezpieczeństwem wskazanych danym słowem kluczowym. Jedynie po "
832 "zaobserwowaniu i odniesieniu się do powodów, które czynią funkcję "
833 "niebezpieczną, za pomocą nałożenia udokumentowanych ograniczeń, funkcja "
834 "staje się bezpieczna do wywołania w danym kontekście."
835
836 #. type: TP
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, no-wrap
840 msgid "I<init>"
841 msgstr "I<init>"
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "Functions marked with I<init> as an MT-Unsafe feature perform MT-Unsafe "
848 "initialization when they are first called."
849 msgstr ""
850 "Funkcje oznaczone jako I<init> w kontekście problemów bezpieczeństwa "
851 "wątkowego, przeprowadzają przy pierwszym wywołaniu inicjalizację, która jest "
852 "MT-niebezpieczna."
853
854 #
855 #
856 #
857 #
858 #
859 #. Functions marked with
860 #. .I init
861 #. as an AS-Unsafe or AC-Unsafe feature use the GNU C Library internal
862 #. .I libc_once
863 #. machinery or similar to initialize internal data structures.
864 #. If a signal handler interrupts such an initializer,
865 #. and calls any function that also performs
866 #. .I libc_once
867 #. initialization, it will deadlock if the thread library has been loaded.
868 #. Furthermore, if an initializer is partially complete before it is canceled
869 #. or interrupted by a signal whose handler requires the same initialization,
870 #. some or all of the initialization may be performed more than once,
871 #. leaking resources or even resulting in corrupt internal data.
872 #. Applications that need to call functions marked with
873 #. .I init
874 #. as an AS-Safety or AC-Unsafe feature should ensure
875 #. the initialization is performed
876 #. before configuring signal handlers or enabling cancelation,
877 #. so that the AS-Safety and AC-Safety issues related with
878 #. .I libc_once
879 #. do not arise.
880 #. .\" We may have to extend the annotations to cover conditions in which
881 #. .\" initialization may or may not occur, since an initial call in a safe
882 #. .\" context is no use if the initialization doesn't take place at that
883 #. .\" time: it doesn't remove the risk for later calls.
884 #. type: Plain text
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 msgid ""
888 "Calling such a function at least once in single-threaded mode removes this "
889 "specific cause for the function to be regarded as MT-Unsafe. If no other "
890 "cause for that remains, the function can then be safely called after other "
891 "threads are started."
892 msgstr ""
893 "Wywołanie takiej funkcji przynajmniej raz w trybie pojedynczego wątku, usuwa "
894 "ten konkretny powód do uznania tej funkcji jako MT-niebezpiecznej. Jeśli nie "
895 "występują inne powody, to funkcję można bezpiecznie wywoływać po "
896 "uruchomieniu innych wątków."
897
898 #. type: TP
899 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
900 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
901 #, no-wrap
902 msgid "I<race>"
903 msgstr "I<race>"
904
905 #
906 #
907 #
908 #
909 #
910 #
911 #
912 #. We consider access to objects passed as (indirect) arguments to
913 #. functions to be data race free.
914 #. The assurance of data race free objects
915 #. is the caller's responsibility.
916 #. We will not mark a function as MT-Unsafe or AS-Unsafe
917 #. if it misbehaves when users fail to take the measures required by
918 #. POSIX to avoid data races when dealing with such objects.
919 #. As a general rule, if a function is documented as reading from
920 #. an object passed (by reference) to it, or modifying it,
921 #. users ought to use memory synchronization primitives
922 #. to avoid data races just as they would should they perform
923 #. the accesses themselves rather than by calling the library function.
924 #. Standard I/O
925 #. .RI ( "FILE *" )
926 #. streams are the exception to the general rule,
927 #. in that POSIX mandates the library to guard against data races
928 #. in many functions that manipulate objects of this specific opaque type.
929 #. We regard this as a convenience provided to users,
930 #. rather than as a general requirement whose expectations
931 #. should extend to other types.
932 #. In order to remind users that guarding certain arguments is their
933 #. responsibility, we will annotate functions that take objects of certain
934 #. types as arguments.
935 #. We draw the line for objects passed by users as follows:
936 #. objects whose types are exposed to users,
937 #. and that users are expected to access directly,
938 #. such as memory buffers, strings,
939 #. and various user-visible structured types, do
940 #. .I not
941 #. give reason for functions to be annotated with
942 #. .IR race .
943 #. It would be noisy and redundant with the general requirement,
944 #. and not many would be surprised by the library's lack of internal
945 #. guards when accessing objects that can be accessed directly by users.
946 #. As for objects that are opaque or opaque-like,
947 #. in that they are to be manipulated only by passing them
948 #. to library functions (e.g.,
949 #. .IR FILE ,
950 #. .IR DIR ,
951 #. .IR obstack ,
952 #. .IR iconv_t ),
953 #. there might be additional expectations as to internal coordination
954 #. of access by the library.
955 #. We will annotate, with
956 #. .I race
957 #. followed by a colon and the argument name,
958 #. functions that take such objects but that do not take
959 #. care of synchronizing access to them by default.
960 #. For example,
961 #. .I FILE
962 #. stream
963 #. .I unlocked
964 #. functions
965 #. .RB ( unlocked_stdio (3))
966 #. will be annotated,
967 #. but those that perform implicit locking on
968 #. .I FILE
969 #. streams by default will not,
970 #. even though the implicit locking may be disabled on a per-stream basis.
971 #. In either case, we will not regard as MT-Unsafe functions that may
972 #. access user-supplied objects in unsafe ways should users fail to ensure
973 #. the accesses are well defined.
974 #. The notion prevails that users are expected to safeguard against
975 #. data races any user-supplied objects that the library accesses
976 #. on their behalf.
977 #. .\" The above describes @mtsrace; @mtasurace is described below.
978 #. This user responsibility does not apply, however,
979 #. to objects controlled by the library itself,
980 #. such as internal objects and static buffers used
981 #. to return values from certain calls.
982 #. When the library doesn't guard them against concurrent uses,
983 #. these cases are regarded as MT-Unsafe and AS-Unsafe (although the
984 #. .I race
985 #. mark under AS-Unsafe will be omitted
986 #. as redundant with the one under MT-Unsafe).
987 #. As in the case of user-exposed objects,
988 #. the mark may be followed by a colon and an identifier.
989 #. The identifier groups all functions that operate on a
990 #. certain unguarded object; users may avoid the MT-Safety issues related
991 #. with unguarded concurrent access to such internal objects by creating a
992 #. non-recursive mutex related with the identifier,
993 #. and always holding the mutex when calling any function marked
994 #. as racy on that identifier,
995 #. as they would have to should the identifier be
996 #. an object under user control.
997 #. The non-recursive mutex avoids the MT-Safety issue,
998 #. but it trades one AS-Safety issue for another,
999 #. so use in asynchronous signals remains undefined.
1000 #. When the identifier relates to a static buffer used to hold return values,
1001 #. the mutex must be held for as long as the buffer remains in use
1002 #. by the caller.
1003 #. Many functions that return pointers to static buffers offer reentrant
1004 #. variants that store return values in caller-supplied buffers instead.
1005 #. In some cases, such as
1006 #. .BR tmpname (3),
1007 #. the variant is chosen not by calling an alternate entry point,
1008 #. but by passing a non-null pointer to the buffer in which the
1009 #. returned values are to be stored.
1010 #. These variants are generally preferable in multi-threaded programs,
1011 #. although some of them are not MT-Safe because of other internal buffers,
1012 #. also documented with
1013 #. .I race
1014 #. notes.
1015 #. type: Plain text
1016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1018 msgid ""
1019 "Functions annotated with I<race> as an MT-Safety issue operate on objects in "
1020 "ways that may cause data races or similar forms of destructive interference "
1021 "out of concurrent execution. In some cases, the objects are passed to the "
1022 "functions by users; in others, they are used by the functions to return "
1023 "values to users; in others, they are not even exposed to users."
1024 msgstr ""
1025 "Funkcje oznaczone jak I<race> w kontekście problemów bezpieczeństwa "
1026 "wątkowego działają na obiektach w sposób, który może powodować wyścig do "
1027 "danych lub inne formy destrukcyjnej interferencji przy współbieżnym "
1028 "wykonaniu. W niektórych przypadkach te obiekty są przekazywane do funkcji "
1029 "przez użytkowników; w innych są one używane przez funkcje do zwrócenia "
1030 "wartości użytkownikom; w jeszcze innych nie są nawet ujawniane użytkownikom."
1031
1032 #. type: TP
1033 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1034 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1035 #, no-wrap
1036 msgid "I<const>"
1037 msgstr "I<const>"
1038
1039 #. and AS-Unsafe,
1040 #. equally
1041 #. and AS-Unsafe
1042 #. and AS-Safe
1043 #. type: Plain text
1044 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1045 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1046 msgid ""
1047 "Functions marked with I<const> as an MT-Safety issue non-atomically modify "
1048 "internal objects that are better regarded as constant, because a substantial "
1049 "portion of the GNU C Library accesses them without synchronization. Unlike "
1050 "I<race>, which causes both readers and writers of internal objects to be "
1051 "regarded as MT-Unsafe, this mark is applied to writers only. Writers remain "
1052 "MT-Unsafe to call, but the then-mandatory constness of objects they modify "
1053 "enables readers to be regarded as MT-Safe (as long as no other reasons for "
1054 "them to be unsafe remain), since the lack of synchronization is not a "
1055 "problem when the objects are effectively constant."
1056 msgstr ""
1057 "Funkcje oznaczone jako I<const> w kontekście problemów bezpieczeństwa "
1058 "wątkowego, modyfikują w sposób nieatomowy obiekty wewnętrzne, które mogą być "
1059 "raczej rozważane jako stałe, ponieważ znaczna część biblioteki GNU C "
1060 "korzysta z nich bez synchronizacji. W przeciwieństwie do I<race>, które "
1061 "powoduje uznanie za MT-niebezpieczną zarówno odczytujących jak i "
1062 "zapisujących obiekty wewnętrzne, to oznaczenie odnosi się wyłącznie do "
1063 "zapisujących. Zapisujący pozostają MT-niebezpieczni przy wywołaniu, lecz "
1064 "obowiązkowa później stałość obiektów, które modyfikują, umożliwia uznanie "
1065 "odczytujących za MT-bezpiecznych (o ile nie pozostają inne powody do uznania "
1066 "ich za niebezpiecznych), ponieważ brak synchronizacji nie jest problemem, "
1067 "gdy obiekty są faktycznie stałe."
1068
1069 #. The non-recursive locking removes the MT-Safety problem,
1070 #. but it trades one AS-Safety problem for another,
1071 #. so use in asynchronous signals remains undefined.
1072 #. .\" But what if, instead of marking modifiers with const:id and readers
1073 #. .\" with just id, we marked writers with race:id and readers with ro:id?
1074 #. .\" Instead of having to define each instance of 'id', we'd have a
1075 #. .\" general pattern governing all such 'id's, wherein race:id would
1076 #. .\" suggest the need for an exclusive/write lock to make the function
1077 #. .\" safe, whereas ro:id would indicate 'id' is expected to be read-only,
1078 #. .\" but if any modifiers are called (while holding an exclusive lock),
1079 #. .\" then ro:id-marked functions ought to be guarded with a read lock for
1080 #. .\" safe operation. ro:env or ro:locale, for example, seems to convey
1081 #. .\" more clearly the expectations and the meaning, than just env or
1082 #. .\" locale.
1083 #. type: Plain text
1084 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1085 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1086 msgid ""
1087 "The identifier that follows the I<const> mark will appear by itself as a "
1088 "safety note in readers. Programs that wish to work around this safety "
1089 "issue, so as to call writers, may use a non-recursive read-write lock "
1090 "associated with the identifier, and guard I<all> calls to functions marked "
1091 "with I<const> followed by the identifier with a write lock, and I<all> calls "
1092 "to functions marked with the identifier by itself with a read lock."
1093 msgstr ""
1094 "Identyfikator, który występuje po oznaczeniu I<const> pojawi się jako "
1095 "adnotacja bezpieczeństwa przy odczytujących. Programy, które chcą "
1096 "przeciwdziałać temu problemowi bezpieczeństwa, jednak tak aby móc wywołać "
1097 "zapisujących, mogą użyć nierekurencyjnej blokady odczytu i zapisu powiązanej "
1098 "z identyfikatorem i chronić I<wszystkie> wywołania do funkcji oznaczonej "
1099 "jako I<const>, po której następuje identyfikator blokady zapisu oraz "
1100 "I<wszystkie> wywołania do funkcji oznaczonej samym identyfikatorem za pomocą "
1101 "blokady odczytu."
1102
1103 #. type: TP
1104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1106 #, no-wrap
1107 msgid "I<sig>"
1108 msgstr "I<sig>"
1109
1110 #. (that implies an identical AS-Safety issue, omitted for brevity)
1111 #. type: Plain text
1112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1114 msgid ""
1115 "Functions marked with I<sig> as a MT-Safety issue may temporarily install a "
1116 "signal handler for internal purposes, which may interfere with other uses of "
1117 "the signal, identified after a colon."
1118 msgstr ""
1119 "Funkcje oznaczone jako I<sig> w kontekście problemów bezpieczeństwa "
1120 "wątkowego mogą tymczasowo instalować procedurę obsługi sygnału do celów "
1121 "wewnętrznych, która może interferować z innymi użyciami sygnału, "
1122 "wymienionymi po dwukropku."
1123
1124 #
1125 #
1126 #
1127 #. There is no safe way to guarantee the original signal handler is
1128 #. restored in case of asynchronous cancelation,
1129 #. therefore so-marked functions are also AC-Unsafe.
1130 #. .\" fixme: at least deferred cancelation should get it right, and would
1131 #. .\" obviate the restoring bit below, and the qualifier above.
1132 #. Besides the measures recommended to work around the
1133 #. MT-Safety and AS-Safety problem,
1134 #. in order to avert the cancelation problem,
1135 #. disabling asynchronous cancelation
1136 #. .I and
1137 #. installing a cleanup handler to restore the signal to the desired state
1138 #. and to release the mutex are recommended.
1139 #. type: Plain text
1140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1142 msgid ""
1143 "This safety problem can be worked around by ensuring that no other uses of "
1144 "the signal will take place for the duration of the call. Holding a non-"
1145 "recursive mutex while calling all functions that use the same temporary "
1146 "signal; blocking that signal before the call and resetting its handler "
1147 "afterwards is recommended."
1148 msgstr ""
1149 "Temu problemowi bezpieczeństwa można przeciwdziałać, upewniając się, że w "
1150 "trakcie wywołania nie dojdzie do innego użycia sygnału. Zalecane jest: "
1151 "utrzymywanie nierekurencyjnej blokady mutex (wzajemnego wykluczania) podczas "
1152 "wywoływania wszystkich funkcji używających tego samego sygnału tymczasowego; "
1153 "blokowanie tego sygnału przed wywołaniem i późniejsze resetowanie jego "
1154 "procedury obsługi."
1155
1156 #. type: TP
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 #, no-wrap
1160 msgid "I<term>"
1161 msgstr "I<term>"
1162
1163 #. The same window enables changes made by asynchronous signals to be lost.
1164 #. These functions are also AS-Unsafe,
1165 #. but the corresponding mark is omitted as redundant.
1166 #. type: Plain text
1167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1169 msgid ""
1170 "Functions marked with I<term> as an MT-Safety issue may change the terminal "
1171 "settings in the recommended way, namely: call B<tcgetattr>(3), modify some "
1172 "flags, and then call B<tcsetattr>(3), this creates a window in which changes "
1173 "made by other threads are lost. Thus, functions marked with I<term> are MT-"
1174 "Unsafe."
1175 msgstr ""
1176 "Funkcje oznaczone jako I<term> w kontekście problemów bezpieczeństwa "
1177 "wątkowego mogą zmieniać ustawienia terminala w zalecany sposób, głównie: "
1178 "wywoływać B<tcgetattr>(3), modyfikować niektóre znaczniki (flagi) i później "
1179 "wywoływać B<tcsetattr>(3), co otwiera okno, w którym zmiany wykonane przez "
1180 "inne wątki są tracone. Z tego względu funkcje oznaczone jako I<term> są MT-"
1181 "niebezpieczne."
1182
1183 #. Functions marked with
1184 #. .I term
1185 #. as an AC-Safety issue are supposed to
1186 #. restore terminal settings to their original state,
1187 #. after temporarily changing them, but they may fail to do so if canceled.
1188 #. .\" fixme: at least deferred cancelation should get it right, and would
1189 #. .\" obviate the restoring bit below, and the qualifier above.
1190 #. Besides the measures recommended to work around the
1191 #. MT-Safety and AS-Safety problem,
1192 #. in order to avert the cancelation problem,
1193 #. disabling asynchronous cancelation
1194 #. .I and
1195 #. installing a cleanup handler to
1196 #. restore the terminal settings to the original state and to release the
1197 #. mutex are recommended.
1198 #. type: Plain text
1199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1201 msgid ""
1202 "It is thus advisable for applications using the terminal to avoid concurrent "
1203 "and reentrant interactions with it, by not using it in signal handlers or "
1204 "blocking signals that might use it, and holding a lock while calling these "
1205 "functions and interacting with the terminal. This lock should also be used "
1206 "for mutual exclusion with functions marked with I<race:tcattr(fd)>, where "
1207 "I<fd> is a file descriptor for the controlling terminal. The caller may use "
1208 "a single mutex for simplicity, or use one mutex per terminal, even if "
1209 "referenced by different file descriptors."
1210 msgstr ""
1211 "Zaleca się dlatego aplikacjom używającym terminala unikać równoczesnej i "
1212 "wielobieżnej interakcji z terminalem, nie używając mogących się tak "
1213 "zachowywać procedur obsługi sygnału lub sygnałów blokujących i utrzymywać "
1214 "blokadę przy ponownym wywoływaniu tych funkcji i interakcji z terminalem. "
1215 "Blokady tej powinno się używać również do wzajemnego wykluczania w przypadku "
1216 "funkcji oznaczonych jako I<race:tcattr(fd)>, gdzie I<fd> jest deskryptorem "
1217 "pliku kontrolującego terminala. Wywołujący może użyć następujących blokad "
1218 "wzajemnego wykluczania (mutex): pojedynczej (dla ułatwienia) albo po jednej "
1219 "na terminal, nawet gdy są one opisane różnymi deskryptorami pliku."
1220
1221 #. type: SS
1222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1224 #, no-wrap
1225 msgid "Other safety remarks"
1226 msgstr "Dodatkowe uwagi dotyczące bezpieczeństwa"
1227
1228 #. type: Plain text
1229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1231 msgid ""
1232 "Additional keywords may be attached to functions, indicating features that "
1233 "do not make a function unsafe to call, but that may need to be taken into "
1234 "account in certain classes of programs:"
1235 msgstr ""
1236 "Do funkcji mogą być dołączone dodatkowe słowa kluczowe wskazujące "
1237 "funkcjonalności, które co prawda nie czynią funkcji niebezpiecznej do "
1238 "wywołania, ale powinny być wzięte pod uwagę w określonych klasach programów:"
1239
1240 #. type: TP
1241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1243 #, no-wrap
1244 msgid "I<locale>"
1245 msgstr "I<locale>"
1246
1247 #. type: Plain text
1248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1250 msgid ""
1251 "Functions annotated with I<locale> as an MT-Safety issue read from the "
1252 "locale object without any form of synchronization. Functions annotated with "
1253 "I<locale> called concurrently with locale changes may behave in ways that do "
1254 "not correspond to any of the locales active during their execution, but an "
1255 "unpredictable mix thereof."
1256 msgstr ""
1257 "Funkcje z adnotacją I<locale> w kontekście problemów bezpieczeństwa "
1258 "wątkowego odczytują z obiektu locale (tłumaczenia) bez jakiejkolwiek formy "
1259 "synchronizacji. Funkcje z adnotacją I<locale> wywoływane równolegle ze "
1260 "zmianą locale mogą zachowywać się w sposób nieodnoszący się do żadnych z "
1261 "aktywnych locale podczas ich wykonania, lecz z nieprzewidywalną ich "
1262 "mieszanką."
1263
1264 #. or AS-Unsafe,
1265 #. Should the locking strategy suggested under @code{const} be used,
1266 #. failure to guard locale uses is not as fatal as data races in
1267 #. general: unguarded uses will @emph{not} follow dangling pointers or
1268 #. access uninitialized, unmapped or recycled memory. Each access will
1269 #. read from a consistent locale object that is or was active at some
1270 #. point during its execution. Without synchronization, however, it
1271 #. cannot even be assumed that, after a change in locale, earlier
1272 #. locales will no longer be used, even after the newly-chosen one is
1273 #. used in the thread. Nevertheless, even though unguarded reads from
1274 #. the locale will not violate type safety, functions that access the
1275 #. locale multiple times may invoke all sorts of undefined behavior
1276 #. because of the unexpected locale changes.
1277 #. type: Plain text
1278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1280 msgid ""
1281 "We do not mark these functions as MT-Unsafe, however, because functions that "
1282 "modify the locale object are marked with I<const:locale> and regarded as "
1283 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1284 "are running or asynchronous signals are enabled, and so the locale can be "
1285 "considered effectively constant in these contexts, which makes the former "
1286 "safe."
1287 msgstr ""
1288 "Funkcje te nie są jednak oznaczane jako MT-niebezpieczne. To funkcje "
1289 "modyfikujące obiekt locale są oznaczane uwagą I<const:locale> i są uważane "
1290 "za niebezpieczne. Z tego powodu, funkcje modyfikujące nie powinny być "
1291 "wywoływane, gdy działa kilka wątków lub włączone są sygnały asynchroniczne. "
1292 "W tych kontekstach locale mogą być rozważane jako efektywnie stałe, co czyni "
1293 "omawiane w powyższym akapicie funkcje bezpiecznymi."
1294
1295 #. type: TP
1296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1298 #, no-wrap
1299 msgid "I<env>"
1300 msgstr "I<env>"
1301
1302 #. type: Plain text
1303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1305 msgid ""
1306 "Functions marked with I<env> as an MT-Safety issue access the environment "
1307 "with B<getenv>(3) or similar, without any guards to ensure safety in the "
1308 "presence of concurrent modifications."
1309 msgstr ""
1310 "Funkcje oznaczone jako I<env> w kontekście problemów bezpieczeństwa "
1311 "wątkowego uzyskują dostęp do środowiska za pomocą B<getenv>(3) lub "
1312 "podobnego, bez żadnej ochrony zapewniającej bezpieczeństwo w obecności "
1313 "równoległych modyfikacji."
1314
1315 #. or AS-Unsafe,
1316 #. type: Plain text
1317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1319 msgid ""
1320 "We do not mark these functions as MT-Unsafe, however, because functions that "
1321 "modify the environment are all marked with I<const:env> and regarded as "
1322 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1323 "are running or asynchronous signals are enabled, and so the environment can "
1324 "be considered effectively constant in these contexts, which makes the former "
1325 "safe."
1326 msgstr ""
1327 "Funkcje te nie są jednak oznaczane jako MT-niebezpieczne. To funkcje "
1328 "modyfikujące środowisko są oznaczane uwagą I<const:env> i są uważane za "
1329 "niebezpieczne. Z tego powodu, funkcje modyfikujące nie powinny być "
1330 "wywoływane, gdy działa kilka wątków lub włączone są sygnały asynchroniczne. "
1331 "W tych kontekstach środowisko może być rozważane jako efektywnie stałe, co "
1332 "czyni omawiane w powyższym akapicie funkcje bezpiecznymi."
1333
1334 #. type: TP
1335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1337 #, no-wrap
1338 msgid "I<hostid>"
1339 msgstr "I<hostid>"
1340
1341 #. type: Plain text
1342 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1343 #: opensuse-leap-16-1 opensuse-tumbleweed
1344 msgid ""
1345 "Functions marked with I<hostid> as an MT-Safety issue read from the system-"
1346 "wide data structures that hold the \"host ID\" of the machine. These data "
1347 "structures cannot generally be modified atomically. Since it is expected "
1348 "that the \"host ID\" will not normally change, the function that reads from "
1349 "it (B<gethostid>(3)) is regarded as safe, whereas the function that "
1350 "modifies it (B<sethostid>(3)) is marked with I<const:hostid>, indicating it "
1351 "may require special care if it is to be called. In this specific case, the "
1352 "special care amounts to system-wide (not merely intra-process) coordination."
1353 msgstr ""
1354 "Funkcje oznaczone jako I<hostid> w kontekście problemów bezpieczeństwa "
1355 "wątkowego odczytują z systemowych struktur danych identyfikator stacji (\\"
1356 "[Bq]host id\\[rq]). Te struktury danych zwykle nie mogą być modyfikowane w "
1357 "sposób niepodzielny. Ze względu na założenie, że identyfikator stacji nie "
1358 "powinien się zmieniać, funkcje odczytujące go (B<gethostid>(3)) są uważane "
1359 "za bezpieczne, natomiast funkcje go modyfikujące (B<sethostid>(3)) są "
1360 "oznaczane jako I<const:hostid> wskazując, że ich wywołanie może wymagać "
1361 "szczególnej uwagi. W tym konkretnym przypadku, szczególna uwagę należy "
1362 "zwrócić na koordynację na poziomie systemu (a nie jedynie wewnątrzprocesową)."
1363
1364 #. type: TP
1365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1367 #, no-wrap
1368 msgid "I<sigintr>"
1369 msgstr "I<sigintr>"
1370
1371 #. type: Plain text
1372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1374 msgid ""
1375 "Functions marked with I<sigintr> as an MT-Safety issue access the GNU C "
1376 "Library I<_sigintr> internal data structure without any guards to ensure "
1377 "safety in the presence of concurrent modifications."
1378 msgstr ""
1379 "Funkcje oznaczone jako I<sigintr> w kontekście problemów bezpieczeństwa "
1380 "wątkowego uzyskują dostęp do wewnętrznej struktury danych I<_sigintr> "
1381 "biblioteki GNU C, bez żadnej ochrony zapewniającej bezpieczeństwo w momencie "
1382 "równoległej modyfikacji."
1383
1384 #
1385 #
1386 #
1387 #
1388 #
1389 #. or AS-Unsafe,
1390 #. .TP
1391 #. .I fd
1392 #. Functions annotated with
1393 #. .I fd
1394 #. as an AC-Safety issue may leak file
1395 #. descriptors if asynchronous thread cancelation interrupts their
1396 #. execution.
1397 #. Functions that allocate or deallocate file descriptors will generally be
1398 #. marked as such.
1399 #. Even if they attempted to protect the file descriptor
1400 #. allocation and deallocation with cleanup regions,
1401 #. allocating a new descriptor and storing its number where the cleanup region
1402 #. could release it cannot be performed as a single atomic operation.
1403 #. Similarly,
1404 #. releasing the descriptor and taking it out of the data structure
1405 #. normally responsible for releasing it cannot be performed atomically.
1406 #. There will always be a window in which the descriptor cannot be released
1407 #. because it was not stored in the cleanup handler argument yet,
1408 #. or it was already taken out before releasing it.
1409 #. .\" It cannot be taken out after release:
1410 #. an open descriptor could mean either that the descriptor still
1411 #. has to be closed,
1412 #. or that it already did so but the descriptor was
1413 #. reallocated by another thread or signal handler.
1414 #. Such leaks could be internally avoided, with some performance penalty,
1415 #. by temporarily disabling asynchronous thread cancelation.
1416 #. However,
1417 #. since callers of allocation or deallocation functions would have to do
1418 #. this themselves, to avoid the same sort of leak in their own layer,
1419 #. it makes more sense for the library to assume they are taking care of it
1420 #. than to impose a performance penalty that is redundant when the problem
1421 #. is solved in upper layers, and insufficient when it is not.
1422 #. This remark by itself does not cause a function to be regarded as
1423 #. AC-Unsafe.
1424 #. However, cumulative effects of such leaks may pose a
1425 #. problem for some programs.
1426 #. If this is the case,
1427 #. suspending asynchronous cancelation for the duration of calls
1428 #. to such functions is recommended.
1429 #. .TP
1430 #. .I mem
1431 #. Functions annotated with
1432 #. .I mem
1433 #. as an AC-Safety issue may leak
1434 #. memory if asynchronous thread cancelation interrupts their execution.
1435 #. The problem is similar to that of file descriptors: there is no atomic
1436 #. interface to allocate memory and store its address in the argument to a
1437 #. cleanup handler,
1438 #. or to release it and remove its address from that argument,
1439 #. without at least temporarily disabling asynchronous cancelation,
1440 #. which these functions do not do.
1441 #. This remark does not by itself cause a function to be regarded as
1442 #. generally AC-Unsafe.
1443 #. However, cumulative effects of such leaks may be
1444 #. severe enough for some programs that disabling asynchronous cancelation
1445 #. for the duration of calls to such functions may be required.
1446 #. type: Plain text
1447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1449 msgid ""
1450 "We do not mark these functions as MT-Unsafe, however, because functions that "
1451 "modify this data structure are all marked with I<const:sigintr> and regarded "
1452 "as unsafe. Being unsafe, the latter are not to be called when multiple "
1453 "threads are running or asynchronous signals are enabled, and so the data "
1454 "structure can be considered effectively constant in these contexts, which "
1455 "makes the former safe."
1456 msgstr ""
1457 "Funkcje te nie są jednak oznaczane jako MT-niebezpieczne. To funkcje "
1458 "modyfikujące struktury danych są oznaczane uwagą I<const:sigintr> i są "
1459 "uważane za niebezpieczne. Z tego powodu, funkcje modyfikujące nie powinny "
1460 "być wywoływane, gdy działa kilka wątków lub włączone są sygnały "
1461 "asynchroniczne. W tych kontekstach struktury danych mogą być rozważane jako "
1462 "efektywnie stałe, co czyni omawiane w powyższym akapicie funkcje "
1463 "bezpiecznymi."
1464
1465 #. type: TP
1466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1468 #, no-wrap
1469 msgid "I<cwd>"
1470 msgstr "I<cwd>"
1471
1472 #. type: Plain text
1473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1475 msgid ""
1476 "Functions marked with I<cwd> as an MT-Safety issue may temporarily change "
1477 "the current working directory during their execution, which may cause "
1478 "relative pathnames to be resolved in unexpected ways in other threads or "
1479 "within asynchronous signal or cancelation handlers."
1480 msgstr ""
1481 "Funkcje oznaczone jako I<cwd> w kontekście problemów bezpieczeństwa "
1482 "wątkowego mogą tymczasowo zmieniać bieżący katalog roboczy podczas "
1483 "wykonania, co może spowodować ustalanie ścieżek względnych w sposób "
1484 "nieoczekiwany dla innych wątków lub przy procedurach obsługi odwoływania lub "
1485 "asynchronicznych sygnałach."
1486
1487 #
1488 #. or AS-Unsafe,
1489 #. .TP
1490 #. .I !posix
1491 #. This remark, as an MT-Safety, AS-Safety or AC-Safety
1492 #. note to a function,
1493 #. indicates the safety status of the function is known to differ
1494 #. from the specified status in the POSIX standard.
1495 #. For example, POSIX does not require a function to be Safe,
1496 #. but our implementation is, or vice-versa.
1497 #. For the time being, the absence of this remark does not imply the safety
1498 #. properties we documented are identical to those mandated by POSIX for
1499 #. the corresponding functions.
1500 #. type: Plain text
1501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1503 msgid ""
1504 "This is not enough of a reason to mark so-marked functions as MT-Unsafe, but "
1505 "when this behavior is optional (e.g., B<nftw>(3) with B<FTW_CHDIR>), "
1506 "avoiding the option may be a good alternative to using full pathnames or "
1507 "file descriptor-relative (e.g., B<openat>(2)) system calls."
1508 msgstr ""
1509 "Nie jest to wystarczający powód do oznaczania funkcji z taką adnotacją jako "
1510 "MT-niebezpiecznej, lecz gdy zachowanie to jest opcjonalne (np. B<nftw>(3) z "
1511 "B<FTW_CHDIR>), unikanie takiej opcji może być dobrą alternatywą do używania "
1512 "pełnych ścieżek lub wywołań systemowych odnoszących się do deskryptorów "
1513 "pliku (np. B<openat>(2))."
1514
1515 #. type: TP
1516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1518 #, no-wrap
1519 msgid "I<:identifier>"
1520 msgstr "I<:identyfikator>"
1521
1522 #. type: Plain text
1523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1525 msgid ""
1526 "Annotations may sometimes be followed by identifiers, intended to group "
1527 "several functions that, for example, access the data structures in an unsafe "
1528 "way, as in I<race> and I<const>, or to provide more specific information, "
1529 "such as naming a signal in a function marked with I<sig>. It is envisioned "
1530 "that it may be applied to I<lock> and I<corrupt> as well in the future."
1531 msgstr ""
1532 "Po adnotacjach może czasem wystąpić identyfikator, który ma pogrupować "
1533 "funkcje, które np. uzyskują dostęp do struktur danych w niebezpieczny "
1534 "sposób, jak w przypadku I<race> i I<const> lub udostępniać szczegółowe "
1535 "informacje, takie jak nazwa sygnału w funkcji oznaczonej jako I<sig>. "
1536 "Przewiduje się, że może to w przyszłości dotyczyć również I<lock> i "
1537 "I<corrupt>."
1538
1539 #. type: Plain text
1540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1542 msgid ""
1543 "In most cases, the identifier will name a set of functions, but it may name "
1544 "global objects or function arguments, or identifiable properties or logical "
1545 "components associated with them, with a notation such as, for example, "
1546 "I<:buf(arg)> to denote a buffer associated with the argument I<arg>, or "
1547 "I<:tcattr(fd)> to denote the terminal attributes of a file descriptor I<fd>."
1548 msgstr ""
1549 "W większości przypadku identyfikator wymieni zestaw funkcji, ale czasami "
1550 "może nazwać obiekty globalne, argumenty funkcji lub powiązane z nimi "
1551 "identyfikowalne właściwości lub fragmenty logiczne. Stosowania notacja to "
1552 "np. I<:buf(arg)> aby wskazać bufor powiązany z argumentem I<arg> lub "
1553 "I<:tcattr(fd)> aby wskazać atrybuty terminala deskryptora pliku I<fd>."
1554
1555 #. type: Plain text
1556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1558 msgid ""
1559 "The most common use for identifiers is to provide logical groups of "
1560 "functions and arguments that need to be protected by the same "
1561 "synchronization primitive in order to ensure safe operation in a given "
1562 "context."
1563 msgstr ""
1564 "Najczęstszym zastosowanie identyfikatorów jest udostępnienie logicznych grup "
1565 "funkcji i argumentów, które muszą być chronione przez te same mechanizmy "
1566 "synchronizacji, aby zapewnić bezpieczne operowanie w danym kontekście."
1567
1568 #. type: TP
1569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1571 #, no-wrap
1572 msgid "I</condition>"
1573 msgstr "I</warunek>"
1574
1575 #. Such conditions as
1576 #. .I /hurd
1577 #. or
1578 #. .I /!linux!bsd
1579 #. indicate the preceding marker only
1580 #. applies when the underlying kernel is the HURD,
1581 #. or when it is neither Linux nor a BSD kernel, respectively.
1582 #. type: Plain text
1583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1585 msgid ""
1586 "Some safety annotations may be conditional, in that they only apply if a "
1587 "boolean expression involving arguments, global variables or even the "
1588 "underlying kernel evaluates to true. For example, I</!ps> and I</"
1589 "one_per_line> indicate the preceding marker only applies when argument I<ps> "
1590 "is NULL, or global variable I<one_per_line> is nonzero."
1591 msgstr ""
1592 "Część uwag bezpieczeństwa może być warunkowa co oznacza, że mają "
1593 "zastosowanie tylko gdy prawdziwe jest wyrażenie warunkowe dotyczące "
1594 "argumentów, zmiennych globalnych albo nawet wartości jądra. Na przykład I</!"
1595 "ps> i I</one_per_line> wskazują, że wcześniejsza uwaga ma zastosowanie "
1596 "tylko, gdy argumentem I<ps> jest NULL, albo zmienna globalna I<one_per_line> "
1597 "jest niezerowa."
1598
1599 #. type: Plain text
1600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1602 msgid ""
1603 "When all marks that render a function unsafe are adorned with such "
1604 "conditions, and none of the named conditions hold, then the function can be "
1605 "regarded as safe."
1606 msgstr ""
1607 "Jeśli wszystkie uwagi czyniące funkcję niebezpieczną są opatrzone takimi "
1608 "warunkami i żaden z wskazanych warunków nie jest spełniony, to funkcja może "
1609 "być uważana za bezpieczną."
1610
1611 #. type: SH
1612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1614 #, no-wrap
1615 msgid "SEE ALSO"
1616 msgstr "ZOBACZ TAKŻE"
1617
1618 #. type: Plain text
1619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1621 msgid "B<pthreads>(7), B<signal-safety>(7)"
1622 msgstr "B<pthreads>(7), B<signal-safety>(7)"
1623
1624 #. type: TH
1625 #: debian-trixie
1626 #, no-wrap
1627 msgid "2024-05-02"
1628 msgstr "2 maja 2024 r."
1629
1630 #. type: TH
1631 #: debian-trixie
1632 #, no-wrap
1633 msgid "Linux man-pages 6.9.1"
1634 msgstr "Linux man-pages 6.9.1"
1635
1636 #. type: Plain text
1637 #: debian-trixie
1638 msgid ""
1639 "The function marked with I<hostid> as an MT-Safety issue reads from the "
1640 "system-wide data structures that hold the \"host ID\" of the machine. These "
1641 "data structures cannot generally be modified atomically. Since it is "
1642 "expected that the \"host ID\" will not normally change, the function that "
1643 "reads from it (B<gethostid>(3)) is regarded as safe, whereas the function "
1644 "that modifies it (B<sethostid>(3)) is marked with I<const:hostid>, "
1645 "indicating it may require special care if it is to be called. In this "
1646 "specific case, the special care amounts to system-wide (not merely intra-"
1647 "process) coordination."
1648 msgstr ""
1649 "Funkcje oznaczone jako I<hostid> w kontekście problemów bezpieczeństwa "
1650 "wątkowego odczytują z systemowych struktur danych identyfikator stacji (\\"
1651 "[Bq]host id\\[rq]). Te struktury danych zwykle nie mogą być modyfikowane w "
1652 "sposób niepodzielny. Ze względu na założenie, że identyfikator stacji nie "
1653 "powinien się zmieniać, funkcje odczytujące go (B<gethostid>(3)) są uważane "
1654 "za bezpieczne, natomiast funkcje go modyfikujące (B<sethostid>(3)) są "
1655 "oznaczane jako I<const:hostid> wskazując, że ich wywołanie może wymagać "
1656 "szczególnej uwagi. W tym konkretnym przypadku, szczególna uwagę należy "
1657 "zwrócić na koordynację na poziomie systemu (a nie jedynie wewnątrzprocesową)."
1658
1659 #. type: TH
1660 #: fedora-44 fedora-rawhide
1661 #, no-wrap
1662 msgid "2024-11-17"
1663 msgstr "17 listopada 2024 r."
1664
1665 #. type: TH
1666 #: fedora-44 fedora-rawhide
1667 #, no-wrap
1668 msgid "Linux man-pages 6.13"
1669 msgstr "Linux man-pages 6.13"
1670
1671 #. type: TH
1672 #: mageia-cauldron
1673 #, no-wrap
1674 msgid "Linux man-pages 6.17"
1675 msgstr "Linux man-pages 6.17"
1676
1677 #. type: TH
1678 #: opensuse-leap-16-1 opensuse-tumbleweed
1679 #, no-wrap
1680 msgid "Linux man-pages (unreleased)"
1681 msgstr "Linux man-pages (niewydane)"