| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999,2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006, 2012-2014. |
| 16 |
# Denis Barbier <[email protected]>, 2006,2010. |
| 17 |
# David Prévot <[email protected]>, 2010-2014. |
| 18 |
# Grégoire Scano <[email protected]>, 2020-2021. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages-l10n 4.22.0\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:30+0200\n" |
| 23 |
"PO-Revision-Date: 2024-04-22 12:05+0200\n" |
| 24 |
"Last-Translator: Grégoire Scano <[email protected]>\n" |
| 25 |
"Language-Team: French <[email protected]>\n" |
| 26 |
"Language: fr\n" |
| 27 |
"MIME-Version: 1.0\n" |
| 28 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 29 |
"Content-Transfer-Encoding: 8bit\n" |
| 30 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 31 |
"X-Generator: Lokalize 22.12.3\n" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 35 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "__malloc_hook" |
| 38 |
msgstr "__malloc_hook" |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 42 |
#: opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "2026-02-08" |
| 45 |
msgstr "8 février 2026" |
| 46 |
|
| 47 |
#. type: TH |
| 48 |
#: archlinux debian-unstable |
| 49 |
#, no-wrap |
| 50 |
msgid "Linux man-pages 6.18" |
| 51 |
msgstr "Pages du manuel de Linux 6.18" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 55 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "NAME" |
| 58 |
msgstr "NOM" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 62 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
msgid "" |
| 64 |
"__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, " |
| 65 |
"__realloc_hook, __after_morecore_hook - malloc debugging variables " |
| 66 |
"(DEPRECATED)" |
| 67 |
msgstr "" |
| 68 |
"__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, " |
| 69 |
"__realloc_hook, __after_morecore_hook - Variables de débogage de malloc " |
| 70 |
"(OBSOLÈTE)" |
| 71 |
|
| 72 |
#. type: SH |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "LIBRARY" |
| 77 |
msgstr "BIBLIOTHÈQUE" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 81 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 83 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 84 |
|
| 85 |
#. type: SH |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "SYNOPSIS" |
| 90 |
msgstr "SYNOPSIS" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "B<#include E<lt>malloc.hE<gt>>\n" |
| 97 |
msgstr "B<#include E<lt>malloc.hE<gt>>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 101 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
#, fuzzy, no-wrap |
| 103 |
#| msgid "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 104 |
msgid "" |
| 105 |
"B<typeof(void *(size_t >I<size>B<, const void *>I<caller>B<))>\n" |
| 106 |
"B<*volatile __malloc_hook;>\n" |
| 107 |
msgstr "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 108 |
|
| 109 |
#. type: Plain text |
| 110 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 111 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, fuzzy, no-wrap |
| 113 |
#| msgid "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 114 |
msgid "" |
| 115 |
"B<typeof(void *(void *>I<p>B<, size_t >I<size>B<, const void *>I<caller>B<))>\n" |
| 116 |
"B<*volatile __realloc_hook;>\n" |
| 117 |
msgstr "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 121 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
#, fuzzy, no-wrap |
| 123 |
#| msgid "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 124 |
msgid "" |
| 125 |
"B<typeof(void *(size_t >I<align>B<, size_t >I<size>B<, const void *>I<caller>B<))>\n" |
| 126 |
"B<*volatile __memalign_hook;>\n" |
| 127 |
msgstr "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 131 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
#, fuzzy, no-wrap |
| 133 |
#| msgid "B<void (*volatile __free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 134 |
msgid "" |
| 135 |
"B<typeof(void *(void *>I<p>B<, const void *>I<caller>B<))>\n" |
| 136 |
"B<*volatile __free_hook;>\n" |
| 137 |
msgstr "B<void (*volatile __free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 138 |
|
| 139 |
#. type: Plain text |
| 140 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 141 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
#, no-wrap |
| 143 |
msgid "" |
| 144 |
"B<typeof(void (void)) *__malloc_initialize_hook;>\n" |
| 145 |
"B<typeof(void (void)) *volatile __after_mrecore_hook;>\n" |
| 146 |
msgstr "" |
| 147 |
|
| 148 |
#. type: SH |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "DESCRIPTION" |
| 153 |
msgstr "DESCRIPTION" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"The GNU C library lets you modify the behavior of B<malloc>(3), " |
| 160 |
"B<realloc>(3), and B<free>(3) by specifying appropriate hook functions. " |
| 161 |
"You can use these hooks to help you debug programs that use dynamic memory " |
| 162 |
"allocation, for example." |
| 163 |
msgstr "" |
| 164 |
"La bibliothèque C GNU vous permet de modifier le comportement de " |
| 165 |
"B<malloc>(3), B<realloc>(3) et B<free>(3) en fixant les points d'entrée des " |
| 166 |
"routines. Vous pouvez utiliser ces points pour, par exemple, faciliter le " |
| 167 |
"débogage des programmes utilisant des allocations de mémoire dynamique." |
| 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 |
"The variable B<__malloc_initialize_hook> points at a function that is called " |
| 174 |
"once when the malloc implementation is initialized. This is a weak " |
| 175 |
"variable, so it can be overridden in the application with a definition like " |
| 176 |
"the following:" |
| 177 |
msgstr "" |
| 178 |
"La variable B<__malloc_initialize_hook> pointe vers une fonction qui est " |
| 179 |
"appelée une seule fois à l'initialisation de B<malloc>(). C'est une variable " |
| 180 |
"libre qui peut être modifiée par l'application avec une déclaration comme " |
| 181 |
"celle-ci\\ :" |
| 182 |
|
| 183 |
#. type: Plain text |
| 184 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 185 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 186 |
#, fuzzy, no-wrap |
| 187 |
#| msgid "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 188 |
msgid "typeof(void (void)) *__malloc_initialize_hook = my_init_hook;\n" |
| 189 |
msgstr "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 190 |
|
| 191 |
#. type: Plain text |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
msgid "" |
| 195 |
"Now the function I<my_init_hook>() can do the initialization of all hooks." |
| 196 |
msgstr "" |
| 197 |
"À présent, la fonction I<my_init_hook>() pourra faire toute l'initialisation " |
| 198 |
"des routines." |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"The four functions pointed to by B<__malloc_hook>, B<__realloc_hook>, " |
| 205 |
"B<__memalign_hook>, B<__free_hook> have a prototype like the functions " |
| 206 |
"B<malloc>(3), B<realloc>(3), B<memalign>(3), B<free>(3), respectively, " |
| 207 |
"except that they have a final argument I<caller> that gives the address of " |
| 208 |
"the caller of B<malloc>(3), etc." |
| 209 |
msgstr "" |
| 210 |
"Les quatre fonctions pointées par B<__malloc_hook>, B<__realloc_hook>, " |
| 211 |
"B<__memalign_hook> et B<__free_hook> ont des prototypes semblables à ceux " |
| 212 |
"des fonctions B<malloc>(3), B<realloc>(3), B<memalign>(3) et B<free>(3), " |
| 213 |
"respectivement, avec un argument final supplémentaire I<caller> qui fournit " |
| 214 |
"l'adresse du code appelant B<malloc>(3), etc." |
| 215 |
|
| 216 |
#. type: Plain text |
| 217 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 218 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 219 |
msgid "" |
| 220 |
"The variable B<__after_morecore_hook> points at a function that is called " |
| 221 |
"each time after B<sbrk>(2) was asked for more memory." |
| 222 |
msgstr "" |
| 223 |
"La variable B<__after_morecore_hook> pointe sur une fonction qui est " |
| 224 |
"invoquée à chaque fois que B<sbrk>(2) a été appelée pour augmenter la " |
| 225 |
"mémoire." |
| 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 "NORMES" |
| 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 "NOTES" |
| 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 |
msgid "" |
| 253 |
"The use of these hook functions is not safe in multithreaded programs, and " |
| 254 |
"they are now deprecated. From glibc 2.24 onwards, the " |
| 255 |
"B<__malloc_initialize_hook> variable has been removed from the API, and from " |
| 256 |
"glibc 2.34 onwards, all the hook variables have been removed from the API. " |
| 257 |
"Programmers should instead preempt calls to the relevant functions by " |
| 258 |
"defining and exporting B<malloc>(), B<free>(), B<realloc>(), and B<calloc>()." |
| 259 |
msgstr "" |
| 260 |
"L'utilisation de ces fonctions de crochet n'est pas sûre dans des programmes " |
| 261 |
"multiprocessus, et elles sont dorénavant obsolètes. À compter de la " |
| 262 |
"glibc 2.24, la variable B<__malloc_initialize_hook> a été supprimée de l'API " |
| 263 |
"et à partir de la glibc 2.34, toutes les variables de crochet ont été " |
| 264 |
"supprimées de l'API. Les programmeurs devraient à la place préempter les " |
| 265 |
"appels à ces fonctions en définissant et exportant B<malloc>(), B<free>(), " |
| 266 |
"B<realloc>() et B<calloc>()." |
| 267 |
|
| 268 |
#. type: SH |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "EXAMPLES" |
| 273 |
msgstr "EXEMPLES" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "Here is a short example of how to use these variables." |
| 279 |
msgstr "Voici un court exemple d'utilisation de ces variables." |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 283 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, fuzzy, no-wrap |
| 285 |
#| msgid "" |
| 286 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 287 |
#| "#include E<lt>malloc.hE<gt>\n" |
| 288 |
#| "\\&\n" |
| 289 |
#| "/* Prototypes for our hooks */\n" |
| 290 |
#| "static void my_init_hook(void);\n" |
| 291 |
#| "static void *my_malloc_hook(size_t, const void *);\n" |
| 292 |
#| "\\&\n" |
| 293 |
#| "/* Variables to save original hooks */\n" |
| 294 |
#| "static void *(*old_malloc_hook)(size_t, const void *);\n" |
| 295 |
#| "\\&\n" |
| 296 |
#| "/* Override initializing hook from the C library */\n" |
| 297 |
#| "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 298 |
#| "\\&\n" |
| 299 |
#| "static void\n" |
| 300 |
#| "my_init_hook(void)\n" |
| 301 |
#| "{\n" |
| 302 |
#| " old_malloc_hook = __malloc_hook;\n" |
| 303 |
#| " __malloc_hook = my_malloc_hook;\n" |
| 304 |
#| "}\n" |
| 305 |
#| "\\&\n" |
| 306 |
#| "static void *\n" |
| 307 |
#| "my_malloc_hook(size_t size, const void *caller)\n" |
| 308 |
#| "{\n" |
| 309 |
#| " void *result;\n" |
| 310 |
#| "\\&\n" |
| 311 |
#| " /* Restore all old hooks */\n" |
| 312 |
#| " __malloc_hook = old_malloc_hook;\n" |
| 313 |
#| "\\&\n" |
| 314 |
#| " /* Call recursively */\n" |
| 315 |
#| " result = malloc(size);\n" |
| 316 |
#| "\\&\n" |
| 317 |
#| " /* Save underlying hooks */\n" |
| 318 |
#| " old_malloc_hook = __malloc_hook;\n" |
| 319 |
#| "\\&\n" |
| 320 |
#| " /* printf() might call malloc(), so protect it too */\n" |
| 321 |
#| " printf(\"malloc(%zu) called from %p returns %p\\en\",\n" |
| 322 |
#| " size, caller, result);\n" |
| 323 |
#| "\\&\n" |
| 324 |
#| " /* Restore our own hooks */\n" |
| 325 |
#| " __malloc_hook = my_malloc_hook;\n" |
| 326 |
#| "\\&\n" |
| 327 |
#| " return result;\n" |
| 328 |
#| "}\n" |
| 329 |
msgid "" |
| 330 |
"#include E<lt>stdio.hE<gt>\n" |
| 331 |
"#include E<lt>malloc.hE<gt>\n" |
| 332 |
"\\&\n" |
| 333 |
"/* Prototypes for our hooks */\n" |
| 334 |
"static void my_init_hook(void);\n" |
| 335 |
"static void *my_malloc_hook(size_t, const void *);\n" |
| 336 |
"\\&\n" |
| 337 |
"/* Variables to save original hooks */\n" |
| 338 |
"static typeof(void *(size_t, const void *)) *old_malloc_hook;\n" |
| 339 |
"\\&\n" |
| 340 |
"/* Override initializing hook from the C library */\n" |
| 341 |
"typeof(void (void)) *__malloc_initialize_hook = my_init_hook;\n" |
| 342 |
"\\&\n" |
| 343 |
"static void\n" |
| 344 |
"my_init_hook(void)\n" |
| 345 |
"{\n" |
| 346 |
" old_malloc_hook = __malloc_hook;\n" |
| 347 |
" __malloc_hook = my_malloc_hook;\n" |
| 348 |
"}\n" |
| 349 |
"\\&\n" |
| 350 |
"static void *\n" |
| 351 |
"my_malloc_hook(size_t size, const void *caller)\n" |
| 352 |
"{\n" |
| 353 |
" void *result;\n" |
| 354 |
"\\&\n" |
| 355 |
" /* Restore all old hooks */\n" |
| 356 |
" __malloc_hook = old_malloc_hook;\n" |
| 357 |
"\\&\n" |
| 358 |
" /* Call recursively */\n" |
| 359 |
" result = malloc(size);\n" |
| 360 |
"\\&\n" |
| 361 |
" /* Save underlying hooks */\n" |
| 362 |
" old_malloc_hook = __malloc_hook;\n" |
| 363 |
"\\&\n" |
| 364 |
" /* printf() might call malloc(), so protect it too */\n" |
| 365 |
" printf(\"malloc(%zu) called from %p returns %p\\[rs]n\",\n" |
| 366 |
" size, caller, result);\n" |
| 367 |
"\\&\n" |
| 368 |
" /* Restore our own hooks */\n" |
| 369 |
" __malloc_hook = my_malloc_hook;\n" |
| 370 |
"\\&\n" |
| 371 |
" return result;\n" |
| 372 |
"}\n" |
| 373 |
msgstr "" |
| 374 |
"#include E<lt>stdio.hE<gt>\n" |
| 375 |
"#include E<lt>malloc.hE<gt>\n" |
| 376 |
"\\&\n" |
| 377 |
"/* Prototypes de nos routines */\n" |
| 378 |
"static void my_init_hook(void);\n" |
| 379 |
"static void *my_malloc_hook(size_t, const void *);\n" |
| 380 |
"\\&\n" |
| 381 |
"/* Variables pour sauver les routines originelles */\n" |
| 382 |
"static void *(*old_malloc_hook)(size_t, const void *);\n" |
| 383 |
"\\&\n" |
| 384 |
"/* Surcharge de la routine d'initialisation de la bibliothèque C */\n" |
| 385 |
"void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 386 |
"\\&\n" |
| 387 |
"static void\n" |
| 388 |
"my_init_hook(void)\n" |
| 389 |
"{\n" |
| 390 |
" old_malloc_hook = __malloc_hook;\n" |
| 391 |
" __malloc_hook = my_malloc_hook;\n" |
| 392 |
"}\n" |
| 393 |
"\\&\n" |
| 394 |
"static void *\n" |
| 395 |
"my_malloc_hook(size_t size, const void *caller)\n" |
| 396 |
"{\n" |
| 397 |
" void *result;\n" |
| 398 |
"\\&\n" |
| 399 |
" /* Restaurer la routine originale */\n" |
| 400 |
" __malloc_hook = old_malloc_hook;\n" |
| 401 |
"\\&\n" |
| 402 |
" /* Appeler récursivement */\n" |
| 403 |
" result = malloc(size);\n" |
| 404 |
"\\&\n" |
| 405 |
" /* Sauver la routine originale */\n" |
| 406 |
" old_malloc_hook = __malloc_hook;\n" |
| 407 |
"\\&\n" |
| 408 |
" /* printf() peut appeler malloc(), il faut donc la protéger également */\n" |
| 409 |
" printf(\"malloc(%zu) appelée depuis %p renvoie %p\\en\",\n" |
| 410 |
" size, caller, result);\n" |
| 411 |
"\\&\n" |
| 412 |
" /* Restaurer nos propres routines */\n" |
| 413 |
" __malloc_hook = my_malloc_hook;\n" |
| 414 |
"\\&\n" |
| 415 |
" return result;\n" |
| 416 |
"}\n" |
| 417 |
|
| 418 |
#. type: SH |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
#, no-wrap |
| 422 |
msgid "SEE ALSO" |
| 423 |
msgstr "VOIR AUSSI" |
| 424 |
|
| 425 |
#. type: Plain text |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
msgid "B<mallinfo>(3), B<malloc>(3), B<mcheck>(3), B<mtrace>(3)" |
| 429 |
msgstr "B<mallinfo>(3), B<malloc>(3), B<mcheck>(3), B<mtrace>(3)" |
| 430 |
|
| 431 |
#. type: TH |
| 432 |
#: debian-trixie |
| 433 |
#, no-wrap |
| 434 |
msgid "2024-06-15" |
| 435 |
msgstr "15 juin 2024" |
| 436 |
|
| 437 |
#. type: TH |
| 438 |
#: debian-trixie |
| 439 |
#, no-wrap |
| 440 |
msgid "Linux man-pages 6.9.1" |
| 441 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: debian-trixie |
| 445 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 446 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 447 |
|
| 448 |
#. type: Plain text |
| 449 |
#: debian-trixie |
| 450 |
#, no-wrap |
| 451 |
msgid "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 452 |
msgstr "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: debian-trixie |
| 456 |
#, no-wrap |
| 457 |
msgid "" |
| 458 |
"B<void *(*volatile __realloc_hook)(void *>I<ptr>B<, size_t >I<size>B<,>\n" |
| 459 |
"B< const void *>I<caller>B<);>\n" |
| 460 |
msgstr "" |
| 461 |
"B<void *(*volatile __realloc_hook)(void *>I<ptr>B<, size_t >I<size>B<,>\n" |
| 462 |
"B< const void *>I<caller>B<);>\n" |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: debian-trixie |
| 466 |
#, no-wrap |
| 467 |
msgid "" |
| 468 |
"B<void *(*volatile __memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 469 |
"B< const void *>I<caller>B<);>\n" |
| 470 |
msgstr "" |
| 471 |
"B<void *(*volatile __memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n" |
| 472 |
"B< const void *>I<caller>B<);>\n" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: debian-trixie |
| 476 |
#, no-wrap |
| 477 |
msgid "B<void (*volatile __free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 478 |
msgstr "B<void (*volatile __free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n" |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: debian-trixie |
| 482 |
#, no-wrap |
| 483 |
msgid "B<void (*__malloc_initialize_hook)(void);>\n" |
| 484 |
msgstr "B<void (*__malloc_initialize_hook)(void);>\n" |
| 485 |
|
| 486 |
#. type: Plain text |
| 487 |
#: debian-trixie |
| 488 |
#, no-wrap |
| 489 |
msgid "B<void (*volatile __after_morecore_hook)(void);>\n" |
| 490 |
msgstr "B<void (*volatile __after_morecore_hook)(void);>\n" |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: debian-trixie |
| 494 |
#, no-wrap |
| 495 |
msgid "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 496 |
msgstr "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: debian-trixie |
| 500 |
#, fuzzy, no-wrap |
| 501 |
#| msgid "" |
| 502 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 503 |
#| "#include E<lt>malloc.hE<gt>\n" |
| 504 |
#| "\\&\n" |
| 505 |
#| "/* Prototypes for our hooks */\n" |
| 506 |
#| "static void my_init_hook(void);\n" |
| 507 |
#| "static void *my_malloc_hook(size_t, const void *);\n" |
| 508 |
#| "\\&\n" |
| 509 |
#| "/* Variables to save original hooks */\n" |
| 510 |
#| "static void *(*old_malloc_hook)(size_t, const void *);\n" |
| 511 |
#| "\\&\n" |
| 512 |
#| "/* Override initializing hook from the C library */\n" |
| 513 |
#| "void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 514 |
#| "\\&\n" |
| 515 |
#| "static void\n" |
| 516 |
#| "my_init_hook(void)\n" |
| 517 |
#| "{\n" |
| 518 |
#| " old_malloc_hook = __malloc_hook;\n" |
| 519 |
#| " __malloc_hook = my_malloc_hook;\n" |
| 520 |
#| "}\n" |
| 521 |
#| "\\&\n" |
| 522 |
#| "static void *\n" |
| 523 |
#| "my_malloc_hook(size_t size, const void *caller)\n" |
| 524 |
#| "{\n" |
| 525 |
#| " void *result;\n" |
| 526 |
#| "\\&\n" |
| 527 |
#| " /* Restore all old hooks */\n" |
| 528 |
#| " __malloc_hook = old_malloc_hook;\n" |
| 529 |
#| "\\&\n" |
| 530 |
#| " /* Call recursively */\n" |
| 531 |
#| " result = malloc(size);\n" |
| 532 |
#| "\\&\n" |
| 533 |
#| " /* Save underlying hooks */\n" |
| 534 |
#| " old_malloc_hook = __malloc_hook;\n" |
| 535 |
#| "\\&\n" |
| 536 |
#| " /* printf() might call malloc(), so protect it too */\n" |
| 537 |
#| " printf(\"malloc(%zu) called from %p returns %p\\en\",\n" |
| 538 |
#| " size, caller, result);\n" |
| 539 |
#| "\\&\n" |
| 540 |
#| " /* Restore our own hooks */\n" |
| 541 |
#| " __malloc_hook = my_malloc_hook;\n" |
| 542 |
#| "\\&\n" |
| 543 |
#| " return result;\n" |
| 544 |
#| "}\n" |
| 545 |
msgid "" |
| 546 |
"#include E<lt>stdio.hE<gt>\n" |
| 547 |
"#include E<lt>malloc.hE<gt>\n" |
| 548 |
"\\&\n" |
| 549 |
"/* Prototypes for our hooks */\n" |
| 550 |
"static void my_init_hook(void);\n" |
| 551 |
"static void *my_malloc_hook(size_t, const void *);\n" |
| 552 |
"\\&\n" |
| 553 |
"/* Variables to save original hooks */\n" |
| 554 |
"static void *(*old_malloc_hook)(size_t, const void *);\n" |
| 555 |
"\\&\n" |
| 556 |
"/* Override initializing hook from the C library */\n" |
| 557 |
"void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 558 |
"\\&\n" |
| 559 |
"static void\n" |
| 560 |
"my_init_hook(void)\n" |
| 561 |
"{\n" |
| 562 |
" old_malloc_hook = __malloc_hook;\n" |
| 563 |
" __malloc_hook = my_malloc_hook;\n" |
| 564 |
"}\n" |
| 565 |
"\\&\n" |
| 566 |
"static void *\n" |
| 567 |
"my_malloc_hook(size_t size, const void *caller)\n" |
| 568 |
"{\n" |
| 569 |
" void *result;\n" |
| 570 |
"\\&\n" |
| 571 |
" /* Restore all old hooks */\n" |
| 572 |
" __malloc_hook = old_malloc_hook;\n" |
| 573 |
"\\&\n" |
| 574 |
" /* Call recursively */\n" |
| 575 |
" result = malloc(size);\n" |
| 576 |
"\\&\n" |
| 577 |
" /* Save underlying hooks */\n" |
| 578 |
" old_malloc_hook = __malloc_hook;\n" |
| 579 |
"\\&\n" |
| 580 |
" /* printf() might call malloc(), so protect it too */\n" |
| 581 |
" printf(\"malloc(%zu) called from %p returns %p\\[rs]n\",\n" |
| 582 |
" size, caller, result);\n" |
| 583 |
"\\&\n" |
| 584 |
" /* Restore our own hooks */\n" |
| 585 |
" __malloc_hook = my_malloc_hook;\n" |
| 586 |
"\\&\n" |
| 587 |
" return result;\n" |
| 588 |
"}\n" |
| 589 |
msgstr "" |
| 590 |
"#include E<lt>stdio.hE<gt>\n" |
| 591 |
"#include E<lt>malloc.hE<gt>\n" |
| 592 |
"\\&\n" |
| 593 |
"/* Prototypes de nos routines */\n" |
| 594 |
"static void my_init_hook(void);\n" |
| 595 |
"static void *my_malloc_hook(size_t, const void *);\n" |
| 596 |
"\\&\n" |
| 597 |
"/* Variables pour sauver les routines originelles */\n" |
| 598 |
"static void *(*old_malloc_hook)(size_t, const void *);\n" |
| 599 |
"\\&\n" |
| 600 |
"/* Surcharge de la routine d'initialisation de la bibliothèque C */\n" |
| 601 |
"void (*__malloc_initialize_hook)(void) = my_init_hook;\n" |
| 602 |
"\\&\n" |
| 603 |
"static void\n" |
| 604 |
"my_init_hook(void)\n" |
| 605 |
"{\n" |
| 606 |
" old_malloc_hook = __malloc_hook;\n" |
| 607 |
" __malloc_hook = my_malloc_hook;\n" |
| 608 |
"}\n" |
| 609 |
"\\&\n" |
| 610 |
"static void *\n" |
| 611 |
"my_malloc_hook(size_t size, const void *caller)\n" |
| 612 |
"{\n" |
| 613 |
" void *result;\n" |
| 614 |
"\\&\n" |
| 615 |
" /* Restaurer la routine originale */\n" |
| 616 |
" __malloc_hook = old_malloc_hook;\n" |
| 617 |
"\\&\n" |
| 618 |
" /* Appeler récursivement */\n" |
| 619 |
" result = malloc(size);\n" |
| 620 |
"\\&\n" |
| 621 |
" /* Sauver la routine originale */\n" |
| 622 |
" old_malloc_hook = __malloc_hook;\n" |
| 623 |
"\\&\n" |
| 624 |
" /* printf() peut appeler malloc(), il faut donc la protéger également */\n" |
| 625 |
" printf(\"malloc(%zu) appelée depuis %p renvoie %p\\en\",\n" |
| 626 |
" size, caller, result);\n" |
| 627 |
"\\&\n" |
| 628 |
" /* Restaurer nos propres routines */\n" |
| 629 |
" __malloc_hook = my_malloc_hook;\n" |
| 630 |
"\\&\n" |
| 631 |
" return result;\n" |
| 632 |
"}\n" |
| 633 |
|
| 634 |
#. type: TH |
| 635 |
#: fedora-44 fedora-rawhide |
| 636 |
#, no-wrap |
| 637 |
msgid "2025-01-05" |
| 638 |
msgstr "5 janvier 2025" |
| 639 |
|
| 640 |
#. type: TH |
| 641 |
#: fedora-44 fedora-rawhide |
| 642 |
#, no-wrap |
| 643 |
msgid "Linux man-pages 6.13" |
| 644 |
msgstr "Pages du manuel de Linux 6.13" |
| 645 |
|
| 646 |
#. type: TH |
| 647 |
#: mageia-cauldron |
| 648 |
#, no-wrap |
| 649 |
msgid "Linux man-pages 6.17" |
| 650 |
msgstr "Pages du manuel de Linux 6.17" |
| 651 |
|
| 652 |
#. type: TH |
| 653 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 654 |
#, no-wrap |
| 655 |
msgid "Linux man-pages (unreleased)" |
| 656 |
msgstr "Pages du manuel de Linux (non publiées)" |