| 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 |
# aereiae <[email protected]>, 2014. |
| 5 |
# Alexey <[email protected]>, 2015. |
| 6 |
# Azamat Hackimov <[email protected]>, 2013-2017. |
| 7 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 8 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 9 |
# ITriskTI <[email protected]>, 2013. |
| 10 |
# Max Is <[email protected]>, 2016. |
| 11 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 12 |
# Иван Павлов <[email protected]>, 2017. |
| 13 |
# Малянов Евгений Викторович <[email protected]>, 2014. |
| 14 |
msgid "" |
| 15 |
msgstr "" |
| 16 |
"Project-Id-Version: manpages-l10n\n" |
| 17 |
"POT-Creation-Date: 2026-06-05 06:30+0200\n" |
| 18 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 19 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 20 |
"Language-Team: Russian <[email protected]>\n" |
| 21 |
"Language: ru\n" |
| 22 |
"MIME-Version: 1.0\n" |
| 23 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 24 |
"Content-Transfer-Encoding: 8bit\n" |
| 25 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 26 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 27 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 28 |
"X-Generator: Lokalize 2.0\n" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 32 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 33 |
#, no-wrap |
| 34 |
msgid "__malloc_hook" |
| 35 |
msgstr "" |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 39 |
#: opensuse-tumbleweed |
| 40 |
#, no-wrap |
| 41 |
msgid "2026-02-08" |
| 42 |
msgstr "8 февраля 2026 г." |
| 43 |
|
| 44 |
#. type: TH |
| 45 |
#: archlinux debian-unstable |
| 46 |
#, fuzzy, no-wrap |
| 47 |
#| msgid "Linux man-pages 6.17" |
| 48 |
msgid "Linux man-pages 6.18" |
| 49 |
msgstr "Справочные страницы Linux 6.17" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "NAME" |
| 56 |
msgstr "НАИМЕНОВАНИЕ" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
#, fuzzy |
| 62 |
#| msgid "" |
| 63 |
#| "__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, " |
| 64 |
#| "__realloc_hook, __after_morecore_hook - malloc debugging variables" |
| 65 |
msgid "" |
| 66 |
"__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, " |
| 67 |
"__realloc_hook, __after_morecore_hook - malloc debugging variables " |
| 68 |
"(DEPRECATED)" |
| 69 |
msgstr "" |
| 70 |
"__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, " |
| 71 |
"__realloc_hook, __after_morecore_hook - переменные отладки malloc" |
| 72 |
|
| 73 |
#. type: SH |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "LIBRARY" |
| 78 |
msgstr "БИБЛИОТЕКА" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 82 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 84 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 85 |
|
| 86 |
#. type: SH |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "SYNOPSIS" |
| 91 |
msgstr "СИНТАКСИС" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "B<#include E<lt>malloc.hE<gt>>\n" |
| 98 |
msgstr "B<#include E<lt>malloc.hE<gt>>\n" |
| 99 |
|
| 100 |
#. type: Plain text |
| 101 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 102 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 103 |
#, fuzzy, no-wrap |
| 104 |
#| msgid "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 105 |
msgid "" |
| 106 |
"B<typeof(void *(size_t >I<size>B<, const void *>I<caller>B<))>\n" |
| 107 |
"B<*volatile __malloc_hook;>\n" |
| 108 |
msgstr "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 109 |
|
| 110 |
#. type: Plain text |
| 111 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 112 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 113 |
#, fuzzy, no-wrap |
| 114 |
#| msgid "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 115 |
msgid "" |
| 116 |
"B<typeof(void *(void *>I<p>B<, size_t >I<size>B<, const void *>I<caller>B<))>\n" |
| 117 |
"B<*volatile __realloc_hook;>\n" |
| 118 |
msgstr "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 122 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
#, fuzzy, no-wrap |
| 124 |
#| msgid "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 125 |
msgid "" |
| 126 |
"B<typeof(void *(size_t >I<align>B<, size_t >I<size>B<, const void *>I<caller>B<))>\n" |
| 127 |
"B<*volatile __memalign_hook;>\n" |
| 128 |
msgstr "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 132 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
#, fuzzy, no-wrap |
| 134 |
#| msgid "B<void (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 135 |
msgid "" |
| 136 |
"B<typeof(void *(void *>I<p>B<, const void *>I<caller>B<))>\n" |
| 137 |
"B<*volatile __free_hook;>\n" |
| 138 |
msgstr "B<void (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 142 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
#, no-wrap |
| 144 |
msgid "" |
| 145 |
"B<typeof(void (void)) *__malloc_initialize_hook;>\n" |
| 146 |
"B<typeof(void (void)) *volatile __after_mrecore_hook;>\n" |
| 147 |
msgstr "" |
| 148 |
|
| 149 |
#. type: SH |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
#, no-wrap |
| 153 |
msgid "DESCRIPTION" |
| 154 |
msgstr "ОПИСАНИЕ" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"The GNU C library lets you modify the behavior of B<malloc>(3), " |
| 161 |
"B<realloc>(3), and B<free>(3) by specifying appropriate hook functions. " |
| 162 |
"You can use these hooks to help you debug programs that use dynamic memory " |
| 163 |
"allocation, for example." |
| 164 |
msgstr "" |
| 165 |
"Библиотека GNU C позволяет изменить поведение B<malloc>(3), B<realoc>(3) и " |
| 166 |
"B<free>(3), указав соответствующие «обрабатывающие» (hook) функции. Вы " |
| 167 |
"можете использовать эти функции-обработчики для отладки программ, " |
| 168 |
"использующих динамическое выделение памяти." |
| 169 |
|
| 170 |
#. type: Plain text |
| 171 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 172 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 173 |
msgid "" |
| 174 |
"The variable B<__malloc_initialize_hook> points at a function that is called " |
| 175 |
"once when the malloc implementation is initialized. This is a weak " |
| 176 |
"variable, so it can be overridden in the application with a definition like " |
| 177 |
"the following:" |
| 178 |
msgstr "" |
| 179 |
"Переменная B<__ malloc_initialize_hook> указывает на функцию, которая " |
| 180 |
"однократно вызывается при инициализации реализации malloc. Это — слабая " |
| 181 |
"переменная, поэтому она может быть переопределена в приложении как показано " |
| 182 |
"далее:" |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 186 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, fuzzy, no-wrap |
| 188 |
#| msgid "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 189 |
msgid "typeof(void (void)) *__malloc_initialize_hook = my_init_hook;\n" |
| 190 |
msgstr "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "" |
| 196 |
"Now the function I<my_init_hook>() can do the initialization of all hooks." |
| 197 |
msgstr "" |
| 198 |
"Теперь функция I<my_init_hook>() может проинициализировать все функции-" |
| 199 |
"обработчики." |
| 200 |
|
| 201 |
#. type: Plain text |
| 202 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 203 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 204 |
msgid "" |
| 205 |
"The four functions pointed to by B<__malloc_hook>, B<__realloc_hook>, " |
| 206 |
"B<__memalign_hook>, B<__free_hook> have a prototype like the functions " |
| 207 |
"B<malloc>(3), B<realloc>(3), B<memalign>(3), B<free>(3), respectively, " |
| 208 |
"except that they have a final argument I<caller> that gives the address of " |
| 209 |
"the caller of B<malloc>(3), etc." |
| 210 |
msgstr "" |
| 211 |
"У четырёх функций, на которые указывают переменные B<__malloc_hook>, " |
| 212 |
"B<__realloc_hook>, B<__memalign_hook>, B<__free_hook>, имеются прототипы, " |
| 213 |
"подобные функциям B<malloc>(3), B<realloc>(3), B<memalign>(3), B<free>(3), " |
| 214 |
"соответственно, однако у них есть дополнительный последний параметр " |
| 215 |
"I<caller>, в который передаётся адрес вызывающего B<malloc>(3) и т.д." |
| 216 |
|
| 217 |
#. type: Plain text |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
msgid "" |
| 221 |
"The variable B<__after_morecore_hook> points at a function that is called " |
| 222 |
"each time after B<sbrk>(2) was asked for more memory." |
| 223 |
msgstr "" |
| 224 |
"Переменная B<__ after_morecore_hook> указывает на функцию, которая " |
| 225 |
"вызывается каждый раз после того, как B<sbrk>(2) просят увеличить память." |
| 226 |
|
| 227 |
#. type: SH |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "STANDARDS" |
| 232 |
msgstr "СТАНДАРТЫ" |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "GNU." |
| 238 |
msgstr "GNU." |
| 239 |
|
| 240 |
#. type: SH |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "NOTES" |
| 245 |
msgstr "ПРИМЕЧАНИЯ" |
| 246 |
|
| 247 |
#. https://bugzilla.redhat.com/show_bug.cgi?id=450187 |
| 248 |
#. http://sourceware.org/bugzilla/show_bug.cgi?id=9957 |
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
#, fuzzy |
| 253 |
#| msgid "" |
| 254 |
#| "The use of these hook functions is not safe in multithreaded programs, " |
| 255 |
#| "and they are now deprecated. From glibc 2.24 onwards, the " |
| 256 |
#| "B<__malloc_initialize_hook> variable has been removed from the API. " |
| 257 |
#| "Programmers should instead preempt calls to the relevant functions by " |
| 258 |
#| "defining and exporting functions such as \"malloc\" and \"free\"." |
| 259 |
msgid "" |
| 260 |
"The use of these hook functions is not safe in multithreaded programs, and " |
| 261 |
"they are now deprecated. From glibc 2.24 onwards, the " |
| 262 |
"B<__malloc_initialize_hook> variable has been removed from the API, and from " |
| 263 |
"glibc 2.34 onwards, all the hook variables have been removed from the API. " |
| 264 |
"Programmers should instead preempt calls to the relevant functions by " |
| 265 |
"defining and exporting B<malloc>(), B<free>(), B<realloc>(), and B<calloc>()." |
| 266 |
msgstr "" |
| 267 |
"Использование этих обрабатывающих функций не безопасно в многонитевых " |
| 268 |
"программах, и теперь они считаются устаревшими. Начиная с glibc версии 2.24, " |
| 269 |
"переменная B<__ malloc_initialize_hook> была удалена из программного " |
| 270 |
"интерфейса. Теперь вместо неё программисты должны подменять вызовы " |
| 271 |
"соответствующих функций, определяя и экспортируя такие функции как «malloc» " |
| 272 |
"и «free»." |
| 273 |
|
| 274 |
#. type: SH |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
#, no-wrap |
| 278 |
msgid "EXAMPLES" |
| 279 |
msgstr "ПРИМЕРЫ" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
msgid "Here is a short example of how to use these variables." |
| 285 |
msgstr "Вот короткий пример того, как использовать эти переменные." |
| 286 |
|
| 287 |
#. type: Plain text |
| 288 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 289 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "" |
| 292 |
"#include E<lt>stdio.hE<gt>\n" |
| 293 |
"#include E<lt>malloc.hE<gt>\n" |
| 294 |
"\\&\n" |
| 295 |
"/* Prototypes for our hooks */\n" |
| 296 |
"static void my_init_hook(void);\n" |
| 297 |
"static void *my_malloc_hook(size_t, const void *);\n" |
| 298 |
"\\&\n" |
| 299 |
"/* Variables to save original hooks */\n" |
| 300 |
"static typeof(void *(size_t, const void *)) *old_malloc_hook;\n" |
| 301 |
"\\&\n" |
| 302 |
"/* Override initializing hook from the C library */\n" |
| 303 |
"typeof(void (void)) *__malloc_initialize_hook = my_init_hook;\n" |
| 304 |
"\\&\n" |
| 305 |
"static void\n" |
| 306 |
"my_init_hook(void)\n" |
| 307 |
"{\n" |
| 308 |
" old_malloc_hook = __malloc_hook;\n" |
| 309 |
" __malloc_hook = my_malloc_hook;\n" |
| 310 |
"}\n" |
| 311 |
"\\&\n" |
| 312 |
"static void *\n" |
| 313 |
"my_malloc_hook(size_t size, const void *caller)\n" |
| 314 |
"{\n" |
| 315 |
" void *result;\n" |
| 316 |
"\\&\n" |
| 317 |
" /* Restore all old hooks */\n" |
| 318 |
" __malloc_hook = old_malloc_hook;\n" |
| 319 |
"\\&\n" |
| 320 |
" /* Call recursively */\n" |
| 321 |
" result = malloc(size);\n" |
| 322 |
"\\&\n" |
| 323 |
" /* Save underlying hooks */\n" |
| 324 |
" old_malloc_hook = __malloc_hook;\n" |
| 325 |
"\\&\n" |
| 326 |
" /* printf() might call malloc(), so protect it too */\n" |
| 327 |
" printf(\"malloc(%zu) called from %p returns %p\\[rs]n\",\n" |
| 328 |
" size, caller, result);\n" |
| 329 |
"\\&\n" |
| 330 |
" /* Restore our own hooks */\n" |
| 331 |
" __malloc_hook = my_malloc_hook;\n" |
| 332 |
"\\&\n" |
| 333 |
" return result;\n" |
| 334 |
"}\n" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: SH |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "SEE ALSO" |
| 342 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "B<mallinfo>(3), B<malloc>(3), B<mcheck>(3), B<mtrace>(3)" |
| 348 |
msgstr "B<mallinfo>(3), B<malloc>(3), B<mcheck>(3), B<mtrace>(3)" |
| 349 |
|
| 350 |
#. type: TH |
| 351 |
#: debian-trixie |
| 352 |
#, no-wrap |
| 353 |
msgid "2024-06-15" |
| 354 |
msgstr "15 июня 2024 г." |
| 355 |
|
| 356 |
#. type: TH |
| 357 |
#: debian-trixie |
| 358 |
#, no-wrap |
| 359 |
msgid "Linux man-pages 6.9.1" |
| 360 |
msgstr "Страницы руководства Linux 6.9.1" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: debian-trixie |
| 364 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 365 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 366 |
|
| 367 |
#. type: Plain text |
| 368 |
#: debian-trixie |
| 369 |
#, fuzzy, no-wrap |
| 370 |
#| msgid "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 371 |
msgid "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 372 |
msgstr "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: debian-trixie |
| 376 |
#, fuzzy, no-wrap |
| 377 |
#| msgid "" |
| 378 |
#| "B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 379 |
#| "B< const void *>I<caller>B<);>\n" |
| 380 |
msgid "" |
| 381 |
"B<void *(*volatile __realloc_hook)(void *>I<ptr>B<, size_t >I<size>B<,>\n" |
| 382 |
"B< const void *>I<caller>B<);>\n" |
| 383 |
msgstr "" |
| 384 |
"B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 385 |
"B< const void *>I<caller>B<);>\n" |
| 386 |
|
| 387 |
#. type: Plain text |
| 388 |
#: debian-trixie |
| 389 |
#, fuzzy, no-wrap |
| 390 |
#| msgid "" |
| 391 |
#| "B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 392 |
#| "B< const void *>I<caller>B<);>\n" |
| 393 |
msgid "" |
| 394 |
"B<void *(*volatile __memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 395 |
"B< const void *>I<caller>B<);>\n" |
| 396 |
msgstr "" |
| 397 |
"B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 398 |
"B< const void *>I<caller>B<);>\n" |
| 399 |
|
| 400 |
#. type: Plain text |
| 401 |
#: debian-trixie |
| 402 |
#, fuzzy, no-wrap |
| 403 |
#| msgid "B<void (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 404 |
msgid "B<void (*volatile __free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 405 |
msgstr "B<void (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 406 |
|
| 407 |
#. type: Plain text |
| 408 |
#: debian-trixie |
| 409 |
#, no-wrap |
| 410 |
msgid "B<void (*__malloc_initialize_hook)(void);>\n" |
| 411 |
msgstr "B<void (*__malloc_initialize_hook)(void);>\n" |
| 412 |
|
| 413 |
#. type: Plain text |
| 414 |
#: debian-trixie |
| 415 |
#, fuzzy, no-wrap |
| 416 |
#| msgid "B<void (*__after_morecore_hook)(void);>\n" |
| 417 |
msgid "B<void (*volatile __after_morecore_hook)(void);>\n" |
| 418 |
msgstr "B<void (*__after_morecore_hook)(void);>\n" |
| 419 |
|
| 420 |
#. type: Plain text |
| 421 |
#: debian-trixie |
| 422 |
#, no-wrap |
| 423 |
msgid "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 424 |
msgstr "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 425 |
|
| 426 |
#. type: Plain text |
| 427 |
#: debian-trixie |
| 428 |
#, no-wrap |
| 429 |
msgid "" |
| 430 |
"#include E<lt>stdio.hE<gt>\n" |
| 431 |
"#include E<lt>malloc.hE<gt>\n" |
| 432 |
"\\&\n" |
| 433 |
"/* Prototypes for our hooks */\n" |
| 434 |
"static void my_init_hook(void);\n" |
| 435 |
"static void *my_malloc_hook(size_t, const void *);\n" |
| 436 |
"\\&\n" |
| 437 |
"/* Variables to save original hooks */\n" |
| 438 |
"static void *(*old_malloc_hook)(size_t, const void *);\n" |
| 439 |
"\\&\n" |
| 440 |
"/* Override initializing hook from the C library */\n" |
| 441 |
"void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 442 |
"\\&\n" |
| 443 |
"static void\n" |
| 444 |
"my_init_hook(void)\n" |
| 445 |
"{\n" |
| 446 |
" old_malloc_hook = __malloc_hook;\n" |
| 447 |
" __malloc_hook = my_malloc_hook;\n" |
| 448 |
"}\n" |
| 449 |
"\\&\n" |
| 450 |
"static void *\n" |
| 451 |
"my_malloc_hook(size_t size, const void *caller)\n" |
| 452 |
"{\n" |
| 453 |
" void *result;\n" |
| 454 |
"\\&\n" |
| 455 |
" /* Restore all old hooks */\n" |
| 456 |
" __malloc_hook = old_malloc_hook;\n" |
| 457 |
"\\&\n" |
| 458 |
" /* Call recursively */\n" |
| 459 |
" result = malloc(size);\n" |
| 460 |
"\\&\n" |
| 461 |
" /* Save underlying hooks */\n" |
| 462 |
" old_malloc_hook = __malloc_hook;\n" |
| 463 |
"\\&\n" |
| 464 |
" /* printf() might call malloc(), so protect it too */\n" |
| 465 |
" printf(\"malloc(%zu) called from %p returns %p\\[rs]n\",\n" |
| 466 |
" size, caller, result);\n" |
| 467 |
"\\&\n" |
| 468 |
" /* Restore our own hooks */\n" |
| 469 |
" __malloc_hook = my_malloc_hook;\n" |
| 470 |
"\\&\n" |
| 471 |
" return result;\n" |
| 472 |
"}\n" |
| 473 |
msgstr "" |
| 474 |
|
| 475 |
#. type: TH |
| 476 |
#: fedora-44 fedora-rawhide |
| 477 |
#, no-wrap |
| 478 |
msgid "2025-01-05" |
| 479 |
msgstr "5 января 2025 г." |
| 480 |
|
| 481 |
#. type: TH |
| 482 |
#: fedora-44 fedora-rawhide |
| 483 |
#, no-wrap |
| 484 |
msgid "Linux man-pages 6.13" |
| 485 |
msgstr "Страницы руководства Linux 6.13" |
| 486 |
|
| 487 |
#. type: TH |
| 488 |
#: mageia-cauldron |
| 489 |
#, no-wrap |
| 490 |
msgid "Linux man-pages 6.17" |
| 491 |
msgstr "Страницы руководства Linux 6.17" |
| 492 |
|
| 493 |
#. type: TH |
| 494 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 495 |
#, no-wrap |
| 496 |
msgid "Linux man-pages (unreleased)" |
| 497 |
msgstr "Страницы руководства Linux (не выпущены)" |