/freebsd/contrib/libcbor/test/ |
H A D | uint_test.c | 13 cbor_item_t *number; variable 24 number = cbor_load(data1, 2, &res); in test_very_short_int() 25 assert_true(cbor_typeof(number) == CBOR_TYPE_UINT); in test_very_short_int() 26 assert_true(cbor_int_get_width(number) == CBOR_INT_8); in test_very_short_int() 27 assert_true(cbor_isa_uint(number)); in test_very_short_int() 28 assert_false(cbor_isa_negint(number)); in test_very_short_int() 29 assert_true(cbor_get_uint8(number) == 2); in test_very_short_int() 32 assert_true(cbor_is_int(number)); in test_very_short_int() 33 cbor_decref(&number); in test_very_short_int() 34 assert_null(number); in test_very_short_int() [all …]
|
H A D | negint_test.c | 12 cbor_item_t *number; variable 23 number = cbor_load(data1, 2, &res); in test_very_short_int() 24 assert_true(cbor_typeof(number) == CBOR_TYPE_NEGINT); in test_very_short_int() 25 assert_true(cbor_int_get_width(number) == CBOR_INT_8); in test_very_short_int() 26 assert_false(cbor_isa_uint(number)); in test_very_short_int() 27 assert_true(cbor_isa_negint(number)); in test_very_short_int() 28 assert_true(cbor_get_uint8(number) == 2); in test_very_short_int() 31 assert_true(cbor_is_int(number)); in test_very_short_int() 32 cbor_decref(&number); in test_very_short_int() 33 assert_null(number); in test_very_short_int() [all …]
|
/freebsd/usr.sbin/kbdcontrol/ |
H A D | lex.l | 79 NUL|nul { number = 0; return TNUM; } 80 SOH|soh { number = 1; return TNUM; } 81 STX|stx { number = 2; return TNUM; } 82 ETX|etx { number = 3; return TNUM; } 83 EOT|eot { number = 4; return TNUM; } 84 ENQ|enq { number = 5; return TNUM; } 85 ACK|ack { number = 6; return TNUM; } 86 BEL|bel { number = 7; return TNUM; } 87 BS|bs { number = 8; return TNUM; } 88 HT|ht { number = 9; return TNUM; } [all …]
|
/freebsd/contrib/netbsd-tests/ipf/regress/ |
H A D | ip1 | 1 #:%s/ \(number = [0-9]*\) \(type = [a-z]*\)/ \2 \1/g 3 table role = ipf type = tree number = 1 5 table role = ipf type = tree number = 100 7 table role = nat type = tree number = 110 9 table role = auth type = tree number = 120 11 table role = count type = tree number = 130 14 table role = ipf type = hash number = 2 16 table role = ipf type = hash number = 200 18 table role = nat type = hash number = 210 20 table role = auth type = hash number = 220 [all …]
|
/freebsd/contrib/netbsd-tests/ipf/expected/ |
H A D | ip1 | 1 table role=ipf type=tree number=1 3 table role=ipf type=tree number=100 5 table role=nat type=tree number=110 7 table role=auth type=tree number=120 9 table role=count type=tree number=130 11 table role=ipf type=hash number=2 size=1 13 table role=ipf type=hash number=200 size=5 15 table role=nat type=hash number=210 size=5 17 table role=auth type=hash number=220 size=5 19 table role=count type=hash number=230 size=5 [all …]
|
/freebsd/tests/sys/sound/ |
H A D | sndstat.c | 102 NV(number, PCHAN); in ATF_TC_BODY() 103 NV(number, RCHAN); in ATF_TC_BODY() 123 NV(number, PLAY, MIN_RATE); in ATF_TC_BODY() 124 NV(number, PLAY, MAX_RATE); in ATF_TC_BODY() 125 NV(number, PLAY, FORMATS); in ATF_TC_BODY() 126 NV(number, PLAY, MIN_CHN); in ATF_TC_BODY() 127 NV(number, PLAY, MAX_CHN); in ATF_TC_BODY() 130 NV(number, REC, MIN_RATE); in ATF_TC_BODY() 131 NV(number, REC, MAX_RATE); in ATF_TC_BODY() 132 NV(number, REC, FORMATS); in ATF_TC_BODY() [all …]
|
/freebsd/usr.bin/dc/ |
H A D | mem.c | 29 struct number * 32 struct number *n; in new_number() 36 n->number = BN_new(); in new_number() 37 if (n->number == NULL) in new_number() 43 free_number(struct number *n) in free_number() 46 BN_free(n->number); in free_number() 55 struct number * 56 div_number(struct number *dividend, struct number *divisor, u_int bscale) in div_number() 58 struct number *quotient; in div_number() 66 if (BN_is_zero(divisor->number)) in div_number() [all …]
|
H A D | bcode.c | 59 static u_long get_ulong(struct number *); 61 static __inline void push_number(struct number *); 65 static __inline struct number *pop_number(void); 85 static u_int count_digits(const struct number *); 111 static bool compare_numbers(enum bcode_compare, struct number *, 112 struct number *); 301 pn(const char *str, const struct number *n) in pn() 303 char *p = BN_bn2dec(n->number); in pn() 372 split_number(const struct number *n, BIGNUM *i, BIGNUM *f) in split_number() 376 bn_checkp(BN_copy(i, n->number)); in split_number() [all …]
|
H A D | extern.h | 26 struct number *readnumber(struct source *, u_int, u_int); 27 void printnumber(FILE *, const struct number *, u_int); 30 void print_ascii(FILE *, const struct number *); 33 struct number *new_number(void); 34 void free_number(struct number *); 35 struct number *div_number(struct number *, struct number *, u_int scale); 36 struct number *dup_number(const struct number *); 50 void stack_pushnumber(struct stack *, struct number *); 56 struct number *stack_popnumber(struct stack *);
|
H A D | bcode.h | 22 struct number { struct 23 BIGNUM *number; member 46 struct number *num; argument 89 void normalize(struct number *, u_int); 91 void pn(const char *, const struct number *); 93 void negate(struct number *); 94 void split_number(const struct number *, BIGNUM *, BIGNUM *); 95 void bmul_number(struct number *, struct number *, 96 struct number *, u_int scale);
|
H A D | inout.c | 183 struct number * 186 struct number *n; in readnumber() 193 BN_zero(n->number); in readnumber() 216 bn_check(BN_mul_word(n->number, base)); in readnumber() 217 bn_check(BN_add_word(n->number, v)); in readnumber() 223 struct number *quotient, *divisor, *_n; in readnumber() 236 bn_check(BN_exp(divisor->number, base_n, exponent, ctx)); in readnumber() 247 BN_mod_word(n->number, 10) == 0) { in readnumber() 317 printnumber(FILE *f, const struct number *b, u_int base) in printnumber() 319 struct number *fract_part, *int_part; in printnumber() [all …]
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_cfg_instance.c | 13 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init() 18 instance->asym_tx = bundle->rings[i]->number; in crypto_instance_init() 19 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 25 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init() 30 instance->sym_tx = bundle->rings[i]->number; in crypto_instance_init() 31 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 37 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init() 42 instance->asym_rx = bundle->rings[i]->number; in crypto_instance_init() 43 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 49 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init() [all …]
|
/freebsd/lib/libgssapi/ |
H A D | gss_oid_to_str.c | 48 unsigned long number; in gss_oid_to_str() local 65 number = 0; in gss_oid_to_str() 68 number = (unsigned long) cp[0]; in gss_oid_to_str() 69 sprintf(numstr, "%ld ", number/40); in gss_oid_to_str() 71 sprintf(numstr, "%ld ", number%40); in gss_oid_to_str() 75 number = (number << 7) | (cp[i] & 0x7f); in gss_oid_to_str() 83 sprintf(numstr, "%ld ", number); in gss_oid_to_str() 85 number = 0; in gss_oid_to_str() 96 number = (unsigned long) cp[0]; in gss_oid_to_str() 97 sprintf(numstr, "%ld ", number/40); in gss_oid_to_str() [all …]
|
/freebsd/contrib/less/ |
H A D | command.c | 81 static LINENUM number; /* The number typed by the user */ variable 256 multi_search(cbuf, (int) number, 0); in exec_mca() 282 match_brac(cbuf[0], cbuf[1], 1, (int) number); in exec_mca() 285 match_brac(cbuf[1], cbuf[0], 0, (int) number); in exec_mca() 653 number = cmd_int(&fraction); in mca_char() 1237 number = 0; in commands() 1365 if (number > 0) in commands() 1366 swindow = (int) number; in commands() 1372 if (number <= 0) in commands() 1373 number = get_swindow(); in commands() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_import/ |
H A D | zpool_import_all_001_pos.ksh | 58 typeset -i number=0 96 while (( id < number )); do 132 while (( id < number )); do 173 number=1 174 while (( number <= $GROUP_NUM )); do 176 if (( number == 2)); then 177 (( number = number + 1 )) 181 set_partition $number "" $PART_SIZE ${DISK1} 183 setup_single_disk "${DISK1}p${number}" \ 184 "${TESTPOOL}-$number" \ [all …]
|
/freebsd/sbin/ipf/iplang/ |
H A D | BNF | 23 "off" number | "v" number | "hl" number| "id" number | 24 "ttl" number | "tos" number | "sum" number | "len" number | 36 tcpbody ::= "sport" port | "dport" port | "seq" number | "ack" number | 37 "off" number | "urp" number | "win" number | "sum" number | 42 udpbody ::= "sport" port | "dport" port | "len" number | "sum" number | 67 databodyopts ::= "len" number | "value" string | "file" filename . 69 icmpechoopts ::= "icmpseq" number | "icmpid" number .
|
/freebsd/crypto/openssl/crypto/ |
H A D | core_namemap.c | 22 int number; member 116 int number; member 123 if (namenum->number == data->number) in do_name() 134 int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number, in ossl_namemap_doall_names() argument 142 cbdata.number = number; in ossl_namemap_doall_names() 184 namenum_tmpl.number = 0; in namemap_name2num_n() 188 return namenum_entry != NULL ? namenum_entry->number : 0; in namemap_name2num_n() 194 int number; in ossl_namemap_name2num_n() local 206 number = namemap_name2num_n(namemap, name, name_len); in ossl_namemap_name2num_n() 209 return number; in ossl_namemap_name2num_n() [all …]
|
/freebsd/sbin/pfctl/tests/ |
H A D | pfctl_test.c | 174 do_pf_test(const char *number, const atf_tc_t *tc) in do_pf_test() argument 179 atf_tc_get_config_var(tc, "srcdir"), number); in do_pf_test() 181 atf_tc_get_config_var(tc, "srcdir"), number); in do_pf_test() 188 do_selfpf_test(const char *number, const atf_tc_t *tc) in do_selfpf_test() argument 192 atf_tc_get_config_var(tc, "srcdir"), number); in do_selfpf_test() 197 #define PFCTL_TEST(number, descr) \ argument 198 ATF_TC(pf##number); \ 199 ATF_TC_HEAD(pf##number, tc) \ 203 ATF_TC_BODY(pf##number, tc) \ 205 do_pf_test(#number, tc); \ [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | event_tagging.c | 121 #define ENCODE_INT_INTERNAL(data, number) do { \ argument 124 memset(data, 0, sizeof(number)+1); \ 125 while (number) { \ 127 data[off/2] = (data[off/2] & 0xf0) | (number & 0x0f); \ 130 ((number & 0x0f) << 4); \ 131 number >>= 4; \ 145 encode_int_internal(ev_uint8_t *data, ev_uint32_t number) in encode_int_internal() argument 147 ENCODE_INT_INTERNAL(data, number); in encode_int_internal() 151 encode_int64_internal(ev_uint8_t *data, ev_uint64_t number) in encode_int64_internal() argument 153 ENCODE_INT_INTERNAL(data, number); in encode_int64_internal() [all …]
|
/freebsd/contrib/libevent/ |
H A D | event_tagging.c | 121 #define ENCODE_INT_INTERNAL(data, number) do { \ argument 124 memset(data, 0, sizeof(number)+1); \ 125 while (number) { \ 127 data[off/2] = (data[off/2] & 0xf0) | (number & 0x0f); \ 130 ((number & 0x0f) << 4); \ 131 number >>= 4; \ 145 encode_int_internal(ev_uint8_t *data, ev_uint32_t number) in encode_int_internal() argument 147 ENCODE_INT_INTERNAL(data, number); in encode_int_internal() 151 encode_int64_internal(ev_uint8_t *data, ev_uint64_t number) in encode_int64_internal() argument 153 ENCODE_INT_INTERNAL(data, number); in encode_int64_internal() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | fmt_scaled.c | 221 fmt_scaled(long long number, char *result) in fmt_scaled() argument 228 if (number == LLONG_MIN) { in fmt_scaled() 233 abval = llabs(number); in fmt_scaled() 246 number /= scale_factors[i]; in fmt_scaled() 256 if (number >= 0) in fmt_scaled() 257 number++; in fmt_scaled() 259 number--; in fmt_scaled() 266 if (number == 0) in fmt_scaled() 268 else if (unit == NONE || number >= 100 || number <= -100) { in fmt_scaled() 270 if (number >= 0) in fmt_scaled() [all …]
|
/freebsd/crypto/heimdal/base/ |
H A D | number.c | 88 heim_number_create(int number) in heim_number_create() argument 92 if (number < 0xffffff && number >= 0) in heim_number_create() 93 return heim_base_make_tagged_object(number, HEIM_TID_NUMBER); in heim_number_create() 97 *((int *)n) = number; in heim_number_create() 122 heim_number_get_int(heim_number_t number) in heim_number_get_int() argument 124 if (heim_base_is_tagged_object(number)) in heim_number_get_int() 125 return heim_base_tagged_object_value(number); in heim_number_get_int() 126 return *(int *)number; in heim_number_get_int()
|
/freebsd/tools/tools/mctest/ |
H A D | mctest.cc | 94 int sink(char *interface, struct in_addr *group, int pkt_size, int number, in sink() argument 156 timeval packets[number]; in sink() 169 while (n < number) { in sink() 196 if (n < number) in sink() 197 cout << "Missed " << number - n << " packets." << endl; in sink() 199 for (int i = 0; i < number; i++) { in sink() 202 if (i < number - 1) { in sink() 223 int number; ///< Number of packets to expect. member 265 while (n < args->number) { in server() 278 if (n < args->number) in server() [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | refcount.c | 93 zfs_refcount_destroy_many(zfs_refcount_t *rc, uint64_t number) in zfs_refcount_destroy_many() argument 98 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many() 128 zfs_refcount_add_many(zfs_refcount_t *rc, uint64_t number, const void *holder) in zfs_refcount_add_many() argument 134 count = atomic_add_64_nv(&(rc)->rc_count, number); in zfs_refcount_add_many() 135 ASSERT3U(count, >=, number); in zfs_refcount_add_many() 141 ref->ref_number = number; in zfs_refcount_add_many() 145 rc->rc_count += number; in zfs_refcount_add_many() 159 zfs_refcount_add_few(zfs_refcount_t *rc, uint64_t number, const void *holder) in zfs_refcount_add_few() argument 162 (void) zfs_refcount_add_many(rc, number, holder); in zfs_refcount_add_few() 163 else for (; number > 0; number--) in zfs_refcount_add_few() [all …]
|
/freebsd/crypto/openssl/doc/internal/man3/ |
H A D | evp_md_get_number.pod | 31 All provided algorithms get an associated integer identification number. 32 This number is dynamic and should be expected to vary from run to run. 40 Returns the internal dynamic number assigned to I<cipher>. 44 Returns the internal dynamic number assigned to the I<cipher>. This is only 49 Keturns the internal dynamic number assigned to I<kdf>. 53 Returns the internal dynamic number assigned to I<kem>. 57 Returns the internal dynamic number assigned to the I<exchange>. 61 Returns the internal dynamic number assigned to the I<keymgmt>. 65 Returns the internal dynamic number assigned to I<mac>. 69 Returns the internal dynamic number assigned to the I<md>. This is [all …]
|