Add additional types to lber-types.

This commit is contained in:
Kurt Zeilenga 2001-08-30 03:02:36 +00:00
parent 749a6b1f29
commit 71d564aee4
2 changed files with 37 additions and 8 deletions

View File

@ -1,9 +1,9 @@
.TH LBER_TYPES 3 "22 July 2001" "OpenLDAP LDVERSION"
.TH LBER_TYPES 3 "29 August 2001" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
.SH NAME
ber_int_t, ber_len_t, ber_tag_t \- LBER types
ber_int_t, ber_uint_t, ber_len_t, ber_slen_t, ber_tag_t \- LBER types
.SH SYNOPSIS
.nf
.ft B
@ -13,9 +13,18 @@ ber_int_t, ber_len_t, ber_tag_t \- LBER types
.LP
.nf
.ft B
typedef impl_int_t ber_int_t;
typedef impl_len_t ber_len_t;
typedef impl_tag_t ber_tag_t;
typedef impl_int_t ber_int_t;
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;
typedef struct berelement BerElement;
.ft
.fi
.SH DESCRIPTION
@ -25,16 +34,40 @@ The are basic types defined for use with the Lightweight BER library.
.B ber_int_t
is a signed integer of at least 32 bits. It is commonly equivalent to
.BR int .
.B ber_uint_t
is the unsigned variant of
.BR ber_int_t .
.LP
.B ber_len_t
is a unsigned integer of at least 32 bits used to represent a length.
It is commonly equivalent to a
.BR size_t .
.B ber_slen_t
is the signed variant to
.BR ber_len_t .
.LP
.B ber_tag_t
is a unsigned integer of at least 32 bits used to represent a
BER tag. It is commonly equivalent to a
.BR unsigned\ long .
.LP
The actual definitions of the integal impl_TYPE_t types are platform
specific.
.LP
.BR BerValue ,
commonly used as
.BR struct\ berval ,
is used to holds an arbitrary sequence of octets.
.B bv_val
points to
.B bv_len
octets.
.B bv_val
is not necessarly terminated by a NULL (zero) octet.
.LP
.B BerElement
is an opaque structure used to hold state information for LBER encoding
and decoding routines.
.SH SEE ALSO
.BR lber-encode (3)
.BR lber-decode (3)

View File

@ -9,10 +9,6 @@ ldap_get_values, ldap_get_values_len, ldap_count_values \- LDAP attribute value
.ft B
#include <ldap.h>
typedef struct berval {
unsigned long bv_len;
char *bv_val;
};
.LP
.ft B
char **ldap_get_values(ld, entry, attr)