Home
last modified time | relevance | path

Searched refs:len1 (Results 1 – 25 of 67) sorted by relevance

123

/freebsd/contrib/unbound/util/data/
H A Ddname.c235 uint8_t len1, len2; in dname_pkt_compare() local
238 len1 = *d1++; in dname_pkt_compare()
240 while( len1 != 0 || len2 != 0 ) { in dname_pkt_compare()
242 if(LABEL_IS_PTR(len1)) { in dname_pkt_compare()
243 if((size_t)PTR_OFFSET(len1, *d1) in dname_pkt_compare()
248 d1 = sldns_buffer_at(pkt, PTR_OFFSET(len1, *d1)); in dname_pkt_compare()
249 len1 = *d1++; in dname_pkt_compare()
263 log_assert(len1 <= LDNS_MAX_LABELLEN); in dname_pkt_compare()
265 if(len1 != len2) { in dname_pkt_compare()
266 if(len1 < len2) return -1; in dname_pkt_compare()
[all …]
/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dutil.c2897 int n, i, len0, len1; in hci_commands2str() local
2910 if (len1 + strlen(t[n][i]) > 60) { in hci_commands2str()
2911 len1 = 0; in hci_commands2str()
2915 len1 += strlen(t[n][i]); in hci_commands2str()
3012 int n, i, len0, len1; in hci_features2str() local
3015 len1 = 0; in hci_features2str()
3025 if (len1 + strlen(t[n][i]) > 60) { in hci_features2str()
3026 len1 = 0; in hci_features2str()
3030 len1 += strlen(t[n][i]); in hci_features2str()
3126 int n, i, len0, len1; in hci_le_features2str() local
[all …]
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dchk_trans.c48 unsigned int len1, len2, i; in process_intermediates() local
54 len1 = n1->length; in process_intermediates()
59 if (len1 > len2) { in process_intermediates()
61 int tmp = len1; in process_intermediates()
62 len1 = len2; in process_intermediates()
69 if (len1 == len2) { in process_intermediates()
70 if (memcmp (n1->data, n2->data, len1)) { in process_intermediates()
79 if (len1 == 0) in process_intermediates()
88 (int) len1, p1, (int) len2, p2)); in process_intermediates()
91 if (memcmp (p1, p2, len1)) { in process_intermediates()
[all …]
/freebsd/usr.bin/sort/
H A Dbwstring.c479 size_t cmp_len, len1, len2; in bwsncmp() local
482 len1 = BWSLEN(bws1); in bwsncmp()
485 if (len1 <= offset) { in bwsncmp()
491 len1 -= offset; in bwsncmp()
494 cmp_len = len1; in bwsncmp()
522 if (len1 < cmp_len && len1 < len2) in bwsncmp()
524 else if (len2 < cmp_len && len2 < len1) in bwsncmp()
534 size_t len1, len2, cmp_len; in bwscmp() local
537 len1 = BWSLEN(bws1); in bwscmp()
540 len1 -= offset; in bwscmp()
[all …]
H A Dvsort.c204 size_t len1, len2, slen1, slen2; in vcmp() local
214 len1 = slen1 = BWSLEN(s1); in vcmp()
251 find_suffix(si1, bws_end(s1), &len1); in vcmp()
254 if ((len1 == len2) && (bws_iterator_cmp(si1, si2, len1) == 0)) in vcmp()
257 cmp_res = cmpversions(si1, bws_iterator_inc(si1, len1), si2, in vcmp()
/freebsd/crypto/krb5/src/util/
H A Ddef-check.pl35 my $len1;
80 $len1 = length;
82 s/(\r)?\n$// if $len1 < length;
102 $len1 = length;
104 s/(\r)?\n$// if $len1 < length;
110 $len1 = length;
112 s/(\r)?\n$// if $len1 < length;
/freebsd/usr.bin/cmp/
H A Dlink.c46 ssize_t len1, len2; in c_link() local
51 if ((len1 = readlink(file1, buf1, sizeof(buf1) - 1)) < 0) { in c_link()
65 if (skip1 > len1) in c_link()
66 skip1 = len1; in c_link()
67 buf1[len1] = '\0'; in c_link()
H A Dregular.c54 c_regular(int fd1, const char *file1, off_t skip1, off_t len1, in c_regular() argument
65 if (skip1 > len1) { in c_regular()
69 len1 -= skip1; in c_regular()
76 if (sflag && len1 != len2) in c_regular()
84 length = MIN(len1, len2); in c_regular()
166 if (len1 != len2) { in c_regular()
167 eofmsg(len1 > len2 ? file2 : file1); in c_regular()
/freebsd/contrib/bmake/
H A Dstr.c84 size_t len1 = strlen(s1); in str_concat2() local
86 char *result = bmake_malloc(len1 + len2 + 1); in str_concat2()
87 memcpy(result, s1, len1); in str_concat2()
88 memcpy(result + len1, s2, len2 + 1); in str_concat2()
96 size_t len1 = strlen(s1); in str_concat3() local
99 char *result = bmake_malloc(len1 + len2 + len3 + 1); in str_concat3()
100 memcpy(result, s1, len1); in str_concat3()
101 memcpy(result + len1, s2, len2); in str_concat3()
102 memcpy(result + len1 + len2, s3, len3 + 1); in str_concat3()
/freebsd/lib/libc/locale/
H A Dwctype.c96 size_t len1, len2; in wctype_l() local
100 len1 = strlen(property); in wctype_l()
103 if (len1 == len2 && memcmp(property, p, len1) == 0) in wctype_l()
/freebsd/crypto/openssl/crypto/slh_dsa/
H A Dslh_wots.c213 size_t len1 = SLH_WOTS_LEN1(n); /* 2 * n = the msg length in nibbles */ in ossl_slh_wots_sign() local
214 size_t len = len1 + SLH_WOTS_LEN2; /* 2 * n + 3 (3 checksum nibbles) */ in ossl_slh_wots_sign()
228 compute_checksum_nibbles(msg_and_csum_nibbles, len1, msg_and_csum_nibbles + len1); in ossl_slh_wots_sign()
276 size_t len1 = SLH_WOTS_LEN1(n); in ossl_slh_wots_pk_from_sig() local
277 size_t len = len1 + SLH_WOTS_LEN2; /* 2n + 3 */ in ossl_slh_wots_pk_from_sig()
292 compute_checksum_nibbles(msg_and_csum_nibbles, len1, msg_and_csum_nibbles + len1); in ossl_slh_wots_pk_from_sig()
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp109 size_t len1 = internal_strlen(haystack); in internal_strstr() local
111 if (len1 < len2) in internal_strstr()
113 for (size_t pos = 0; pos <= len1 - len2; pos++) { in internal_strstr()
138 void __sanitizer_weak_hook_memmem(void *called_pc, const void *s1, size_t len1,
213 void *memmem(const void *s1, size_t len1, const void *s2, size_t len2) { in memmem() argument
215 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
216 __sanitizer_weak_hook_memmem(GET_CALLER_PC(), s1, len1, s2, len2, result); in memmem()
/freebsd/lib/libc/string/
H A Dwcscoll.c44 int len1, len2, pri1, pri2; in wcscoll_l() local
120 _collate_lookup(table, w1, &len1, in wcscoll_l()
150 w1 += len1; in wcscoll_l()
167 _collate_lookup(table, w1, &len1, &pri1, in wcscoll_l()
169 w1 += len1; in wcscoll_l()
/freebsd/sys/dev/mlx5/mlx5_fpga_tools/
H A Dmlx5fpga_tools_char.c135 size_t len, len1; in tools_char_read() local
151 context->access_type, &len1); in tools_char_read()
153 ret = uiomove(kbuf, len1, uio); in tools_char_read()
164 size_t len, len1; in tools_char_write() local
179 len1 = uio->uio_resid; in tools_char_write()
184 len1 -= uio->uio_resid; in tools_char_write()
186 context->access_type, &len1); in tools_char_write()
/freebsd/lib/libc/gen/
H A Dfmtmsg.c205 size_t len1, len2; in validmsgverb() local
212 len1 = strlen(msgcomp); in validmsgverb()
214 if (len1 == len2 && memcmp(msgcomp, p, len1) == 0) in validmsgverb()
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dstrings.c51 size_t len1 = strlen(haystack); in NCURSES_EXPORT() local
55 while ((len1 != 0) && (len1-- >= len2)) { in NCURSES_EXPORT()
/freebsd/usr.sbin/jail/
H A Djailparse.y209 size_t len1; variable
212 len1 = strlen($2);
213 $$->s = erealloc($$->s, $$->len + len1 + 1);
216 $$->len += len1;
/freebsd/usr.bin/diff/
H A Ddiffdir.c290 ssize_t len1 = 0; in diffit() local
293 len1 = readlink(path1, buf1, sizeof(buf1)); in diffit()
296 if (len1 < 0 || len2 < 0) { in diffit()
300 buf1[len1] = '\0'; in diffit()
303 if (len1 != len2 || strncmp(buf1, buf2, len1) != 0) { in diffit()
/freebsd/contrib/bearssl/T0/
H A DCodeElementUIntExpr.cs58 int len1 = oneByteCode in Encode()
64 return len1 + len2; in Encode()
/freebsd/usr.sbin/ppp/
H A Dpred.c221 int len, olen, len1; in Pred1Input() local
236 len1 = decompress(state, cp, pp, olen - 4); in Pred1Input()
239 if (len != len1) { /* Error is detected. Send reset request */ in Pred1Input()
240 log_Printf(LogCCP, "Pred1: Length error (got %d, not %d)\n", len1, len); in Pred1Input()
247 pp += len1; in Pred1Input()
/freebsd/contrib/bearssl/tools/
H A Dta.c207 size_t len1, len2; in do_ta() local
217 len1 = VEC_LEN(tas); in do_ta()
221 len2 = VEC_LEN(tas) - len1; in do_ta()
/freebsd/contrib/unbound/util/
H A Dnet_help.h278 int sockaddr_cmp(struct sockaddr_storage* addr1, socklen_t len1,
289 int sockaddr_cmp_addr(struct sockaddr_storage* addr1, socklen_t len1,
301 int sockaddr_cmp_scopeid(struct sockaddr_storage* addr1, socklen_t len1,
H A Dnet_help.c668 sockaddr_cmp(struct sockaddr_storage* addr1, socklen_t len1, in sockaddr_cmp() argument
675 if(len1 < len2) in sockaddr_cmp()
677 if(len1 > len2) in sockaddr_cmp()
679 log_assert(len1 == len2); in sockaddr_cmp()
705 return memcmp(addr1, addr2, len1); in sockaddr_cmp()
710 sockaddr_cmp_addr(struct sockaddr_storage* addr1, socklen_t len1, in sockaddr_cmp_addr() argument
717 if(len1 < len2) in sockaddr_cmp_addr()
719 if(len1 > len2) in sockaddr_cmp_addr()
721 log_assert(len1 == len2); in sockaddr_cmp_addr()
735 return memcmp(addr1, addr2, len1); in sockaddr_cmp_addr()
[all …]
/freebsd/crypto/heimdal/lib/hx509/
H A Dsel.c102 size_t len1 = strlen(s1); in eval_comp() local
105 if (len1 < len2) in eval_comp()
107 ret = strcmp(s1 + (len1 - len2), s2) == 0; in eval_comp()
/freebsd/crypto/heimdal/lib/kadm5/
H A Dkeys.c71 _kadm5_exists_keys(Key *keys1, int len1, Key *keys2, int len2) in _kadm5_exists_keys() argument
75 for (i = 0; i < len1; ++i) { in _kadm5_exists_keys()

123