2 .\" Copyright (C) 1998-2003, Carnegie Mellon Univeristy. All Rights Reserved.
3 .\" Portions Copyright (C) 2003, Sun Microsystems,
4 .\" Inc. All Rights Reserved
5 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
6 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
7 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
8 .TH SASL_SET_ALLOC 3SASL "Oct 22, 2003"
10 sasl_set_alloc \- set the memory allocation functions used by the SASL library
14 \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-lsasl\fR [ \fIlibrary\fR ... ]
15 #include <sasl/sasl.h>
17 \fBvoid\fR \fBsasl_set_alloc\fR(\fBsasl_malloc_t *\fR\fIm\fR, \fBsasl_calloc_t *\fR\fIc\fR, \fBsasl_realloc_t *\fR\fIr\fR,
18 \fBsasl_free_t *\fR\fIf\fR);
24 Use the \fBsasl_set_alloc()\fR interface to set the memory allocation routines
25 that the SASL library and plug-ins will use.
33 A pointer to a \fBcalloc()\fR function
42 A pointer to a \fBfree()\fR function
51 A pointer to a\fBmalloc()\fR function
60 A pointer to a \fBrealloc()\fR function
66 \fBsasl_set_alloc()\fR has no return values.
70 See \fBattributes\fR(5) for descriptions of the following attributes:
78 ATTRIBUTE TYPE ATTRIBUTE VALUE
80 Interface Stability Obsolete
92 While most of \fBlibsasl\fR is MT-Safe, \fBsasl_set_*\fR modifies the global
93 state and should be considered Unsafe.