[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 2

reset_malloc_log Subroutine

Purpose

Resets information collected by the malloc subsystem.

Syntax

#include <malloc.h>
void reset_malloc_log (addr)
void *addr;

Description

The reset_malloc_log subroutine resets the record of currently active malloc allocations stored by the malloc subsystem. These records are stored in malloc_log structures, which are located in the process heap. Only records corresponding to the heap of which addr is a member are reset, unless addr is NULL, in which case records for all heaps are reset. The addr parameter must be a pointer to space allocated previously by the malloc subsystem or NULL, otherwise no information is reset and the errno global variable is set to EINVAL.

Parameters

addr Pointer to space allocated previously by the malloc subsystem

Related Information

malloc Subroutine, get_malloc_log Subroutine, and get_malloc_log_live Subroutine in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]