1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 <section id="malloc_test.functions" xmlns:xi="http://www.w3.org/2001/XInclude">
9 <revnumber>$Revision$</revnumber>
15 <title>Functions</title>
17 <section id="malloc_test.mt_mem_alloc">
18 <title><function>mt_mem_alloc(size)</function></title>
22 <note><para>This is a debugging function for simulating memory
23 leaks or stressing the memory allocator. It should not
24 be used in production setups
27 <title><function>men_alloc</function> usage</title>
30 mem_alloc(1048576); # 1MB
36 <section id="malloc_test.mt_mem_free">
37 <title><function>mt_mem_free()</function></title>
39 Frees all the memory allocated with mem_alloc() up to this
42 <note><para>This is a debugging function for simulating memory
43 leaks or stressing the memory allocator. It should not
44 be used in production setups
47 <title><function>mem_free</function> usage</title>