Debian Codegraph @

po/ar/man3/backtrace.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:19+0200\n"
9 "PO-Revision-Date: 2026-05-31 18:49+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\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=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.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 "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 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 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 "الاسم"
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 - دعم لتصحيح التطبيق "
55 "الذاتي"
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 "المكتبة"
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 "مكتبة سي المعيارية (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 "موجز"
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 "الوصف"
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>() تُرجع أثرًا رجعيًا للبرنامج المستدعي، في المصفوفة المشار إليها "
132 "بواسطة I<buffer>. الأثر الرجعي هو سلسلة استدعاءات الدوال النشطة حاليًا "
133 "للبرنامج. كل عنصر في المصفوفة المشار إليها بواسطة I<buffer> هو من النوع "
134 "I<void\\ *>، وهو عنوان الإرجاع من إطار المكدس المقابل. تُحدد الوسيطة I<size> "
135 "الحد الأقصى لعدد العناوين التي يمكن تخزينها في I<buffer>. إذا كان الأثر "
136 "الرجعي أكبر من I<size>، فسيتم إرجاع العناوين المقابلة لأحدث I<size> "
137 "استدعاءات دالة؛ للحصول على الأثر الرجعي الكامل، تأكد من أن I<buffer> و "
138 "I<size> كبيران بما يكفي."
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "Given the set of addresses returned by B<backtrace>() in I<buffer>, "
145 "B<backtrace_symbols>() translates the addresses into an array of strings "
146 "that describe the addresses symbolically. The I<size> argument specifies "
147 "the number of addresses in I<buffer>. The symbolic representation of each "
148 "address consists of the function name (if this can be determined), a "
149 "hexadecimal offset into the function, and the actual return address (in "
150 "hexadecimal). The address of the array of string pointers is returned as "
151 "the function result of B<backtrace_symbols>(). This array is B<malloc>(3)ed "
152 "by B<backtrace_symbols>(), and must be freed by the caller. (The strings "
153 "pointed to by the array of pointers need not and should not be freed.)"
154 msgstr ""
155 "بالنظر إلى مجموعة العناوين التي أرجعتها B<backtrace>() في I<buffer>، تُترجم "
156 "B<backtrace_symbols>() العناوين إلى مصفوفة من السلاسل التي تصف العناوين "
157 "رمزيًا. تُحدد الوسيطة I<size> عدد العناوين في I<buffer>. يتكون التمثيل "
158 "الرمزي لكل عنوان من اسم الدالة (إذا كان يمكن تحديده)، وإزاحة سداسية عشرية "
159 "داخل الدالة، وعنوان الإرجاع الفعلي (بالسداسي العشري). يُعاد عنوان مصفوفة "
160 "مؤشرات السلاسل كنتيجة دالة لـ B<backtrace_symbols>(). هذه المصفوفة مُخصصة "
161 "بواسطة B<malloc>(3) من قبل B<backtrace_symbols>()، ويجب تحريرها بواسطة "
162 "المستدعي. (السلاسل المشار إليها بواسطة مصفوفة المؤشرات لا تحتاج ولا ينبغي "
163 "تحريرها.)"
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 "B<backtrace_symbols_fd>() takes the same I<buffer> and I<size> arguments as "
170 "B<backtrace_symbols>(), but instead of returning an array of strings to the "
171 "caller, it writes the strings, one per line, to the file descriptor I<fd>. "
172 "B<backtrace_symbols_fd>() does not call B<malloc>(3), and so can be "
173 "employed in situations where the latter function might fail, but see NOTES."
174 msgstr ""
175 "تأخذ B<backtrace_symbols_fd>() نفس وسيطات I<buffer> و I<size> مثل "
176 "B<backtrace_symbols>()، ولكن بدلاً من إعادة مصفوفة من السلاسل إلى المستدعي، "
177 "تكتب السلاسل، سطرًا واحدًا لكل سطر، إلى واصف الملف I<fd>. لا تستدعي "
178 "B<backtrace_symbols_fd>() B<malloc>(3)، وبالتالي يمكن استخدامها في المواقف "
179 "التي قد تفشل فيها الدالة الأخيرة، ولكن انظر الملاحظات."
180
181 #. type: SH
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "RETURN VALUE"
186 msgstr "قيمة الإرجاع"
187
188 #. type: Plain text
189 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
190 #: opensuse-tumbleweed
191 msgid ""
192 "B<backtrace>() returns the number of addresses returned in I<buffer>, which "
193 "is not greater than I<size>. If the return value is less than I<size>, then "
194 "the full backtrace was stored; if it is equal to I<size>, then it may have "
195 "been truncated, in which case, the addresses of the oldest stack frames are "
196 "not returned."
197 msgstr ""
198 "تُرجع B<backtrace>() عدد العناوين المُعادة في I<buffer>، والذي لا يزيد عن "
199 "I<size>. إذا كانت القيمة المُعادة أقل من I<size>، فقد خُزِن الأثر الرجعي "
200 "الكامل؛ إذا كانت مساوية لـ I<size>، فقد يكون قد قُطِع، وفي هذه الحالة، لا تُعاد "
201 "عناوين أقدم إطارات المكدس."
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "On success, B<backtrace_symbols>() returns a pointer to the array "
208 "B<malloc>(3)ed by the call; on error, NULL is returned."
209 msgstr ""
210 "عند النجاح، تُرجع B<backtrace_symbols>() مؤشرًا إلى المصفوفة المُخصصة بواسطة "
211 "B<malloc>(3) من خلال الاستدعاء؛ عند الخطأ، يُعاد NULL."
212
213 #. type: SH
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "ATTRIBUTES"
218 msgstr "السمات"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "For an explanation of the terms used in this section, see B<attributes>(7)."
225 msgstr ""
226 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
227
228 #. type: tbl table
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "Interface"
233 msgstr "الواجهة"
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 "Attribute"
240 msgstr "السمة"
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 "Value"
247 msgstr "القيمة"
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 ".na\n"
254 msgstr ".na\n"
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 ".nh\n"
261 msgstr ".nh\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 ""
268 "B<backtrace>(),\n"
269 "B<backtrace_symbols>(),\n"
270 "B<backtrace_symbols_fd>()"
271 msgstr ""
272 "B<backtrace>()،\n"
273 "B<backtrace_symbols>()،\n"
274 "B<backtrace_symbols_fd>()"
275
276 #. type: tbl table
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "Thread safety"
281 msgstr "سلامة الخيوط"
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 "MT-Safe"
288 msgstr "MT-Safe"
289
290 #. type: SH
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "STANDARDS"
295 msgstr "المعايير"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "GNU."
301 msgstr "GNU."
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 "HISTORY"
308 msgstr "التاريخ"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "glibc 2.1."
314 msgstr "glibc 2.1."
315
316 #. type: SH
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "NOTES"
321 msgstr "ملاحظات"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "These functions make some assumptions about how a function's return address "
328 "is stored on the stack. Note the following:"
329 msgstr ""
330 "تفترض هذه الدوال بعض الافتراضات حول كيفية تخزين عنوان إرجاع الدالة على "
331 "المكدس. لاحظ ما يلي:"
332
333 #. type: IP
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "\\[bu]"
338 msgstr "\\[bu]"
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "Omission of the frame pointers (as implied by any of B<gcc>(1)'s nonzero "
345 "optimization levels) may cause these assumptions to be violated."
346 msgstr ""
347 "قد يؤدي حذف مؤشرات الإطار (كما هو مُضمن في أي من مستويات التحسين غير الصفرية "
348 "لـ B<gcc>(1)) إلى انتهاك هذه الافتراضات."
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 "Inlined functions do not have stack frames."
354 msgstr "لا تحتوي الدوال المُضمنة على إطارات مكدس."
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid "Tail-call optimization causes one stack frame to replace another."
360 msgstr "يتسبب تحسين استدعاء الذيل في استبدال إطار مكدس بآخر."
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "B<backtrace>() and B<backtrace_symbols_fd>() don't call B<malloc>() "
367 "explicitly, but they are part of I<libgcc>, which gets loaded dynamically "
368 "when first used. Dynamic loading usually triggers a call to B<malloc>(3). "
369 "If you need certain calls to these two functions to not allocate memory (in "
370 "signal handlers, for example), you need to make sure I<libgcc> is loaded "
371 "beforehand."
372 msgstr ""
373 "لا تستدعي B<backtrace>() و B<backtrace_symbols_fd>() B<malloc>() بشكل "
374 "صريح، لكنهما جزء من I<libgcc>، الذي يُحمّل ديناميكيًا عند أول استخدام. عادةً ما "
375 "يؤدي التحميل الديناميكي إلى استدعاء B<malloc>(3). إذا كنت بحاجة إلى أن لا "
376 "تُخصص استدعاءات معينة لهاتين الدالتين ذاكرة (في معالجات الإشارات، على سبيل "
377 "المثال)، فأنت بحاجة للتأكد من تحميل I<libgcc> مسبقًا."
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "The symbol names may be unavailable without the use of special linker "
384 "options. For systems using the GNU linker, it is necessary to use the I<-"
385 "rdynamic> linker option. Note that names of \"static\" functions are not "
386 "exposed, and won't be available in the backtrace."
387 msgstr ""
388 "قد تكون أسماء الرموز غير متاحة دون استخدام خيارات رابط خاصة. بالنسبة "
389 "للأنظمة التي تستخدم رابط GNU، من الضروري استخدام خيار الرابط I<-rdynamic>. "
390 "لاحظ أن أسماء الدوال \"الثابتة\" غير مكشوفة، ولن تكون متاحة في الأثر الرجعي."
391
392 #. type: SH
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "EXAMPLES"
397 msgstr "أمثلة"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "The program below demonstrates the use of B<backtrace>() and "
404 "B<backtrace_symbols>(). The following shell session shows what we might see "
405 "when running the program:"
406 msgstr ""
407 "يوضح البرنامج أدناه استخدام B<backtrace>() و B<backtrace_symbols>(). تُظهر "
408 "جلسة الصدفة التالية ما قد نراه عند تشغيل البرنامج:"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid ""
415 "$B< cc -rdynamic prog.c -o prog>\n"
416 "$B< ./prog 3>\n"
417 "backtrace() returned 8 addresses\n"
418 "\\&./prog(myfunc3+0x5c) [0x80487f0]\n"
419 "\\&./prog [0x8048871]\n"
420 "\\&./prog(myfunc+0x21) [0x8048894]\n"
421 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
422 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
423 "\\&./prog(main+0x65) [0x80488fb]\n"
424 "\\&/lib/libc.so.6(__libc_start_main+0xdc) [0xb7e38f9c]\n"
425 "\\&./prog [0x8048711]\n"
426 msgstr ""
427 "$B< cc -rdynamic prog.c -o prog>\n"
428 "$B< ./prog 3>\n"
429 "backtrace() returned 8 addresses\n"
430 "\\&./prog(myfunc3+0x5c) [0x80487f0]\n"
431 "\\&./prog [0x8048871]\n"
432 "\\&./prog(myfunc+0x21) [0x8048894]\n"
433 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
434 "\\&./prog(myfunc+0x1a) [0x804888d]\n"
435 "\\&./prog(main+0x65) [0x80488fb]\n"
436 "\\&/lib/libc.so.6(__libc_start_main+0xdc) [0xb7e38f9c]\n"
437 "\\&./prog [0x8048711]\n"
438
439 #. type: SS
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "Program source"
444 msgstr "مصدر البرنامج"
445
446 #. type: Plain text
447 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
448 #: opensuse-tumbleweed
449 #, no-wrap
450 msgid ""
451 "#include E<lt>execinfo.hE<gt>\n"
452 "#include E<lt>stdio.hE<gt>\n"
453 "#include E<lt>stdlib.hE<gt>\n"
454 "#include E<lt>unistd.hE<gt>\n"
455 "\\&\n"
456 "#define BT_BUF_SIZE 100\n"
457 "\\&\n"
458 "void\n"
459 "myfunc3(void)\n"
460 "{\n"
461 " int nptrs;\n"
462 " void *buffer[BT_BUF_SIZE];\n"
463 " char **strings;\n"
464 "\\&\n"
465 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
466 " printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n"
467 "\\&\n"
468 " /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
469 " would produce similar output to the following: */\n"
470 "\\&\n"
471 " strings = backtrace_symbols(buffer, nptrs);\n"
472 " if (strings == NULL) {\n"
473 " perror(\"backtrace_symbols\");\n"
474 " exit(EXIT_FAILURE);\n"
475 " }\n"
476 "\\&\n"
477 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
478 " printf(\"%s\\[rs]n\", strings[j]);\n"
479 "\\&\n"
480 " free(strings);\n"
481 "}\n"
482 "\\&\n"
483 "static void /* \"static\" means don\\[aq]t export the symbol. */\n"
484 "myfunc2(void)\n"
485 "{\n"
486 " myfunc3();\n"
487 "}\n"
488 "\\&\n"
489 "void\n"
490 "myfunc(int ncalls)\n"
491 "{\n"
492 " if (ncalls E<gt> 1)\n"
493 " myfunc(ncalls - 1);\n"
494 " else\n"
495 " myfunc2();\n"
496 "}\n"
497 "\\&\n"
498 "int\n"
499 "main(int argc, char *argv[])\n"
500 "{\n"
501 " if (argc != 2) {\n"
502 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
503 " exit(EXIT_FAILURE);\n"
504 " }\n"
505 "\\&\n"
506 " myfunc(atoi(argv[1]));\n"
507 " exit(EXIT_SUCCESS);\n"
508 "}\n"
509 msgstr ""
510 "#include E<lt>execinfo.hE<gt>\n"
511 "#include E<lt>stdio.hE<gt>\n"
512 "#include E<lt>stdlib.hE<gt>\n"
513 "#include E<lt>unistd.hE<gt>\n"
514 "\\&\n"
515 "#define BT_BUF_SIZE 100\n"
516 "\\&\n"
517 "void\n"
518 "myfunc3(void)\n"
519 "{\n"
520 " int nptrs;\n"
521 " void *buffer[BT_BUF_SIZE];\n"
522 " char **strings;\n"
523 "\\&\n"
524 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
525 " printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n"
526 "\\&\n"
527 " /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
528 " would produce similar output to the following: */\n"
529 "\\&\n"
530 " strings = backtrace_symbols(buffer, nptrs);\n"
531 " if (strings == NULL) {\n"
532 " perror(\"backtrace_symbols\");\n"
533 " exit(EXIT_FAILURE);\n"
534 " }\n"
535 "\\&\n"
536 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
537 " printf(\"%s\\[rs]n\", strings[j]);\n"
538 "\\&\n"
539 " free(strings);\n"
540 "}\n"
541 "\\&\n"
542 "static void /* \"static\" means don\\[aq]t export the symbol. */\n"
543 "myfunc2(void)\n"
544 "{\n"
545 " myfunc3();\n"
546 "}\n"
547 "\\&\n"
548 "void\n"
549 "myfunc(int ncalls)\n"
550 "{\n"
551 " if (ncalls E<gt> 1)\n"
552 " myfunc(ncalls - 1);\n"
553 " else\n"
554 " myfunc2();\n"
555 "}\n"
556 "\\&\n"
557 "int\n"
558 "main(int argc, char *argv[])\n"
559 "{\n"
560 " if (argc != 2) {\n"
561 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
562 " exit(EXIT_FAILURE);\n"
563 " }\n"
564 "\\&\n"
565 " myfunc(atoi(argv[1]));\n"
566 " exit(EXIT_SUCCESS);\n"
567 "}\n"
568
569 #. SRC END
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "SEE ALSO"
575 msgstr "انظر أيضًا"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "B<addr2line>(1), B<gcc>(1), B<gdb>(1), B<ld>(1), B<dlopen>(3), B<malloc>(3)"
582 msgstr ""
583 "B<addr2line>(1)، B<gcc>(1)، B<gdb>(1)، B<ld>(1)، B<dlopen>(3)، B<malloc>(3)"
584
585 #. type: TH
586 #: debian-trixie
587 #, no-wrap
588 msgid "2024-06-15"
589 msgstr "15 يونيو 2024"
590
591 #. type: TH
592 #: debian-trixie
593 #, no-wrap
594 msgid "Linux man-pages 6.9.1"
595 msgstr "صفحات دليل لينكس 6.9.1"
596
597 #. type: Plain text
598 #: debian-trixie
599 msgid "Standard C library (I<libc>, I<-lc>)"
600 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
601
602 #. type: Plain text
603 #: debian-trixie fedora-44 fedora-rawhide
604 #, no-wrap
605 msgid "B<int backtrace(void *>I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
606 msgstr "B<int backtrace(void *>I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
607
608 #. type: Plain text
609 #: debian-trixie fedora-44 fedora-rawhide
610 #, no-wrap
611 msgid ""
612 "B<char **backtrace_symbols(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
613 "B<void backtrace_symbols_fd(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n"
614 msgstr ""
615 "B<char **backtrace_symbols(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n"
616 "B<void backtrace_symbols_fd(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n"
617
618 #. type: Plain text
619 #: debian-trixie fedora-44 fedora-rawhide
620 msgid ""
621 "B<backtrace>() returns the number of addresses returned in I<buffer>, which "
622 "is not greater than I<size>. If the return value is less than I<size>, then "
623 "the full backtrace was stored; if it is equal to I<size>, then it may have "
624 "been truncated, in which case the addresses of the oldest stack frames are "
625 "not returned."
626 msgstr ""
627 "B<backtrace>() تُرجع عدد العناوين المُعادة في I<buffer>، والذي لا يزيد عن "
628 "I<size>. إذا كانت القيمة المُعادة أقل من I<size>، فحينئذ خُزِن التتبع الخلفي "
629 "الكامل؛ إذا كانت مساوية لـ I<size>، فربما قُطِع، وفي هذه الحالة لا تُعاد عناوين "
630 "أقدم إطارات المكدس."
631
632 #. type: Plain text
633 #: debian-trixie fedora-44 fedora-rawhide
634 #, no-wrap
635 msgid ""
636 "#include E<lt>execinfo.hE<gt>\n"
637 "#include E<lt>stdio.hE<gt>\n"
638 "#include E<lt>stdlib.hE<gt>\n"
639 "#include E<lt>unistd.hE<gt>\n"
640 "\\&\n"
641 "#define BT_BUF_SIZE 100\n"
642 "\\&\n"
643 "void\n"
644 "myfunc3(void)\n"
645 "{\n"
646 " int nptrs;\n"
647 " void *buffer[BT_BUF_SIZE];\n"
648 " char **strings;\n"
649 "\\&\n"
650 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
651 " printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n"
652 "\\&\n"
653 " /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
654 " would produce similar output to the following: */\n"
655 "\\&\n"
656 " strings = backtrace_symbols(buffer, nptrs);\n"
657 " if (strings == NULL) {\n"
658 " perror(\"backtrace_symbols\");\n"
659 " exit(EXIT_FAILURE);\n"
660 " }\n"
661 "\\&\n"
662 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
663 " printf(\"%s\\[rs]n\", strings[j]);\n"
664 "\\&\n"
665 " free(strings);\n"
666 "}\n"
667 "\\&\n"
668 "static void /* \"static\" means don\\[aq]t export the symbol... */\n"
669 "myfunc2(void)\n"
670 "{\n"
671 " myfunc3();\n"
672 "}\n"
673 "\\&\n"
674 "void\n"
675 "myfunc(int ncalls)\n"
676 "{\n"
677 " if (ncalls E<gt> 1)\n"
678 " myfunc(ncalls - 1);\n"
679 " else\n"
680 " myfunc2();\n"
681 "}\n"
682 "\\&\n"
683 "int\n"
684 "main(int argc, char *argv[])\n"
685 "{\n"
686 " if (argc != 2) {\n"
687 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
688 " exit(EXIT_FAILURE);\n"
689 " }\n"
690 "\\&\n"
691 " myfunc(atoi(argv[1]));\n"
692 " exit(EXIT_SUCCESS);\n"
693 "}\n"
694 msgstr ""
695 "#include E<lt>execinfo.hE<gt>\n"
696 "#include E<lt>stdio.hE<gt>\n"
697 "#include E<lt>stdlib.hE<gt>\n"
698 "#include E<lt>unistd.hE<gt>\n"
699 "\\&\n"
700 "#define BT_BUF_SIZE 100\n"
701 "\\&\n"
702 "void\n"
703 "myfunc3(void)\n"
704 "{\n"
705 " int nptrs;\n"
706 " void *buffer[BT_BUF_SIZE];\n"
707 " char **strings;\n"
708 "\\&\n"
709 " nptrs = backtrace(buffer, BT_BUF_SIZE);\n"
710 " printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n"
711 "\\&\n"
712 " /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n"
713 " would produce similar output to the following: */\n"
714 "\\&\n"
715 " strings = backtrace_symbols(buffer, nptrs);\n"
716 " if (strings == NULL) {\n"
717 " perror(\"backtrace_symbols\");\n"
718 " exit(EXIT_FAILURE);\n"
719 " }\n"
720 "\\&\n"
721 " for (size_t j = 0; j E<lt> nptrs; j++)\n"
722 " printf(\"%s\\[rs]n\", strings[j]);\n"
723 "\\&\n"
724 " free(strings);\n"
725 "}\n"
726 "\\&\n"
727 "static void /* \"static\" means don\\[aq]t export the symbol... */\n"
728 "myfunc2(void)\n"
729 "{\n"
730 " myfunc3();\n"
731 "}\n"
732 "\\&\n"
733 "void\n"
734 "myfunc(int ncalls)\n"
735 "{\n"
736 " if (ncalls E<gt> 1)\n"
737 " myfunc(ncalls - 1);\n"
738 " else\n"
739 " myfunc2();\n"
740 "}\n"
741 "\\&\n"
742 "int\n"
743 "main(int argc, char *argv[])\n"
744 "{\n"
745 " if (argc != 2) {\n"
746 " fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n"
747 " exit(EXIT_FAILURE);\n"
748 " }\n"
749 "\\&\n"
750 " myfunc(atoi(argv[1]));\n"
751 " exit(EXIT_SUCCESS);\n"
752 "}\n"
753
754 #. type: TH
755 #: fedora-44 fedora-rawhide
756 #, no-wrap
757 msgid "2024-07-23"
758 msgstr "23 يوليو 2024"
759
760 #. type: TH
761 #: fedora-44 fedora-rawhide
762 #, no-wrap
763 msgid "Linux man-pages 6.13"
764 msgstr "صفحات دليل لينكس 6.13"
765
766 #. type: TH
767 #: mageia-cauldron
768 #, no-wrap
769 msgid "Linux man-pages 6.17"
770 msgstr "صفحات دليل لينكس 6.17"
771
772 #. type: TH
773 #: opensuse-leap-16-1 opensuse-tumbleweed
774 #, no-wrap
775 msgid "Linux man-pages (unreleased)"
776 msgstr "صفحات دليل لينكس (لم تصدر بعد)"