Functions For Managing Memory - Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual

Table of Contents

Advertisement

Functions for Managing Memory

Returns
This function returns one of the following values:
0
-1
specified plug-in is not found).
Description
When adding or removing values from an index, the Directory Server calls the
function (defined in the specified syntax plug-in) responsible for returning an array
of keys matching the specified values.
Functions for Managing Memory
This section contains reference information on routines for managing memory,
such as allocating and freeing memory.
Table 14-9
Memory Management Routines
Function
slapi_ch_array_free()
slapi_ch_bvdup()
slapi_ch_bvecdup()
slapi_ch_calloc()
slapi_ch_free()
slapi_ch_free_string()
slapi_ch_malloc()
slapi_ch_realloc()
slapi_ch_strdup()
slapi_ch_array_free()
Frees an existing array.
250
Netscape Directory Server Plug-In Programmer's Guide • May 2002
if successful.
if an error occurs (for example, if the corresponding function for the
Description
Frees an existing array.
Makes a copy of an existing berval structure.
Makes a copy of an array of existing berval structures.
Allocates space for an array of a number of elements of a specified size
Frees space allocated by the slapi_ch_malloc(),
slapi_ch_realloc(), and slapi_ch_calloc() functions.
Frees space previously allocated to a string.
Allocates space in memory.
Changes the size of a block of allocated memory.
Makes a copy of an existing string.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents