Debian Codegraph @

po/es/man3/malloc_hook.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Juan Piernas <[email protected]>, 2005.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
9 "PO-Revision-Date: 2005-01-21 19:53+0200\n"
10 "Last-Translator: Juan Piernas <[email protected]>\n"
11 "Language-Team: Spanish <[email protected]>\n"
12 "Language: es\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=2; plural=(n != 1);\n"
17 "X-Generator: Lokalize 20.04.1\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "__malloc_hook"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr "8 Febrero 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, fuzzy, no-wrap
36 #| msgid "Linux man-pages 6.17"
37 msgid "Linux man-pages 6.18"
38 msgstr "Páginas de Manual de Linux 6.17"
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 "NOMBRE"
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 #, fuzzy
51 #| msgid ""
52 #| "__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, "
53 #| "__realloc_hook, __after_morecore_hook - malloc debugging variables"
54 msgid ""
55 "__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, "
56 "__realloc_hook, __after_morecore_hook - malloc debugging variables "
57 "(DEPRECATED)"
58 msgstr ""
59 "__malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, "
60 "__realloc_hook, __after_morecore_hook - variables de depuración de malloc"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "BIBLIOTECA"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "Standard C library (I<libc>,\\ I<-lc>)"
73 msgstr "Biblioteca Estándar C (I<libc>,\\ I<-lc>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "SINOPSIS"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<#include E<lt>malloc.hE<gt>>\n"
87 msgstr "B<#include E<lt>malloc.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
91 #: opensuse-leap-16-1 opensuse-tumbleweed
92 #, fuzzy, no-wrap
93 #| msgid "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n"
94 msgid ""
95 "B<typeof(void *(size_t >I<size>B<, const void *>I<caller>B<))>\n"
96 "B<*volatile __malloc_hook;>\n"
97 msgstr "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\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 *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n"
104 msgid ""
105 "B<typeof(void *(void *>I<p>B<, size_t >I<size>B<, const void *>I<caller>B<))>\n"
106 "B<*volatile __realloc_hook;>\n"
107 msgstr "B<void *(*__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 *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n"
114 msgid ""
115 "B<typeof(void *(size_t >I<align>B<, size_t >I<size>B<, const void *>I<caller>B<))>\n"
116 "B<*volatile __memalign_hook;>\n"
117 msgstr "B<void *(*__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 (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n"
124 msgid ""
125 "B<typeof(void *(void *>I<p>B<, const void *>I<caller>B<))>\n"
126 "B<*volatile __free_hook;>\n"
127 msgstr "B<void (*__free_hook)(void *>I<ptr>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 #, no-wrap
133 msgid ""
134 "B<typeof(void (void)) *__malloc_initialize_hook;>\n"
135 "B<typeof(void (void)) *volatile __after_mrecore_hook;>\n"
136 msgstr ""
137
138 #. type: SH
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid "DESCRIPTION"
143 msgstr "DESCRIPCIÓN"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "The GNU C library lets you modify the behavior of B<malloc>(3), "
150 "B<realloc>(3), and B<free>(3) by specifying appropriate hook functions. "
151 "You can use these hooks to help you debug programs that use dynamic memory "
152 "allocation, for example."
153 msgstr ""
154 "La biblioteca de C de GNU le permite modificar el comportamiento de "
155 "B<malloc>(3), B<realloc>(3) y B<free>(3) especificando funciones de "
156 "«enganche» (I<hook>) adecuadas. Puede usar estos enganches para que, por "
157 "ejemplo, le ayuden a depurar programas que usan asignaciones dinámicas de "
158 "memoria."
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "The variable B<__malloc_initialize_hook> points at a function that is called "
165 "once when the malloc implementation is initialized. This is a weak "
166 "variable, so it can be overridden in the application with a definition like "
167 "the following:"
168 msgstr ""
169 "La variable B<__malloc_initialize_hook> apunta a una función que se invoca "
170 "una única vez cuando se inicializa la implementación de malloc. Esta es una "
171 "varible normal, por lo que se puede redefinir en una aplicación de forma "
172 "parecida a la siguiente:"
173
174 #. type: Plain text
175 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
176 #: opensuse-leap-16-1 opensuse-tumbleweed
177 #, fuzzy, no-wrap
178 #| msgid "void (*__malloc_initialize_hook)(void) = my_init_hook;\n"
179 msgid "typeof(void (void)) *__malloc_initialize_hook = my_init_hook;\n"
180 msgstr "void (*__malloc_initialize_hook)(void) = my_init_hook;\n"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "Now the function I<my_init_hook>() can do the initialization of all hooks."
187 msgstr ""
188 "Ahora la función I<my_init_hook>() puede hacer la inicialización de todos "
189 "los enganches."
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 #, fuzzy
195 #| msgid ""
196 #| "The four functions pointed at by B<__malloc_hook>, B<__realloc_hook>, "
197 #| "B<__memalign_hook>, B<__free_hook> have a prototype like the functions "
198 #| "I<malloc>(), I<realloc>(), I<memalign>(), I<free>(), respectively, except "
199 #| "that they have a final argument I<caller> that gives the address of the "
200 #| "caller of I<malloc>(), etc."
201 msgid ""
202 "The four functions pointed to by B<__malloc_hook>, B<__realloc_hook>, "
203 "B<__memalign_hook>, B<__free_hook> have a prototype like the functions "
204 "B<malloc>(3), B<realloc>(3), B<memalign>(3), B<free>(3), respectively, "
205 "except that they have a final argument I<caller> that gives the address of "
206 "the caller of B<malloc>(3), etc."
207 msgstr ""
208 "Las cuatro funciones apuntadas por B<__malloc_hook>, B<__realloc_hook>, "
209 "B<__memalign_hook> y B<__free_hook> tienen el mismo prototipo de las "
210 "funciones I<malloc>(), I<realloc>(), I<memalign>() y I<free>(), "
211 "respectivamente, aunque tienen un argumento final adicional I<caller> que "
212 "proporciona la dirección del invocador de I<malloc>(), etc."
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, fuzzy
218 #| msgid ""
219 #| "The variable B<__after_morecore_hook> points at a function that is called "
220 #| "each time after I<sbrk>() was asked for more core."
221 msgid ""
222 "The variable B<__after_morecore_hook> points at a function that is called "
223 "each time after B<sbrk>(2) was asked for more memory."
224 msgstr ""
225 "La variable B<__after_morecore_hook> apunta a un función que se invoca cada "
226 "vez que se pide a I<sbrk>() más memoria."
227
228 #. type: SH
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "STANDARDS"
233 msgstr "ESTÁNDARES"
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid "GNU."
239 msgstr "GNU."
240
241 #. type: SH
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "NOTES"
246 msgstr "NOTAS"
247
248 #. https://bugzilla.redhat.com/show_bug.cgi?id=450187
249 #. http://sourceware.org/bugzilla/show_bug.cgi?id=9957
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "The use of these hook functions is not safe in multithreaded programs, and "
255 "they are now deprecated. From glibc 2.24 onwards, the "
256 "B<__malloc_initialize_hook> variable has been removed from the API, and from "
257 "glibc 2.34 onwards, all the hook variables have been removed from the API. "
258 "Programmers should instead preempt calls to the relevant functions by "
259 "defining and exporting B<malloc>(), B<free>(), B<realloc>(), and B<calloc>()."
260 msgstr ""
261
262 #. type: SH
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "EXAMPLES"
267 msgstr "EJEMPLOS"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid "Here is a short example of how to use these variables."
273 msgstr "A continuación tiene un pequeño ejemplo de cómo usar estas variables."
274
275 #. type: Plain text
276 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
277 #: opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid ""
280 "#include E<lt>stdio.hE<gt>\n"
281 "#include E<lt>malloc.hE<gt>\n"
282 "\\&\n"
283 "/* Prototypes for our hooks */\n"
284 "static void my_init_hook(void);\n"
285 "static void *my_malloc_hook(size_t, const void *);\n"
286 "\\&\n"
287 "/* Variables to save original hooks */\n"
288 "static typeof(void *(size_t, const void *)) *old_malloc_hook;\n"
289 "\\&\n"
290 "/* Override initializing hook from the C library */\n"
291 "typeof(void (void)) *__malloc_initialize_hook = my_init_hook;\n"
292 "\\&\n"
293 "static void\n"
294 "my_init_hook(void)\n"
295 "{\n"
296 " old_malloc_hook = __malloc_hook;\n"
297 " __malloc_hook = my_malloc_hook;\n"
298 "}\n"
299 "\\&\n"
300 "static void *\n"
301 "my_malloc_hook(size_t size, const void *caller)\n"
302 "{\n"
303 " void *result;\n"
304 "\\&\n"
305 " /* Restore all old hooks */\n"
306 " __malloc_hook = old_malloc_hook;\n"
307 "\\&\n"
308 " /* Call recursively */\n"
309 " result = malloc(size);\n"
310 "\\&\n"
311 " /* Save underlying hooks */\n"
312 " old_malloc_hook = __malloc_hook;\n"
313 "\\&\n"
314 " /* printf() might call malloc(), so protect it too */\n"
315 " printf(\"malloc(%zu) called from %p returns %p\\[rs]n\",\n"
316 " size, caller, result);\n"
317 "\\&\n"
318 " /* Restore our own hooks */\n"
319 " __malloc_hook = my_malloc_hook;\n"
320 "\\&\n"
321 " return result;\n"
322 "}\n"
323 msgstr ""
324
325 #. type: SH
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "SEE ALSO"
330 msgstr "VÉASE TAMBIÉN"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "B<mallinfo>(3), B<malloc>(3), B<mcheck>(3), B<mtrace>(3)"
336 msgstr "B<mallinfo>(3), B<malloc>(3), B<mcheck>(3), B<mtrace>(3)"
337
338 #. type: TH
339 #: debian-trixie
340 #, no-wrap
341 msgid "2024-06-15"
342 msgstr "15 Junio 2024"
343
344 #. type: TH
345 #: debian-trixie
346 #, no-wrap
347 msgid "Linux man-pages 6.9.1"
348 msgstr "Páginas de Manual de Linux 6.9.1"
349
350 #. type: Plain text
351 #: debian-trixie
352 msgid "Standard C library (I<libc>, I<-lc>)"
353 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
354
355 #. type: Plain text
356 #: debian-trixie
357 #, fuzzy, no-wrap
358 #| msgid "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n"
359 msgid "B<void *(*volatile __malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n"
360 msgstr "B<void *(*__malloc_hook)(size_t >I<size>B<, const void *>I<caller>B<);>\n"
361
362 #. type: Plain text
363 #: debian-trixie
364 #, fuzzy, no-wrap
365 #| msgid ""
366 #| "B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n"
367 #| "B< const void *>I<caller>B<);>\n"
368 msgid ""
369 "B<void *(*volatile __realloc_hook)(void *>I<ptr>B<, size_t >I<size>B<,>\n"
370 "B< const void *>I<caller>B<);>\n"
371 msgstr ""
372 "B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n"
373 "B< const void *>I<caller>B<);>\n"
374
375 #. type: Plain text
376 #: debian-trixie
377 #, fuzzy, no-wrap
378 #| msgid ""
379 #| "B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n"
380 #| "B< const void *>I<caller>B<);>\n"
381 msgid ""
382 "B<void *(*volatile __memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n"
383 "B< const void *>I<caller>B<);>\n"
384 msgstr ""
385 "B<void *(*__memalign_hook)(size_t >I<alignment>B<, size_t >I<size>B<,>\n"
386 "B< const void *>I<caller>B<);>\n"
387
388 #. type: Plain text
389 #: debian-trixie
390 #, fuzzy, no-wrap
391 #| msgid "B<void (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n"
392 msgid "B<void (*volatile __free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n"
393 msgstr "B<void (*__free_hook)(void *>I<ptr>B<, const void *>I<caller>B<);>\n"
394
395 #. type: Plain text
396 #: debian-trixie
397 #, no-wrap
398 msgid "B<void (*__malloc_initialize_hook)(void);>\n"
399 msgstr "B<void (*__malloc_initialize_hook)(void);>\n"
400
401 #. type: Plain text
402 #: debian-trixie
403 #, fuzzy, no-wrap
404 #| msgid "B<void (*__after_morecore_hook)(void);>\n"
405 msgid "B<void (*volatile __after_morecore_hook)(void);>\n"
406 msgstr "B<void (*__after_morecore_hook)(void);>\n"
407
408 #. type: Plain text
409 #: debian-trixie
410 #, no-wrap
411 msgid "void (*__malloc_initialize_hook)(void) = my_init_hook;\n"
412 msgstr "void (*__malloc_initialize_hook)(void) = my_init_hook;\n"
413
414 #. type: Plain text
415 #: debian-trixie
416 #, no-wrap
417 msgid ""
418 "#include E<lt>stdio.hE<gt>\n"
419 "#include E<lt>malloc.hE<gt>\n"
420 "\\&\n"
421 "/* Prototypes for our hooks */\n"
422 "static void my_init_hook(void);\n"
423 "static void *my_malloc_hook(size_t, const void *);\n"
424 "\\&\n"
425 "/* Variables to save original hooks */\n"
426 "static void *(*old_malloc_hook)(size_t, const void *);\n"
427 "\\&\n"
428 "/* Override initializing hook from the C library */\n"
429 "void (*__malloc_initialize_hook)(void) = my_init_hook;\n"
430 "\\&\n"
431 "static void\n"
432 "my_init_hook(void)\n"
433 "{\n"
434 " old_malloc_hook = __malloc_hook;\n"
435 " __malloc_hook = my_malloc_hook;\n"
436 "}\n"
437 "\\&\n"
438 "static void *\n"
439 "my_malloc_hook(size_t size, const void *caller)\n"
440 "{\n"
441 " void *result;\n"
442 "\\&\n"
443 " /* Restore all old hooks */\n"
444 " __malloc_hook = old_malloc_hook;\n"
445 "\\&\n"
446 " /* Call recursively */\n"
447 " result = malloc(size);\n"
448 "\\&\n"
449 " /* Save underlying hooks */\n"
450 " old_malloc_hook = __malloc_hook;\n"
451 "\\&\n"
452 " /* printf() might call malloc(), so protect it too */\n"
453 " printf(\"malloc(%zu) called from %p returns %p\\[rs]n\",\n"
454 " size, caller, result);\n"
455 "\\&\n"
456 " /* Restore our own hooks */\n"
457 " __malloc_hook = my_malloc_hook;\n"
458 "\\&\n"
459 " return result;\n"
460 "}\n"
461 msgstr ""
462
463 #. type: TH
464 #: fedora-44 fedora-rawhide
465 #, no-wrap
466 msgid "2025-01-05"
467 msgstr "5 Enero 2025"
468
469 #. type: TH
470 #: fedora-44 fedora-rawhide
471 #, no-wrap
472 msgid "Linux man-pages 6.13"
473 msgstr "Páginas de Manual de Linux 6.13"
474
475 #. type: TH
476 #: mageia-cauldron
477 #, no-wrap
478 msgid "Linux man-pages 6.17"
479 msgstr "Páginas de Manual de Linux 6.17"
480
481 #. type: TH
482 #: opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "Linux man-pages (unreleased)"
485 msgstr "Páginas de Manual de Linux (no publicadas)"