Home
last modified time | relevance | path

Searched refs:NSLDAPI_MALLOC (Results 1 – 22 of 22) sorted by relevance

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dcharray.c41 *a = (char **)NSLDAPI_MALLOC( 2 * sizeof(char *) ); in ldap_charray_add()
151 new = (char **)NSLDAPI_MALLOC( (i + 1) * sizeof(char *) ); in ldap_charray_dup()
195 res = (char **)NSLDAPI_MALLOC( (i + 1) * sizeof(char *) ); in ldap_str2charray()
H A Dcontrol.c309 if ( ( ctrlp = (LDAPControl **)NSLDAPI_MALLOC( sizeof(LDAPControl *)
354 if (( *ldctrls = (LDAPControl **)NSLDAPI_MALLOC(( count + 1 ) * in nsldapi_dup_controls()
384 if (( rctrl = (LDAPControl *)NSLDAPI_MALLOC( sizeof( LDAPControl ))) in ldap_control_dup()
425 if (( ctrl_dst->ldctl_value.bv_val = NSLDAPI_MALLOC( len )) in ldap_control_copy_contents()
463 if (( *ctrlp = (LDAPControl *)NSLDAPI_MALLOC( sizeof(LDAPControl))) in nsldapi_build_control()
H A Dsortctrl.c318 new_key = (LDAPsortkey*)NSLDAPI_MALLOC(sizeof(LDAPsortkey)); in read_next_token()
324 new_key->sk_attrtype = (char *)NSLDAPI_MALLOC(attrdesc_size + 1); in read_next_token()
326 new_key->sk_matchruleoid = (char *)NSLDAPI_MALLOC( in read_next_token()
372 pointer_array = (LDAPsortkey**)NSLDAPI_MALLOC(sizeof(LDAPsortkey*) in ldap_create_sort_keylist()
H A Dgetdxbyname.c100 if (( dxs = (char **)NSLDAPI_MALLOC( 2 * sizeof( char * ))) == NULL || in nsldapi_getdxbyname()
200 dxs = (char **)NSLDAPI_MALLOC( 2 * sizeof( char * )); in decode_answer()
H A Dopen.c477 if ( (ld = (LDAP*)NSLDAPI_MALLOC( sizeof(struct ldap) )) == NULL ) { in ldap_init()
484 if (( ld->ld_io_fns_ptr = (struct ldap_io_fns *)NSLDAPI_MALLOC( in ldap_init()
698 *hostp = NSLDAPI_MALLOC( len + 1 ); in ldap_x_hostlist_next()
797 (p = (char *)NSLDAPI_MALLOC( strlen( s ) + 1 )) == NULL ) in nsldapi_strdup()
H A Dgetvalues.c200 result = (_SubStringIndex *)NSLDAPI_MALLOC( sizeof(*result) in parse_subtypes()
225 *langp = (char *)NSLDAPI_MALLOC( len + 1 ); in parse_subtypes()
371 baseTarget = (char *)NSLDAPI_MALLOC( len + 1 ); in internal_ldap_get_lang_values()
H A Dgetdn.c161 if ( (rdns = (char **)NSLDAPI_MALLOC( 8 * sizeof(char *) )) == NULL ) { in ldap_explode_dns()
257 if (( rdns = (char **)NSLDAPI_MALLOC( 8 in ldap_explode()
H A Dcharset.c1072 if ( (o = oo = (Byte *)NSLDAPI_MALLOC( 2 * len + 64 )) == NULL ) { in ldap_t61_to_8859()
1609 if ( (o = oo = (Byte *)NSLDAPI_MALLOC( 2 * len + 64 )) == NULL ) { in ldap_8859_to_t61()
1732 if ( (o = oo = (Byte *)NSLDAPI_MALLOC( 2 * strlen( s ) + 64 )) == NULL ) {
1786 if ( (o = oo = (Byte *)NSLDAPI_MALLOC( 2 * strlen( s ) + 64 )) == NULL ) {
H A Dufn.c155 if ( (dns = (char **)NSLDAPI_MALLOC( in ldap_ufn_search_ctx()
176 if ( (dns = (char **)NSLDAPI_MALLOC( in ldap_ufn_search_ctx()
305 if ( (pbuf = (char *)NSLDAPI_MALLOC( strlen( ld->ld_ufnprefix ) + 1 )) in ldap_ufn_search_ct()
H A Dsort.c95 kt = (keything_t**)NSLDAPI_MALLOC( count * (sizeof(keything_t*) + sizeof(keything_t)) ); in ldap_keysort_entries()
216 if ( (et = (struct entrything *)NSLDAPI_MALLOC( count * in ldap_multisort_entries()
H A Dfriendly.c63 if ( (*map = (FriendlyMap)NSLDAPI_MALLOC( (entries + 1) * in ldap_friendly_name()
H A Ddsparse.c136 if (( line = NSLDAPI_MALLOC( p - linestart )) == NULL ) { in next_line()
H A Dcache.c83 mods = (LDAPMod **)NSLDAPI_MALLOC( GRABSIZE * sizeof(LDAPMod *) ); in nsldapi_add_result_to_cache()
H A Dtmplout.c172 if (( buf = NSLDAPI_MALLOC( LDAP_DTMPL_BUFSIZ )) == NULL ) { in do_entry2text()
468 if (( buf = NSLDAPI_MALLOC( LDAP_DTMPL_BUFSIZ )) == NULL ) { in do_entry2text_search()
649 if (( buf = NSLDAPI_MALLOC( LDAP_DTMPL_BUFSIZ )) == NULL ) { in do_vals2text()
1106 if (( members = (char **)NSLDAPI_MALLOC( (count + 1) in searchaction()
H A Dabandon.c245 if ( (ld->ld_abandoned = (int *)NSLDAPI_MALLOC( 2 in do_abandon()
H A Dos-ip.c582 = NSLDAPI_MALLOC( ld->ld_dns_bufsize );
587 ldhpbuf = ldhpbuf_allocd = NSLDAPI_MALLOC(
1264 newpollfds = (struct pollfd *)NSLDAPI_MALLOC(
1382 newpollfds = (LDAP_X_PollFD *)NSLDAPI_MALLOC(
H A Ddisptmpl.c128 if (( buf = NSLDAPI_MALLOC( (size_t)len )) == NULL ) { in ldap_init_templates()
403 if (( attrs = (char **)NSLDAPI_MALLOC( sizeof( char * ))) == NULL ) { in ldap_tmplattrs()
H A Dsrchpref.c87 if (( buf = NSLDAPI_MALLOC( (size_t)len )) == NULL ) { in ldap_init_searchprefs()
H A Dgetfilter.c76 if (( buf = NSLDAPI_MALLOC( (size_t)len )) == NULL ) { in ldap_init_getfilter()
H A Dldap-int.h607 #define NSLDAPI_MALLOC( size ) ldap_x_malloc( size ) macro
H A Dsasl.c438 if ((sb->sb_sasl_ibuf = NSLDAPI_MALLOC(bufsiz)) == NULL) { in nsldapi_sasl_install()
H A Drequest.c1079 *referralsp = (char *)NSLDAPI_MALLOC( strlen( s ) + in nsldapi_append_referral()