Debian Codegraph @

po/ro/man3/pthread_mutexattr_setrobust.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.24.0\n"
8 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
9 "PO-Revision-Date: 2025-11-05 19:33+0100\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.6\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_mutexattr_setrobust"
25 msgstr "pthread_mutexattr_setrobust"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "NUME"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "pthread_mutexattr_getrobust, pthread_mutexattr_setrobust - get and set the "
52 "robustness attribute of a mutex attributes object"
53 msgstr ""
54 "pthread_mutexattr_getrobust, pthread_mutexattr_setrobust - obține și "
55 "definește atributul de robustețe al unui obiect cu atribute mutex"
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 "LIBRARY"
62 msgstr "BIBLIOTECA"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
68 msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "SINOPSIS"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "B<#include E<lt>pthread.hE<gt>>\n"
82 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid ""
89 "B<int pthread_mutexattr_getrobust(const pthread_mutexattr_t *>I<attr>B<,>\n"
90 "B< int *>I<robustness>B<);>\n"
91 "B<int pthread_mutexattr_setrobust(pthread_mutexattr_t *>I<attr>B<,>\n"
92 "B< int >I<robustness>B<);>\n"
93 msgstr ""
94 "B<int pthread_mutexattr_getrobust(const pthread_mutexattr_t *>I<attr>B<,>\n"
95 "B< int *>I<robustness>B<);>\n"
96 "B<int pthread_mutexattr_setrobust(pthread_mutexattr_t *>I<attr>B<,>\n"
97 "B< int >I<robustness>B<);>\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
104 msgstr ""
105 "Cerințe pentru macrocomenzi de testare a caracteristicilor pentru glibc "
106 "(consultați B<feature_test_macros>(7)):"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid "B<pthread_mutexattr_getrobust>(), B<pthread_mutexattr_setrobust>():"
112 msgstr "B<pthread_mutexattr_getrobust>(), B<pthread_mutexattr_setrobust>():"
113
114 #. FIXME .
115 #. But see https://sourceware.org/bugzilla/show_bug.cgi?id=22125
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid " _POSIX_C_SOURCE E<gt>= 200809L\n"
121 msgstr " _POSIX_C_SOURCE E<gt>= 200809L\n"
122
123 #. type: SH
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid "DESCRIPTION"
128 msgstr "DESCRIERE"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "The B<pthread_mutexattr_getrobust>() function places the value of the "
135 "robustness attribute of the mutex attributes object referred to by I<attr> "
136 "in I<*robustness>. The B<pthread_mutexattr_setrobust>() function sets the "
137 "value of the robustness attribute of the mutex attributes object referred to "
138 "by I<attr> to the value specified in I<*robustness>."
139 msgstr ""
140 "Funcția B<pthread_mutexattr_getrobust>() plasează în I<*robustness> valoarea "
141 "atributului de robustețe al obiectului de atribute mutex la care se referă "
142 "I<attr>. Funcția B<pthread_mutexattr_setrobust>() stabilește valoarea "
143 "atributului robustețe al obiectului atribute mutex la care face referire "
144 "I<attr> la valoarea specificată în I<*robustness>."
145
146 #. type: Plain text
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 msgid ""
150 "The robustness attribute specifies the behavior of the mutex when the owning "
151 "thread dies without unlocking the mutex. The following values are valid for "
152 "I<robustness>:"
153 msgstr ""
154 "Atributul „robustness” specifică comportamentul mutex-ului atunci când firul "
155 "proprietar moare fără să deblocheze mutex-ul. Următoarele valori sunt "
156 "valabile pentru I<robustness>:"
157
158 #. type: TP
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "B<PTHREAD_MUTEX_STALLED>"
163 msgstr "B<PTHREAD_MUTEX_STALLED>"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "This is the default value for a mutex attributes object. If a mutex is "
170 "initialized with the B<PTHREAD_MUTEX_STALLED> attribute and its owner dies "
171 "without unlocking it, the mutex remains locked afterwards and any future "
172 "attempts to call B<pthread_mutex_lock>(3) on the mutex will block "
173 "indefinitely."
174 msgstr ""
175 "Aceasta este valoarea implicită pentru un obiect cu atribute mutex. Dacă un "
176 "mutex este inițializat cu atributul B<PTHREAD_MUTEX_STALLED> și proprietarul "
177 "său moare fără să-l deblocheze, mutex-ul rămâne blocat ulterior și orice "
178 "încercare viitoare de a apela B<pthread_mutex_lock>(3) pe mutex se va bloca "
179 "pe termen nelimitat."
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "B<PTHREAD_MUTEX_ROBUST>"
186 msgstr "B<PTHREAD_MUTEX_ROBUST>"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "If a mutex is initialized with the B<PTHREAD_MUTEX_ROBUST> attribute and its "
193 "owner dies without unlocking it, any future attempts to call "
194 "B<pthread_mutex_lock>(3) on this mutex will succeed and return "
195 "B<EOWNERDEAD> to indicate that the original owner no longer exists and the "
196 "mutex is in an inconsistent state. Usually after B<EOWNERDEAD> is returned, "
197 "the next owner should call B<pthread_mutex_consistent>(3) on the acquired "
198 "mutex to make it consistent again before using it any further."
199 msgstr ""
200 "Dacă un mutex este inițializat cu atributul B<PTHREAD_MUTEX_ROBUST> și "
201 "proprietarul său moare fără a-l debloca, orice încercare viitoare de a apela "
202 "B<pthread_mutex_lock>(3) pe acest mutex va reuși și va returna B<EOWNERDEAD> "
203 "pentru a indica faptul că proprietarul inițial nu mai există și că mutex-ul "
204 "este într-o stare inconsistentă. De obicei, după ce B<EOWNERDEAD> este "
205 "returnat, următorul proprietar ar trebui să apeleze "
206 "B<pthread_mutex_consistent>(3) pe mutex-ul achiziționat pentru a-l face din "
207 "nou consistent înainte de a-l utiliza în continuare."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "If the next owner unlocks the mutex using B<pthread_mutex_unlock>(3) before "
214 "making it consistent, the mutex will be permanently unusable and any "
215 "subsequent attempts to lock it using B<pthread_mutex_lock>(3) will fail "
216 "with the error B<ENOTRECOVERABLE>. The only permitted operation on such a "
217 "mutex is B<pthread_mutex_destroy>(3)."
218 msgstr ""
219 "Dacă următorul proprietar deblochează mutex-ul folosind "
220 "B<pthread_mutex_unlock>(3) înainte de a-l face consistent, mutex-ul va fi "
221 "permanent inutilizabil și orice încercare ulterioară de a-l bloca folosind "
222 "B<pthread_mutex_lock>(3) va eșua cu eroarea B<ENOTRECOVERABLE>. Singura "
223 "operație permisă pe un astfel de mutex este B<pthread_mutex_destroy>(3)."
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "If the next owner terminates before calling B<pthread_mutex_consistent>(3), "
230 "further B<pthread_mutex_lock>(3) operations on this mutex will still return "
231 "B<EOWNERDEAD>."
232 msgstr ""
233 "Dacă următorul proprietar încetează activitatea înainte de a apela "
234 "B<pthread_mutex_consistent>(3), operațiile ulterioare "
235 "B<pthread_mutex_lock>(3) asupra acestui mutex vor returna în continuare "
236 "B<EOWNERDEAD>."
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid ""
242 "Note that the I<attr> argument of B<pthread_mutexattr_getrobust>() and "
243 "B<pthread_mutexattr_setrobust>() should refer to a mutex attributes object "
244 "that was initialized by B<pthread_mutexattr_init>(3), otherwise the behavior "
245 "is undefined."
246 msgstr ""
247 "Rețineți că argumentul I<attr> din B<pthread_mutexattr_getrobust>() și "
248 "B<pthread_mutexattr_setrobust>() trebuie să se refere la un obiect de "
249 "atribute mutex care a fost inițializat de B<pthread_mutexattr_init>(3), în "
250 "caz contrar comportamentul este indefinit."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "RETURN VALUE"
257 msgstr "VALOAREA RETURNATĂ"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "On success, these functions return 0. On error, they return a positive "
264 "error number."
265 msgstr ""
266 "În caz de succes, aceste funcții returnează 0. În caz de eroare, acestea "
267 "returnează un număr pozitiv de eroare."
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "In the glibc implementation, B<pthread_mutexattr_getrobust>() always return "
274 "zero."
275 msgstr ""
276 "În implementarea glibc, B<pthread_mutexattr_getrobust>() returnează "
277 "întotdeauna zero."
278
279 #. type: SH
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "ERRORS"
284 msgstr "ERORI-IEȘIRE"
285
286 #. type: TP
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "B<EINVAL>"
291 msgstr "B<EINVAL>"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "A value other than B<PTHREAD_MUTEX_STALLED> or B<PTHREAD_MUTEX_ROBUST> was "
298 "passed to B<pthread_mutexattr_setrobust>()."
299 msgstr ""
300 "O altă valoare decât B<PTHREAD_MUTEX_STALLED> sau B<PTHREAD_MUTEX_ROBUST> a "
301 "fost trecută la B<pthread_mutexattr_setrobust>()."
302
303 #. type: SH
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "VERSIONS"
308 msgstr "VERSIUNI"
309
310 #. E.g., Solaris, according to its manual page
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid ""
315 "In the Linux implementation, when using process-shared robust mutexes, a "
316 "waiting thread also receives the B<EOWNERDEAD> notification if the owner of "
317 "a robust mutex performs an B<execve>(2) without first unlocking the mutex. "
318 "POSIX.1 does not specify this detail, but the same behavior also occurs in "
319 "at least some other implementations."
320 msgstr ""
321 "În implementarea Linux, atunci când se utilizează mutex-uri robuste "
322 "partajate de proces, un fir în așteptare primește și notificarea "
323 "B<EOWNERDEAD> dacă proprietarul unui mutex robust efectuează un B<execve>(2) "
324 "fără a debloca mai întâi mutex-ul. POSIX.1 nu specifică acest detaliu, dar "
325 "același comportament apare și în cel puțin alte implementări."
326
327 #. type: SH
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "STANDARDS"
332 msgstr "STANDARDE"
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid "POSIX.1-2008."
338 msgstr "POSIX.1-2008."
339
340 #. type: SH
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "HISTORY"
345 msgstr "ISTORIC"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "glibc 2.12. POSIX.1-2008."
351 msgstr "glibc 2.12. POSIX.1-2008."
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "Before the addition of B<pthread_mutexattr_getrobust>() and "
358 "B<pthread_mutexattr_setrobust>() to POSIX, glibc defined the following "
359 "equivalent nonstandard functions if B<_GNU_SOURCE> was defined:"
360 msgstr ""
361 "Înainte de adăugarea la POSIX a funcțiilor B<pthread_mutexattr_getrobust>() "
362 "și B<pthread_mutexattr_setrobust>(), glibc a definit următoarele funcții non-"
363 "standard echivalente dacă B<_GNU_SOURCE> era definită:"
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid ""
370 "B<[[deprecated]]>\n"
371 "B<int pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
372 "B< int *>I<robustness>B<);>\n"
373 "B<[[deprecated]]>\n"
374 "B<int pthread_mutexattr_setrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
375 "B< int >I<robustness>B<);>\n"
376 msgstr ""
377 "B<[[depreciat]>\n"
378 "B<int pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
379 "B< int *>I<robustness>B<);>\n"
380 "B<[[depreciat]>\n"
381 "B<int pthread_mutexattr_setrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
382 "B< int >I<robustness>B<);>\n"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "Correspondingly, the constants B<PTHREAD_MUTEX_STALLED_NP> and "
389 "B<PTHREAD_MUTEX_ROBUST_NP> were also defined."
390 msgstr ""
391 "În consecință, au fost definite și constantele B<PTHREAD_MUTEX_STALLED_NP> "
392 "și B<PTHREAD_MUTEX_ROBUST_NP>."
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "These GNU-specific APIs, which first appeared in glibc 2.4, are nowadays "
399 "obsolete and should not be used in new programs; since glibc 2.34 these APIs "
400 "are marked as deprecated."
401 msgstr ""
402 "Aceste API-uri specifice GNU, care au apărut pentru prima dată în glibc 2.4, "
403 "sunt în prezent învechite și nu ar trebui utilizate în programe noi; "
404 "începând cu glibc 2.34 aceste API-uri sunt marcate ca fiind depreciate."
405
406 #. type: SH
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "EXAMPLES"
411 msgstr "EXEMPLE"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid ""
417 "The program below demonstrates the use of the robustness attribute of a "
418 "mutex attributes object. In this program, a thread holding the mutex dies "
419 "prematurely without unlocking the mutex. The main thread subsequently "
420 "acquires the mutex successfully and gets the error B<EOWNERDEAD>, after "
421 "which it makes the mutex consistent."
422 msgstr ""
423 "Programul de mai jos demonstrează utilizarea atributului „robustness” al "
424 "unui obiect cu atribute mutex. În acest program, un fir care deține mutex-ul "
425 "moare prematur fără să deblocheze mutex-ul. Firul principal dobândește "
426 "ulterior mutex-ul cu succes și primește eroarea B<EOWNERDEAD>, după care "
427 "face mutex-ul consistent."
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid ""
433 "The following shell session shows what we see when running this program:"
434 msgstr "Următoarea sesiune shell arată ce vedem la rularea acestui program:"
435
436 #. type: Plain text
437 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
438 #: opensuse-tumbleweed
439 #, no-wrap
440 msgid ""
441 "$B< ./a.out>;\n"
442 "[original owner] Setting lock...\n"
443 "[original owner] Locked. Now exiting without unlocking.\n"
444 "[main] Attempting to lock the robust mutex.\n"
445 "[main] pthread_mutex_lock() returned EOWNERDEAD\n"
446 "[main] Now make the mutex consistent\n"
447 "[main] Mutex is now consistent; unlocking\n"
448 msgstr ""
449 "$B< ./a.out>;\n"
450 "[proprietarul original ] Amplasarea blocării...\n"
451 "[proprietarul original] Blocat. Acum ies fără să deblochez.\n"
452 "[main] Se încearcă blocarea mutex-ului robust.\n"
453 "[main] pthread_mutex_lock() a returnat EOWNERDEAD\n"
454 "[main] Acum se face mutex-ul consistent\n"
455 "[main] Mutex-ul este acum consistent; se deblochează\n"
456
457 #. type: SS
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "Program source"
462 msgstr "Sursa programului"
463
464 #. type: Plain text
465 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
466 #: opensuse-tumbleweed
467 #, no-wrap
468 msgid ""
469 "#include E<lt>err.hE<gt>\n"
470 "#include E<lt>errno.hE<gt>\n"
471 "#include E<lt>pthread.hE<gt>\n"
472 "#include E<lt>stdio.hE<gt>\n"
473 "#include E<lt>stdlib.hE<gt>\n"
474 "#include E<lt>unistd.hE<gt>\n"
475 "\\&\n"
476 "static pthread_mutex_t mtx;\n"
477 "\\&\n"
478 "static void *\n"
479 "original_owner_thread(void *ptr)\n"
480 "{\n"
481 " printf(\"[original owner] Setting lock...\\[rs]n\");\n"
482 " pthread_mutex_lock(&mtx);\n"
483 " printf(\"[original owner] Locked. Now exiting without unlocking.\\[rs]n\");\n"
484 " pthread_exit(NULL);\n"
485 "}\n"
486 "\\&\n"
487 "int\n"
488 "main(void)\n"
489 "{\n"
490 " pthread_t thr;\n"
491 " pthread_mutexattr_t attr;\n"
492 " int s;\n"
493 "\\&\n"
494 " pthread_mutexattr_init(&attr);\n"
495 "\\&\n"
496 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
497 "\\&\n"
498 " pthread_mutex_init(&mtx, &attr);\n"
499 "\\&\n"
500 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
501 "\\&\n"
502 " sleep(2);\n"
503 "\\&\n"
504 " /* \"original_owner_thread\" should have exited by now. */\n"
505 "\\&\n"
506 " printf(\"[main] Attempting to lock the robust mutex.\\[rs]n\");\n"
507 " s = pthread_mutex_lock(&mtx);\n"
508 " if (s == EOWNERDEAD) {\n"
509 " printf(\"[main] pthread_mutex_lock() returned EOWNERDEAD\\[rs]n\");\n"
510 " printf(\"[main] Now make the mutex consistent\\[rs]n\");\n"
511 " s = pthread_mutex_consistent(&mtx);\n"
512 " if (s != 0)\n"
513 " errc(EXIT_FAILURE, s, \"pthread_mutex_consistent\");\n"
514 " printf(\"[main] Mutex is now consistent; unlocking\\[rs]n\");\n"
515 " s = pthread_mutex_unlock(&mtx);\n"
516 " if (s != 0)\n"
517 " errc(EXIT_FAILURE, s, \"pthread_mutex_unlock\");\n"
518 "\\&\n"
519 " exit(EXIT_SUCCESS);\n"
520 " } else if (s == 0) {\n"
521 " printf(\"[main] pthread_mutex_lock() unexpectedly succeeded\\[rs]n\");\n"
522 " exit(EXIT_FAILURE);\n"
523 " } else {\n"
524 " printf(\"[main] pthread_mutex_lock() unexpectedly failed\\[rs]n\");\n"
525 " errc(EXIT_FAILURE, s, \"pthread_mutex_lock\");\n"
526 " }\n"
527 "}\n"
528 msgstr ""
529 "#include E<lt>err.hE<gt>\n"
530 "#include E<lt>errno.hE<gt>\n"
531 "#include E<lt>pthread.hE<gt>\n"
532 "#include E<lt>stdio.hE<gt>\n"
533 "#include E<lt>stdlib.hE<gt>\n"
534 "#include E<lt>unistd.hE<gt>\n"
535 "\\&\n"
536 "static pthread_mutex_t mtx;\n"
537 "\\&\n"
538 "static void *\n"
539 "original_owner_thread(void *ptr)\n"
540 "{\n"
541 " printf(\"[proprietarul original ] Amplasarea blocării...\\[rs]n\");\n"
542 " pthread_mutex_lock(&mtx);\n"
543 " printf(\"[proprietarul original] Blocat. Acum ies fără să deblochez.\\[rs]n\");\n"
544 " pthread_exit(NULL);\n"
545 "}\n"
546 "\\&\n"
547 "int\n"
548 "main(void)\n"
549 "{\n"
550 " pthread_t thr;\n"
551 " pthread_mutexattr_t attr;\n"
552 " int s;\n"
553 "\\&\n"
554 " pthread_mutexattr_init(&attr);\n"
555 "\\&\n"
556 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
557 "\\&\n"
558 " pthread_mutex_init(&mtx, &attr);\n"
559 "\\&\n"
560 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
561 "\\&\n"
562 " sleep(2);\n"
563 "\\&\n"
564 " /* „original_owner_thread” ar trebui să fi ieșit până acum. */\n"
565 "\\&\n"
566 " printf(\"[main] Se încearcă blocarea mutex-ului robust.\\[rs]n\");\n"
567 " s = pthread_mutex_lock(&mtx);\n"
568 " if (s == EOWNERDEAD) {\n"
569 " printf(\"[main] pthread_mutex_lock() a returnat EOWNERDEAD\\[rs]n\");\n"
570 " printf(\"[main] Acum se face mutex-ul consistent\\[rs]n\");\n"
571 " s = pthread_mutex_consistent(&mtx);\n"
572 " if (s != 0)\n"
573 " errc(EXIT_FAILURE, s, \"pthread_mutex_consistent\");\n"
574 " printf(\"[main] Mutex-ul este acum consistent; se deblochează\\[rs]n\");\n"
575 " s = pthread_mutex_unlock(&mtx);\n"
576 " if (s != 0)\n"
577 " errc(EXIT_FAILURE, s, \"pthread_mutex_unlock\");\n"
578 "\\&\n"
579 " exit(EXIT_SUCCESS);\n"
580 " } else if (s == 0) {\n"
581 " printf(\"[main] pthread_mutex_lock() a reușit în mod neașteptat\\[rs]n\");\n"
582 " exit(EXIT_FAILURE);\n"
583 " } else {\n"
584 " printf(\"[main] pthread_mutex_lock() a eșuat în mod neașteptat[main]\\[rs]n\");\n"
585 " errc(EXIT_FAILURE, s, \"pthread_mutex_lock\");\n"
586 " }\n"
587 "}\n"
588
589 #. SRC END
590 #. type: SH
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "SEE ALSO"
595 msgstr "CONSULTAȚI ȘI"
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid ""
601 "B<get_robust_list>(2), B<set_robust_list>(2), "
602 "B<pthread_mutex_consistent>(3), B<pthread_mutex_init>(3), "
603 "B<pthread_mutex_lock>(3), B<pthreads>(7)"
604 msgstr ""
605 "B<get_robust_list>(2), B<set_robust_list>(2), "
606 "B<pthread_mutex_consistent>(3), B<pthread_mutex_init>(3), "
607 "B<pthread_mutex_lock>(3), B<pthreads>(7)"
608
609 #. type: TH
610 #: debian-trixie
611 #, no-wrap
612 msgid "2024-06-15"
613 msgstr "15 iunie 2024"
614
615 #. type: TH
616 #: debian-trixie
617 #, no-wrap
618 msgid "Linux man-pages 6.9.1"
619 msgstr "Pagini de manual de Linux 6.9.1"
620
621 #. type: Plain text
622 #: debian-trixie
623 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
624 msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)"
625
626 #. type: Plain text
627 #: debian-trixie fedora-44 fedora-rawhide
628 #, no-wrap
629 msgid ""
630 "$ B<./a.out>\n"
631 "[original owner] Setting lock...\n"
632 "[original owner] Locked. Now exiting without unlocking.\n"
633 "[main] Attempting to lock the robust mutex.\n"
634 "[main] pthread_mutex_lock() returned EOWNERDEAD\n"
635 "[main] Now make the mutex consistent\n"
636 "[main] Mutex is now consistent; unlocking\n"
637 msgstr ""
638 "$ B<./a.out>\n"
639 "[proprietarul original ] Amplasarea blocării...\n"
640 "[proprietarul original] Blocat. Acum ies fără să deblochez.\n"
641 "[main] Se încearcă blocarea mutex-ului robust.\n"
642 "[main] pthread_mutex_lock() a returnat EOWNERDEAD\n"
643 "[main] Acum se face mutex-ul consistent\n"
644 "[main] Mutex-ul este acum consistent; se deblochează\n"
645
646 #. type: Plain text
647 #: debian-trixie fedora-44 fedora-rawhide
648 #, no-wrap
649 msgid ""
650 "#include E<lt>errno.hE<gt>\n"
651 "#include E<lt>pthread.hE<gt>\n"
652 "#include E<lt>stdio.hE<gt>\n"
653 "#include E<lt>stdlib.hE<gt>\n"
654 "#include E<lt>unistd.hE<gt>\n"
655 "\\&\n"
656 "#define handle_error_en(en, msg) \\[rs]\n"
657 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
658 "\\&\n"
659 "static pthread_mutex_t mtx;\n"
660 "\\&\n"
661 "static void *\n"
662 "original_owner_thread(void *ptr)\n"
663 "{\n"
664 " printf(\"[original owner] Setting lock...\\[rs]n\");\n"
665 " pthread_mutex_lock(&mtx);\n"
666 " printf(\"[original owner] Locked. Now exiting without unlocking.\\[rs]n\");\n"
667 " pthread_exit(NULL);\n"
668 "}\n"
669 "\\&\n"
670 "int\n"
671 "main(void)\n"
672 "{\n"
673 " pthread_t thr;\n"
674 " pthread_mutexattr_t attr;\n"
675 " int s;\n"
676 "\\&\n"
677 " pthread_mutexattr_init(&attr);\n"
678 "\\&\n"
679 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
680 "\\&\n"
681 " pthread_mutex_init(&mtx, &attr);\n"
682 "\\&\n"
683 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
684 "\\&\n"
685 " sleep(2);\n"
686 "\\&\n"
687 " /* \"original_owner_thread\" should have exited by now. */\n"
688 "\\&\n"
689 " printf(\"[main] Attempting to lock the robust mutex.\\[rs]n\");\n"
690 " s = pthread_mutex_lock(&mtx);\n"
691 " if (s == EOWNERDEAD) {\n"
692 " printf(\"[main] pthread_mutex_lock() returned EOWNERDEAD\\[rs]n\");\n"
693 " printf(\"[main] Now make the mutex consistent\\[rs]n\");\n"
694 " s = pthread_mutex_consistent(&mtx);\n"
695 " if (s != 0)\n"
696 " handle_error_en(s, \"pthread_mutex_consistent\");\n"
697 " printf(\"[main] Mutex is now consistent; unlocking\\[rs]n\");\n"
698 " s = pthread_mutex_unlock(&mtx);\n"
699 " if (s != 0)\n"
700 " handle_error_en(s, \"pthread_mutex_unlock\");\n"
701 "\\&\n"
702 " exit(EXIT_SUCCESS);\n"
703 " } else if (s == 0) {\n"
704 " printf(\"[main] pthread_mutex_lock() unexpectedly succeeded\\[rs]n\");\n"
705 " exit(EXIT_FAILURE);\n"
706 " } else {\n"
707 " printf(\"[main] pthread_mutex_lock() unexpectedly failed\\[rs]n\");\n"
708 " handle_error_en(s, \"pthread_mutex_lock\");\n"
709 " }\n"
710 "}\n"
711 msgstr ""
712 "#include E<lt>errno.hE<gt>\n"
713 "#include E<lt>pthread.hE<gt>\n"
714 "#include E<lt>stdio.hE<gt>\n"
715 "#include E<lt>stdlib.hE<gt>\n"
716 "#include E<lt>unistd.hE<gt>\n"
717 "\\&\n"
718 "#define handle_error_en(en, msg) \\[rs]\n"
719 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
720 "\\&\n"
721 "static pthread_mutex_t mtx;\n"
722 "\\&\n"
723 "static void *\n"
724 "original_owner_thread(void *ptr)\n"
725 "{\n"
726 " printf(\"[proprietarul original ] Amplasarea blocării...\\[rs]n\");\n"
727 " pthread_mutex_lock(&mtx);\n"
728 " printf(\"[proprietarul original] Blocat. Acum ies fără să deblochez.\\[rs]n\");\n"
729 " pthread_exit(NULL);\n"
730 "}\n"
731 "\\&\n"
732 "int\n"
733 "main(void)\n"
734 "{\n"
735 " pthread_t thr;\n"
736 " pthread_mutexattr_t attr;\n"
737 " int s;\n"
738 "\\&\n"
739 " pthread_mutexattr_init(&attr);\n"
740 "\\&\n"
741 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
742 "\\&\n"
743 " pthread_mutex_init(&mtx, &attr);\n"
744 "\\&\n"
745 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
746 "\\&\n"
747 " sleep(2);\n"
748 "\\&\n"
749 " /* „original_owner_thread” ar trebui să fi ieșit până acum. */\n"
750 "\\&\n"
751 " printf(\"[main] Se încearcă blocarea mutex-ului robust.\\[rs]n\");\n"
752 " s = pthread_mutex_lock(&mtx);\n"
753 " if (s == EOWNERDEAD) {\n"
754 " printf(\"[main] pthread_mutex_lock() a returnat EOWNERDEAD\\[rs]n\");\n"
755 " printf(\"[main] Acum se face mutex-ul consistent\\[rs]n\");\n"
756 " s = pthread_mutex_consistent(&mtx);\n"
757 " if (s != 0)\n"
758 " handle_error_en(s, \"pthread_mutex_consistent\");\n"
759 " printf(\"[main] Mutex-ul este acum consistent; se deblochează\\[rs]n\");\n"
760 " s = pthread_mutex_unlock(&mtx);\n"
761 " if (s != 0)\n"
762 " handle_error_en(s, \"pthread_mutex_unlock\");\n"
763 "\\&\n"
764 " exit(EXIT_SUCCESS);\n"
765 " } else if (s == 0) {\n"
766 " printf(\"[main] pthread_mutex_lock() a reușit în mod neașteptat\\[rs]n\");\n"
767 " exit(EXIT_FAILURE);\n"
768 " } else {\n"
769 " printf(\"[main] pthread_mutex_lock() a eșuat în mod neașteptat[main]\\[rs]n\");\n"
770 " handle_error_en(s, \"pthread_mutex_lock\");\n"
771 " }\n"
772 "}\n"
773
774 #. type: TH
775 #: fedora-44 fedora-rawhide
776 #, no-wrap
777 msgid "2024-07-23"
778 msgstr "23 iulie 2024"
779
780 #. type: TH
781 #: fedora-44 fedora-rawhide
782 #, no-wrap
783 msgid "Linux man-pages 6.13"
784 msgstr "Pagini de manual de Linux 6.13"
785
786 #. type: TH
787 #: mageia-cauldron
788 #, no-wrap
789 msgid "Linux man-pages 6.17"
790 msgstr "Pagini de manual de Linux 6.17"
791
792 #. type: TH
793 #: opensuse-leap-16-1 opensuse-tumbleweed
794 #, no-wrap
795 msgid "Linux man-pages (unreleased)"
796 msgstr "Pagini de manual Linux (nepublicate)"