Debian Codegraph @

templates/man3/mcheck.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\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 "mcheck"
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 ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "mcheck, mcheck_check_all, mcheck_pedantic, mprobe - heap consistency checking"
51 msgstr ""
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 "LIBRARY"
58 msgstr ""
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr ""
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>mcheck.hE<gt>>\n"
78 msgstr ""
79
80 #. type: Plain text
81 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
82 #: opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int mcheck(typeof(void (enum mcheck_status >I<mstatus>B<)) *>I<f>B<);>\n"
86 "B<int mcheck_pedantic(>\n"
87 "B< typeof(void (enum mcheck_status >I<mstatus>B<)) *>I<f>B<);>\n"
88 "B<void mcheck_check_all(void);>\n"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<enum mcheck_status mprobe(void *>I<ptr>B<);>\n"
96 msgstr ""
97
98 #. type: SH
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "DESCRIPTION"
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "The B<mcheck>() function installs a set of debugging hooks for the "
110 "B<malloc>(3) family of memory-allocation functions. These hooks cause "
111 "certain consistency checks to be performed on the state of the heap. The "
112 "checks can detect application errors such as freeing a block of memory more "
113 "than once or corrupting the bookkeeping data structures that immediately "
114 "precede a block of allocated memory."
115 msgstr ""
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "To be effective, the B<mcheck>() function must be called before the first "
122 "call to B<malloc>(3) or a related function. In cases where this is "
123 "difficult to ensure, linking the program with I<-lmcheck> inserts an "
124 "implicit call to B<mcheck>() (with a NULL argument) before the first call "
125 "to a memory-allocation function."
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "The B<mcheck_pedantic>() function is similar to B<mcheck>(), but performs "
133 "checks on all allocated blocks whenever one of the memory-allocation "
134 "functions is called. This can be very slow!"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "The B<mcheck_check_all>() function causes an immediate check on all "
142 "allocated blocks. This call is effective only if B<mcheck>() is called "
143 "beforehand."
144 msgstr ""
145
146 #. type: Plain text
147 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
148 #: opensuse-tumbleweed
149 msgid ""
150 "If the system detects an inconsistency in the heap, the caller-supplied "
151 "function pointed to by I<f> is invoked with a single argument, I<mstatus>, "
152 "that indicates what type of inconsistency was detected. If I<f> is NULL, a "
153 "default function prints an error message on I<stderr> and calls B<abort>(3)."
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 B<mprobe>() function performs a consistency check on the block of "
161 "allocated memory pointed to by I<ptr>. The B<mcheck>() function should be "
162 "called beforehand (otherwise B<mprobe>() returns B<MCHECK_DISABLED>)."
163 msgstr ""
164
165 #. type: Plain text
166 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
167 #: opensuse-tumbleweed
168 msgid ""
169 "The following list describes the values returned by B<mprobe>() or passed "
170 "as the I<mstatus> argument when I<f> is invoked:"
171 msgstr ""
172
173 #. type: TP
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, no-wrap
177 msgid "B<MCHECK_DISABLED> (B<mprobe>() only)"
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "B<mcheck>() was not called before the first memory allocation function was "
185 "called. Consistency checking is not possible."
186 msgstr ""
187
188 #. type: TP
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "B<MCHECK_OK> (B<mprobe>() only)"
193 msgstr ""
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid "No inconsistency detected."
199 msgstr ""
200
201 #. type: TP
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "B<MCHECK_HEAD>"
206 msgstr ""
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid "Memory preceding an allocated block was clobbered."
212 msgstr ""
213
214 #. type: TP
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "B<MCHECK_TAIL>"
219 msgstr ""
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "Memory following an allocated block was clobbered."
225 msgstr ""
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<MCHECK_FREE>"
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 "A block of memory was freed twice."
238 msgstr ""
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 "RETURN VALUE"
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "B<mcheck>() and B<mcheck_pedantic>() return 0 on success, or -1 on error."
252 msgstr ""
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "ATTRIBUTES"
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "For an explanation of the terms used in this section, see B<attributes>(7)."
266 msgstr ""
267
268 #. type: tbl table
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "Interface"
273 msgstr ""
274
275 #. type: tbl table
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "Attribute"
280 msgstr ""
281
282 #. type: tbl table
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "Value"
287 msgstr ""
288
289 #. type: tbl table
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid ".na\n"
294 msgstr ""
295
296 #. type: tbl table
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid ".nh\n"
301 msgstr ""
302
303 #. type: tbl table
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid ""
308 "B<mcheck>(),\n"
309 "B<mcheck_pedantic>(),\n"
310 "B<mcheck_check_all>(),\n"
311 "B<mprobe>()"
312 msgstr ""
313
314 #. type: tbl table
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid "Thread safety"
319 msgstr ""
320
321 #. type: tbl table
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid ""
326 "MT-Unsafe race:mcheck\n"
327 "const:malloc_hooks"
328 msgstr ""
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 "STANDARDS"
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 "GNU."
341 msgstr ""
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "HISTORY"
348 msgstr ""
349
350 #. type: TP
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "B<mcheck_pedantic>()"
355 msgstr ""
356
357 #. type: TQ
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "B<mcheck_check_all>()"
362 msgstr ""
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 "glibc 2.2."
368 msgstr ""
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<mcheck>()"
375 msgstr ""
376
377 #. type: TQ
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "B<mprobe>()"
382 msgstr ""
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid "glibc 2.0."
388 msgstr ""
389
390 #. type: SH
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "NOTES"
395 msgstr ""
396
397 #. But is MALLOC_CHECK_ slower?
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid ""
402 "Linking a program with I<-lmcheck> and using the B<MALLOC_CHECK_> "
403 "environment variable (described in B<mallopt>(3)) cause the same kinds of "
404 "errors to be detected. But, using B<MALLOC_CHECK_> does not require the "
405 "application to be relinked."
406 msgstr ""
407
408 #. type: SH
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, no-wrap
412 msgid "EXAMPLES"
413 msgstr ""
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 msgid ""
419 "The program below calls B<mcheck>() with a NULL argument and then frees the "
420 "same block of memory twice. The following shell session demonstrates what "
421 "happens when running the program:"
422 msgstr ""
423
424 #. type: Plain text
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid ""
429 "$B< ./a.out>\n"
430 "About to free\n"
431 "\\&\n"
432 "About to free a second time\n"
433 "block freed twice\n"
434 "Aborted (core dumped)\n"
435 msgstr ""
436
437 #. type: SS
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "Program source"
442 msgstr ""
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid ""
449 "#include E<lt>mcheck.hE<gt>\n"
450 "#include E<lt>stdio.hE<gt>\n"
451 "#include E<lt>stdlib.hE<gt>\n"
452 "\\&\n"
453 "int\n"
454 "main(void)\n"
455 "{\n"
456 " char *p;\n"
457 "\\&\n"
458 " if (mcheck(NULL) != 0) {\n"
459 " fprintf(stderr, \"mcheck() failed\\[rs]n\");\n"
460 "\\&\n"
461 " exit(EXIT_FAILURE);\n"
462 " }\n"
463 "\\&\n"
464 " p = malloc(1000);\n"
465 "\\&\n"
466 " fprintf(stderr, \"About to free\\[rs]n\");\n"
467 " free(p);\n"
468 " fprintf(stderr, \"\\[rs]nAbout to free a second time\\[rs]n\");\n"
469 " free(p);\n"
470 "\\&\n"
471 " exit(EXIT_SUCCESS);\n"
472 "}\n"
473 msgstr ""
474
475 #. SRC END
476 #. type: SH
477 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
478 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
479 #, no-wrap
480 msgid "SEE ALSO"
481 msgstr ""
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid "B<malloc>(3), B<mallopt>(3), B<mtrace>(3)"
487 msgstr ""
488
489 #. type: TH
490 #: debian-trixie
491 #, no-wrap
492 msgid "2024-06-15"
493 msgstr ""
494
495 #. type: TH
496 #: debian-trixie
497 #, no-wrap
498 msgid "Linux man-pages 6.9.1"
499 msgstr ""
500
501 #. type: Plain text
502 #: debian-trixie
503 msgid "Standard C library (I<libc>, I<-lc>)"
504 msgstr ""
505
506 #. type: Plain text
507 #: debian-trixie
508 #, no-wrap
509 msgid ""
510 "B<int mcheck(void (*>I<abortfunc>B<)(enum mcheck_status >I<mstatus>B<));>\n"
511 "B<int mcheck_pedantic(void (*>I<abortfunc>B<)(enum mcheck_status >I<mstatus>B<));>\n"
512 "B<void mcheck_check_all(void);>\n"
513 msgstr ""
514
515 #. type: Plain text
516 #: debian-trixie fedora-44 fedora-rawhide
517 msgid ""
518 "If the system detects an inconsistency in the heap, the caller-supplied "
519 "function pointed to by I<abortfunc> is invoked with a single argument, "
520 "I<mstatus>, that indicates what type of inconsistency was detected. If "
521 "I<abortfunc> is NULL, a default function prints an error message on "
522 "I<stderr> and calls B<abort>(3)."
523 msgstr ""
524
525 #. type: Plain text
526 #: debian-trixie fedora-44 fedora-rawhide
527 msgid ""
528 "The following list describes the values returned by B<mprobe>() or passed "
529 "as the I<mstatus> argument when I<abortfunc> is invoked:"
530 msgstr ""
531
532 #. type: TH
533 #: fedora-44 fedora-rawhide
534 #, no-wrap
535 msgid "2024-12-13"
536 msgstr ""
537
538 #. type: TH
539 #: fedora-44 fedora-rawhide
540 #, no-wrap
541 msgid "Linux man-pages 6.13"
542 msgstr ""
543
544 #. type: Plain text
545 #: fedora-44 fedora-rawhide
546 #, no-wrap
547 msgid ""
548 "B<int mcheck(typeof(void (enum mcheck_status >I<mstatus>B<)) *>I<abortfunc>B<);>\n"
549 "B<int mcheck_pedantic(>\n"
550 "B< typeof(void (enum mcheck_status >I<mstatus>B<)) *>I<abortfunc>B<);>\n"
551 "B<void mcheck_check_all(void);>\n"
552 msgstr ""
553
554 #. type: TH
555 #: mageia-cauldron
556 #, no-wrap
557 msgid "Linux man-pages 6.17"
558 msgstr ""
559
560 #. type: TH
561 #: opensuse-leap-16-1 opensuse-tumbleweed
562 #, no-wrap
563 msgid "Linux man-pages (unreleased)"
564 msgstr ""