| /netbsd-src/external/bsd/unbound/dist/util/data/ |
| H A D | dname.c | 235 uint8_t len1, len2; in dname_pkt_compare() local 239 len2 = *d2++; in dname_pkt_compare() 240 while( len1 != 0 || len2 != 0 ) { in dname_pkt_compare() 252 if(LABEL_IS_PTR(len2)) { in dname_pkt_compare() 253 if((size_t)PTR_OFFSET(len2, *d2) in dname_pkt_compare() 258 d2 = sldns_buffer_at(pkt, PTR_OFFSET(len2, *d2)); in dname_pkt_compare() 259 len2 = *d2++; in dname_pkt_compare() 264 log_assert(len2 <= 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 …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/ |
| H A D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 143 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 146 z_off64_t len2; 153 if (len2 < 0) 157 MOD63(len2); /* assumes len2 >= 0 */ 158 rem = (unsigned)len2; 172 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 175 z_off_t len2; 177 return adler32_combine_(adler1, adler2, len2); 180 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
| H A D | crc32.c | 1072 uLong ZEXPORT crc32_combine64(crc1, crc2, len2) in crc32_combine64() argument 1075 z_off64_t len2; 1080 return multmodp(x2nmodp(len2, 3), crc1) ^ crc2; 1084 uLong ZEXPORT crc32_combine(crc1, crc2, len2) in crc32_combine() argument 1087 z_off_t len2; 1089 return crc32_combine64(crc1, crc2, len2); 1093 uLong ZEXPORT crc32_combine_gen64(len2) in crc32_combine_gen64() argument 1094 z_off64_t len2; in crc32_combine_gen64() 1099 return x2nmodp(len2, 3); 1103 uLong ZEXPORT crc32_combine_gen(len2) in crc32_combine_gen() argument [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/ |
| H A D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 143 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 146 z_off64_t len2; 153 if (len2 < 0) 157 MOD63(len2); /* assumes len2 >= 0 */ 158 rem = (unsigned)len2; 172 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 175 z_off_t len2; 177 return adler32_combine_(adler1, adler2, len2); 180 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
| H A D | crc32.c | 1072 uLong ZEXPORT crc32_combine64(crc1, crc2, len2) in crc32_combine64() argument 1075 z_off64_t len2; 1080 return multmodp(x2nmodp(len2, 3), crc1) ^ crc2; 1084 uLong ZEXPORT crc32_combine(crc1, crc2, len2) in crc32_combine() argument 1087 z_off_t len2; 1089 return crc32_combine64(crc1, crc2, len2); 1093 uLong ZEXPORT crc32_combine_gen64(len2) in crc32_combine_gen64() argument 1094 z_off64_t len2; in crc32_combine_gen64() 1099 return x2nmodp(len2, 3); 1103 uLong ZEXPORT crc32_combine_gen(len2) in crc32_combine_gen() argument [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/ |
| H A D | adler32.c | 10 local uLong adler32_combine_ OF((uLong adler1, uLong adler2, z_off64_t len2)); 143 local uLong adler32_combine_(adler1, adler2, len2) in adler32_combine_() argument 146 z_off64_t len2; 153 if (len2 < 0) 157 MOD63(len2); /* assumes len2 >= 0 */ 158 rem = (unsigned)len2; 172 uLong ZEXPORT adler32_combine(adler1, adler2, len2) in adler32_combine() argument 175 z_off_t len2; 177 return adler32_combine_(adler1, adler2, len2); 180 uLong ZEXPORT adler32_combine64(adler1, adler2, len2) in adler32_combine64() argument [all …]
|
| H A D | crc32.c | 1072 uLong ZEXPORT crc32_combine64(crc1, crc2, len2) in crc32_combine64() argument 1075 z_off64_t len2; 1080 return multmodp(x2nmodp(len2, 3), crc1) ^ crc2; 1084 uLong ZEXPORT crc32_combine(crc1, crc2, len2) in crc32_combine() argument 1087 z_off_t len2; 1089 return crc32_combine64(crc1, crc2, len2); 1093 uLong ZEXPORT crc32_combine_gen64(len2) in crc32_combine_gen64() argument 1094 z_off64_t len2; in crc32_combine_gen64() 1099 return x2nmodp(len2, 3); 1103 uLong ZEXPORT crc32_combine_gen(len2) in crc32_combine_gen() argument [all …]
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ct/ |
| H A D | ct_oct.c | 88 size_t len2; in o2i_SCT() local 112 n2s(p, len2); in o2i_SCT() 113 if (len < len2) { in o2i_SCT() 117 if (len2 > 0) { in o2i_SCT() 118 sct->ext = BUF_memdup(p, len2); in o2i_SCT() 122 sct->ext_len = len2; in o2i_SCT() 123 p += len2; in o2i_SCT() 124 len -= len2; in o2i_SCT() 324 size_t len2; in i2o_SCT_LIST() local 342 len2 = 2; in i2o_SCT_LIST() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/ct/ |
| H A D | ct_oct.c | 88 size_t len2; in o2i_SCT() local 112 n2s(p, len2); in o2i_SCT() 113 if (len < len2) { in o2i_SCT() 117 if (len2 > 0) { in o2i_SCT() 118 sct->ext = OPENSSL_memdup(p, len2); in o2i_SCT() 122 sct->ext_len = len2; in o2i_SCT() 123 p += len2; in o2i_SCT() 124 len -= len2; in o2i_SCT() 324 size_t len2; in i2o_SCT_LIST() local 342 len2 = 2; in i2o_SCT_LIST() [all …]
|
| /netbsd-src/usr.bin/cmp/ |
| H A D | regular.c | 56 int fd2, const char *file2, off_t skip2, off_t len2) in c_regular() 66 if (skip2 > len2) in c_regular() 67 eofmsg(file2, len2 + 1, 0); in c_regular() 68 len2 -= skip2; in c_regular() 70 if (sflag && len1 != len2) in c_regular() 75 length = MIN(len1, len2); in c_regular() 123 if (len1 != len2) 124 eofmsg(len1 > len2 ? file2 : file1, byte, line); 55 c_regular(int fd1,const char * file1,off_t skip1,off_t len1,int fd2,const char * file2,off_t skip2,off_t len2) c_regular() argument
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | string_intrinsics_inc.c | 84 gfc_charlen_type len2, const CHARTYPE *s2) in compare_string() argument 98 res = MEMCMP (s1, s2, ((len1 < len2) ? len1 : len2)); in compare_string() 102 if (len1 == len2) in compare_string() 105 if (len1 < len2) in compare_string() 107 len = len2 - len1; in compare_string() 113 len = len1 - len2; in compare_string() 114 s = (UCHARTYPE *) &s1[len2]; in compare_string() 140 gfc_charlen_type len2, const CHARTYPE * s2) in concat_string() argument 151 if (len2 >= destlen) in concat_string() 157 memcpy (dest, s2, len2 * sizeof (CHARTYPE)); in concat_string() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | string_intrinsics_inc.c | 84 gfc_charlen_type len2, const CHARTYPE *s2) in compare_string() argument 98 res = MEMCMP (s1, s2, ((len1 < len2) ? len1 : len2)); in compare_string() 102 if (len1 == len2) in compare_string() 105 if (len1 < len2) in compare_string() 107 len = len2 - len1; in compare_string() 113 len = len1 - len2; in compare_string() 114 s = (UCHARTYPE *) &s1[len2]; in compare_string() 140 gfc_charlen_type len2, const CHARTYPE * s2) in concat_string() argument 151 if (len2 >= destlen) in concat_string() 157 memcpy (dest, s2, len2 * sizeof (CHARTYPE)); in concat_string() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/ |
| H A D | c-ada-spec.c | 1114 int j, len2 = 0; in to_ada_name() local 1126 s[len2++] = 'c'; in to_ada_name() 1127 s[len2++] = '_'; in to_ada_name() 1137 s[len2++] = 'c'; in to_ada_name() 1138 s[len2++] = '_'; in to_ada_name() 1144 s[len2++] = 'u'; in to_ada_name() 1147 s[len2++] = '_'; in to_ada_name() 1154 len2 = 4; in to_ada_name() 1165 s[len2++] = '_'; in to_ada_name() 1170 s[len2++] = '_'; in to_ada_name() [all …]
|
| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
| H A D | tcs_pbg.c | 95 UINT32 *len2 = va_arg(ap, UINT32 *); in tpm_rsp_parse() local 100 if (!len1 || !blob1 || !len2 || !blob2) { in tpm_rsp_parse() 120 UnloadBlob_UINT32(&offset1, len2, b); in tpm_rsp_parse() 122 if ((*blob2 = malloc(*len2)) == NULL) { in tpm_rsp_parse() 123 LogError("malloc of %u bytes failed", *len2); in tpm_rsp_parse() 127 *len2 = 0; in tpm_rsp_parse() 130 UnloadBlob(&offset1, *len2, b, *blob2); in tpm_rsp_parse() 142 UINT32 *len2 = va_arg(ap, UINT32 *); in tpm_rsp_parse() local 147 if (!len1 || !blob1 || !len2 || !blob2) { in tpm_rsp_parse() 166 UnloadBlob_UINT32(&offset1, len2, b); in tpm_rsp_parse() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/c-family/ |
| H A D | c-ada-spec.cc | 1114 int j, len2 = 0; in to_ada_name() local 1126 s[len2++] = 'c'; in to_ada_name() 1127 s[len2++] = '_'; in to_ada_name() 1137 s[len2++] = 'c'; in to_ada_name() 1138 s[len2++] = '_'; in to_ada_name() 1144 s[len2++] = 'u'; in to_ada_name() 1147 s[len2++] = '_'; in to_ada_name() 1154 len2 = 4; in to_ada_name() 1165 s[len2++] = '_'; in to_ada_name() 1170 s[len2++] = '_'; in to_ada_name() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/zmod/ |
| H A D | crc32.c | 375 uLong ZEXPORT crc32_combine(crc1, crc2, len2) in crc32_combine() argument 378 z_off_t len2; 386 if (len2 == 0) 408 if (len2 & 1) 410 len2 >>= 1; 413 if (len2 == 0) 418 if (len2 & 1) 420 len2 >>= 1; 423 } while (len2 != 0);
|
| /netbsd-src/external/gpl2/dtc/dist/tests/ |
| H A D | dtbs_equal_unordered.c | 103 int len1, len2; in compare_properties() local 114 data2 = fdt_getprop(fdt2, offset2, name, &len2); in compare_properties() 116 if (len2 == -FDT_ERR_NOTFOUND) in compare_properties() 120 fdt_strerror(len2)); in compare_properties() 126 verbose_printf("\nlen2=%d data2=", len2); in compare_properties() 131 if (len1 != len2) in compare_properties() 133 name, len1, len2); in compare_properties()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/ |
| H A D | switch_.d | 41 auto len2 = table[j].length; in _d_switch_string() local 43 assert(len1 <= len2); in _d_switch_string() 44 if (len1 == len2) in _d_switch_string() 185 auto len2 = table[j].length; in _d_switch_ustring() local 187 assert(len1 <= len2); in _d_switch_ustring() 188 if (len1 == len2) in _d_switch_ustring() 315 auto len2 = table[j].length; in _d_switch_dstring() local 317 assert(len1 <= len2); in _d_switch_dstring() 318 if (len1 == len2) in _d_switch_dstring()
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/ |
| H A D | x-po.c | 183 size_t len, len1, len2, len3; in extract() local 190 len2 = strlen (header_charset); in extract() 192 new_header = (char *) xmalloc (len1 + len2 + len3 + 1); in extract() 194 memcpy (new_header + len1, header_charset, len2); in extract() 195 memcpy (new_header + len1 + len2, charsetstr + len, len3 + 1); in extract() 197 mp->msgstr_len = len1 + len2 + len3 + 1; in extract()
|
| /netbsd-src/usr.bin/make/ |
| H A D | str.c | 85 size_t len2 = strlen(s2); in str_concat2() local 86 char *result = bmake_malloc(len1 + len2 + 1); in str_concat2() 88 memcpy(result + len1, s2, len2 + 1); in str_concat2() 97 size_t len2 = strlen(s2); in str_concat3() local 99 char *result = bmake_malloc(len1 + len2 + len3 + 1); in str_concat3() 101 memcpy(result + len1, s2, len2); in str_concat3() 102 memcpy(result + len1 + len2, s3, len3 + 1); in str_concat3()
|
| /netbsd-src/external/bsd/bc/dist/ |
| H A D | number.c | 838 int len1, len2; in bc_multiply() local 843 len2 = n2->n_len + n2->n_scale; in bc_multiply() 848 _bc_rec_mul (n1, len1, n2, len2, &pval); in bc_multiply() 853 pval->n_len = len2 + len1 + 1 - full_scale; in bc_multiply() 911 unsigned int len1, len2, scale2, qdigits, extra, count; in bc_divide() local 952 len2 = n2->n_len + scale2; in bc_divide() 953 num2 = (unsigned char *) malloc (len2+1); in bc_divide() 955 memcpy (num2, n2->n_value, len2); in bc_divide() 956 *(num2+len2) = 0; in bc_divide() 961 len2--; in bc_divide() [all …]
|
| /netbsd-src/external/bsd/libbind/dist/isc/ |
| H A D | hex.c | 88 size_t len1, size_t len2, const char *sep) in isc_puthexstring() argument 94 if (len2 < 4U) in isc_puthexstring() 95 len2 = 4; in isc_puthexstring() 105 len1 = len2; in isc_puthexstring()
|
| /netbsd-src/sbin/ldconfig/ |
| H A D | shlib.c | 203 len2 = strlen(s2), in concat() local 206 char *result = (char *)xmalloc(len1 + len2 + len3 + 1); in concat() 210 strcpy(result + len1 + len2, s3); in concat() 211 result[len1 + len2 + len3] = 0; in concat()
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | log.c | 315 size_t len, len2; in do_log() local 362 len2 = strlen(txt); in do_log() 363 if (len2 > len - 2) in do_log() 364 len2 = len - 2; in do_log() 365 memcpy(msgbufp, txt, len2); in do_log() 366 msgbufp += len2; in do_log() 369 len -= len2 + 2; in do_log()
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | stringpool.cc | 346 const size_t len2 = h2.length; in operator ()() local 347 const size_t minlen = len1 < len2 ? len1 : len2; in operator ()() 349 const Stringpool_char* p2 = s2 + len2 - 1; in operator ()() 355 return len1 > len2; in operator ()() 365 size_t len2) in is_suffix() argument 367 if (len1 > len2) in is_suffix() 369 return memcmp(s1, s2 + len2 - len1, len1 * sizeof(Stringpool_char)) == 0; in is_suffix()
|