| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-meta/ |
| H A D | map.c | 257 void *memctx ) in map_attr_value() argument 309 NULL, NULL, value, &vtmp, memctx ) ) in map_attr_value() 325 filter_escape_value_x( &vtmp, mapped_value, memctx ); in map_attr_value() 332 ber_memfree_x( vtmp.bv_val, memctx ); in map_attr_value() 345 void *memctx ) in ldap_back_int_filter_map_rewrite() argument 372 ber_dupbv_x( fstr, &ber_bvnone, memctx ); in ldap_back_int_filter_map_rewrite() 379 &f->f_av_value, &vtmp, remap, memctx ) ) in ldap_back_int_filter_map_rewrite() 386 fstr->bv_val = ber_memalloc_x( fstr->bv_len + 1, memctx ); in ldap_back_int_filter_map_rewrite() 388 ber_memfree_x( vtmp.bv_val, memctx ); in ldap_back_int_filter_map_rewrite() 395 ber_memfree_x( vtmp.bv_val, memctx ); in ldap_back_int_filter_map_rewrite() [all …]
|
| H A D | back-meta.h | 124 void *memctx ); 137 void *memctx );
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/ |
| H A D | search.c | 92 void *memctx = dc->memctx; in asyncmeta_int_filter2bv() local 98 ber_dupbv_x( fstr, &ber_bvnone, memctx ); in asyncmeta_int_filter2bv() 110 filter_escape_value_x( &vtmp, &ntmp, memctx ); in asyncmeta_int_filter2bv() 113 fstr->bv_val = dc->op->o_tmpalloc( fstr->bv_len + 1, memctx ); in asyncmeta_int_filter2bv() 118 ber_memfree_x( ntmp.bv_val, memctx ); in asyncmeta_int_filter2bv() 122 filter_escape_value_x( &f->f_av_value, &ntmp, memctx ); in asyncmeta_int_filter2bv() 125 fstr->bv_val = dc->op->o_tmpalloc( fstr->bv_len + 1, memctx ); in asyncmeta_int_filter2bv() 130 ber_memfree_x( ntmp.bv_val, memctx ); in asyncmeta_int_filter2bv() 134 filter_escape_value_x( &f->f_av_value, &ntmp, memctx ); in asyncmeta_int_filter2bv() 137 fstr->bv_val = dc->op->o_tmpalloc( fstr->bv_len + 1, memctx ); in asyncmeta_int_filter2bv() [all …]
|
| H A D | message_queue.c | 59 static void asyncmeta_memctx_put(void *threadctx, void *memctx) in asyncmeta_memctx_put() argument 62 slap_sl_mem_destroy((void *)1, memctx); in asyncmeta_memctx_put() 160 void *thrctx, *memctx; in asyncmeta_clear_bm_context() local 174 memctx = op->o_tmpmemctx; in asyncmeta_clear_bm_context() 179 asyncmeta_memctx_put(thrctx, memctx); in asyncmeta_clear_bm_context()
|
| H A D | map.c | 116 dc->op->o_tmpfree( dn.bv_val, dc->memctx ); in asyncmeta_referral_result_rewrite() 124 ber_str2bv_x( newurl, 0, 1, &a_vals[ i ], dc->memctx ); in asyncmeta_referral_result_rewrite() 147 ber_memfree_x( a_vals[i].bv_val, dc->memctx ); in asyncmeta_dnattr_result_rewrite() 213 res->bv_val = dc->op->o_tmpalloc( res->bv_len + 1, dc->memctx ); in asyncmeta_dn_massage()
|
| H A D | delete.c | 61 dc.memctx = op->o_tmpmemctx; in asyncmeta_back_delete_start()
|
| H A D | compare.c | 64 dc.memctx = op->o_tmpmemctx; in asyncmeta_back_compare_start()
|
| H A D | modrdn.c | 64 dc.memctx = op->o_tmpmemctx; in asyncmeta_back_modrdn_start()
|
| H A D | meta_result.c | 196 dc.memctx = op->o_tmpmemctx; in asyncmeta_send_entry() 838 dc.memctx = op->o_tmpmemctx; in asyncmeta_handle_search_msg() 946 dc.memctx = NULL; in asyncmeta_handle_search_msg() 990 dc.memctx = op->o_tmpmemctx; in asyncmeta_handle_search_msg()
|
| H A D | modify.c | 68 dc.memctx = op->o_tmpmemctx; in asyncmeta_back_modify_start()
|
| H A D | add.c | 90 dc.memctx = op->o_tmpmemctx; in asyncmeta_back_add_start()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
| H A D | ldapsync.c | 175 slap_parse_csn_sids( BerVarray csns, int numcsns, void *memctx ) in slap_parse_csn_sids() argument 179 ret = slap_sl_malloc( numcsns * sizeof(int), memctx ); in slap_parse_csn_sids() 226 slap_sort_csn_sids( BerVarray csns, int *sids, int numcsns, void *memctx ) in slap_sort_csn_sids() argument 233 a.a_nvals = slap_sl_malloc( numcsns * sizeof(struct berval), memctx ); in slap_sort_csn_sids() 241 rc = slap_sort_vals( (Modifications *)&a, &text, &i, memctx ); in slap_sort_csn_sids() 244 slap_sl_free( a.a_nvals, memctx ); in slap_sort_csn_sids() 273 void *memctx in slap_parse_sync_cookie() argument 364 &stamp, &bv, memctx ) != LDAP_SUCCESS ) in slap_parse_sync_cookie() 366 ber_bvarray_add_x( &cookie->ctxcsn, &bv, memctx ); in slap_parse_sync_cookie() 410 &stamp, &bv, memctx ) != LDAP_SUCCESS ) in slap_parse_sync_cookie() [all …]
|
| H A D | filterentry.c | 169 void *memctx; in test_mra_filter() local 176 memctx = NULL; in test_mra_filter() 179 memctx = op->o_tmpmemctx; in test_mra_filter() 308 bv, &nbv, memctx ) != LDAP_SUCCESS ) in test_mra_filter() 322 memfree( nbv.bv_val, memctx ); in test_mra_filter() 349 &mra->ma_value, &value, &text, memctx ); in test_mra_filter() 356 memfree( value.bv_val, memctx ); in test_mra_filter() 398 bv, &nbv, memctx ) != LDAP_SUCCESS ) in test_mra_filter() 412 memfree( nbv.bv_val, memctx ); in test_mra_filter() 422 memfree( value.bv_val, memctx ); in test_mra_filter() [all …]
|
| H A D | attr.c | 508 void *memctx ) in attr_normalize() argument 522 nvals = slap_sl_calloc( sizeof(struct berval), i + 1, memctx ); in attr_normalize() 528 &vals[i], &nvals[i], memctx ); in attr_normalize() 540 ber_bvarray_free_x( nvals, memctx ); in attr_normalize() 551 void *memctx ) in attr_merge_normalize() argument 556 rc = attr_normalize( desc, vals, &nvals, memctx ); in attr_merge_normalize() 560 ber_bvarray_free_x( nvals, memctx ); in attr_merge_normalize() 599 void *memctx ) in attr_normalize_one() argument 612 val, nval, memctx ); in attr_normalize_one() 627 void *memctx ) in attr_merge_normalize_one() argument [all …]
|
| H A D | filter.c | 892 filter_dup( Filter *f, void *memctx ) in filter_dup() argument 900 n = mf->bmf_malloc( sizeof(Filter), memctx ); in filter_dup() 910 n->f_desc = slap_bv2tmp_ad( &f->f_desc->ad_cname, memctx ); in filter_dup() 919 n->f_ava = mf->bmf_calloc( 1, sizeof(AttributeAssertion), memctx ); in filter_dup() 922 n->f_av_desc = slap_bv2tmp_ad( &f->f_av_desc->ad_cname, memctx ); in filter_dup() 923 ber_dupbv_x( &n->f_av_value, &f->f_av_value, memctx ); in filter_dup() 926 n->f_sub = mf->bmf_calloc( 1, sizeof(SubstringsAssertion), memctx ); in filter_dup() 928 n->f_sub_desc = slap_bv2tmp_ad( &f->f_sub_desc->ad_cname, memctx ); in filter_dup() 932 ber_dupbv_x( &n->f_sub_initial, &f->f_sub_initial, memctx ); in filter_dup() 937 memctx ); in filter_dup() [all …]
|
| H A D | sl_malloc.c | 120 # define SET_MEMCTX(thrctx, memctx, kfree) \ argument 121 ldap_pvt_thread_pool_setkey(thrctx,memctx_key, memctx,kfree, NULL,NULL) 196 void *memctx; in slap_sl_mem_create() local 203 sh = GET_MEMCTX(thrctx, &memctx); in slap_sl_mem_create() 290 void *memctx in slap_sl_mem_setctx() argument 293 SET_MEMCTX(thrctx, memctx, slap_sl_mem_destroy); in slap_sl_mem_setctx() 673 void *memctx; in slap_sl_context() local 678 sh = GET_MEMCTX(ldap_pvt_thread_pool_context(), &memctx); in slap_sl_context()
|
| H A D | proto-slap.h | 162 void *memctx )); 301 BerVarray vals, BerVarray *nvalsp, void *memctx )); 303 struct berval *val, struct berval *nval, void *memctx )); 306 BerVarray vals, void *memctx )); 309 struct berval *val, void *memctx )); 1012 void *memctx )); 1135 LDAP_SLAPD_F (Filter *) filter_dup LDAP_P(( Filter *f, void *memctx )); 1205 BerVarray, int, void *memctx )); 1207 BerVarray, int *, int, void *memctx )); 1211 struct sync_cookie *, void *memctx )); [all …]
|
| H A D | dn.c | 1152 void *memctx ) in build_new_dn() argument 1157 ber_dupbv_x( new_dn, newrdn, memctx ); in build_new_dn() 1162 new_dn->bv_val = (char *) slap_sl_malloc( new_dn->bv_len + 1, memctx ); in build_new_dn()
|
| H A D | connection.c | 1026 void *memctx = NULL; in connection_operation() local 1100 memctx = slap_sl_mem_create( memsiz, SLAP_SLAB_STACK, ctx, 1 ); in connection_operation() 1101 op->o_tmpmemctx = memctx; in connection_operation() 1108 ber_set_option( op->o_ber, LBER_OPT_BER_MEMCTX, &memctx ); in connection_operation()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-sql/ |
| H A D | util.c | 73 backsql_strcat_x( struct berbuf *dest, void *memctx, ... ) in backsql_strcat_x() argument 87 va_start( strs, memctx ); in backsql_strcat_x() 89 dest->bb_val.bv_val = (char *)ber_memalloc_x( BACKSQL_STR_GROW * sizeof( char ), memctx ); in backsql_strcat_x() 108 dest->bb_len + grow * sizeof( char ), memctx ); in backsql_strcat_x() 140 backsql_strfcat_x( struct berbuf *dest, void *memctx, const char *fmt, ... ) in backsql_strfcat_x() argument 157 dest->bb_val.bv_val = (char *)ber_memalloc_x( BACKSQL_STR_GROW * sizeof( char ), memctx ); in backsql_strfcat_x() 215 ( dest->bb_len ) + grow * sizeof( char ), memctx ); in backsql_strfcat_x() 254 void *memctx ) in backsql_entry_addattr() argument 263 rc = attr_merge_normalize_one( e, ad, val, memctx ); in backsql_entry_addattr() 491 void *memctx ) in backsql_entryUUID() argument [all …]
|
| H A D | proto-sql.h | 260 struct berbuf * backsql_strcat_x( struct berbuf *dest, void *memctx, ... ); 261 struct berbuf * backsql_strfcat_x( struct berbuf *dest, void *memctx, const char *fmt, ... ); 264 struct berval *at_val, void *memctx ); 276 struct berval *entryUUID, void *memctx );
|
| /netbsd-src/external/mpl/bind/dist/tests/ns/ |
| H A D | query_test.c | 638 test_hookasync(query_ctx_t *qctx, isc_mem_t *memctx, void *arg, 649 ctx = isc_mem_get(memctx, sizeof(*ctx)); 650 rev = isc_mem_get(memctx, sizeof(*rev)); 668 isc_mem_attach(memctx, &ctx->mctx); in test_hookasync() 1279 test_hookasync_e2e(query_ctx_t *qctx, isc_mem_t *memctx, void *arg, 1290 ctx = isc_mem_get(memctx, sizeof(*ctx)); 1291 rev = isc_mem_get(memctx, sizeof(*rev)); 1308 isc_mem_attach(memctx, &ctx->mctx); in test_hookasync_e2e() 658 test_hookasync(query_ctx_t * qctx,isc_mem_t * memctx,void * arg,isc_task_t * task,isc_taskaction_t action,void * evarg,ns_hookasync_t ** ctxp) test_hookasync() argument 1299 test_hookasync_e2e(query_ctx_t * qctx,isc_mem_t * memctx,void * arg,isc_task_t * task,isc_taskaction_t action,void * evarg,ns_hookasync_t ** ctxp) test_hookasync_e2e() argument
|
| /netbsd-src/external/bsd/openldap/dist/include/ |
| H A D | ldap_pvt_uc.h | 154 void *memctx ); 160 void *memctx );
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/overlays/ |
| H A D | rwmmap.c | 428 void *memctx ) in map_attr_value() argument 478 NULL, NULL, value, &vtmp, memctx ) ) in map_attr_value() 496 filter_escape_value_x( &vtmp, mapped_value, memctx ); in map_attr_value() 504 ber_memfree_x( vtmp.bv_val, memctx ); in map_attr_value()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/slapi/ |
| H A D | slapi_pblock.c | 848 pblock_set_dn( void *value, struct berval *dn, struct berval *ndn, void *memctx ) in pblock_set_dn() argument 853 slap_sl_free( dn->bv_val, memctx ); in pblock_set_dn() 857 slap_sl_free( ndn->bv_val, memctx ); in pblock_set_dn() 864 return dnPrettyNormal( NULL, &bv, dn, ndn, memctx ); in pblock_set_dn()
|