Debian Codegraph @

po/ro/man3/backtrace.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.22.0\n"
8 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
9 "PO-Revision-Date: 2025-11-05 09:34+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 "backtrace"
25 msgstr "backtrace"
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 "backtrace, backtrace_symbols, backtrace_symbols_fd - support for application "
52 "self-debugging"
53 msgstr ""
54 "backtrace, backtrace_symbols, backtrace_symbols_fd - suport pentru auto-"
55 "depanarea aplicației"
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 "Standard C library (I<libc>,\\ I<-lc>)"
68 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
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>execinfo.hE<gt>>\n"
82 msgstr "B<#include E<lt>execinfo.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
86 #: opensuse-tumbleweed
87 #, no-wrap
88 msgid ""
89 "B<int backtrace(>int size;\n"
90 "B< void *>I<buffer>B<[>I<size>B<], int >I<size>B<);>\n"
91 msgstr ""
92 "B<int backtrace(>int size;\n"
93 "B< void *>I<buffer>B<[>I<size>B<], int >I<size>B<);>\n"
94
95 #. type: Plain text
96 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
97 #: opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<char **backtrace_symbols(>int size;\n"
101 "B< void *const >I<buffer>B<[>I<size>B<], int >I<size>B<);>\n"
102 "B<void backtrace_symbols_fd(>int size;\n"
103 "B< void *const >I<buffer>B<[>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n"
104 msgstr ""
105 "B<char **backtrace_symbols(>int size;\n"
106 "B< void *const >I<buffer>B<[>I<size>B<], int >I<size>B<);>\n"
107 "B<void backtrace_symbols_fd(>int size;\n"
108 "B< void *const >I<buffer>B<[>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n"
109
110 #. type: SH
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid "DESCRIPTION"
115 msgstr "DESCRIERE"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "B<backtrace>() returns a backtrace for the calling program, in the array "
122 "pointed to by I<buffer>. A backtrace is the series of currently active "
123 "function calls for the program. Each item in the array pointed to by "
124 "I<buffer> is of type I<void\\ *>, and is the return address from the "
125 "corresponding stack frame. The I<size> argument specifies the maximum "
126 "number of addresses that can be stored in I<buffer>. If the backtrace is "
127 "larger than I<size>, then the addresses corresponding to the I<size> most "
128 "recent function calls are returned; to obtain the complete backtrace, make "
129 "sure that I<buffer> and I<size> are large enough."
130 msgstr ""
131 "B<backtrace>() returnează un traseu de urmărire pentru programul apelant, în "
132 "matricea indicată de I<buffer>. Un traseu de urmărire reprezintă seria de "
133 "apeluri de funcții active în acel moment pentru program. Fiecare element din "
134 "matricea indicată de I<buffer> este de tip I<void\\ *> și reprezintă adresa "
135 "de returnare din cadrul stivei corespunzătoare. Argumentul I<size> specifică "
136 "numărul maxim de adrese care pot fi stocate în I<buffer>. Dacă traseul de "
137 "urmărire este mai mare decât I<size>, atunci sunt returnate adresele "
138 "corespunzătoare celor mai recente apeluri de funcție I<size>; pentru a "
139 "obține traseul complet, asigurați-vă că I<buffer> și I<size> sunt suficient "
140 "de mari."
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "Given the set of addresses returned by B<backtrace>() in I<buffer>, "
147 "B<backtrace_symbols>() translates the addresses into an array of strings "
148 "that describe the addresses symbolically. The I<size> argument specifies "
149 "the number of addresses in I<buffer>. The symbolic representation of each "
150 "address consists of the function name (if this can be determined), a "
151 "hexadecimal offset into the function, and the actual return address (in "
152 "hexadecimal). The address of the array of string pointers is returned as "
153 "the function result of B<backtrace_symbols>(). This array is B<malloc>(3)ed "
154 "by B<backtrace_symbols>(), and must be freed by the caller. (The strings "
155 "pointed to by the array of pointers need not and should not be freed.)"
156 msgstr ""
157 "Având în vedere setul de adrese returnate de B<backtrace>() în I<buffer>, "
158 "B<backtrace_symbols>() traduce adresele într-o matrice de șiruri care "
159 "descriu simbolic adresele. Argumentul I<size> specifică numărul de adrese "
160 "din I<buffer>. Reprezentarea simbolică a fiecărei adrese constă în numele "
161 "funcției (dacă acesta poate fi determinat), un decalaj hexazecimal în "
162 "interiorul funcției și adresa reală de returnare (în hexazecimal). Adresa "
163 "matricei de indicatori de șiruri este returnată ca rezultat al funcției "
164 "B<backtrace_symbols>(). Această matrice este alocată în memorie "
165 "„B<malloc>(3)” de B<backtrace_symbols>() și trebuie eliberată de către "
166 "apelant; (șirurile indicate de matricea de indicatori nu au nevoie și nu "
167 "trebuie să fie eliberate)."
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "B<backtrace_symbols_fd>() takes the same I<buffer> and I<size> arguments as "
174 "B<backtrace_symbols>(), but instead of returning an array of strings to the "
175 "caller, it writes the strings, one per line, to the file descriptor I<fd>. "
176 "B<backtrace_symbols_fd>() does not call B<malloc>(3), and so can be "
177 "employed in situations where the latter function might fail, but see NOTES."
178 msgstr ""
179 "B<backtrace_symbols_fd>() primește aceleași argumente I<buffer> și I<size> "
180 "ca și B<backtrace_symbols>(), dar în loc să returneze o matrice de șiruri "
181 "către apelant, scrie șirurile, câte unul pe linie, în descriptorul de fișier "
182 "I<fd>. B<backtrace_symbols_fd>() nu apelează B<malloc>(3) și, prin urmare, "
183 "poate fi utilizată în situații în care această din urmă funcție ar putea "
184 "eșua, dar a se vedea secțiunea NOTE."
185
186 #. type: SH
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "RETURN VALUE"
191 msgstr "VALOAREA RETURNATĂ"
192
193 #. type: Plain text
194 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
195 #: opensuse-tumbleweed
196 msgid ""
197 "B<backtrace>() returns the number of addresses returned in I<buffer>, which "
198 "is not greater than I<size>. If the return value is less than I<size>, then "
199 "the full backtrace was stored; if it is equal to I<size>, then it may have "
200 "been truncated, in which case, the addresses of the oldest stack frames are "
201 "not returned."
202 msgstr ""
203 "B<backtrace>() returnează numărul de adrese returnate în I<buffer>, care nu "
204 "este mai mare decât I<size>. Dacă valoarea returnată este mai mică decât "
205 "I<size>, atunci a fost stocat întregul traseu de urmărire; dacă este egală "
206 "cu I<size>, atunci este posibil să fi fost trunchiat, în care caz, adresele "
207 "celor mai vechi cadre din stivă nu sunt returnate."
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 "On success, B<backtrace_symbols>() returns a pointer to the array "
214 "B<malloc>(3)ed by the call; on error, NULL is returned."
215 msgstr ""
216 "În caz de succes, B<backtrace_symbols>() returnează un indicator la matricea "
217 "B<malloc>(3) creată prin apel; în caz de eroare, se returnează NULL."
218
219 #. type: SH
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "ATTRIBUTES"
224 msgstr "ATRIBUTE"
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "For an explanation of the terms used in this section, see B<attributes>(7)."
231 msgstr ""
232 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
233 "B<attributes>(7)."
234
235 #. type: tbl table
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "Interface"
240 msgstr "Interfață"
241
242 #. type: tbl table
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "Attribute"
247 msgstr "Atribut"
248
249 #. type: tbl table
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "Value"
254 msgstr "Valoare"
255
256 #. type: tbl table
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid ".na\n"
261 msgstr ".na\n"
262
263 #. type: tbl table
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid ".nh\n"
268 msgstr ".nh\n"
269
270 #. type: tbl table
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, no-wrap
274 msgid ""
275 "B<backtrace>(),\n"
276 "B<backtrace_symbols>(),\n"
277 "B<backtrace_symbols_fd>()"
278 msgstr ""
279 "B<backtrace>(),\n"
280 "B<backtrace_symbols>(),\n"
281 "B<backtrace_symbols_fd>()"
282
283 #. type: tbl table
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "Thread safety"
288 msgstr "Siguranța firelor"
289
290 #. type: tbl table
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "MT-Safe"
295 msgstr "MT-Safe"
296
297 #. type: SH
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "STANDARDS"
302 msgstr "STANDARDE"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid "GNU."
308 msgstr "GNU."
309
310 #. type: SH
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "HISTORY"
315 msgstr "ISTORIC"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid "glibc 2.1."
321 msgstr "glibc 2.1."
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "NOTES"
328 msgstr "NOTE"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "These functions make some assumptions about how a function's return address "
335 "is stored on the stack. Note the following:"
336 msgstr ""
337 "Aceste funcții fac unele presupuneri cu privire la modul în care adresa de "
338 "returnare a unei funcții este stocată în stivă. Rețineți următoarele:"
339
340 #. type: IP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "\\[bu]"
345 msgstr "\\[bu]"
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 ""
351 "Omission of the frame pointers (as implied by any of B<gcc>(1)'s nonzero "
352 "optimization levels) may cause these assumptions to be violated."
353 msgstr ""
354 "Omiterea indicatorilor de cadre (așa cum implică oricare dintre nivelurile "
355 "de optimizare diferite de zero ale B<gcc>(1)) poate duce la încălcarea "
356 "acestor presupuneri."
357
358 #. type: Plain text
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 msgid "Inlined functions do not have stack frames."
362 msgstr "Funcțiile inserate în linie „inlined” nu au cadre de stivă."
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid "Tail-call optimization causes one stack frame to replace another."
368 msgstr ""
369 "Optimizarea apelului din coadă „tail-call” face ca un cadru de stivă să "
370 "înlocuiască un altul."
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "B<backtrace>() and B<backtrace_symbols_fd>() don't call B<malloc>() "
377 "explicitly, but they are part of I<libgcc>, which gets loaded dynamically "
378 "when first used. Dynamic loading usually triggers a call to B<malloc>(3). "
379 "If you need certain calls to these two functions to not allocate memory (in "
380 "signal handlers, for example), you need to make sure I<libgcc> is loaded "
381 "beforehand."
382 msgstr ""
383 "B<backtrace>() și B<backtrace_symbols_fd>() nu apelează explicit "
384 "B<malloc>(), dar fac parte din I<libgcc>, care se încarcă dinamic la prima "
385 "utilizare. Încărcarea dinamică declanșează, de obicei, un apel la "
386 "B<malloc>(3). Dacă aveți nevoie ca anumite apeluri la aceste două funcții să "
387 "nu aloce memorie (în gestionarii de semnal, de exemplu), trebuie să vă "
388 "asigurați că I<libgcc> este încărcată în prealabil."
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid ""
394 "The symbol names may be unavailable without the use of special linker "
395 "options. For systems using the GNU linker, it is necessary to use the I<-"
396 "rdynamic> linker option. Note that names of \"static\" functions are not "
397 "exposed, and won't be available in the backtrace."
398 msgstr ""
399 "Este posibil ca numele simbolurilor să nu fie disponibile fără utilizarea "
400 "unor opțiuni speciale ale editorului de legături. Pentru sistemele care "
401 "utilizează editorul de legături GNU, este necesar să se utilizeze opțiunea "
402 "I<-rdynamic>. Rețineți că numele funcțiilor „statice” nu sunt expuse și nu "
403 "vor fi disponibile în traseul de urmărire."
404
405 #. type: SH
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "EXAMPLES"
410 msgstr "EXEMPLE"
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 msgid ""
416 "The program below demonstrates the use of B<backtrace>() and "
417 "B<backtrace_symbols>(). The following shell session shows what we might see "
418 "when running the program:"
419 msgstr ""
420 "Programul de mai jos demonstrează utilizarea B<backtrace>() și "
421 "B<backtrace_symbols>(). Următoarea sesiune shell arată ce am putea vedea la "
422 "rularea programului:"
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid ""
429 "$B< cc -rdynamic prog.c -o prog>\n"
430 "$B< ./prog 3>\n"
431 "backtrace() returned 8 addresses\n"
432 "\\&./prog(myfunc3+0x5c) [0x80487f0]\n"
433 "\\&./prog [0x8048871]\n"
434 "\\&./prog(myfunc+0x21) [0x8048894]\n"
435 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
436 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
437 "\\&./prog(main+0x65) [0x80488fb]\n"
438 "\\&/lib/libc.so.6(__libc_start_main+0xdc) [0xb7e38f9c]\n"
439 "\\&./prog [0x8048711]\n"
440 msgstr ""
441 "$B< cc -rdynamic prog.c -o prog>\n"
442 "$B< ./prog 3>\n"
443 "backtrace() a returnat 8 adrese\n"
444 "\\&./prog(myfunc3+0x5c) [0x80487f0]\n"
445 "\\&./prog [0x8048871]\n"
446 "\\&./prog(myfunc+0x21) [0x8048894]\n"
447 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
448 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
449 "\\&./prog(main+0x65) [0x80488fb]\n"
450 "\\&/lib/libc.so.6(__libc_start_main+0xdc) [0xb7e38f9c]\n"
451 "\\&./prog [0x8048711]\n"
452
453 #. type: SS
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "Program source"
458 msgstr "Sursa programului"
459
460 #. type: Plain text
461 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
462 #: opensuse-tumbleweed
463 #, no-wrap
464 msgid ""
465 "#include E<lt>execinfo.hE<gt>\n"
466 "#include E<lt>stdio.hE<gt>\n"
467 "#include E<lt>stdlib.hE<gt>\n"
468 "#include E<lt>unistd.hE<gt>\n"
469 "\\&\n"
470 "#define BT_BUF_SIZE 100\n"
471 "\\&\n"
472 "void\n"
473 "myfunc3(void)\n"
474 "{\n"
475 " int nptrs;\n"
476 " void *buffer[BT_BUF_SIZE];\n"
477 " char **strings;\n"
478 "\\&\n"
479 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
480 " printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n"
481 "\\&\n"
482 " /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
483 " would produce similar output to the following: */\n"
484 "\\&\n"
485 " strings = backtrace_symbols(buffer, nptrs);\n"
486 " if (strings == NULL) {\n"
487 " perror(\"backtrace_symbols\");\n"
488 " exit(EXIT_FAILURE);\n"
489 " }\n"
490 "\\&\n"
491 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
492 " printf(\"%s\\[rs]n\", strings[j]);\n"
493 "\\&\n"
494 " free(strings);\n"
495 "}\n"
496 "\\&\n"
497 "static void /* \"static\" means don\\[aq]t export the symbol. */\n"
498 "myfunc2(void)\n"
499 "{\n"
500 " myfunc3();\n"
501 "}\n"
502 "\\&\n"
503 "void\n"
504 "myfunc(int ncalls)\n"
505 "{\n"
506 " if (ncalls E<gt> 1)\n"
507 " myfunc(ncalls - 1);\n"
508 " else\n"
509 " myfunc2();\n"
510 "}\n"
511 "\\&\n"
512 "int\n"
513 "main(int argc, char *argv[])\n"
514 "{\n"
515 " if (argc != 2) {\n"
516 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
517 " exit(EXIT_FAILURE);\n"
518 " }\n"
519 "\\&\n"
520 " myfunc(atoi(argv[1]));\n"
521 " exit(EXIT_SUCCESS);\n"
522 "}\n"
523 msgstr ""
524 "#include E<lt>execinfo.hE<gt>\n"
525 "#include E<lt>stdio.hE<gt>\n"
526 "#include E<lt>stdlib.hE<gt>\n"
527 "#include E<lt>unistd.hE<gt>\n"
528 "\\&\n"
529 "#define BT_BUF_SIZE 100\n"
530 "\\&\n"
531 "void\n"
532 "myfunc3(void)\n"
533 "{\n"
534 " int nptrs;\n"
535 " void *buffer[BT_BUF_SIZE];\n"
536 " char **strings;\n"
537 "\\&\n"
538 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
539 " printf(\"backtrace() a returnat %d adree\\[rs]n\", nptrs);\n"
540 "\\&\n"
541 " /* Apelul backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
542 " ar produce o ieșire similară cu cea de mai jos: */\n"
543 "\\&\n"
544 " strings = backtrace_symbols(buffer, nptrs);\n"
545 " if (strings == NULL) {\n"
546 " perror(\"backtrace_symbols\");\n"
547 " exit(EXIT_FAILURE);\n"
548 " }\n"
549 "\\&\n"
550 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
551 " printf(\"%s\\[rs]n\", strings[j]);\n"
552 "\\&\n"
553 " free(strings);\n"
554 "}\n"
555 "\\&\n"
556 "static void /* „static” înseamnă că nu exportă simbolul. */\n"
557 "myfunc2(void)\n"
558 "{\n"
559 " myfunc3();\n"
560 "}\n"
561 "\\&\n"
562 "void\n"
563 "myfunc(int ncalls)\n"
564 "{\n"
565 " if (ncalls E<gt> 1)\n"
566 " myfunc(ncalls - 1);\n"
567 " else\n"
568 " myfunc2();\n"
569 "}\n"
570 "\\&\n"
571 "int\n"
572 "main(int argc, char *argv[])\n"
573 "{\n"
574 " if (argc != 2) {\n"
575 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
576 " exit(EXIT_FAILURE);\n"
577 " }\n"
578 "\\&\n"
579 " myfunc(atoi(argv[1]));\n"
580 " exit(EXIT_SUCCESS);\n"
581 "}\n"
582
583 #. SRC END
584 #. type: SH
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 #, no-wrap
588 msgid "SEE ALSO"
589 msgstr "CONSULTAȚI ȘI"
590
591 #. type: Plain text
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 msgid ""
595 "B<addr2line>(1), B<gcc>(1), B<gdb>(1), B<ld>(1), B<dlopen>(3), B<malloc>(3)"
596 msgstr ""
597 "B<addr2line>(1), B<gcc>(1), B<gdb>(1), B<ld>(1), B<dlopen>(3), B<malloc>(3)"
598
599 #. type: TH
600 #: debian-trixie
601 #, no-wrap
602 msgid "2024-06-15"
603 msgstr "15 iunie 2024"
604
605 #. type: TH
606 #: debian-trixie
607 #, no-wrap
608 msgid "Linux man-pages 6.9.1"
609 msgstr "Pagini de manual de Linux 6.9.1"
610
611 #. type: Plain text
612 #: debian-trixie
613 msgid "Standard C library (I<libc>, I<-lc>)"
614 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
615
616 #. type: Plain text
617 #: debian-trixie fedora-44 fedora-rawhide
618 #, no-wrap
619 msgid "B<int backtrace(void *>I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
620 msgstr "B<int backtrace(void *>I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
621
622 #. type: Plain text
623 #: debian-trixie fedora-44 fedora-rawhide
624 #, no-wrap
625 msgid ""
626 "B<char **backtrace_symbols(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
627 "B<void backtrace_symbols_fd(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n"
628 msgstr ""
629 "B<char **backtrace_symbols(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
630 "B<void backtrace_symbols_fd(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n"
631
632 #. type: Plain text
633 #: debian-trixie fedora-44 fedora-rawhide
634 msgid ""
635 "B<backtrace>() returns the number of addresses returned in I<buffer>, which "
636 "is not greater than I<size>. If the return value is less than I<size>, then "
637 "the full backtrace was stored; if it is equal to I<size>, then it may have "
638 "been truncated, in which case the addresses of the oldest stack frames are "
639 "not returned."
640 msgstr ""
641 "B<backtrace>() returnează numărul de adrese returnate în I<buffer>, care nu "
642 "este mai mare decât I<size>. Dacă valoarea returnată este mai mică decât "
643 "I<size>, atunci a fost stocat întregul traseu de urmărire; dacă este egală "
644 "cu I<size>, atunci este posibil să fi fost trunchiat, caz în care adresele "
645 "celor mai vechi cadre din stivă nu sunt returnate."
646
647 #. type: Plain text
648 #: debian-trixie fedora-44 fedora-rawhide
649 #, no-wrap
650 msgid ""
651 "#include E<lt>execinfo.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 BT_BUF_SIZE 100\n"
657 "\\&\n"
658 "void\n"
659 "myfunc3(void)\n"
660 "{\n"
661 " int nptrs;\n"
662 " void *buffer[BT_BUF_SIZE];\n"
663 " char **strings;\n"
664 "\\&\n"
665 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
666 " printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n"
667 "\\&\n"
668 " /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
669 " would produce similar output to the following: */\n"
670 "\\&\n"
671 " strings = backtrace_symbols(buffer, nptrs);\n"
672 " if (strings == NULL) {\n"
673 " perror(\"backtrace_symbols\");\n"
674 " exit(EXIT_FAILURE);\n"
675 " }\n"
676 "\\&\n"
677 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
678 " printf(\"%s\\[rs]n\", strings[j]);\n"
679 "\\&\n"
680 " free(strings);\n"
681 "}\n"
682 "\\&\n"
683 "static void /* \"static\" means don\\[aq]t export the symbol... */\n"
684 "myfunc2(void)\n"
685 "{\n"
686 " myfunc3();\n"
687 "}\n"
688 "\\&\n"
689 "void\n"
690 "myfunc(int ncalls)\n"
691 "{\n"
692 " if (ncalls E<gt> 1)\n"
693 " myfunc(ncalls - 1);\n"
694 " else\n"
695 " myfunc2();\n"
696 "}\n"
697 "\\&\n"
698 "int\n"
699 "main(int argc, char *argv[])\n"
700 "{\n"
701 " if (argc != 2) {\n"
702 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
703 " exit(EXIT_FAILURE);\n"
704 " }\n"
705 "\\&\n"
706 " myfunc(atoi(argv[1]));\n"
707 " exit(EXIT_SUCCESS);\n"
708 "}\n"
709 msgstr ""
710 "#include E<lt>execinfo.hE<gt>\n"
711 "#include E<lt>stdio.hE<gt>\n"
712 "#include E<lt>stdlib.hE<gt>\n"
713 "#include E<lt>unistd.hE<gt>\n"
714 "\\&\n"
715 "#define BT_BUF_SIZE 100\n"
716 "\\&\n"
717 "void\n"
718 "myfunc3(void)\n"
719 "{\n"
720 " int nptrs;\n"
721 " void *buffer[BT_BUF_SIZE];\n"
722 " char **strings;\n"
723 "\\&\n"
724 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
725 " printf(\"backtrace() a returnat %d adree\\[rs]n\", nptrs);\n"
726 "\\&\n"
727 " /* Apelul backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
728 " ar produce o ieșire similară cu cea de mai jos: */\n"
729 "\\&\n"
730 " strings = backtrace_symbols(buffer, nptrs);\n"
731 " if (strings == NULL) {\n"
732 " perror(\"backtrace_symbols\");\n"
733 " exit(EXIT_FAILURE);\n"
734 " }\n"
735 "\\&\n"
736 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
737 " printf(\"%s\\[rs]n\", strings[j]);\n"
738 "\\&\n"
739 " free(strings);\n"
740 "}\n"
741 "\\&\n"
742 "static void /* „static” înseamnă că nu exportă simbolul... */\n"
743 "myfunc2(void)\n"
744 "{\n"
745 " myfunc3();\n"
746 "}\n"
747 "\\&\n"
748 "void\n"
749 "myfunc(int ncalls)\n"
750 "{\n"
751 " if (ncalls E<gt> 1)\n"
752 " myfunc(ncalls - 1);\n"
753 " else\n"
754 " myfunc2();\n"
755 "}\n"
756 "\\&\n"
757 "int\n"
758 "main(int argc, char *argv[])\n"
759 "{\n"
760 " if (argc != 2) {\n"
761 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
762 " exit(EXIT_FAILURE);\n"
763 " }\n"
764 "\\&\n"
765 " myfunc(atoi(argv[1]));\n"
766 " exit(EXIT_SUCCESS);\n"
767 "}\n"
768
769 #. type: TH
770 #: fedora-44 fedora-rawhide
771 #, no-wrap
772 msgid "2024-07-23"
773 msgstr "23 iulie 2024"
774
775 #. type: TH
776 #: fedora-44 fedora-rawhide
777 #, no-wrap
778 msgid "Linux man-pages 6.13"
779 msgstr "Pagini de manual de Linux 6.13"
780
781 #. type: TH
782 #: mageia-cauldron
783 #, no-wrap
784 msgid "Linux man-pages 6.17"
785 msgstr "Pagini de manual de Linux 6.17"
786
787 #. type: TH
788 #: opensuse-leap-16-1 opensuse-tumbleweed
789 #, no-wrap
790 msgid "Linux man-pages (unreleased)"
791 msgstr "Pagini de manual Linux (nepublicate)"