mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
2ab8810555
================ Written by Hallvard B. Furuseth and placed into the public domain. This software is not subject to any license of the University of Oslo. ================ Small changes: - Fix typo slapd_meta -> slapd-meta in slapd-meta(5). - Add slapd-dnssrv(5) to SEE ALSO in slapd.conf(5). - Add descriptions of the files in FILES sections. - Add $HOME/.udrc to FILES in ud(1) and ud.conf(5). - Add ldaprc (without ".") and ENVIRONMENT VARIABLES in ldap.conf(5). - Change manpage references to proper ".BR name (section)". Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
51 lines
1.4 KiB
Groff
51 lines
1.4 KiB
Groff
.TH LBER_MEMORY 3 "25 January 2002" "OpenLDAP LDVERSION"
|
|
.\" $OpenLDAP$
|
|
.\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
|
.SH NAME
|
|
ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree, ber_memvfree \- LBER memory allocators
|
|
.SH SYNOPSIS
|
|
.B #include <lber.h>
|
|
.LP
|
|
.BI "void *ber_memalloc(ber_len_t " bytes ");"
|
|
.LP
|
|
.BI "void *ber_memcalloc(ber_len_t " nelems ", ber_len_t " bytes ");"
|
|
.LP
|
|
.BI "void *ber_memrealloc(void *" ptr ", ber_len_t " bytes ");"
|
|
.LP
|
|
.BI "void ber_memfree(void *" ptr ");"
|
|
.LP
|
|
.BI "void ber_memvfree(void **" vec ");"
|
|
.SH DESCRIPTION
|
|
.LP
|
|
These routines are used to allocate/deallocate memory used/returned
|
|
by the Lightweight BER library as required by
|
|
.BR lber-encode (3)
|
|
and
|
|
.BR lber-decode (3).
|
|
.BR ber_memalloc (),
|
|
.BR ber_memcalloc (),
|
|
.BR ber_memrealloc (),
|
|
and
|
|
.BR ber_memfree ()
|
|
are used exactly like the standard
|
|
.BR malloc (3),
|
|
.BR calloc (3),
|
|
.BR realloc (3),
|
|
and
|
|
.BR free (3)
|
|
routines, respectively. The
|
|
.BR ber_memvfree ()
|
|
routine is used to free a dynamically allocated array of pointers to
|
|
arbitrary dynamically allocated objects.
|
|
.SH SEE ALSO
|
|
.BR lber-decode (3),
|
|
.BR lber-encode (3),
|
|
.BR lber-types (3)
|
|
.LP
|
|
.SH ACKNOWLEDGEMENTS
|
|
.B OpenLDAP
|
|
is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
|
|
.B OpenLDAP
|
|
is derived from University of Michigan LDAP 3.3 Release.
|