| /netbsd-src/external/bsd/unbound/dist/util/data/ |
| H A D | dname.c | 235 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 …]
|
| /netbsd-src/usr.bin/cmp/ |
| H A D | regular.c | 55 c_regular(int fd1, const char *file1, off_t skip1, off_t len1, in c_regular() 63 if (skip1 > len1) in c_regular() 64 eofmsg(file1, len1 + 1, 0); in c_regular() 65 len1 -= skip1; 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); 54 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/crypto/external/cpl/trousers/dist/src/tcs/ |
| H A D | tcs_pbg.c | 52 UINT32 *len1 = va_arg(ap, UINT32 *); in tpm_rsp_parse() local 77 *len1 = offset2 - offset1; in tpm_rsp_parse() 78 if (*len1) { in tpm_rsp_parse() 79 if ((*blob1 = malloc(*len1)) == NULL) { in tpm_rsp_parse() 80 LogError("malloc of %u bytes failed", *len1); in tpm_rsp_parse() 83 UnloadBlob(&offset1, *len1, b, *blob1); in tpm_rsp_parse() 93 UINT32 *len1 = va_arg(ap, UINT32 *); in tpm_rsp_parse() local 100 if (!len1 || !blob1 || !len2 || !blob2) { in tpm_rsp_parse() 112 *len1 = (UINT32)offset2 - offset1; in tpm_rsp_parse() 114 if ((*blob1 = malloc(*len1)) == NULL) { in tpm_rsp_parse() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/intrinsics/ |
| H A D | string_intrinsics_inc.c | 83 compare_string (gfc_charlen_type len1, const CHARTYPE *s1, 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() 108 s = (UCHARTYPE *) &s2[len1]; in compare_string() 113 len = len1 - len2; in compare_string() 139 gfc_charlen_type len1, const CHARTYPE * s1, in concat_string() argument 142 if (len1 >= destlen) in concat_string() 147 memcpy (dest, s1, len1 * sizeof (CHARTYPE)); in concat_string() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/intrinsics/ |
| H A D | string_intrinsics_inc.c | 83 compare_string (gfc_charlen_type len1, const CHARTYPE *s1, 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() 108 s = (UCHARTYPE *) &s2[len1]; in compare_string() 113 len = len1 - len2; in compare_string() 139 gfc_charlen_type len1, const CHARTYPE * s1, in concat_string() argument 142 if (len1 >= destlen) in concat_string() 147 memcpy (dest, s1, len1 * sizeof (CHARTYPE)); in concat_string() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/ |
| H A D | switch_.d | 40 auto len1 = table[j - 1].length; in _d_switch_string() local 43 assert(len1 <= len2); in _d_switch_string() 44 if (len1 == len2) in _d_switch_string() 48 ci = memcmp(table[j - 1].ptr, table[j].ptr, len1); in _d_switch_string() 184 auto len1 = table[j - 1].length; in _d_switch_ustring() local 187 assert(len1 <= len2); in _d_switch_ustring() 188 if (len1 == len2) in _d_switch_ustring() 192 c = memcmp(table[j - 1].ptr, table[j].ptr, len1 * wchar.sizeof); in _d_switch_ustring() 314 auto len1 = table[j - 1].length; in _d_switch_dstring() local 317 assert(len1 <= len2); in _d_switch_dstring() [all …]
|
| /netbsd-src/external/gpl2/dtc/dist/tests/ |
| H A D | dtbs_equal_unordered.c | 103 int len1, len2; in compare_properties() local 107 data1 = fdt_getprop_by_offset(fdt1, offset, &name, &len1); in compare_properties() 110 fdt_strerror(len1)); in compare_properties() 123 verbose_printf("len1=%d data1=", len1); in compare_properties() 124 for (i = 0; i < len1; i++) in compare_properties() 127 for (i = 0; i < len1; i++) in compare_properties() 131 if (len1 != len2) in compare_properties() 133 name, len1, len2); in compare_properties() 134 else if (memcmp(data1, data2, len1) != 0) in compare_properties()
|
| H A D | dtbs_equal_ordered.c | 75 int len1, len2; in compare_structure() local 120 len1 = fdt32_to_cpu(prop1->len); in compare_structure() 122 if (len1 != len2) in compare_structure() 124 "at (%d, %d)", len1, len2, offset1, offset2); in compare_structure() 126 if (memcmp(prop1->data, prop2->data, len1) != 0) in compare_structure()
|
| /netbsd-src/external/bsd/nvi/dist/motif_l/ |
| H A D | m_func.c | 39 vi_addstr(int ipvi, char *str1, u_int32_t len1) in vi_addstr() argument 42 vtrace("addstr() {%.*s}\n", ipbp->len1, ipbp->str1); in vi_addstr() 46 str1, len1); in vi_addstr() 48 __vi_screen->color, len1); in vi_addstr() 52 __vi_screen->cury, __vi_screen->curx, len1); in vi_addstr() 56 __vi_screen->cury, __vi_screen->curx + len1); in vi_addstr() 86 vi_busyon(int ipvi, char *str1, u_int32_t len1) in vi_busyon() argument 252 vi_rename(int ipvi, char *str1, u_int32_t len1) in vi_rename() argument 259 for (p = str1, len = len1; len > 1; ++p, --len) in vi_rename() 350 vi_select(int ipvi, char *str1, u_int32_t len1) in vi_select() argument
|
| /netbsd-src/usr.bin/make/ |
| H A D | str.c | 84 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()
|
| /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 189 len1 = charsetstr - header; in extract() 192 new_header = (char *) xmalloc (len1 + len2 + len3 + 1); in extract() 193 memcpy (new_header, header, len1); 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()
|
| H A D | msgl-english.c | 59 size_t len1 = strlen (mp->msgid_plural) + 1; in msgdomain_list_english() local 60 char *cp = (char *) xmalloc (len0 + len1); in msgdomain_list_english() 62 memcpy (cp + len0, mp->msgid_plural, len1); in msgdomain_list_english() 64 mp->msgstr_len = len0 + len1; in msgdomain_list_english()
|
| /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 92 if (len1 < 4U) in isc_puthexstring() 93 len1 = 4; in isc_puthexstring() 102 if (i >= len1 && sep != NULL) { in isc_puthexstring() 105 len1 = len2; in isc_puthexstring()
|
| /netbsd-src/sbin/ldconfig/ |
| H A D | shlib.c | 202 int len1 = strlen(s1), in concat() local 206 char *result = (char *)xmalloc(len1 + len2 + len3 + 1); in concat() 209 strcpy(result + len1, s2); in concat() 210 strcpy(result + len1 + len2, s3); in concat() 211 result[len1 + len2 + len3] = 0; in concat()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| H A D | sanitizer_libc_test.cc | 103 uptr len1 = internal_strlen(str1); in TEST() local 120 EXPECT_TRUE(WriteToFile(fd, str1, len1, &bytes_written)); in TEST() 121 EXPECT_EQ(len1, bytes_written); in TEST() 134 EXPECT_EQ(len1 + len2, fsize); in TEST() 154 EXPECT_TRUE(ReadFromFile(fd, buf, len1, &bytes_read)); in TEST() 155 EXPECT_EQ(len1, bytes_read); in TEST() 156 EXPECT_EQ(0, internal_memcmp(buf, str1, len1)); in TEST() 157 EXPECT_EQ((char)0, buf[len1 + 1]); in TEST() 158 internal_memset(buf, 0, len1); in TEST()
|
| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | if_qn.c | 464 int len, len1, wantbyte; in qn_put() local 485 len1 = len/2; in qn_put() 486 word_copy_to_card(data, addr, len1); in qn_put() 487 data += len1; in qn_put() 529 register u_short len1; in qn_get_packet() local 556 len1 = len; in qn_get_packet() 566 if (len1 >= MINCLSIZE) in qn_get_packet() 575 if (amount < len1) in qn_get_packet() 576 len1 = amount; in qn_get_packet() 580 len1); in qn_get_packet() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | stringpool.cc | 345 const size_t len1 = h1.length; in operator ()() local 347 const size_t minlen = len1 < len2 ? len1 : len2; in operator ()() 348 const Stringpool_char* p1 = s1 + len1 - 1; in operator ()() 355 return len1 > len2; in operator ()() 363 size_t len1, 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()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | stringpool.cc | 344 const size_t len1 = h1.length; in operator ()() local 346 const size_t minlen = len1 < len2 ? len1 : len2; in operator ()() 347 const Stringpool_char* p1 = s1 + len1 - 1; in operator ()() 354 return len1 > len2; in operator ()() 362 size_t len1, in is_suffix() argument 366 if (len1 > len2) in is_suffix() 368 return memcmp(s1, s2 + len2 - len1, len1 * sizeof(Stringpool_char)) == 0; in is_suffix()
|
| /netbsd-src/external/mit/libuv/dist/test/ |
| H A D | test-pipe-getsockname.c | 216 size_t len1, len2; in TEST_IMPL() local 236 len1 = sizeof buf1; in TEST_IMPL() 237 r = uv_pipe_getsockname(&pipe_client, buf1, &len1); in TEST_IMPL() 239 ASSERT(len1 == 0); /* It's an annonymous pipe. */ in TEST_IMPL() 255 ASSERT(len1 == len2); in TEST_IMPL() 256 ASSERT(memcmp(buf1, buf2, len1) == 0); in TEST_IMPL()
|
| /netbsd-src/external/bsd/nvi/dist/ipc/ |
| H A D | ipc_method.c | 35 const char *str1, u_int32_t len1, 227 ipb.len1 = len; in vi_send_a() 241 ipb.len1 = len; 248 vi_send_ab1(IPVIWIN *ipvi, int code, const char *str1, u_int32_t len1, 255 ipb.len1 = len1;
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/ |
| H A D | keys.c | 73 _kadm5_exists_keys(Key *keys1, int len1, Key *keys2, int len2) in _kadm5_exists_keys() argument 78 for (i = 0; i < len1; ++i) { in _kadm5_exists_keys() 122 _kadm5_exists_keys_hist(Key *keys1, int len1, HDB_Ext_KeySet *hist_keys) in _kadm5_exists_keys_hist() argument 127 if (_kadm5_exists_keys(keys1, len1, in _kadm5_exists_keys_hist()
|
| /netbsd-src/external/gpl3/binutils/dist/gas/ |
| H A D | cond.c | 269 int len1, len2; in s_ifc() local 276 s1 = get_mri_string (',', &len1); in s_ifc() 285 res = len1 == len2 && strncmp (s1, s2, len1) == 0; in s_ifc() 462 int len1, len2; in s_ifeqs() local 466 s1 = demand_copy_C_string (&len1); in s_ifeqs() 480 res = len1 == len2 && strncmp (s1, s2, len1) == 0; in s_ifeqs()
|
| /netbsd-src/external/gpl3/binutils.old/dist/gas/ |
| H A D | cond.c | 269 int len1, len2; in s_ifc() local 276 s1 = get_mri_string (',', &len1); in s_ifc() 285 res = len1 == len2 && strncmp (s1, s2, len1) == 0; in s_ifc() 462 int len1, len2; in s_ifeqs() local 466 s1 = demand_copy_C_string (&len1); in s_ifeqs() 480 res = len1 == len2 && strncmp (s1, s2, len1) == 0; in s_ifeqs()
|
| /netbsd-src/external/gpl2/texinfo/dist/util/ |
| H A D | install-info.c | 175 int len1 = strlen (s1), len2 = strlen (s2), len3 = strlen (s3); in concat() local 176 char *result = (char *) xmalloc (len1 + len2 + len3 + 1); in concat() 179 strcpy (result + len1, s2); in concat() 180 strcpy (result + len1 + len2, s3); in concat() 181 *(result + len1 + len2 + len3) = 0; in concat() 214 menu_line_lessp (char *line1, int len1, char *line2, int len2) in menu_line_lessp() argument 216 int minlen = (len1 < len2 ? len1 : len2); in menu_line_lessp() 243 menu_line_equal (char *line1, int len1, char *line2, int len2) in menu_line_equal() argument 245 int minlen = (len1 < len2 ? len1 : len2); in menu_line_equal() 1538 int len1, len2; in compare_entries_text() local [all …]
|
| /netbsd-src/sys/dev/ic/ |
| H A D | smc90cx6.c | 498 int buffer, len, len1, amount, offset, s, type; in bah_srint() local 570 len1 = len; in bah_srint() 582 if (len1 >= MINCLSIZE) in bah_srint() 590 if (amount < len1) in bah_srint() 591 len1 = amount; in bah_srint() 594 mtod(m, u_char *) + m->m_len, len1); in bah_srint() 596 m->m_len += len1; in bah_srint() 597 bah_ram_ptr += len1; in bah_srint() 598 len -= len1; in bah_srint()
|