| /netbsd-src/external/bsd/openldap/dist/include/ |
| H A D | lber_pvt.h | 113 struct berval *bv, void *ctx )); 117 struct berval **bv, void *ctx )); 122 struct berval *bv, void *ctx )); 130 LDAP_CONST char *, ber_len_t len, int dup, struct berval *bv, void *ctx)); 134 LDAP_CONST char *, ber_len_t len, int dup, struct berval *bv, void *ctx)); 148 ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx )); 174 #define ber_bvchr(bv,c) \ argument 175 ((char *) memchr( (bv)->bv_val, (c), (bv)->bv_len )) 177 #define ber_bvrchr(bv,c) \ argument 178 ((char *) lutil_memrchr( (bv)->bv_val, (c), (bv)->bv_len )) [all …]
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblber/ |
| H A D | decode.c | 96 ber_tag_and_rest( const BerElement *ber, struct berval *bv ) in ber_tag_and_rest() argument 139 bv->bv_len = rest; in ber_tag_and_rest() 140 bv->bv_val = (char *) ptr; in ber_tag_and_rest() 148 struct berval bv; in ber_get_tag() local 149 ber_tag_t tag = ber_tag_and_rest( ber, &bv ); in ber_get_tag() 151 ber->ber_ptr = bv.bv_val; in ber_get_tag() 157 ber_peek_element( const BerElement *ber, struct berval *bv ) in ber_peek_element() argument 164 assert( bv != NULL ); in ber_peek_element() 181 tag = ber_tag_and_rest( ber, bv ); in ber_peek_element() 183 rest = bv->bv_len; in ber_peek_element() [all …]
|
| H A D | memory.c | 382 ber_bvfree_x( struct berval *bv, void *ctx ) in ber_bvfree_x() argument 384 if( bv == NULL ) { in ber_bvfree_x() 388 BER_MEM_VALID( bv ); in ber_bvfree_x() 390 if ( bv->bv_val != NULL ) { in ber_bvfree_x() 391 ber_memfree_x( bv->bv_val, ctx ); in ber_bvfree_x() 394 ber_memfree_x( (char *) bv, ctx ); in ber_bvfree_x() 398 ber_bvfree( struct berval *bv ) in ber_bvfree() argument 400 ber_bvfree_x( bv, NULL ); in ber_bvfree() 404 ber_bvecfree_x( struct berval **bv, void *ctx ) in ber_bvecfree_x() argument 408 if( bv == NULL ) { in ber_bvecfree_x() [all …]
|
| H A D | io.c | 321 ber_init2( BerElement *ber, struct berval *bv, int options ) in ber_init2() argument 331 if ( bv != NULL ) { in ber_init2() 332 ber->ber_buf = bv->bv_val; in ber_init2() 334 ber->ber_end = ber->ber_buf + bv->bv_len; in ber_init2() 352 ber_init( struct berval *bv ) in ber_init() argument 356 assert( bv != NULL ); in ber_init() 358 if ( bv == NULL ) { in ber_init() 370 if ( ((ber_len_t) ber_write ( ber, bv->bv_val, bv->bv_len, 0 )) in ber_init() 371 != bv->bv_len ) in ber_init() 392 struct berval *bv, in ber_flatten2() argument [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| H A D | sanitizer_bitvector_test.cc | 32 static void CheckBV(const BV &bv, const set<uptr> &s) { in CheckBV() argument 34 t.copyFrom(bv); in CheckBV() 36 uptr last_idx = bv.size(); in CheckBV() 38 for (typename BV::Iterator it(bv); it.hasNext();) { in CheckBV() 41 if (last_idx != bv.size()) in CheckBV() 48 last_idx = bv.size(); in CheckBV() 51 if (last_idx != bv.size()) in CheckBV() 60 void Print(const BV &bv) { in Print() argument 62 t.copyFrom(bv); in Print() 80 BV bv, bv1, t_bv; in TestBitVector() local [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/frv/ |
| H A D | bv.cgs | 1 # frv testcase for bv $ICCi,$hint,$label16 8 .global bv 9 bv: 11 bv icc0,0,bad 13 bv icc1,1,bad 15 bv icc2,2,ok3 19 bv icc3,3,ok4 23 bv icc0,0,bad 25 bv icc1,1,bad 27 bv icc2,2,ok7 [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-ldap/ |
| H A D | config.c | 565 struct berval bv; in slap_retry_info_unparse() local 605 bv.bv_val = buf; in slap_retry_info_unparse() 606 bv.bv_len = ptr - buf; in slap_retry_info_unparse() 607 ber_dupbv( bvout, &bv ); in slap_retry_info_unparse() 630 struct berval bv; in slap_idassert_authzfrom_parse() local 660 rc = authzNormalize( 0, NULL, NULL, &in, &bv, NULL ); in slap_idassert_authzfrom_parse() 670 ber_bvarray_add( &si->si_authz, &bv ); in slap_idassert_authzfrom_parse() 680 ber_bvarray_add( &si->si_authz, &bv ); in slap_idassert_authzfrom_parse() 692 si->si_authz[ c->valx ] = bv; in slap_idassert_authzfrom_parse() 702 struct berval bv; in slap_idassert_passthru_parse() local [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-monitor/ |
| H A D | conn.c | 59 struct berval bv; in monitor_subsys_conn_init() local 83 BER_BVSTR( &bv, "cn=Max File Descriptors" ); in monitor_subsys_conn_init() 84 e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv, in monitor_subsys_conn_init() 91 bv.bv_val, ms->mss_ndn.bv_val ); in monitor_subsys_conn_init() 96 bv.bv_val = buf; in monitor_subsys_conn_init() 97 bv.bv_len = snprintf( buf, sizeof( buf ), "%d", dtblsize ); in monitor_subsys_conn_init() 100 BER_BVSTR( &bv, "0" ); in monitor_subsys_conn_init() 102 attr_merge_one( e, mi->mi_ad_monitorCounter, &bv, NULL ); in monitor_subsys_conn_init() 128 BER_BVSTR( &bv, "cn=Total" ); in monitor_subsys_conn_init() 129 e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv, in monitor_subsys_conn_init() [all …]
|
| H A D | time.c | 54 struct berval bv, value; in monitor_subsys_time_init() local 75 BER_BVSTR( &bv, "cn=Start" ); in monitor_subsys_time_init() 76 e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv, in monitor_subsys_time_init() 82 bv.bv_val, ms->mss_ndn.bv_val ); in monitor_subsys_time_init() 101 bv.bv_val, ms->mss_ndn.bv_val ); in monitor_subsys_time_init() 111 BER_BVSTR( &bv, "cn=Current" ); in monitor_subsys_time_init() 112 e = monitor_entry_stub( &ms->mss_dn, &ms->mss_ndn, &bv, in monitor_subsys_time_init() 118 bv.bv_val, ms->mss_ndn.bv_val ); in monitor_subsys_time_init() 137 bv.bv_val, ms->mss_ndn.bv_val ); in monitor_subsys_time_init() 147 BER_BVSTR( &bv, "cn=Uptime" ); in monitor_subsys_time_init() [all …]
|
| H A D | thread.c | 136 struct berval bv = BER_BVNULL; in monitor_subsys_thread_init() local 165 ber_str2bv( state, 0, 0, &bv ); in monitor_subsys_thread_init() 168 BER_BVSTR( &bv, "unknown" ); in monitor_subsys_thread_init() 176 bv.bv_val = buf; in monitor_subsys_thread_init() 177 bv.bv_len = snprintf( buf, sizeof( buf ), "%d", count ); in monitor_subsys_thread_init() 181 if ( !BER_BVISNULL( &bv ) ) { in monitor_subsys_thread_init() 182 attr_merge_normalize_one( e, mi->mi_ad_monitoredInfo, &bv, NULL ); in monitor_subsys_thread_init() 228 struct berval rdn, bv; in monitor_subsys_thread_update() local 266 bv.bv_val = buf; in monitor_subsys_thread_update() 269 bv.bv_len = snprintf( buf, sizeof( buf ), "{%d}%s(%s)", in monitor_subsys_thread_update() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/ |
| H A D | saslauthz.c | 215 struct berval bv; in authzValidate() local 242 bv.bv_val = in->bv_val + STRLENOF( "dn" ); in authzValidate() 244 if ( bv.bv_val[ 0 ] == '.' ) { in authzValidate() 245 bv.bv_val++; in authzValidate() 247 if ( !strncasecmp( bv.bv_val, "exact:", STRLENOF( "exact:" ) ) ) { in authzValidate() 248 bv.bv_val += STRLENOF( "exact:" ); in authzValidate() 251 } else if ( !strncasecmp( bv.bv_val, "regex:", STRLENOF( "regex:" ) ) ) { in authzValidate() 252 bv.bv_val += STRLENOF( "regex:" ); in authzValidate() 255 } else if ( !strncasecmp( bv.bv_val, "children:", STRLENOF( "children:" ) ) ) { in authzValidate() 256 bv.bv_val += STRLENOF( "children:" ); in authzValidate() [all …]
|
| H A D | matchedValues.c | 151 struct berval *bv; in test_ava_vrFilter() local 178 bv = a->a_nvals; in test_ava_vrFilter() 179 for ( j=0; !BER_BVISNULL( bv ); bv++, j++ ) { in test_ava_vrFilter() 184 bv, &ava->aa_value, &text ); in test_ava_vrFilter() 222 struct berval *bv; in test_presence_vrFilter() local 226 for ( bv = a->a_vals, j = 0; !BER_BVISNULL( bv ); bv++, j++ ); in test_presence_vrFilter() 244 struct berval *bv; in test_substrings_vrFilter() local 252 bv = a->a_nvals; in test_substrings_vrFilter() 253 for ( j = 0; !BER_BVISNULL( bv ); bv++, j++ ) { in test_substrings_vrFilter() 258 bv, vrf->vrf_sub, &text ); in test_substrings_vrFilter() [all …]
|
| H A D | value.c | 429 struct berval bv = *in; in ordered_value_validate() local 437 if ( bv.bv_val[0] == '{' ) { in ordered_value_validate() 440 ptr = ber_bvchr( &bv, '}' ); in ordered_value_validate() 444 ns.bv_val = bv.bv_val + 1; in ordered_value_validate() 449 bv.bv_len -= ptr - bv.bv_val; in ordered_value_validate() 450 bv.bv_val = ptr; in ordered_value_validate() 451 in = &bv; in ordered_value_validate() 453 if ( mop == LDAP_MOD_DELETE && BER_BVISEMPTY( &bv ) ) { in ordered_value_validate() 477 struct berval bv, in ordered_value_pretty() local 486 bv = *val; in ordered_value_pretty() [all …]
|
| H A D | aci.c | 163 struct berval bv; in aci_list_map_rights() local 168 for ( i = 0; acl_get_part( list, i, ',', &bv ) >= 0; i++ ) { in aci_list_map_rights() 169 if ( bv.bv_len <= 0 ) { in aci_list_map_rights() 173 switch ( *bv.bv_val ) { in aci_list_map_rights() 220 struct berval bv, left, right; in aci_list_has_attr() local 223 for ( i = 0; acl_get_part( list, i, ',', &bv ) >= 0; i++ ) { in aci_list_has_attr() 224 if ( acl_get_part(&bv, 0, '=', &left ) < 0 in aci_list_has_attr() 225 || acl_get_part( &bv, 1, '=', &right ) < 0 ) in aci_list_has_attr() 227 if ( ber_bvstrcasecmp( attr, &bv ) == 0 ) { in aci_list_has_attr() 278 struct berval bv; in aci_list_get_attr_rights() local [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-asyncmeta/ |
| H A D | config.c | 476 struct berval bv; in asyncmeta_cfadd() local 479 bv.bv_val = c->cr_msg; in asyncmeta_cfadd() 481 bv.bv_len = snprintf( c->cr_msg, sizeof(c->cr_msg), in asyncmeta_cfadd() 486 &bv, &a_metaocs[1], NULL ); in asyncmeta_cfadd() 653 struct berval bv, *style; in asyncmeta_subtree_unparse() local 662 bv.bv_val = c->cr_msg; in asyncmeta_subtree_unparse() 674 bv.bv_len = snprintf( c->cr_msg, sizeof(c->cr_msg), in asyncmeta_subtree_unparse() 676 value_add_one( &c->rvalue_vals, &bv ); in asyncmeta_subtree_unparse() 1035 struct berval bv = BER_BVNULL; in asyncmeta_back_cf_gen() local 1044 BER_BVSTR( &bv, "forever" ); in asyncmeta_back_cf_gen() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/comp_match/ |
| H A D | init.c | 204 comp_convert_attr_to_comp LDAP_P (( Attribute* a, Syntax *syn, struct berval* bv )) in comp_convert_attr_to_comp() argument 222 ExpBufInstallDataInBuf ( buf, bv->bv_val, bv->bv_len ); in comp_convert_attr_to_comp() 267 struct berval* bv, in comp_convert_assert_to_comp() argument 277 ExpBufInstallDataInBuf ( buf, bv->bv_val, bv->bv_len ); in comp_convert_assert_to_comp() 317 comp_convert_asn_to_ldap ( MatchingRule* mr, ComponentSyntaxInfo* csi, struct berval* bv, int *allo… in comp_convert_asn_to_ldap() argument 333 bv->bv_val = (char*)malloc( 5 ); in comp_convert_asn_to_ldap() 335 bv->bv_len = 5; in comp_convert_asn_to_ldap() 337 strcpy ( bv->bv_val , "TRUE" ); in comp_convert_asn_to_ldap() 338 bv->bv_len = 4; in comp_convert_asn_to_ldap() 341 strcpy ( bv->bv_val , "FALSE" ); in comp_convert_asn_to_ldap() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-mdb/ |
| H A D | monitor.c | 186 struct berval bv; in mdb_monitor_update() local 202 bv.bv_val = buf; in mdb_monitor_update() 203 bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mei.me_mapsize / mst.ms_psize ); in mdb_monitor_update() 204 ber_bvreplace( &a->a_vals[ 0 ], &bv ); in mdb_monitor_update() 208 bv.bv_val = buf; in mdb_monitor_update() 209 bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", mei.me_last_pgno+1 ); in mdb_monitor_update() 210 ber_bvreplace( &a->a_vals[ 0 ], &bv ); in mdb_monitor_update() 214 bv.bv_val = buf; in mdb_monitor_update() 215 bv.bv_len = snprintf( buf, sizeof( buf ), "%u", mei.me_maxreaders ); in mdb_monitor_update() 216 ber_bvreplace( &a->a_vals[ 0 ], &bv ); in mdb_monitor_update() [all …]
|
| /netbsd-src/external/mit/libcbor/dist/docs/doxygen/ |
| H A D | jquery.js | 16 …bv=Array.prototype.indexOf,bx={};bF.fn=bF.prototype={constructor:bF,init:function(b0,b4,b3){var b2… argument 23 …;e=bv}e("parentNode",bR,bS,bT,bU,bV)},"~":function(bT,bR,bV){var bU,bS=bI++,e=bN;if(typeof bR==="s… function
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/slapi/ |
| H A D | slapi_dn.c | 347 BER_BVZERO( &rdn->bv ); in slapi_rdn_init() 377 return slapi_rdn_new_dn( fromrdn->bv.bv_val ); in slapi_rdn_new_rdn() 400 struct berval bv; in slapi_rdn_set_dn() local 404 BER_BVZERO( &bv ); in slapi_rdn_set_dn() 407 bv.bv_val = (char *)dn; in slapi_rdn_set_dn() 408 bv.bv_len = strlen( dn ); in slapi_rdn_set_dn() 411 dnExtractRdn( &bv, &rdn->bv, NULL ); in slapi_rdn_set_dn() 422 slapi_rdn_set_dn( rdn, fromrdn->bv.bv_val ); in slapi_rdn_set_rdn() 437 slapi_ch_free_string( &rdn->bv.bv_val ); in slapi_rdn_done() 443 return rdn->bv.bv_val; in slapi_rdn_get_rdn() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-meta/ |
| H A D | config.c | 528 struct berval bv; in meta_cfadd() local 531 bv.bv_val = c->cr_msg; in meta_cfadd() 533 bv.bv_len = snprintf( c->cr_msg, sizeof(c->cr_msg), in meta_cfadd() 538 &bv, &metaocs[1], NULL ); in meta_cfadd() 744 struct berval bv, *style; in meta_subtree_unparse() local 753 bv.bv_val = c->cr_msg; in meta_subtree_unparse() 765 bv.bv_len = snprintf( c->cr_msg, sizeof(c->cr_msg), in meta_subtree_unparse() 767 value_add_one( &c->rvalue_vals, &bv ); in meta_subtree_unparse() 1126 struct berval bv = BER_BVNULL; in meta_back_cf_gen() local 1137 ber_str2bv( buf, 0, 0, &bv ); in meta_back_cf_gen() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/libraries/libldap/ |
| H A D | getdn.c | 71 static int dn2domain( LDAPDN dn, struct berval *bv, int pos, int *iRDN ); 685 struct berval bv; in ldap_str2dn() local 689 bv.bv_len = strlen( str ); in ldap_str2dn() 690 bv.bv_val = (char *) str; in ldap_str2dn() 692 return ldap_bv2dn_x( &bv, dn, flags, NULL ); in ldap_str2dn() 696 ldap_bv2dn( struct berval *bv, LDAPDN *dn, unsigned flags ) in ldap_bv2dn() argument 698 return ldap_bv2dn_x( bv, dn, flags, NULL ); in ldap_bv2dn() 712 struct berval bvtmp, *bv = &bvtmp; in ldap_bv2dn_x() local 718 *bv = *bvin; in ldap_bv2dn_x() 719 str = bv->bv_val; in ldap_bv2dn_x() [all …]
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-dnssrv/ |
| H A D | search.c | 143 struct berval bv; in dnssrv_back_search() local 144 bv.bv_val = refdn; in dnssrv_back_search() 145 bv.bv_len = strlen( refdn ); in dnssrv_back_search() 147 rc = dnNormalize( 0, NULL, NULL, &bv, &nrefdn, op->o_tmpmemctx ); in dnssrv_back_search() 189 struct berval bv; in dnssrv_back_search() local 191 bv.bv_val = domain; in dnssrv_back_search() 193 p = strchr( bv.bv_val, '.' ); in dnssrv_back_search() 195 if ( p == bv.bv_val ) { in dnssrv_back_search() 196 bv.bv_len = 1; in dnssrv_back_search() 199 bv.bv_len = p - bv.bv_val; in dnssrv_back_search() [all …]
|
| /netbsd-src/sbin/bioctl/ |
| H A D | bioctl.c | 63 struct bioc_vol *bv; member 235 bio_show_volumes(struct biotmp *bt, struct bioc_vol *bv) in bio_show_volumes() argument 243 memset(bv, 0, sizeof(*bv)); in bio_show_volumes() 244 bv->bv_cookie = bl.bl_cookie; in bio_show_volumes() 245 bv->bv_volid = bt->volid; in bio_show_volumes() 246 bv->bv_percent = -1; in bio_show_volumes() 247 bv->bv_seconds = 0; in bio_show_volumes() 249 if (ioctl(bt->fd, BIOCVOL, bv) == -1) in bio_show_volumes() 254 if (bv->bv_percent != -1) in bio_show_volumes() 256 " %3.2f%% done", bv->bv_percent / 10.0); in bio_show_volumes() [all …]
|
| /netbsd-src/sys/compat/common/ |
| H A D | bio_30.c | 75 struct bioc_vol *bv = kmem_zalloc(sizeof(*bv), KM_SLEEP); in compat_30_bio() local 77 (void)memcpy(bv, addr, sizeof(struct obioc_vol)); in compat_30_bio() 78 error = (*delegate)(cookie, BIOCVOL, bv); in compat_30_bio() 80 kmem_free(bv, sizeof(*bv)); in compat_30_bio() 84 (void)memcpy(addr, bv, sizeof(struct obioc_vol)); in compat_30_bio() 85 kmem_free(bv, sizeof(*bv)); in compat_30_bio()
|
| /netbsd-src/external/bsd/openldap/dist/servers/slapd/back-sql/ |
| H A D | api.c | 130 struct berval bv; in backsql_api_dn2odbc() local 138 ber_dupbv( &bv, dn ); in backsql_api_dn2odbc() 153 rc = ( *ba->ba_dn2odbc )( op, rs, &bv ); in backsql_api_dn2odbc() 157 assert( BER_BVISNULL( &bv ) ); in backsql_api_dn2odbc() 164 assert( !BER_BVISNULL( &bv ) ); in backsql_api_dn2odbc() 166 *dn = bv; in backsql_api_dn2odbc() 177 struct berval bv; in backsql_api_odbc2dn() local 185 ber_dupbv( &bv, dn ); in backsql_api_odbc2dn() 189 rc = ( *ba->ba_odbc2dn )( op, rs, &bv ); in backsql_api_odbc2dn() 203 assert( BER_BVISNULL( &bv ) ); in backsql_api_odbc2dn() [all …]
|