Lines Matching refs:ld

323 #define NSLDAPI_USING_CLASSIC_IO_FUNCTIONS( ld ) ((ld)->ld_io_fns_ptr != NULL)  argument
416 #define LDAP_MUTEX_ALLOC( ld ) \ argument
417 (((ld)->ld_mutex_alloc_fn != NULL) ? (ld)->ld_mutex_alloc_fn() : NULL)
420 #define LDAP_MUTEX_FREE( ld, m ) \ argument
421 if ( (ld)->ld_mutex_free_fn != NULL && m != NULL ) { \
422 (ld)->ld_mutex_free_fn( m ); \
437 #define LDAP_MUTEX_LOCK(ld, lock) \ argument
438 if ((ld)->ld_mutex_lock_fn != NULL && ld->ld_mutex != NULL) { \
439 if ((ld)->ld_threadid_fn != NULL) { \
440 if ((ld)->ld_mutex_threadid[lock] == (ld)->ld_threadid_fn()) { \
441 (ld)->ld_mutex_refcnt[lock]++; \
443 (ld)->ld_mutex_lock_fn(ld->ld_mutex[lock]); \
444 (ld)->ld_mutex_threadid[lock] = ld->ld_threadid_fn(); \
445 (ld)->ld_mutex_refcnt[lock] = 1; \
448 (ld)->ld_mutex_lock_fn(ld->ld_mutex[lock]); \
452 #define LDAP_MUTEX_UNLOCK(ld, lock) \ argument
453 if ((ld)->ld_mutex_lock_fn != NULL && ld->ld_mutex != NULL) { \
454 if ((ld)->ld_threadid_fn != NULL) { \
455 if ((ld)->ld_mutex_threadid[lock] == (ld)->ld_threadid_fn()) { \
456 (ld)->ld_mutex_refcnt[lock]--; \
457 if ((ld)->ld_mutex_refcnt[lock] <= 0) { \
458 (ld)->ld_mutex_threadid[lock] = (void *) -1; \
459 (ld)->ld_mutex_refcnt[lock] = 0; \
460 (ld)->ld_mutex_unlock_fn(ld->ld_mutex[lock]); \
464 ld->ld_mutex_unlock_fn(ld->ld_mutex[lock]); \
469 #define LDAP_MUTEX_BC_LOCK( ld, i ) \ argument
474 if( (ld)->ld_mutex_trylock_fn == NULL ) { \
475 LDAP_MUTEX_LOCK( ld, i ) ; \
477 #define LDAP_MUTEX_BC_UNLOCK( ld, i ) \ argument
482 if( (ld)->ld_mutex_trylock_fn == NULL ) { \
483 LDAP_MUTEX_UNLOCK( ld, i ) ; \
487 #define LDAP_SEMA_ALLOC( ld ) \ argument
488 (((ld)->ld_sema_alloc_fn != NULL) ? (ld)->ld_sema_alloc_fn() : NULL)
489 #define LDAP_SEMA_FREE( ld, m ) \ argument
490 if ( (ld)->ld_sema_free_fn != NULL && m != NULL ) { \
491 (ld)->ld_sema_free_fn( m ); \
495 #define LDAP_SEMA_WAIT( ld, lp ) \ argument
496 if ( (ld)->ld_sema_wait_fn != NULL ) { \
497 (ld)->ld_sema_wait_fn( lp->lp_sema ); \
499 #define LDAP_SEMA_POST( ld, lp ) \ argument
500 if ( (ld)->ld_sema_post_fn != NULL ) { \
501 (ld)->ld_sema_post_fn( lp->lp_sema ); \
503 #define POST( ld, y, z ) \ argument
508 if( (ld)->ld_mutex_trylock_fn != NULL ) { \
509 nsldapi_post_result( ld, y, z ); \
514 #define LDAP_SET_ERRNO( ld, e ) \ argument
515 if ( (ld)->ld_set_errno_fn != NULL ) { \
516 (ld)->ld_set_errno_fn( e ); \
520 #define LDAP_GET_ERRNO( ld ) \ argument
521 (((ld)->ld_get_errno_fn != NULL) ? \
522 (ld)->ld_get_errno_fn() : errno)
524 #define LDAP_SET_ERRNO( ld, e ) \ argument
525 if ( (ld)->ld_set_errno_fn != NULL ) { \
526 (ld)->ld_set_errno_fn( e ); \
528 #define LDAP_GET_ERRNO( ld ) \ argument
529 (((ld)->ld_get_errno_fn != NULL) ? \
530 (ld)->ld_get_errno_fn() : 0)
535 #define LDAP_SET_LDERRNO( ld, e, m, s ) ldap_set_lderrno( ld, e, m, s ) argument
536 #define LDAP_GET_LDERRNO( ld, m, s ) ldap_get_lderrno( ld, m, s ) argument
546 #define LDAP_IS_CLDAP( ld ) ( ld->ld_sbp->sb_naddr > 0 ) argument
564 #define NSLDAPI_LDAP_VERSION( ld ) ( (ld)->ld_defconn == NULL ? \ argument
565 (ld)->ld_version : \
566 (ld)->ld_defconn->lconn_version )
616 #define NSLDAPI_VALID_LDAP_POINTER( ld ) \ argument
617 ( (ld) != NULL )
652 char *nsldapi_get_binddn( LDAP *ld );
657 void nsldapi_add_result_to_cache( LDAP *ld, LDAPMessage *result );
668 int nsldapi_parse_result( LDAP *ld, int msgtype, BerElement *rber,
676 void nsldapi_mutex_alloc_all( LDAP *ld );
677 void nsldapi_mutex_free_all( LDAP *ld );
678 int nsldapi_open_ldap_defconn( LDAP *ld );
684 int nsldapi_connect_to_host( LDAP *ld, Sockbuf *sb, const char *host,
686 void nsldapi_close_connection( LDAP *ld, Sockbuf *sb );
688 int nsldapi_iostatus_poll( LDAP *ld, struct timeval *timeout );
689 void nsldapi_iostatus_free( LDAP *ld );
690 int nsldapi_iostatus_interest_write( LDAP *ld, Sockbuf *sb );
691 int nsldapi_iostatus_interest_read( LDAP *ld, Sockbuf *sb );
692 int nsldapi_iostatus_interest_clear( LDAP *ld, Sockbuf *sb );
693 int nsldapi_iostatus_is_read_ready( LDAP *ld, Sockbuf *sb );
694 int nsldapi_iostatus_is_write_ready( LDAP *ld, Sockbuf *sb );
695 int nsldapi_install_lber_extiofns( LDAP *ld, Sockbuf *sb );
696 int nsldapi_install_compat_io_fns( LDAP *ld, struct ldap_io_fns *iofns );
701 int nsldapi_parse_reference( LDAP *ld, BerElement *rber, char ***referralsp,
707 int ldap_msgdelete( LDAP *ld, int msgid );
708 int nsldapi_result_nolock( LDAP *ld, int msgid, int all, int unlock_permitted,
710 int nsldapi_wait_result( LDAP *ld, int msgid, int all, struct timeval *timeout,
712 int nsldapi_post_result( LDAP *ld, int msgid, LDAPMessage *result );
717 int nsldapi_send_initial_request( LDAP *ld, int msgid, unsigned long msgtype,
719 int nsldapi_alloc_ber_with_options( LDAP *ld, BerElement **berp );
720 void nsldapi_set_ber_options( LDAP *ld, BerElement *ber );
721 int nsldapi_ber_flush( LDAP *ld, Sockbuf *sb, BerElement *ber, int freeit,
723 int nsldapi_send_server_request( LDAP *ld, BerElement *ber, int msgid,
726 LDAPConn *nsldapi_new_connection( LDAP *ld, LDAPServer **srvlistp, int use_ldsb,
728 LDAPRequest *nsldapi_find_request_by_msgid( LDAP *ld, int msgid );
729 void nsldapi_free_request( LDAP *ld, LDAPRequest *lr, int free_conn );
730 void nsldapi_free_connection( LDAP *ld, LDAPConn *lc,
733 void nsldapi_dump_connection( LDAP *ld, LDAPConn *lconns, int all );
734 void nsldapi_dump_requests_and_responses( LDAP *ld );
735 int nsldapi_chase_v2_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp,
737 int nsldapi_chase_v3_refs( LDAP *ld, LDAPRequest *lr, char **refs,
739 int nsldapi_append_referral( LDAP *ld, char **referralsp, char *s );
740 void nsldapi_connection_lost_nolock( LDAP *ld, Sockbuf *sb );
745 int nsldapi_build_search_req( LDAP *ld, const char *base, int scope,
754 int ldap_ld_free( LDAP *ld, LDAPControl **serverctrls,
756 int nsldapi_send_unbind( LDAP *ld, Sockbuf *sb, LDAPControl **serverctrls,
790 int nsldapi_put_controls( LDAP *ld, LDAPControl **ctrls, int closeseq,
793 int nsldapi_dup_controls( LDAP *ld, LDAPControl ***ldctrls,
814 int prldap_x_install_dns_skipdb(LDAP *ld, const char *skip);
825 prldap_install_io_functions( LDAP *ld, int shared );
827 prldap_install_dns_functions( LDAP *ld );
829 prldap_install_thread_functions( LDAP *ld, int shared );
845 void ldap_set_string_translators( LDAP *ld,
847 int ldap_translate_from_t61( LDAP *ld, char **bufp,
849 int ldap_translate_to_t61( LDAP *ld, char **bufp,
851 void ldap_enable_translation( LDAP *ld, LDAPMessage *entry,
866 int ldap_memcache_createkey( LDAP *ld, const char *base, int scope,
870 int ldap_memcache_result( LDAP *ld, int msgid, unsigned long key );
871 int ldap_memcache_new( LDAP *ld, int msgid, unsigned long key,
873 int ldap_memcache_append( LDAP *ld, int msgid, int bLast, LDAPMessage *result );
874 int ldap_memcache_abandon( LDAP *ld, int msgid );