Debian Codegraph @

po/ro/man3/pthread_key_create.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.21.0\n"
8 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
9 "PO-Revision-Date: 2025-06-09 11:19+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "pthread_key_create"
25 msgstr "pthread_key_create"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2025-05-17"
32 msgstr "17 mai 2025"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "pthread_key_create, pthread_key_delete, pthread_setspecific, "
52 "pthread_getspecific - management of thread-specific data"
53 msgstr ""
54 "pthread_key_create, pthread_key_delete, pthread_setspecific, "
55 "pthread_getspecific - gestionarea datelor specifice firului de execuție"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "SYNOPSIS"
62 msgstr "SINOPSIS"
63
64 #. type: Plain text
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "B<#include E<lt>pthread.hE<gt>>\n"
69 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid ""
76 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
77 "B< typeof(void (void *)) *>I<destr_function>B<;>\n"
78 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
79 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
80 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
81 msgstr ""
82 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
83 "B< typeof(void (void *)) *>I<destr_function>B<;>\n"
84 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
85 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
86 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr "DESCRIERE"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "Programs often need global or static variables that have different values in "
100 "different threads. Since threads share one memory space, this cannot be "
101 "achieved with regular variables. Thread-specific data is the POSIX threads "
102 "answer to this need."
103 msgstr ""
104 "Programele au adesea nevoie de variabile globale sau statice care au valori "
105 "diferite în diferite fire de execuție. Deoarece firele de execuție împart un "
106 "singur spațiu de memorie, acest lucru nu poate fi realizat cu variabile "
107 "obișnuite. Datele specifice firelor de execuție reprezintă răspunsul POSIX "
108 "la această necesitate."
109
110 #. type: Plain text
111 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
112 #: opensuse-tumbleweed
113 msgid ""
114 "Each thread possesses a private memory block, the thread-specific data area, "
115 "or TSD area for short. This area is indexed by TSD keys. The TSD area "
116 "associates values of type I<void\\ *> to TSD keys. TSD keys are common to "
117 "all threads, but the value associated with a given TSD key can be different "
118 "in each thread."
119 msgstr ""
120 "Fiecare fir de execuție are un bloc de memorie privat, zona de date "
121 "specifică firului de execuție sau, pe scurt, zona TSD. Această zonă este "
122 "indexată cu ajutorul cheilor TSD. Zona TSD asociază valori de tip I<void\\ "
123 "*> cheilor TSD. Cheile TSD sunt comune tuturor firelor, dar valoarea "
124 "asociată unei anumite chei TSD poate fi diferită în fiecare fir."
125
126 #. type: Plain text
127 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
128 #: opensuse-tumbleweed
129 msgid ""
130 "For concreteness, the TSD areas can be viewed as arrays of I<void\\ *> "
131 "pointers, TSD keys as integer indices into these arrays, and the value of a "
132 "TSD key as the value of the corresponding array element in the calling "
133 "thread."
134 msgstr ""
135 "Pentru a fi mai concreți, zonele TSD pot fi considerate ca fiind matrice de "
136 "indicatori I<void\\ *>, cheile TSD ca indici întregi în aceste matrice, iar "
137 "valoarea unei chei TSD ca valoare a elementului de matrice corespunzător în "
138 "firul de apelare."
139
140 #. type: Plain text
141 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
142 #: opensuse-tumbleweed
143 msgid ""
144 "When a thread is created, its TSD area initially associates NULL with all "
145 "keys."
146 msgstr ""
147 "Atunci când este creat un fir, zona TSD a acestuia asociază inițial NULL cu "
148 "toate cheile."
149
150 #. type: Plain text
151 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
152 #: opensuse-tumbleweed
153 msgid ""
154 "B<pthread_key_create>() allocates a new TSD key. The key is stored in the "
155 "location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> on "
156 "the number of keys allocated at a given time. The value initially "
157 "associated with the returned key is NULL in all currently executing threads."
158 msgstr ""
159 "B<pthread_key_create> alocă o nouă cheie TSD. Cheia este stocată în locația "
160 "indicată de I<key>. Există o limită de B<PTHREAD_KEYS_MAX> pentru numărul de "
161 "chei alocate la un moment dat. Valoarea asociată inițial cheii returnate "
162 "este NULL în toate firele de execuție în curs."
163
164 #. type: Plain text
165 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
166 #: opensuse-tumbleweed
167 msgid ""
168 "The I<destr_function> argument, if not NULL, specifies a destructor function "
169 "associated with the key. When a thread terminates via B<pthread_exit>() or "
170 "by cancelation, I<destr_function> is called with arguments the value "
171 "associated with the key in that thread. The I<destr_function> is not called "
172 "if that value is NULL. The order in which destructor functions are called "
173 "at thread termination time is unspecified."
174 msgstr ""
175 "Argumentul I<destr_function>, dacă nu este B<NULL>, specifică o funcție de "
176 "distrugere asociată cu cheia. Atunci când un fir de execuție se termină prin "
177 "B<pthread_exit> sau prin anulare, I<destr_function> este apelată cu "
178 "argumentele valorii asociate cheii în acel fir de execuție. "
179 "I<destr_function> nu este apelată dacă valoarea respectivă este NULL. "
180 "Ordinea în care sunt apelate funcțiile de distrugere în momentul terminării "
181 "firului nu este specificată."
182
183 #. type: Plain text
184 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
185 #: opensuse-tumbleweed
186 msgid ""
187 "Before the destructor function is called, the NULL value is associated with "
188 "the key in the current thread. A destructor function might, however, re-"
189 "associate non-NULL values to that key or some other key. To deal with this, "
190 "if after all the destructors have been called for all non-NULL values, there "
191 "are still some non-NULL values with associated destructors, then the process "
192 "is repeated. The glibc implementation stops the process after "
193 "B<PTHREAD_DESTRUCTOR_ITERATIONS> iterations, even if some non-NULL values "
194 "with associated descriptors remain. Other implementations may loop "
195 "indefinitely."
196 msgstr ""
197 "Înainte de apelarea funcției de distrugere, valoarea B<NULL> este asociată "
198 "cu cheia în firul curent. Cu toate acestea, o funcție de distrugere ar putea "
199 "reasocia valorile non-NULL la această cheie sau la o altă cheie. Pentru a "
200 "rezolva această problemă, dacă, după ce toți destructorii au fost apelați "
201 "pentru toate valorile non-B<NULL>, mai există încă valori non-NULL cu "
202 "destructori asociați, procesul se repetă. Implementarea „LinuxThreads” "
203 "oprește procesul după B<PTHREAD_DESTRUCTOR_ITERATIONS> iterații, chiar dacă "
204 "mai rămân câteva valori non-NULL cu descriptori asociați. Alte implementări "
205 "pot efectua bucle la nesfârșit."
206
207 #. type: Plain text
208 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
209 #: opensuse-tumbleweed
210 msgid ""
211 "B<pthread_key_delete>() deallocates a TSD key. It does not check whether "
212 "non-NULL values are associated with that key in the currently executing "
213 "threads, nor call the destructor function associated with the key."
214 msgstr ""
215 "B<pthread_key_delete> anulează alocarea unei chei TSD. Nu verifică dacă "
216 "există valori non-NULL asociate cu cheia respectivă în firele de execuție în "
217 "curs de execuție și nici nu apelează funcția de distrugere asociată cu cheia."
218
219 #. type: Plain text
220 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
221 #: opensuse-tumbleweed
222 msgid ""
223 "B<pthread_setspecific>() changes the value associated with I<key> in the "
224 "calling thread, storing the given I<pointer> instead."
225 msgstr ""
226 "B<pthread_setspecific> modifică valoarea asociată cu I<key> în firul de "
227 "apelare, stocând în schimb I<pointer>-ul dat."
228
229 #. type: Plain text
230 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
231 #: opensuse-tumbleweed
232 msgid ""
233 "B<pthread_getspecific>() returns the value currently associated with I<key> "
234 "in the calling thread."
235 msgstr ""
236 "B<pthread_getspecific> returnează valoarea asociată în prezent cu I<key> în "
237 "firul de apelare."
238
239 #. type: SH
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 #, no-wrap
243 msgid "RETURN VALUE"
244 msgstr "VALOAREA RETURNATĂ"
245
246 #. type: Plain text
247 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
248 #: opensuse-tumbleweed
249 msgid ""
250 "B<pthread_key_create>(), B<pthread_key_delete>(), and "
251 "B<pthread_setspecific>() return 0 on success and a non-zero error code on "
252 "failure. If successful, B<pthread_key_create>() stores the newly allocated "
253 "key in the location pointed to by its I<key> argument."
254 msgstr ""
255 "B<pthread_key_create>, B<pthread_key_delete> și B<pthread_setspecific> "
256 "returnează 0 în caz de succes și un cod de eroare diferit de zero în caz de "
257 "eșec. În caz de succes, B<pthread_key_create> stochează cheia nou alocată în "
258 "locația indicată de argumentul său I<key>."
259
260 #. type: Plain text
261 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
262 #: opensuse-tumbleweed
263 msgid ""
264 "B<pthread_getspecific>() returns the value associated with I<key> on "
265 "success, and NULL on error."
266 msgstr ""
267 "B<pthread_getspecific> returnează valoarea asociată cu I<key> în caz de "
268 "succes, și NULL în caz de eroare."
269
270 #. type: SH
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid "ERRORS"
275 msgstr "ERORI-IEȘIRE"
276
277 #. type: Plain text
278 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
279 #: opensuse-tumbleweed
280 msgid "B<pthread_key_create>() returns the following error code on error:"
281 msgstr ""
282 "În caz de eroare, B<pthread_key_create> returnează următorul cod de eroare:"
283
284 #. type: TP
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "B<EAGAIN>"
289 msgstr "B<EAGAIN>"
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid "B<PTHREAD_KEYS_MAX> keys are already allocated."
295 msgstr "Cheile B<PTHREAD_KEYS_MAX> sunt deja alocate."
296
297 #. type: Plain text
298 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
299 #: opensuse-tumbleweed
300 msgid ""
301 "B<pthread_key_delete>() and B<pthread_setspecific>() return the following "
302 "error code on error:"
303 msgstr ""
304 "În caz de eroare, B<pthread_key_delete> și B<pthread_setspecific> returnează "
305 "următorul cod de eroare:"
306
307 #. type: TP
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "B<EINVAL>"
312 msgstr "B<EINVAL>"
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid "I<key> is not a valid, allocated TSD key."
318 msgstr "I<key> nu este o cheie TSD validă, alocată."
319
320 #. type: Plain text
321 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
322 #: opensuse-tumbleweed
323 msgid ""
324 "B<pthread_getspecific>() returns NULL if I<key> is not a valid, allocated "
325 "TSD key."
326 msgstr ""
327 "B<pthread_getspecific> returnează B<NULL> dacă I<key> nu este o cheie TSD "
328 "validă, alocată."
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "SEE ALSO"
335 msgstr "CONSULTAȚI ȘI"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "pthread_create(3), pthread_exit(3), pthread_testcancel(3)."
341 msgstr "pthread_create(3), pthread_exit(3), pthread_testcancel(3)."
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "EXAMPLE"
348 msgstr "EXEMPLU"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "The following code fragment allocates a thread-specific array of 100 "
355 "characters, with automatic reclamation at thread exit:"
356 msgstr ""
357 "Următorul fragment de cod alocă o matrice de 100 de caractere specifică "
358 "firului de execuție, cu recuperare automată la ieșirea din fir:"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid ""
365 "B</* Key for the thread-specific buffer */\n"
366 "static pthread_key_t buffer_key;\n"
367 "\\&\n"
368 "/* Once-only initialisation of the key */\n"
369 "static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT;\n"
370 "\\&\n"
371 "/* Allocate the thread-specific buffer */\n"
372 "void buffer_alloc(void)\n"
373 "{\n"
374 " pthread_once(&buffer_key_once, buffer_key_alloc);\n"
375 " pthread_setspecific(buffer_key, malloc(100));\n"
376 "}\n"
377 "\\&\n"
378 "/* Return the thread-specific buffer */\n"
379 "char * get_buffer(void)\n"
380 "{\n"
381 " return (char *) pthread_getspecific(buffer_key);\n"
382 "}\n"
383 "\\&\n"
384 "/* Allocate the key */\n"
385 "static void buffer_key_alloc()\n"
386 "{\n"
387 " pthread_key_create(&buffer_key, buffer_destroy);\n"
388 "}\n"
389 "\\&\n"
390 "/* Free the thread-specific buffer */\n"
391 "static void buffer_destroy(void * buf)\n"
392 "{\n"
393 " free(buf);\n"
394 "}>\n"
395 msgstr ""
396 "B</* Cheia pentru memoria tampon specifică firului */\n"
397 "static pthread_key_t buffer_key;\n"
398 "\\&\n"
399 "/* O singură inițializare a cheii */\n"
400 "static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT;\n"
401 "\\&\n"
402 "/* Alocarea memoriei tampon specifice firului */\n"
403 "void buffer_alloc(void)\n"
404 "{\n"
405 " pthread_once(&buffer_key_once, buffer_key_alloc);\n"
406 " pthread_setspecific(buffer_key, malloc(100));\n"
407 "}\n"
408 "\\&\n"
409 "/* Returnează memoria tampon specifică firului */\n"
410 "char * get_buffer(void)\n"
411 "{\n"
412 " return (char *) pthread_getspecific(buffer_key);\n"
413 "}\n"
414 "\\&\n"
415 "/* Alocarea cheii */\n"
416 "static void buffer_key_alloc()\n"
417 "{\n"
418 " pthread_key_create(&buffer_key, buffer_destroy);\n"
419 "}\n"
420 "\\&\n"
421 "/* Eliberează memoria tampon specifică firului */\n"
422 "static void buffer_destroy(void * buf)\n"
423 "{\n"
424 " free(buf);\n"
425 "}>\n"
426
427 #. type: TH
428 #: debian-trixie
429 #, no-wrap
430 msgid "2024-06-16"
431 msgstr "16 iunie 2024"
432
433 #. type: TH
434 #: debian-trixie
435 #, no-wrap
436 msgid "Linux man-pages 6.9.1"
437 msgstr "Pagini de manual de Linux 6.9.1"
438
439 #. type: Plain text
440 #: debian-trixie
441 #, no-wrap
442 msgid ""
443 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
444 "B< void (*>I<destr_function>B<) (void *));>\n"
445 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
446 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
447 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
448 msgstr ""
449 "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n"
450 "B< void (*>I<destr_function>B<) (void *));>\n"
451 "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n"
452 "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n"
453 "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n"
454
455 #. type: Plain text
456 #: debian-trixie fedora-44 fedora-rawhide
457 msgid ""
458 "Each thread possesses a private memory block, the thread-specific data area, "
459 "or TSD area for short. This area is indexed by TSD keys. The TSD area "
460 "associates values of type B<void *> to TSD keys. TSD keys are common to all "
461 "threads, but the value associated with a given TSD key can be different in "
462 "each thread."
463 msgstr ""
464 "Fiecare fir de execuție are un bloc de memorie privat, zona de date "
465 "specifică firului de execuție sau, pe scurt, zona TSD. Această zonă este "
466 "indexată cu ajutorul cheilor TSD. Zona TSD asociază valori de tip B<void *> "
467 "cheilor TSD. Cheile TSD sunt comune tuturor firelor, dar valoarea asociată "
468 "unei anumite chei TSD poate fi diferită în fiecare fir."
469
470 #. type: Plain text
471 #: debian-trixie fedora-44 fedora-rawhide
472 msgid ""
473 "For concreteness, the TSD areas can be viewed as arrays of B<void *> "
474 "pointers, TSD keys as integer indices into these arrays, and the value of a "
475 "TSD key as the value of the corresponding array element in the calling "
476 "thread."
477 msgstr ""
478 "Pentru a fi mai concreți, zonele TSD pot fi considerate ca fiind matrice de "
479 "indicatori B<void *>, cheile TSD ca indici întregi în aceste matrice, iar "
480 "valoarea unei chei TSD ca valoare a elementului de matrice corespunzător în "
481 "firul de apelare."
482
483 #. type: Plain text
484 #: debian-trixie fedora-44 fedora-rawhide
485 msgid ""
486 "When a thread is created, its TSD area initially associates B<NULL> with all "
487 "keys."
488 msgstr ""
489 "Atunci când este creat un fir, zona TSD a acestuia asociază inițial B<NULL> "
490 "cu toate cheile."
491
492 #. type: Plain text
493 #: debian-trixie fedora-44 fedora-rawhide
494 msgid ""
495 "B<pthread_key_create> allocates a new TSD key. The key is stored in the "
496 "location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> on "
497 "the number of keys allocated at a given time. The value initially "
498 "associated with the returned key is B<NULL> in all currently executing "
499 "threads."
500 msgstr ""
501 "B<pthread_key_create> alocă o nouă cheie TSD. Cheia este stocată în locația "
502 "indicată de I<key>. Există o limită de B<PTHREAD_KEYS_MAX> pentru numărul de "
503 "chei alocate la un moment dat. Valoarea asociată inițial cheii returnate "
504 "este B<NULL> în toate firele de execuție în curs."
505
506 #. type: Plain text
507 #: debian-trixie fedora-44 fedora-rawhide
508 msgid ""
509 "The I<destr_function> argument, if not B<NULL>, specifies a destructor "
510 "function associated with the key. When a thread terminates via "
511 "B<pthread_exit> or by cancelation, I<destr_function> is called with "
512 "arguments the value associated with the key in that thread. The "
513 "I<destr_function> is not called if that value is B<NULL>. The order in "
514 "which destructor functions are called at thread termination time is "
515 "unspecified."
516 msgstr ""
517 "Argumentul I<destr_function>, dacă nu este B<NULL>, specifică o funcție de "
518 "distrugere asociată cu cheia. Atunci când un fir de execuție se termină prin "
519 "B<pthread_exit> sau prin anulare, I<destr_function> este apelată cu "
520 "argumentele valorii asociate cheii în acel fir de execuție. "
521 "I<destr_function> nu este apelată dacă valoarea respectivă este B<NULL>. "
522 "Ordinea în care sunt apelate funcțiile de distrugere în momentul terminării "
523 "firului nu este specificată."
524
525 #. type: Plain text
526 #: debian-trixie fedora-44 fedora-rawhide
527 msgid ""
528 "Before the destructor function is called, the B<NULL> value is associated "
529 "with the key in the current thread. A destructor function might, however, "
530 "re-associate non-B<NULL> values to that key or some other key. To deal with "
531 "this, if after all the destructors have been called for all non-B<NULL> "
532 "values, there are still some non-B<NULL> values with associated destructors, "
533 "then the process is repeated. The glibc implementation stops the process "
534 "after B<PTHREAD_DESTRUCTOR_ITERATIONS> iterations, even if some non-B<NULL> "
535 "values with associated descriptors remain. Other implementations may loop "
536 "indefinitely."
537 msgstr ""
538 "Înainte de apelarea funcției de distrugere, valoarea B<NULL> este asociată "
539 "cu cheia în firul curent. Cu toate acestea, o funcție de distrugere ar putea "
540 "reasocia valorile non-B<NULL> la această cheie sau la o altă cheie. Pentru a "
541 "rezolva această problemă, dacă, după ce toți destructorii au fost apelați "
542 "pentru toate valorile non-B<NULL>, mai există încă valori non-B<NULL> cu "
543 "destructori asociați, procesul se repetă. Implementarea „LinuxThreads” "
544 "oprește procesul după B<PTHREAD_DESTRUCTOR_ITERATIONS> iterații, chiar dacă "
545 "mai rămân câteva valori non-B<NULL> cu descriptori asociați. Alte "
546 "implementări pot efectua bucle la nesfârșit."
547
548 #. type: Plain text
549 #: debian-trixie fedora-44 fedora-rawhide
550 msgid ""
551 "B<pthread_key_delete> deallocates a TSD key. It does not check whether non-"
552 "B<NULL> values are associated with that key in the currently executing "
553 "threads, nor call the destructor function associated with the key."
554 msgstr ""
555 "B<pthread_key_delete> anulează alocarea unei chei TSD. Nu verifică dacă "
556 "există valori non-B<NULL> asociate cu cheia respectivă în firele de execuție "
557 "în curs de execuție și nici nu apelează funcția de distrugere asociată cu "
558 "cheia."
559
560 #. type: Plain text
561 #: debian-trixie fedora-44 fedora-rawhide
562 msgid ""
563 "B<pthread_setspecific> changes the value associated with I<key> in the "
564 "calling thread, storing the given I<pointer> instead."
565 msgstr ""
566 "B<pthread_setspecific> modifică valoarea asociată cu I<key> în firul de "
567 "apelare, stocând în schimb I<pointer>-ul dat."
568
569 #. type: Plain text
570 #: debian-trixie fedora-44 fedora-rawhide
571 msgid ""
572 "B<pthread_getspecific> returns the value currently associated with I<key> in "
573 "the calling thread."
574 msgstr ""
575 "B<pthread_getspecific> returnează valoarea asociată în prezent cu I<key> în "
576 "firul de apelare."
577
578 #. type: Plain text
579 #: debian-trixie fedora-44 fedora-rawhide
580 msgid ""
581 "B<pthread_key_create>, B<pthread_key_delete>, and B<pthread_setspecific> "
582 "return 0 on success and a non-zero error code on failure. If successful, "
583 "B<pthread_key_create> stores the newly allocated key in the location pointed "
584 "to by its I<key> argument."
585 msgstr ""
586 "B<pthread_key_create>, B<pthread_key_delete> și B<pthread_setspecific> "
587 "returnează 0 în caz de succes și un cod de eroare diferit de zero în caz de "
588 "eșec. În caz de succes, B<pthread_key_create> stochează cheia nou alocată în "
589 "locația indicată de argumentul său I<key>."
590
591 #. type: Plain text
592 #: debian-trixie fedora-44 fedora-rawhide
593 msgid ""
594 "B<pthread_getspecific> returns the value associated with I<key> on success, "
595 "and B<NULL> on error."
596 msgstr ""
597 "B<pthread_getspecific> returnează valoarea asociată cu I<key> în caz de "
598 "succes, și B<NULL> în caz de eroare."
599
600 #. type: Plain text
601 #: debian-trixie fedora-44 fedora-rawhide
602 msgid "B<pthread_key_create> returns the following error code on error:"
603 msgstr ""
604 "În caz de eroare, B<pthread_key_create> returnează următorul cod de eroare:"
605
606 #. type: Plain text
607 #: debian-trixie fedora-44 fedora-rawhide
608 msgid ""
609 "B<pthread_key_delete> and B<pthread_setspecific> return the following error "
610 "code on error:"
611 msgstr ""
612 "În caz de eroare, B<pthread_key_delete> și B<pthread_setspecific> returnează "
613 "următorul cod de eroare:"
614
615 #. type: Plain text
616 #: debian-trixie fedora-44 fedora-rawhide
617 msgid ""
618 "B<pthread_getspecific> returns B<NULL> if I<key> is not a valid, allocated "
619 "TSD key."
620 msgstr ""
621 "B<pthread_getspecific> returnează B<NULL> dacă I<key> nu este o cheie TSD "
622 "validă, alocată."
623
624 #. type: TH
625 #: fedora-44 fedora-rawhide
626 #, no-wrap
627 msgid "2025-01-11"
628 msgstr "11 ianuarie 2025"
629
630 #. type: TH
631 #: fedora-44 fedora-rawhide
632 #, no-wrap
633 msgid "Linux man-pages 6.13"
634 msgstr "Pagini de manual de Linux 6.13"
635
636 #. type: TH
637 #: mageia-cauldron
638 #, no-wrap
639 msgid "Linux man-pages 6.17"
640 msgstr "Pagini de manual de Linux 6.17"
641
642 #. type: TH
643 #: opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "Linux man-pages (unreleased)"
646 msgstr "Pagini de manual Linux (nepublicate)"