| /freebsd/crypto/krb5/src/util/profile/ |
| H A D | t_profile.c | 80 const char *values[] = { "slick", "harry", "john", NULL }; in test_iterate() local 93 assert(values[i] != NULL); in test_iterate() 94 assert(strcmp(value, values[i]) == 0); in test_iterate() 98 assert(values[i] == NULL); in test_iterate() 171 char **values, **dummy; in test_clear() local 174 check(profile_get_values(p, names, &values)); in test_clear() 177 check(profile_add_relation(p, names, values[0])); in test_clear() 178 profile_free_list(values); in test_clear() 179 check(profile_get_values(p, names, &values)); in test_clear() 180 assert(values[0] != NULL && values[1] == NULL); in test_clear() [all …]
|
| H A D | test_load.c | 36 char **values; in main() local 40 assert(profile_get_values(pr, NULL, &values) == 0); in main() 41 assert(strcmp(values[0], "teststring") == 0); in main() 42 assert(strcmp(values[1], "0") == 0); in main() 43 profile_free_list(values); in main() 44 assert(profile_get_values(pr2, NULL, &values) == 0); in main() 45 assert(strcmp(values[0], "teststring") == 0); in main() 46 assert(strcmp(values[1], "1") == 0); in main() 49 profile_free_list(values); in main()
|
| H A D | test_profile.c | 27 char **argv, **values, *value, **cpp; in do_batchmode() local 51 retval = profile_get_values(profile, names, &values); in do_batchmode() 58 &values); in do_batchmode() 62 &values); in do_batchmode() 98 for (cpp = values; *cpp; cpp++) in do_batchmode() 100 profile_free_list(values); in do_batchmode() 116 char **values, *value, **cpp; in main() local 138 retval = profile_get_values(profile, names, &values); in main() 143 retval = profile_get_subsection_names(profile, names, &values); in main() 145 retval = profile_get_relation_names(profile, names, &values); in main() [all …]
|
| H A D | prof_get.c | 137 struct profile_string_list values; in get_values_vt() local 144 retval = init_list(&values); in get_values_vt() 147 add_to_list(&values, *val); in get_values_vt() 148 end_list(&values, ret_values); in get_values_vt() 162 struct profile_string_list values; in profile_get_values() local 175 retval = init_list(&values); in profile_get_values() 183 add_to_list(&values, value); in profile_get_values() 186 if (values.num == 0) { in profile_get_values() 192 end_list(&values, retval ? NULL : ret_values); in profile_get_values() 411 struct profile_string_list values; in profile_get_subsection_names() local [all …]
|
| /freebsd/crypto/krb5/src/plugins/preauth/pkinit/ |
| H A D | pkinit_profile.c | 95 char **values = NULL; in pkinit_kdcdefault_strings() local 117 retval = profile_get_values(profile, names, &values); in pkinit_kdcdefault_strings() 118 if (retval == 0 && values != NULL) in pkinit_kdcdefault_strings() 132 retval = profile_get_values(profile, names, &values); in pkinit_kdcdefault_strings() 133 if (retval == 0 && values != NULL) in pkinit_kdcdefault_strings() 137 if (values == NULL) in pkinit_kdcdefault_strings() 140 *ret_value = values; in pkinit_kdcdefault_strings() 151 char **values = NULL; in pkinit_kdcdefault_string() local 153 retval = pkinit_kdcdefault_strings(context, realmname, option, &values); in pkinit_kdcdefault_string() 157 if (values[0] == NULL) { in pkinit_kdcdefault_string() [all …]
|
| /freebsd/crypto/openssl/util/ |
| H A D | mkinstallvars.pl | 41 my %values = (); 45 push @{$values{$k}}, $v; 59 my $v = $values{$k} || [ '.' ]; 63 $values{$k} = $v; 78 my $v2 = $values{$k} || [ '.' ]; 79 $values{$k} = []; # We're rebuilding it 85 push @{$values{$k}}, $v; 86 push @{$values{$kr}}, 87 File::Spec->abs2rel($v, $values{$var}->[0]); 89 push @{$values{$kr}}, $v; [all …]
|
| /freebsd/lib/libifconfig/ |
| H A D | sfp.lua | 54 values = { 104 values = { 136 values = { 152 values = { 168 values = { 181 values = { 198 values = { 214 values = { 230 values = { 246 values = { [all …]
|
| /freebsd/usr.sbin/bluetooth/bthidcontrol/ |
| H A D | sdp.c | 84 static sdp_attr_t values[8]; variable 85 #define nvalues nitems(values) 108 values[i].flags = SDP_ATTR_INVALID; in hid_init_return_values() 109 values[i].attr = 0; in hid_init_return_values() 110 values[i].vlen = sizeof(buffer[i]); in hid_init_return_values() 111 values[i].value = buffer[i]; in hid_init_return_values() 139 if (sdp_search(ss, 1, &service, nattrs, attrs, nvalues, values) != 0) in hid_sdp_query() 143 if (values[i].flags != SDP_ATTR_OK) in hid_sdp_query() 146 switch (values[i].attr) { in hid_sdp_query() 148 control_psm = hid_sdp_parse_protocol_descriptor_list(&values[ in hid_sdp_query() [all...] |
| /freebsd/contrib/netbsd-tests/lib/libm/ |
| H A D | t_fe_round.c | 25 } values[] = { variable 80 for (unsigned int i = 0; i < __arraycount(values); i++) { in ATF_TC_BODY() 81 fesetround(values[i].round_mode); in ATF_TC_BODY() 83 received = lrint(values[i].input); in ATF_TC_BODY() 85 (labs(received - values[i].expected) < EPSILON), in ATF_TC_BODY() 88 values[i].input, i, received, values[i].expected); in ATF_TC_BODY() 92 (fegetround() == values[i].round_mode), in ATF_TC_BODY() 95 i, values[i].round_mode, fegetround()); in ATF_TC_BODY() 109 for (unsigned int i = 0; i < __arraycount(values); i++) { in ATF_TC_BODY() 110 fesetround(values[i].round_mode); in ATF_TC_BODY() [all …]
|
| H A D | t_bit.c | 20 } values[] = { variable 63 for (unsigned int i = 0; i < __arraycount(values); i++) { in ATF_TC_BODY() 64 iterator_d = values[i].input; in ATF_TC_BODY() 65 iterator_f = (float) values[i].input; in ATF_TC_BODY() 66 if (signbit(iterator_f) != values[i].is_negative) in ATF_TC_BODY() 70 if (signbit(iterator_d) != values[i].is_negative) in ATF_TC_BODY() 76 long double iterator_l = values[i].input; in ATF_TC_BODY() 77 if (signbit(iterator_l) != values[i].is_negative) in ATF_TC_BODY()
|
| /freebsd/crypto/krb5/src/lib/kadm5/ |
| H A D | alt_prof.c | 109 char **values, *valp; in krb5_aprof_get_boolean() local 113 ret = krb5_aprof_getvals(acontext, hierarchy, &values); in krb5_aprof_get_boolean() 118 while (values[idx] != NULL) in krb5_aprof_get_boolean() 122 valp = values[idx]; in krb5_aprof_get_boolean() 124 profile_free_list(values); in krb5_aprof_get_boolean() 151 char **values, *valp; in krb5_aprof_get_deltat() local 154 ret = krb5_aprof_getvals(acontext, hierarchy, &values); in krb5_aprof_get_deltat() 160 for (idx = 0; values[idx] != NULL; idx++); in krb5_aprof_get_deltat() 163 valp = values[idx]; in krb5_aprof_get_deltat() 166 profile_free_list(values); in krb5_aprof_get_deltat() [all …]
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | t_deltat.c | 44 } values[] = { in main() local 131 for (i = 0; i < sizeof(values)/sizeof(values[0]); i++) { in main() 135 code = krb5_string_to_deltat (values[i].string, &result); in main() 136 if (code && !values[i].is_error) { in main() 137 fprintf (stderr, "unexpected error for `%s'\n", values[i].string); in main() 139 } else if (!code && values[i].is_error) { in main() 141 values[i].string); in main() 143 } else if (code && values[i].is_error) { in main() 145 } else if (result != values[i].expected) { in main() 147 (long) result, (long) values[i].expected, in main() [all …]
|
| /freebsd/usr.sbin/nscd/ |
| H A D | hashtable.h | 51 type *values; \ 83 (table)->entries[var].field.values = malloc( \ 86 assert((table)->entries[var].field.values != NULL);\ 97 free((table)->entries[var].field.values); \ 116 for ((var) = &((entry)->field.values[0]); \ 117 (var) < &((entry)->field.values[(entry)->field.size]); \ 132 (entry)->field.values = realloc((entry)->field.values, \ 139 (entry)->field.values = realloc((entry)->field.values, \ 170 memcpy(&(the_entry->field.values[the_entry->field.size++]), \ 173 qsort(the_entry->field.values, the_entry->field.size, \ [all …]
|
| /freebsd/sys/contrib/ck/src/ |
| H A D | ck_array.c | 104 target->values[array->n_entries++] = value; in ck_array_put() 124 target->values[array->n_entries++] = value; in ck_array_put() 136 v = array->transaction->values; in ck_array_put_unique() 138 v = array->active->values; in ck_array_put_unique() 159 if (target->values[i] == value) { in ck_array_remove() 160 target->values[i] = target->values[--array->n_entries]; in ck_array_remove() 171 if (target->values[i] == value) in ck_array_remove() 180 ck_pr_store_ptr(&target->values[i], target->values[--array->n_entries]); in ck_array_remove() 193 memcpy(target->values, array->active->values, sizeof(void *) * array->n_entries); in ck_array_remove() 196 target->values[i] = target->values[--array->n_entries]; in ck_array_remove()
|
| /freebsd/usr.sbin/bluetooth/sdpcontrol/ |
| H A D | search.c | 63 static sdp_attr_t values[NRECS * attrs_len]; 64 #define values_len nitems(values) 626 /* Initialize attribute values array */ in do_sdp_search() 628 values[n].flags = SDP_ATTR_INVALID; in do_sdp_search() 629 values[n].attr = 0; in do_sdp_search() 630 values[n].vlen = BSIZE; in do_sdp_search() 631 values[n].value = buffer[n]; in do_sdp_search() 635 n = sdp_search(xs, 1, &service, attrs_len, attrs, values_len, values); in do_sdp_search() 639 /* Print attributes values */ in do_sdp_search() 641 if (values[ in do_sdp_search() 62 static sdp_attr_t values[NRECS * attrs_len]; global() variable [all...] |
| /freebsd/contrib/ncurses/ncurses/tinfo/ |
| H A D | db_iterator.c | 298 const char *values[dbdLAST]; in _nc_first_db() local 306 values[j] = NULL; in _nc_first_db() 312 values[dbdTIC] = TicDirectory; in _nc_first_db() 316 values[dbdCfgList] = TERMINFO_DIRS; in _nc_first_db() 319 values[dbdCfgOnce] = TERMINFO; in _nc_first_db() 324 values[dbdCfgList2] = TERMPATH; in _nc_first_db() 329 values[dbdEnvOnce] = cache_getenv("TERMINFO", dbdEnvOnce); in _nc_first_db() 330 values[dbdHome] = _nc_home_terminfo(); in _nc_first_db() 332 values[dbdEnvList] = cache_getenv("TERMINFO_DIRS", dbdEnvList); in _nc_first_db() 336 values[dbdEnvOnce2] = cache_getenv("TERMCAP", dbdEnvOnce2); in _nc_first_db() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_get/ |
| H A D | zpool_get_002_pos.ksh | 54 rm -f $values 60 typeset values=$TEST_BASE_DIR/values.$$ 67 zpool get all $TESTPOOL > $values 70 log_must grep -q ^"NAME " $values 76 log_must grep -q "$TESTPOOL *${properties[$i]}" $values 83 COUNT=$(wc -l < $values)
|
| H A D | zpool_get_003_pos.ksh | 47 rm -f $values 58 typeset values=$TEST_BASE_DIR/values.$$ 63 log_must eval "zpool get ${properties[$i]} $TESTPOOL > $values" 64 log_must grep -q "${properties[$i]}" $values 67 if [ $i -eq 0 ] && ! grep -q "^NAME " $values
|
| /freebsd/contrib/ntp/scripts/monitoring/ |
| H A D | loopwatch.config.SAMPLE | 15 # showoffs: yes/no control display of offset values 18 # showfreq: yes/no control display of frequency values 21 # showcmpl: yes/no control display of compliance values 24 # showoreg: yes/no control display of linear regression of offset values 27 # showfreg: yes/no control display of linear regression of frequency values 32 # values are interpreted using local time zone 34 # parts omitted from end default to lowest permitted values 40 # if a number is given, subtract this from sampling values for display 42 # offset values 46 # if a number is given, the sampling values are divided by this number [all …]
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | threads.c | 42 struct tsd_block { void *values[K5_KEY_MAX]; }; member 56 void *values[K5_KEY_MAX]; member 76 if (destructors_set[i] && destructors[i] && t->values[i]) { in krb5int_thread_detach_hook() 77 void *v = t->values[i]; in krb5int_thread_detach_hook() 78 t->values[i] = 0; in krb5int_thread_detach_hook() 111 void *values[K5_KEY_MAX]; member 213 if (destructors_set[i] && destructors[i] && t->values[i]) { in thread_termination() 214 void *v = t->values[i]; in thread_termination() 215 t->values[i] = 0; in thread_termination() 259 return t->values[keynum]; in k5_getspecific() [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | priority_queue_test.c | 55 static size_t values[MAX_SAMPLES], sorted[MAX_SAMPLES], ref[MAX_SAMPLES]; in test_size_t_priority_queue_int() local 68 memset(values, 0, sizeof(values)); in test_size_t_priority_queue_int() 73 values[i] = random ? test_random() : (size_t)(count - i); in test_size_t_priority_queue_int() 74 memcpy(sorted, values, sizeof(*sorted) * count); in test_size_t_priority_queue_int() 78 memcpy(values, sorted, sizeof(*values) * count); in test_size_t_priority_queue_int() 80 qsort(values, count, sizeof(*values), &qsort_size_t_compare_rev); in test_size_t_priority_queue_int() 90 if (!TEST_true(ossl_pqueue_size_t_push(pq, values + i, ref + i))) in test_size_t_priority_queue_int() 100 if (values[i] != SIZE_MAX) { in test_size_t_priority_queue_int() 102 values + i)) in test_size_t_priority_queue_int() 104 values[i] = SIZE_MAX; in test_size_t_priority_queue_int() [all …]
|
| /freebsd/contrib/lib9p/pytest/ |
| H A D | numalloc.py | 256 def free_multi(self, values): argument 258 values = list(values) 259 values.sort() 260 self._free_multi('free_multi', values) 262 def _free_multi(self, how, values): argument 266 if len(values) == 0: 269 while values: 273 highval = values.pop() 275 while len(values) and values[-1] == val - 1: 276 val = values.pop()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_020_pos.ksh | 52 rm -f $values 59 typeset values=$TEST_BASE_DIR/values.$$ 76 zpool get all $TESTPOOL > $values 79 log_must grep -q "$TESTPOOL[ ]*cachefile[ ]*none" $values 82 log_must grep -q "$TESTPOOL[ ]*altroot[ ]*/${TESTPOOL}.root" $values 84 rm $values
|
| /freebsd/crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ |
| H A D | ldap_realm.c | 119 char **values = NULL; in krb5_ldap_list_realm() local 164 if ((values = ldap_get_values (ld, ent, "cn")) != NULL) { in krb5_ldap_list_realm() 166 (*realms)[count] = strdup(values[0]); in krb5_ldap_list_realm() 170 ldap_value_free(values); in krb5_ldap_list_realm() 209 char **values=NULL, **subtrees=NULL, **policy=NULL; in krb5_ldap_delete_realm() local 273 if ((values = ldap_get_values(ld, ent, "krbPrincipalName")) != NULL) { in krb5_ldap_delete_realm() 274 for (i = 0; values[i] != NULL && !st; ++i) { in krb5_ldap_delete_realm() 275 krb5_parse_name(context, values[i], &principal); in krb5_ldap_delete_realm() 283 ldap_value_free(values); in krb5_ldap_delete_realm() 719 char **values=NULL; in krb5_ldap_read_realm_params() local [all …]
|
| /freebsd/crypto/openssl/crypto/x509/ |
| H A D | x_ietfatt.c | 42 STACK_OF(OSSL_IETF_ATTR_SYNTAX_VALUE) *values; 53 ASN1_SEQUENCE_OF(OSSL_IETF_ATTR_SYNTAX, values, OSSL_IETF_ATTR_SYNTAX_VALUE), 71 for (i = 0; i < sk_OSSL_IETF_ATTR_SYNTAX_VALUE_num(ias->values); i++) 75 val = sk_OSSL_IETF_ATTR_SYNTAX_VALUE_value(ias->values, i); 100 if (a->values == NULL) in OSSL_IETF_ATTR_SYNTAX_get_value_num() 103 return sk_OSSL_IETF_ATTR_SYNTAX_VALUE_num(a->values); in OSSL_IETF_ATTR_SYNTAX_get_value_num() 124 val = sk_OSSL_IETF_ATTR_SYNTAX_VALUE_value(a->values, ind); in OSSL_IETF_ATTR_SYNTAX_get0_value() 151 if (a->values == NULL) { in OSSL_IETF_ATTR_SYNTAX_add1_value() 152 if ((a->values = sk_OSSL_IETF_ATTR_SYNTAX_VALUE_new_null()) == NULL) in OSSL_IETF_ATTR_SYNTAX_add1_value() 182 if (sk_OSSL_IETF_ATTR_SYNTAX_VALUE_push(a->values, val) <= 0) { in OSSL_IETF_ATTR_SYNTAX_add1_value()
|