| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Artyom Kunyov <[email protected]>, 2012. |
| 5 |
# Azamat Hackimov <[email protected]>, 2012. |
| 6 |
# Dmitriy Ovchinnikov <[email protected]>, 2012. |
| 7 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 8 |
# ITriskTI <[email protected]>, 2012. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Иван Павлов <[email protected]>, 2017. |
| 11 |
msgid "" |
| 12 |
msgstr "" |
| 13 |
"Project-Id-Version: manpages-l10n\n" |
| 14 |
"POT-Creation-Date: 2026-06-05 06:19+0200\n" |
| 15 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 16 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 17 |
"Language-Team: Russian <[email protected]>\n" |
| 18 |
"Language: ru\n" |
| 19 |
"MIME-Version: 1.0\n" |
| 20 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 21 |
"Content-Transfer-Encoding: 8bit\n" |
| 22 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 23 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 24 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 28 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 29 |
#, fuzzy, no-wrap |
| 30 |
#| msgid "B<backtrace>(),\n" |
| 31 |
msgid "backtrace" |
| 32 |
msgstr "B<backtrace>(),\n" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 36 |
#: opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "2026-02-08" |
| 39 |
msgstr "8 февраля 2026 г." |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable |
| 43 |
#, fuzzy, no-wrap |
| 44 |
#| msgid "Linux man-pages 6.17" |
| 45 |
msgid "Linux man-pages 6.18" |
| 46 |
msgstr "Справочные страницы Linux 6.17" |
| 47 |
|
| 48 |
#. type: SH |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
#, no-wrap |
| 52 |
msgid "NAME" |
| 53 |
msgstr "НАИМЕНОВАНИЕ" |
| 54 |
|
| 55 |
#. type: Plain text |
| 56 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 57 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 58 |
msgid "" |
| 59 |
"backtrace, backtrace_symbols, backtrace_symbols_fd - support for application " |
| 60 |
"self-debugging" |
| 61 |
msgstr "" |
| 62 |
"backtrace, backtrace_symbols, backtrace_symbols_fd - поддержка самоотладки в " |
| 63 |
"приложении" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "LIBRARY" |
| 70 |
msgstr "БИБЛИОТЕКА" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 74 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 76 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 77 |
|
| 78 |
#. type: SH |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "SYNOPSIS" |
| 83 |
msgstr "СИНТАКСИС" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, fuzzy, no-wrap |
| 89 |
#| msgid "B<#include E<lt>execinfo.hE<gt>>" |
| 90 |
msgid "B<#include E<lt>execinfo.hE<gt>>\n" |
| 91 |
msgstr "B<#include E<lt>execinfo.hE<gt>>" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 95 |
#: opensuse-tumbleweed |
| 96 |
#, fuzzy, no-wrap |
| 97 |
#| msgid "B<int backtrace(void> B<**>I<buffer>B<,> B<int> I<size>B<);>" |
| 98 |
msgid "" |
| 99 |
"B<int backtrace(>int size;\n" |
| 100 |
"B< void *>I<buffer>B<[>I<size>B<], int >I<size>B<);>\n" |
| 101 |
msgstr "B<int backtrace(void> B<**>I<buffer>B<,> B<int> I<size>B<);>" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 105 |
#: opensuse-tumbleweed |
| 106 |
#, fuzzy, no-wrap |
| 107 |
#| msgid "B<void backtrace_symbols_fd(void *const> B<*>I<buffer>B<,> B<int> I<size>B<,> B<int> I<fd>B<);>" |
| 108 |
msgid "" |
| 109 |
"B<char **backtrace_symbols(>int size;\n" |
| 110 |
"B< void *const >I<buffer>B<[>I<size>B<], int >I<size>B<);>\n" |
| 111 |
"B<void backtrace_symbols_fd(>int size;\n" |
| 112 |
"B< void *const >I<buffer>B<[>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n" |
| 113 |
msgstr "B<void backtrace_symbols_fd(void *const> B<*>I<buffer>B<,> B<int> I<size>B<,> B<int> I<fd>B<);>" |
| 114 |
|
| 115 |
#. type: SH |
| 116 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 117 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 118 |
#, no-wrap |
| 119 |
msgid "DESCRIPTION" |
| 120 |
msgstr "ОПИСАНИЕ" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
msgid "" |
| 126 |
"B<backtrace>() returns a backtrace for the calling program, in the array " |
| 127 |
"pointed to by I<buffer>. A backtrace is the series of currently active " |
| 128 |
"function calls for the program. Each item in the array pointed to by " |
| 129 |
"I<buffer> is of type I<void\\ *>, and is the return address from the " |
| 130 |
"corresponding stack frame. The I<size> argument specifies the maximum " |
| 131 |
"number of addresses that can be stored in I<buffer>. If the backtrace is " |
| 132 |
"larger than I<size>, then the addresses corresponding to the I<size> most " |
| 133 |
"recent function calls are returned; to obtain the complete backtrace, make " |
| 134 |
"sure that I<buffer> and I<size> are large enough." |
| 135 |
msgstr "" |
| 136 |
"Функция B<backtrace>() возвращает список запущенных функций вызвавшей " |
| 137 |
"программы в массив, на который указывает I<buffer>. Список вызванных функций " |
| 138 |
"(backtrace) — это последовательность в данный момент активных вызовов " |
| 139 |
"функций программы. Каждый элемент в массиве, на который указывает I<buffer>, " |
| 140 |
"имеет тип I<void\\ *> и указывает на адрес возврата из соответствующего " |
| 141 |
"стекового кадра (stack frame). В аргументе I<size> задаётся максимальное " |
| 142 |
"количество адресов, которые могут храниться в I<buffer>. Если список " |
| 143 |
"вызванных функций больше I<size>, то возвращаются I<size> адресов функций, " |
| 144 |
"вызванных последними; чтобы получить полный список вызванных функций, " |
| 145 |
"сделайте I<buffer> и I<size> достаточно большими." |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
msgid "" |
| 151 |
"Given the set of addresses returned by B<backtrace>() in I<buffer>, " |
| 152 |
"B<backtrace_symbols>() translates the addresses into an array of strings " |
| 153 |
"that describe the addresses symbolically. The I<size> argument specifies " |
| 154 |
"the number of addresses in I<buffer>. The symbolic representation of each " |
| 155 |
"address consists of the function name (if this can be determined), a " |
| 156 |
"hexadecimal offset into the function, and the actual return address (in " |
| 157 |
"hexadecimal). The address of the array of string pointers is returned as " |
| 158 |
"the function result of B<backtrace_symbols>(). This array is B<malloc>(3)ed " |
| 159 |
"by B<backtrace_symbols>(), and must be freed by the caller. (The strings " |
| 160 |
"pointed to by the array of pointers need not and should not be freed.)" |
| 161 |
msgstr "" |
| 162 |
"Набор адресов, полученных от B<backtrace>() через I<buffer>, функция " |
| 163 |
"B<backtrace_symbols>() транслирует в массив строк, в которых адреса " |
| 164 |
"представлены в символическом виде. В аргументе I<size> передаётся количество " |
| 165 |
"адресов в I<buffer>. Символический вид каждого адреса содержит имя функции " |
| 166 |
"(если его можно определить), шестнадцатеричное смещение в функции и реальный " |
| 167 |
"адрес возврата (в шестнадцатеричном виде). Результатом функции " |
| 168 |
"B<backtrace_symbols>() является адрес массива указателей на строки. Этот " |
| 169 |
"массив выделяется B<backtrace_symbols>() с помощью B<malloc>(3) и должен " |
| 170 |
"освобождаться вызывающим (строки, на которые указывают указатели в массиве, " |
| 171 |
"освобождаться не должны)." |
| 172 |
|
| 173 |
#. type: Plain text |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
msgid "" |
| 177 |
"B<backtrace_symbols_fd>() takes the same I<buffer> and I<size> arguments as " |
| 178 |
"B<backtrace_symbols>(), but instead of returning an array of strings to the " |
| 179 |
"caller, it writes the strings, one per line, to the file descriptor I<fd>. " |
| 180 |
"B<backtrace_symbols_fd>() does not call B<malloc>(3), and so can be " |
| 181 |
"employed in situations where the latter function might fail, but see NOTES." |
| 182 |
msgstr "" |
| 183 |
"Функция B<backtrace_symbols_fd>() ожидает аргументы I<buffer> и I<size> как " |
| 184 |
"у B<backtrace_symbols>(), но вместо записи строк в массив вызывающему, она " |
| 185 |
"записывает строки, одну в строке, в файловый дескриптор I<fd>. Функция " |
| 186 |
"B<backtrace_symbols_fd>() не вызывает B<malloc>(3) и поэтому может " |
| 187 |
"применяться в случаях, когда вызов B<malloc>(3) может завершаться ошибкой, " |
| 188 |
"но смотрите ЗАМЕЧАНИЯ." |
| 189 |
|
| 190 |
#. type: SH |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
#, no-wrap |
| 194 |
msgid "RETURN VALUE" |
| 195 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 199 |
#: opensuse-tumbleweed |
| 200 |
#, fuzzy |
| 201 |
#| msgid "" |
| 202 |
#| "B<backtrace>() returns the number of addresses returned in I<buffer>, " |
| 203 |
#| "which is not greater than I<size>. If the return value is less than " |
| 204 |
#| "I<size>, then the full backtrace was stored; if it is equal to I<size>, " |
| 205 |
#| "then it may have been truncated, in which case the addresses of the " |
| 206 |
#| "oldest stack frames are not returned." |
| 207 |
msgid "" |
| 208 |
"B<backtrace>() returns the number of addresses returned in I<buffer>, which " |
| 209 |
"is not greater than I<size>. If the return value is less than I<size>, then " |
| 210 |
"the full backtrace was stored; if it is equal to I<size>, then it may have " |
| 211 |
"been truncated, in which case, the addresses of the oldest stack frames are " |
| 212 |
"not returned." |
| 213 |
msgstr "" |
| 214 |
"Функция B<backtrace>() возвращает количество адресов, записанных в " |
| 215 |
"I<buffer>, и не может быть больше I<size>. Если возвращаемое значение меньше " |
| 216 |
"I<size>, то был сохранён полный список вызванных функций; если значение " |
| 217 |
"равно I<size>, то список может быть не полным, то есть адреса самых старых " |
| 218 |
"кадров стека могут отсутствовать." |
| 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 |
"On success, B<backtrace_symbols>() returns a pointer to the array " |
| 225 |
"B<malloc>(3)ed by the call; on error, NULL is returned." |
| 226 |
msgstr "" |
| 227 |
"При успешном выполнении B<backtrace_symbols>() возвращает указатель на " |
| 228 |
"массив, выделенный B<malloc>(3); при ошибке возвращается NULL." |
| 229 |
|
| 230 |
#. type: SH |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
#, no-wrap |
| 234 |
msgid "ATTRIBUTES" |
| 235 |
msgstr "АТРИБУТЫ" |
| 236 |
|
| 237 |
#. type: Plain text |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
msgid "" |
| 241 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 242 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 243 |
|
| 244 |
#. type: tbl table |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
#, no-wrap |
| 248 |
msgid "Interface" |
| 249 |
msgstr "Интерфейс" |
| 250 |
|
| 251 |
#. type: tbl table |
| 252 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 253 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 254 |
#, no-wrap |
| 255 |
msgid "Attribute" |
| 256 |
msgstr "Атрибут" |
| 257 |
|
| 258 |
#. type: tbl table |
| 259 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 260 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
#, no-wrap |
| 262 |
msgid "Value" |
| 263 |
msgstr "Значение" |
| 264 |
|
| 265 |
#. type: tbl table |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
#, no-wrap |
| 269 |
msgid ".na\n" |
| 270 |
msgstr ".na\n" |
| 271 |
|
| 272 |
#. type: tbl table |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
#, no-wrap |
| 276 |
msgid ".nh\n" |
| 277 |
msgstr ".nh\n" |
| 278 |
|
| 279 |
#. type: tbl table |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
#, fuzzy, no-wrap |
| 283 |
#| msgid "B<backtrace>(), B<backtrace_symbols>(), and B<backtrace_symbols_fd>() are provided in glibc since version 2.1." |
| 284 |
msgid "" |
| 285 |
"B<backtrace>(),\n" |
| 286 |
"B<backtrace_symbols>(),\n" |
| 287 |
"B<backtrace_symbols_fd>()" |
| 288 |
msgstr "Функции B<backtrace>(), B<backtrace_symbols>() и B<backtrace_symbols_fd>() появились в glibc начиная с версии 2.1." |
| 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 "Thread safety" |
| 295 |
msgstr "Безвредность в нитях" |
| 296 |
|
| 297 |
#. type: tbl table |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
#, no-wrap |
| 301 |
msgid "MT-Safe" |
| 302 |
msgstr "MT-Safe" |
| 303 |
|
| 304 |
#. type: SH |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "STANDARDS" |
| 309 |
msgstr "СТАНДАРТЫ" |
| 310 |
|
| 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 "GNU." |
| 315 |
msgstr "GNU." |
| 316 |
|
| 317 |
#. type: SH |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
#, no-wrap |
| 321 |
msgid "HISTORY" |
| 322 |
msgstr "ИСТОРИЯ" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "glibc 2.1." |
| 328 |
msgstr "glibc 2.1." |
| 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 "NOTES" |
| 335 |
msgstr "ПРИМЕЧАНИЯ" |
| 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 "" |
| 341 |
"These functions make some assumptions about how a function's return address " |
| 342 |
"is stored on the stack. Note the following:" |
| 343 |
msgstr "" |
| 344 |
"Поведение данных функций основано на предположении, что адреса возврата из " |
| 345 |
"функций хранятся в стеке. Заметим следующее:" |
| 346 |
|
| 347 |
#. type: IP |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
#, no-wrap |
| 351 |
msgid "\\[bu]" |
| 352 |
msgstr "\\[bu]" |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
msgid "" |
| 358 |
"Omission of the frame pointers (as implied by any of B<gcc>(1)'s nonzero " |
| 359 |
"optimization levels) may cause these assumptions to be violated." |
| 360 |
msgstr "" |
| 361 |
"Отсутствие указателей кадров (происходит при указании B<gcc>(1) любого " |
| 362 |
"ненулевого уровня оптимизации) может вызвать нарушение этих предположений." |
| 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 "Inlined functions do not have stack frames." |
| 368 |
msgstr "Встраиваемые (inlined) функции не имеют стековых кадров." |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
msgid "Tail-call optimization causes one stack frame to replace another." |
| 374 |
msgstr "" |
| 375 |
"Оптимизация хвостовых вызовов приводит к замещению одного стекового кадра " |
| 376 |
"другим." |
| 377 |
|
| 378 |
#. type: Plain text |
| 379 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 380 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 381 |
msgid "" |
| 382 |
"B<backtrace>() and B<backtrace_symbols_fd>() don't call B<malloc>() " |
| 383 |
"explicitly, but they are part of I<libgcc>, which gets loaded dynamically " |
| 384 |
"when first used. Dynamic loading usually triggers a call to B<malloc>(3). " |
| 385 |
"If you need certain calls to these two functions to not allocate memory (in " |
| 386 |
"signal handlers, for example), you need to make sure I<libgcc> is loaded " |
| 387 |
"beforehand." |
| 388 |
msgstr "" |
| 389 |
"Функция B<backtrace>() и B<backtrace_symbols_fd>() не вызывает B<malloc>() " |
| 390 |
"явным образом, но они являются частью I<libgcc>, которая загружается " |
| 391 |
"динамически при первом использовании. Обычно, динамическая загрузка вызывает " |
| 392 |
"B<malloc>(3). Если вам нужно, чтобы работа с этими функциями не приводила к " |
| 393 |
"выделению памяти (например, в обработчиках сигналов), то перед обращением " |
| 394 |
"загрузите I<libgcc> самостоятельно." |
| 395 |
|
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "" |
| 400 |
"The symbol names may be unavailable without the use of special linker " |
| 401 |
"options. For systems using the GNU linker, it is necessary to use the I<-" |
| 402 |
"rdynamic> linker option. Note that names of \"static\" functions are not " |
| 403 |
"exposed, and won't be available in the backtrace." |
| 404 |
msgstr "" |
| 405 |
"Символьные имена могут быть недоступны, если не указаны специальные " |
| 406 |
"параметра компоновщика. В системах с компоновщиком GNU необходимо " |
| 407 |
"использовать параметр I<-rdynamic>. Заметим, что имена «статических» функций " |
| 408 |
"не показываются, и недоступны в списке вызовов функций." |
| 409 |
|
| 410 |
#. type: SH |
| 411 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 412 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
#, no-wrap |
| 414 |
msgid "EXAMPLES" |
| 415 |
msgstr "ПРИМЕРЫ" |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
msgid "" |
| 421 |
"The program below demonstrates the use of B<backtrace>() and " |
| 422 |
"B<backtrace_symbols>(). The following shell session shows what we might see " |
| 423 |
"when running the program:" |
| 424 |
msgstr "" |
| 425 |
"Программа, представленная далее, демонстрирует использование B<backtrace>() " |
| 426 |
"и B<backtrace_symbols>(). В следующем сеансе оболочки показано, что может " |
| 427 |
"получиться при запуске программы:" |
| 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 |
#, no-wrap |
| 433 |
msgid "" |
| 434 |
"$B< cc -rdynamic prog.c -o prog>\n" |
| 435 |
"$B< ./prog 3>\n" |
| 436 |
"backtrace() returned 8 addresses\n" |
| 437 |
"\\&./prog(myfunc3+0x5c) [0x80487f0]\n" |
| 438 |
"\\&./prog [0x8048871]\n" |
| 439 |
"\\&./prog(myfunc+0x21) [0x8048894]\n" |
| 440 |
"\\&./prog(myfunc+0x1a) [0x804888d]\n" |
| 441 |
"\\&./prog(myfunc+0x1a) [0x804888d]\n" |
| 442 |
"\\&./prog(main+0x65) [0x80488fb]\n" |
| 443 |
"\\&/lib/libc.so.6(__libc_start_main+0xdc) [0xb7e38f9c]\n" |
| 444 |
"\\&./prog [0x8048711]\n" |
| 445 |
msgstr "" |
| 446 |
"$B< cc -rdynamic prog.c -o prog>\n" |
| 447 |
"$B< ./prog 3>\n" |
| 448 |
"backtrace() returned 8 addresses\n" |
| 449 |
"\\&./prog(myfunc3+0x5c) [0x80487f0]\n" |
| 450 |
"\\&./prog [0x8048871]\n" |
| 451 |
"\\&./prog(myfunc+0x21) [0x8048894]\n" |
| 452 |
"\\&./prog(myfunc+0x1a) [0x804888d]\n" |
| 453 |
"\\&./prog(myfunc+0x1a) [0x804888d]\n" |
| 454 |
"\\&./prog(main+0x65) [0x80488fb]\n" |
| 455 |
"\\&/lib/libc.so.6(__libc_start_main+0xdc) [0xb7e38f9c]\n" |
| 456 |
"\\&./prog [0x8048711]\n" |
| 457 |
|
| 458 |
#. type: SS |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
#, no-wrap |
| 462 |
msgid "Program source" |
| 463 |
msgstr "Исходный код программы" |
| 464 |
|
| 465 |
#. type: Plain text |
| 466 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 467 |
#: opensuse-tumbleweed |
| 468 |
#, no-wrap |
| 469 |
msgid "" |
| 470 |
"#include E<lt>execinfo.hE<gt>\n" |
| 471 |
"#include E<lt>stdio.hE<gt>\n" |
| 472 |
"#include E<lt>stdlib.hE<gt>\n" |
| 473 |
"#include E<lt>unistd.hE<gt>\n" |
| 474 |
"\\&\n" |
| 475 |
"#define BT_BUF_SIZE 100\n" |
| 476 |
"\\&\n" |
| 477 |
"void\n" |
| 478 |
"myfunc3(void)\n" |
| 479 |
"{\n" |
| 480 |
" int nptrs;\n" |
| 481 |
" void *buffer[BT_BUF_SIZE];\n" |
| 482 |
" char **strings;\n" |
| 483 |
"\\&\n" |
| 484 |
" nptrs = backtrace(buffer, BT_BUF_SIZE);\n" |
| 485 |
" printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n" |
| 486 |
"\\&\n" |
| 487 |
" /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n" |
| 488 |
" would produce similar output to the following: */\n" |
| 489 |
"\\&\n" |
| 490 |
" strings = backtrace_symbols(buffer, nptrs);\n" |
| 491 |
" if (strings == NULL) {\n" |
| 492 |
" perror(\"backtrace_symbols\");\n" |
| 493 |
" exit(EXIT_FAILURE);\n" |
| 494 |
" }\n" |
| 495 |
"\\&\n" |
| 496 |
" for (size_t j = 0; j E<lt> nptrs; j++)\n" |
| 497 |
" printf(\"%s\\[rs]n\", strings[j]);\n" |
| 498 |
"\\&\n" |
| 499 |
" free(strings);\n" |
| 500 |
"}\n" |
| 501 |
"\\&\n" |
| 502 |
"static void /* \"static\" means don\\[aq]t export the symbol. */\n" |
| 503 |
"myfunc2(void)\n" |
| 504 |
"{\n" |
| 505 |
" myfunc3();\n" |
| 506 |
"}\n" |
| 507 |
"\\&\n" |
| 508 |
"void\n" |
| 509 |
"myfunc(int ncalls)\n" |
| 510 |
"{\n" |
| 511 |
" if (ncalls E<gt> 1)\n" |
| 512 |
" myfunc(ncalls - 1);\n" |
| 513 |
" else\n" |
| 514 |
" myfunc2();\n" |
| 515 |
"}\n" |
| 516 |
"\\&\n" |
| 517 |
"int\n" |
| 518 |
"main(int argc, char *argv[])\n" |
| 519 |
"{\n" |
| 520 |
" if (argc != 2) {\n" |
| 521 |
" fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n" |
| 522 |
" exit(EXIT_FAILURE);\n" |
| 523 |
" }\n" |
| 524 |
"\\&\n" |
| 525 |
" myfunc(atoi(argv[1]));\n" |
| 526 |
" exit(EXIT_SUCCESS);\n" |
| 527 |
"}\n" |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. SRC END |
| 531 |
#. type: SH |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
#, no-wrap |
| 535 |
msgid "SEE ALSO" |
| 536 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 537 |
|
| 538 |
#. type: Plain text |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
msgid "" |
| 542 |
"B<addr2line>(1), B<gcc>(1), B<gdb>(1), B<ld>(1), B<dlopen>(3), B<malloc>(3)" |
| 543 |
msgstr "" |
| 544 |
"B<addr2line>(1), B<gcc>(1), B<gdb>(1), B<ld>(1), B<dlopen>(3), B<malloc>(3)" |
| 545 |
|
| 546 |
#. type: TH |
| 547 |
#: debian-trixie |
| 548 |
#, no-wrap |
| 549 |
msgid "2024-06-15" |
| 550 |
msgstr "15 июня 2024 г." |
| 551 |
|
| 552 |
#. type: TH |
| 553 |
#: debian-trixie |
| 554 |
#, no-wrap |
| 555 |
msgid "Linux man-pages 6.9.1" |
| 556 |
msgstr "Страницы руководства Linux 6.9.1" |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: debian-trixie |
| 560 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 561 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 562 |
|
| 563 |
#. type: Plain text |
| 564 |
#: debian-trixie fedora-44 fedora-rawhide |
| 565 |
#, fuzzy, no-wrap |
| 566 |
#| msgid "B<int backtrace(void> B<**>I<buffer>B<,> B<int> I<size>B<);>" |
| 567 |
msgid "B<int backtrace(void *>I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n" |
| 568 |
msgstr "B<int backtrace(void> B<**>I<buffer>B<,> B<int> I<size>B<);>" |
| 569 |
|
| 570 |
#. type: Plain text |
| 571 |
#: debian-trixie fedora-44 fedora-rawhide |
| 572 |
#, fuzzy, no-wrap |
| 573 |
#| msgid "B<void backtrace_symbols_fd(void *const> B<*>I<buffer>B<,> B<int> I<size>B<,> B<int> I<fd>B<);>" |
| 574 |
msgid "" |
| 575 |
"B<char **backtrace_symbols(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<);>\n" |
| 576 |
"B<void backtrace_symbols_fd(void *const >I<buffer>B<[.>I<size>B<], int >I<size>B<, int >I<fd>B<);>\n" |
| 577 |
msgstr "B<void backtrace_symbols_fd(void *const> B<*>I<buffer>B<,> B<int> I<size>B<,> B<int> I<fd>B<);>" |
| 578 |
|
| 579 |
#. type: Plain text |
| 580 |
#: debian-trixie fedora-44 fedora-rawhide |
| 581 |
msgid "" |
| 582 |
"B<backtrace>() returns the number of addresses returned in I<buffer>, which " |
| 583 |
"is not greater than I<size>. If the return value is less than I<size>, then " |
| 584 |
"the full backtrace was stored; if it is equal to I<size>, then it may have " |
| 585 |
"been truncated, in which case the addresses of the oldest stack frames are " |
| 586 |
"not returned." |
| 587 |
msgstr "" |
| 588 |
"Функция B<backtrace>() возвращает количество адресов, записанных в " |
| 589 |
"I<buffer>, и не может быть больше I<size>. Если возвращаемое значение меньше " |
| 590 |
"I<size>, то был сохранён полный список вызванных функций; если значение " |
| 591 |
"равно I<size>, то список может быть не полным, то есть адреса самых старых " |
| 592 |
"кадров стека могут отсутствовать." |
| 593 |
|
| 594 |
#. type: Plain text |
| 595 |
#: debian-trixie fedora-44 fedora-rawhide |
| 596 |
#, no-wrap |
| 597 |
msgid "" |
| 598 |
"#include E<lt>execinfo.hE<gt>\n" |
| 599 |
"#include E<lt>stdio.hE<gt>\n" |
| 600 |
"#include E<lt>stdlib.hE<gt>\n" |
| 601 |
"#include E<lt>unistd.hE<gt>\n" |
| 602 |
"\\&\n" |
| 603 |
"#define BT_BUF_SIZE 100\n" |
| 604 |
"\\&\n" |
| 605 |
"void\n" |
| 606 |
"myfunc3(void)\n" |
| 607 |
"{\n" |
| 608 |
" int nptrs;\n" |
| 609 |
" void *buffer[BT_BUF_SIZE];\n" |
| 610 |
" char **strings;\n" |
| 611 |
"\\&\n" |
| 612 |
" nptrs = backtrace(buffer, BT_BUF_SIZE);\n" |
| 613 |
" printf(\"backtrace() returned %d addresses\\[rs]n\", nptrs);\n" |
| 614 |
"\\&\n" |
| 615 |
" /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO)\n" |
| 616 |
" would produce similar output to the following: */\n" |
| 617 |
"\\&\n" |
| 618 |
" strings = backtrace_symbols(buffer, nptrs);\n" |
| 619 |
" if (strings == NULL) {\n" |
| 620 |
" perror(\"backtrace_symbols\");\n" |
| 621 |
" exit(EXIT_FAILURE);\n" |
| 622 |
" }\n" |
| 623 |
"\\&\n" |
| 624 |
" for (size_t j = 0; j E<lt> nptrs; j++)\n" |
| 625 |
" printf(\"%s\\[rs]n\", strings[j]);\n" |
| 626 |
"\\&\n" |
| 627 |
" free(strings);\n" |
| 628 |
"}\n" |
| 629 |
"\\&\n" |
| 630 |
"static void /* \"static\" means don\\[aq]t export the symbol... */\n" |
| 631 |
"myfunc2(void)\n" |
| 632 |
"{\n" |
| 633 |
" myfunc3();\n" |
| 634 |
"}\n" |
| 635 |
"\\&\n" |
| 636 |
"void\n" |
| 637 |
"myfunc(int ncalls)\n" |
| 638 |
"{\n" |
| 639 |
" if (ncalls E<gt> 1)\n" |
| 640 |
" myfunc(ncalls - 1);\n" |
| 641 |
" else\n" |
| 642 |
" myfunc2();\n" |
| 643 |
"}\n" |
| 644 |
"\\&\n" |
| 645 |
"int\n" |
| 646 |
"main(int argc, char *argv[])\n" |
| 647 |
"{\n" |
| 648 |
" if (argc != 2) {\n" |
| 649 |
" fprintf(stderr, \"%s num-calls\\[rs]n\", argv[0]);\n" |
| 650 |
" exit(EXIT_FAILURE);\n" |
| 651 |
" }\n" |
| 652 |
"\\&\n" |
| 653 |
" myfunc(atoi(argv[1]));\n" |
| 654 |
" exit(EXIT_SUCCESS);\n" |
| 655 |
"}\n" |
| 656 |
msgstr "" |
| 657 |
|
| 658 |
#. type: TH |
| 659 |
#: fedora-44 fedora-rawhide |
| 660 |
#, no-wrap |
| 661 |
msgid "2024-07-23" |
| 662 |
msgstr "23 июля 2024 г." |
| 663 |
|
| 664 |
#. type: TH |
| 665 |
#: fedora-44 fedora-rawhide |
| 666 |
#, no-wrap |
| 667 |
msgid "Linux man-pages 6.13" |
| 668 |
msgstr "Страницы руководства Linux 6.13" |
| 669 |
|
| 670 |
#. type: TH |
| 671 |
#: mageia-cauldron |
| 672 |
#, no-wrap |
| 673 |
msgid "Linux man-pages 6.17" |
| 674 |
msgstr "Страницы руководства Linux 6.17" |
| 675 |
|
| 676 |
#. type: TH |
| 677 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 678 |
#, no-wrap |
| 679 |
msgid "Linux man-pages (unreleased)" |
| 680 |
msgstr "Страницы руководства Linux (не выпущены)" |