Misc updates

This commit is contained in:
Kurt Zeilenga 2001-07-24 06:26:32 +00:00
parent d31da9dd01
commit 3ce7e382d5
3 changed files with 52 additions and 78 deletions

View File

@ -1,4 +1,4 @@
.TH LDAP_ERROR 3 "22 September 1998" "OpenLDAP LDVERSION"
.TH LDAP_ERROR 3 "23 July 2001" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
@ -10,31 +10,15 @@ ldap_perror, ld_errno, ldap_result2error, ldap_errlist, ldap_err2string \- LDAP
#include <ldap.h>
.LP
.ft B
struct ldaperror {
int e_code;
char *e_reason;
};
.LP
.ft B
struct ldaperror ldap_errlist[];
.LP
.ft B
char *ldap_err2string(err)
char *ldap_err2string( int err );
.ft
int err;
.LP
.ft B
void ldap_perror(ld, s)
.ft
LDAP *ld;
char *s;
void ldap_perror( LDAP *ld, const char *s )
.LP
.ft B
int ldap_result2error(ld, res, freeit)
.ft
LDAP *ld;
LDAPMessage *res;
int freeit;
int ldap_result2error( LDAP *ld, LDAPMessage *res, int freeit )
.SH DESCRIPTION
These routines provide interpretation of the various error codes
returned by the LDAP protocol and LDAP library routines, and assigned
@ -59,15 +43,11 @@ field in \fIld\fP is set and returned.
.LP
The returned value can be passed to
.B ldap_err2string()
or looked up in
.B ldap_errlist[]
to get a text description of the message. The string
returned from
.B ldap_err2string()
is a pointer to a static area that
should not be modified. The last element in the
.B ldap_errlist[]
array is signaled by an error code of -1.
should not be modified.
.LP
The
.B ldap_perror()

View File

@ -1,4 +1,4 @@
.TH LDAP_GETFILTER 3 "22 September 1998" "OpenLDAP LDVERSION"
.TH LDAP_GETFILTER 3 "23 July 2001" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.

View File

@ -1,4 +1,4 @@
.TH LDAP_URL 3 "17 October 2000" "OpenLDAP LDVERSION"
.TH LDAP_URL 3 "23 July 2001" "OpenLDAP LDVERSION"
.\" $OpenLDAP$
.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved.
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
@ -16,15 +16,10 @@ ldap_url_search_st \- LDAP Uniform Resource Locator routines
.ft
.LP
.ft B
int ldap_is_ldap_url( url )
.ft
char *url;
int ldap_is_ldap_url( const char *url )
.LP
.ft B
int ldap_url_parse( url, ludpp )
.ft
char *url;
LDAPURLDesc **ludpp;
int ldap_url_parse( const char *url, LDAPURLDesc **ludpp )
.LP
typedef struct ldap_url_desc {
char * lud_scheme; /* URI scheme */
@ -35,13 +30,12 @@ typedef struct ldap_url_desc {
int lud_scope; /* a LDAP_SCOPE_... value */
char * lud_filter; /* LDAP search filter */
char ** lud_exts; /* LDAP extensions */
int lud_crit_exts; /* true if any extension is critical */
/* may contain additional fields for internal use */
} LDAPURLDesc;
.LP
.ft B
ldap_free_urldesc( ludp )
.ft
LDAPURLDesc *ludp;
ldap_free_urldesc( LDAPURLDesc *ludp )
.LP
.ft B
int ldap_url_search( ld, url, attrsonly )