Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oren Tirosh
OpenLDAP
Commits
2b78f442
Commit
2b78f442
authored
23 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
More updates.
parent
71d564ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man3/lber-memory.3
+10
-25
10 additions, 25 deletions
doc/man/man3/lber-memory.3
doc/man/man3/lber-types.3
+38
-3
38 additions, 3 deletions
doc/man/man3/lber-types.3
with
48 additions
and
28 deletions
doc/man/man3/lber-memory.3
+
10
−
25
View file @
2b78f442
.TH LBER_MEMORY 3 "
12 July
200
0
" "OpenLDAP LDVERSION"
.TH LBER_MEMORY 3 "
29 August
200
1
" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
...
...
@@ -13,30 +13,15 @@ ber_memalloc, ber_memcalloc, ber_memrealloc, ber_memfree \- LBER memory allocato
.LP
.nf
.ft B
void * ber_memalloc(
ber_len_t bytes )
.ft
.fi
.LP
.nf
.ft B
void * ber_memcalloc(
ber_len_t nelems, ber_len_t bytes )
.ft
.fi
.LP
.nf
.ft B
void * ber_memrealloc(
void \(**ptr,
ber_len_t bytes);
.ft
.fi
.LP
.nf
.ft B
void * ber_memfree(
void \(**ptr );
void * ber_memalloc( ber_len_t bytes )
void * ber_memcalloc( ber_len_t nelems, ber_len_t bytes )
void * ber_memrealloc( void *ptr, ber_len_t bytes);
void ber_memfree( void *ptr );
void ber_memvfree( void **vec );
.ft
.fi
.SH DESCRIPTION
...
...
This diff is collapsed.
Click to expand it.
doc/man/man3/lber-types.3
+
38
−
3
View file @
2b78f442
...
...
@@ -19,17 +19,33 @@ typedef impl_uint_t ber_uint_t;
typedef impl_len_t ber_len_t;
typedef impl_slen_t ber_slen_t;
typedef struct berval {
ber_len_t bv_len;
char *bv_val;
} BerValue;
void ber_bvfree( struct berval *bv );
void ber_bvecfree( struct berval **bvec );
struct berval *ber_bvdup( const struct berval *bv );
struct berval *ber_bvstr( const char *str );
struct berval *ber_bvstrdup( const char *str );
typedef struct berelement BerElement;
void ber_free( BerElement *ber, int freebuf );
.ft
.fi
.SH DESCRIPTION
.LP
The are basic types defined for use with the Lightweight BER library.
The following are the basic types and structures defined for use
with the Lightweight BER library.
.LP
.B ber_int_t
is a signed integer of at least 32 bits. It is commonly equivalent to
...
...
@@ -64,10 +80,29 @@ points to
octets.
.B bv_val
is not necessarly terminated by a NULL (zero) octet.
.BR ber_bvfree ()
frees a BerValue, pointed to by bv, returned from this API. If bv
is NULL, the routine does nothing.
.BR ber_bvecfree ()
frees an array of BerValues (and the array), pointed to by bvec,
returned from this API. If bvec is NULL, the routine does nothing.
.BR ber_bvdup ()
returns a copy of a BerValue. The routine returns NULL upon error
(e.g. out of memory).
.BR ber_bvstr ()
returns a BerValue containing the string pointed to by str.
.BR ber_bvstrdup ()
returns a BerValue containing a copy of the string pointed to by str.
.LP
.B BerElement
is an opaque structure used to hold state information for LBER encoding
and decoding routines.
is an opaque structure used to maintain state information used in
encoding and decoding. BerElement structures are created using
.BR ber_alloc_t (3)
and
.BR ber_init (3).
.BR ber_free ()
frees a BerElement pointed to by ber. If ber is NULL, the routine
does nothing. If freebuf is zero, the internal buffer is not freed.
.SH SEE ALSO
.BR lber-encode (3)
.BR lber-decode (3)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment