/third_party/node/deps/cares/src/lib/ |
D | ares_dns_name.c | 32 size_t name_len; member 71 off->name_len = ares_strlen(off->name); in ares__nameoffset_create() 89 size_t name_len = ares_strlen(name); in ares__nameoffset_find() local 93 if (list == NULL || name == NULL || name_len == 0) { in ares__nameoffset_find() 103 if (val->name_len > name_len) { in ares__nameoffset_find() 108 if (longest_match != NULL && longest_match->name_len > val->name_len) { in ares__nameoffset_find() 112 prefix_len = name_len - val->name_len; in ares__nameoffset_find() 364 size_t name_len; in ares__dns_name_write() local 378 name_len = ares_strcpy(name_copy, name, sizeof(name_copy)); in ares__dns_name_write() 383 if (off != NULL && off->name_len != name_len) { in ares__dns_name_write() [all …]
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_snmpv2_usm.c | 91 u8_t name_len; in usmusertable_get_instance() local 126 name_len = (u8_t)row_oid[engineid_start + engineid_len]; in usmusertable_get_instance() 129 if (name_len > SNMP_V3_MAX_USER_LENGTH) { in usmusertable_get_instance() 134 if (1 + engineid_len + 1 + name_len != row_oid_len) { in usmusertable_get_instance() 140 if (!snmp_oid_in_range(&row_oid[name_start], name_len, usmUserTable_oid_ranges, name_len)) { in usmusertable_get_instance() 146 snmp_oid_to_name(username, &row_oid[name_start], name_len); in usmusertable_get_instance() 153 cell_instance->reference_len = name_len; in usmusertable_get_instance() 177 u8_t name_len; in usmusertable_get_next_instance() local 220 name_len = (u8_t)row_oid->id[engineid_start + engineid_len]; in usmusertable_get_next_instance() 223 if (name_len > SNMP_V3_MAX_USER_LENGTH) { in usmusertable_get_next_instance() [all …]
|
/third_party/musl/src/passwd/ |
D | getgr_a.c | 81 uint32_t name_len; in __getgr_a() local 82 if (fread(&name_len, sizeof name_len, 1, f) < 1) { in __getgr_a() 87 name_len = bswap_32(name_len); in __getgr_a() 89 if (name_len > SIZE_MAX - grlist_len in __getgr_a() 90 || name_len > SIZE_MAX - len) { in __getgr_a() 94 len += name_len; in __getgr_a() 95 grlist_len += name_len; in __getgr_a()
|
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
D | message.c | 150 size_t name_len; in extract_method_call() local 160 name_len = RSTRING_LEN(method_str); in extract_method_call() 162 if (name[name_len - 1] == '=') { in extract_method_call() 164 name_len--; in extract_method_call() 168 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call() 172 name_len = name_len - 6; in extract_method_call() 173 } else if (strncmp("has_", name, 4) == 0 && name[name_len - 1] == '?' && in extract_method_call() 174 !upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call() 178 name_len = name_len - 5; in extract_method_call() 183 has_field = upb_msgdef_lookupname(self->descriptor->msgdef, name, name_len, in extract_method_call() [all …]
|
/third_party/node/deps/uv/src/win/ |
D | getaddrinfo.c | 108 int name_len = 0; in uv__getaddrinfo_done() local 134 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done() 142 if (name_len == 0) { in uv__getaddrinfo_done() 146 addrinfo_len += ALIGNED_SIZE(name_len); in uv__getaddrinfo_done() 185 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done() 193 assert(name_len > 0); in uv__getaddrinfo_done() 194 assert(cur_ptr + name_len <= alloc_ptr + addrinfo_len); in uv__getaddrinfo_done() 195 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done() 200 name_len, in uv__getaddrinfo_done() 203 assert(name_len > 0); in uv__getaddrinfo_done() [all …]
|
/third_party/libuv/src/win/ |
D | getaddrinfo.c | 108 int name_len = 0; in uv__getaddrinfo_done() local 134 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done() 142 if (name_len == 0) { in uv__getaddrinfo_done() 146 addrinfo_len += ALIGNED_SIZE(name_len); in uv__getaddrinfo_done() 185 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done() 193 assert(name_len > 0); in uv__getaddrinfo_done() 194 assert(cur_ptr + name_len <= alloc_ptr + addrinfo_len); in uv__getaddrinfo_done() 195 name_len = WideCharToMultiByte(CP_UTF8, in uv__getaddrinfo_done() 200 name_len, in uv__getaddrinfo_done() 203 assert(name_len > 0); in uv__getaddrinfo_done() [all …]
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | dir.h | 71 const ntfschar *name, u8 name_len, mode_t type); 73 const ntfschar *name, u8 name_len, mode_t type, dev_t dev); 75 const ntfschar *name, u8 name_len, const ntfschar *target, 80 u8 name_len); 83 u8 name_len); 106 const int name_len, const int name_type, const s64 pos,
|
D | attrib.h | 103 const u32 name_len, const IGNORE_CASE_BOOL ic, 191 u32 name_len; member 296 ntfschar *name, u32 name_len); 306 ntfschar *name, u32 name_len, s64 *data_size); 329 const ntfschar *name, u8 name_len, const u8 *val, u32 size, 332 const ntfschar *name, u8 name_len, VCN lowest_vcn, 337 ntfschar *name, u8 name_len, const u8 *val, s64 size); 339 const ntfschar *name, u8 name_len, ATTR_FLAGS flags, 389 const ntfschar *name, u32 name_len); 391 ntfschar *name, u32 name_len);
|
D | plugin.h | 161 le32 securid, ntfschar *name, int name_len, 172 ntfs_inode *ni, ntfschar *name, int name_len); 181 ntfs_inode *ni, ntfschar *name, int name_len);
|
/third_party/exfatprogs/lib/ |
D | exfat_dir.c | 449 int retval, name_len; in filter_lookup_file() local 461 name_len = (int)exfat_utf16_len(name, PATH_MAX); in filter_lookup_file() 464 1 + (name_len + ENTRY_NAME_MAX - 1) / ENTRY_NAME_MAX) in filter_lookup_file() 467 for (i = 2; i <= file_de->dentry.file.num_ext && name_len > 0; i++) { in filter_lookup_file() 474 len = MIN(name_len, ENTRY_NAME_MAX); in filter_lookup_file() 480 name_len -= len; in filter_lookup_file() 580 int dcount, name_len, i; in exfat_build_file_dentry_set() local 589 name_len = retval / 2; in exfat_build_file_dentry_set() 590 dcount = 2 + DIV_ROUND_UP(name_len, ENTRY_NAME_MAX); in exfat_build_file_dentry_set() 618 dset[1].dentry.stream.name_len = (__u8)name_len; in exfat_build_file_dentry_set() [all …]
|
D | exfat_fs.c | 225 int name_len, char_len; in get_ancestors() local 234 name_len = exfat_utf16_len(dir->name, NAME_BUFFER_SIZE); in get_ancestors() 235 if (char_len + name_len > max_char_len) in get_ancestors() 239 char_len += name_len + 1; in get_ancestors() 257 int name_len; in exfat_resolve_path() local 273 name_len = exfat_utf16_len(ctx->ancestors[i]->name, in exfat_resolve_path() 276 name_len * 2); in exfat_resolve_path() 277 utf16_path += name_len; in exfat_resolve_path()
|
/third_party/openssl/crypto/ |
D | core_namemap.c | 175 const char *name, size_t name_len) in namemap_name2num_n() argument 179 if ((namenum_tmpl.name = OPENSSL_strndup(name, name_len)) == NULL) in namemap_name2num_n() 189 const char *name, size_t name_len) in ossl_namemap_name2num_n() argument 203 number = namemap_name2num_n(namemap, name, name_len); in ossl_namemap_name2num_n() 245 const char *name, size_t name_len) in namemap_add_name_n() argument 251 if ((tmp_number = namemap_name2num_n(namemap, name, name_len)) != 0) in namemap_add_name_n() 255 || (namenum->name = OPENSSL_strndup(name, name_len)) == NULL) in namemap_add_name_n() 273 const char *name, size_t name_len) in ossl_namemap_add_name_n() argument 282 if (name == NULL || name_len == 0 || namemap == NULL) in ossl_namemap_add_name_n() 287 tmp_number = namemap_add_name_n(namemap, number, name, name_len); in ossl_namemap_add_name_n()
|
/third_party/node/deps/openssl/openssl/crypto/ |
D | core_namemap.c | 178 const char *name, size_t name_len) in namemap_name2num_n() argument 182 if ((namenum_tmpl.name = OPENSSL_strndup(name, name_len)) == NULL) in namemap_name2num_n() 192 const char *name, size_t name_len) in ossl_namemap_name2num_n() argument 206 number = namemap_name2num_n(namemap, name, name_len); in ossl_namemap_name2num_n() 248 const char *name, size_t name_len) in namemap_add_name_n() argument 254 if ((tmp_number = namemap_name2num_n(namemap, name, name_len)) != 0) in namemap_add_name_n() 258 || (namenum->name = OPENSSL_strndup(name, name_len)) == NULL) in namemap_add_name_n() 276 const char *name, size_t name_len) in ossl_namemap_add_name_n() argument 285 if (name == NULL || name_len == 0 || namemap == NULL) in ossl_namemap_add_name_n() 290 tmp_number = namemap_add_name_n(namemap, number, name, name_len); in ossl_namemap_add_name_n()
|
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/ |
D | test_https_sni.c | 143 size_t name_len; in sni_callback() local 147 name_len = sizeof (name); in sni_callback() 151 &name_len, in sni_callback() 156 if (0 == strncmp (name, host->hostname, name_len)) in sni_callback() 162 (int) name_len, in sni_callback() 169 (int) name_len, in sni_callback()
|
/third_party/python/PC/ |
D | validate_ucrtbase.py | 48 name_len = actual_len = 130 variable 49 while actual_len == name_len: 50 name_len *= 2 51 name = create_unicode_buffer(name_len)
|
/third_party/mbedtls/library/ |
D | x509_create.c | 36 size_t name_len; /* Length of 'name', without trailing 0 byte. */ member 108 static const x509_attr_descriptor_t *x509_attr_descr_from_name(const char *name, size_t name_len) in x509_attr_descr_from_name() argument 113 if (cur->name_len == name_len && in x509_attr_descr_from_name() 114 strncmp(cur->name, name, name_len) == 0) { in x509_attr_descr_from_name() 241 size_t name_len = cur_name->val.len; in x509_write_name() local 247 name_len)); in x509_write_name()
|
/third_party/ntfs-3g/libntfs-3g/ |
D | attrib.c | 334 const ATTR_TYPES type, ntfschar *name, const u32 name_len) in __ntfs_attr_init() argument 341 na->name_len = name_len; in __ntfs_attr_init() 343 na->name_len = 0; in __ntfs_attr_init() 411 ntfschar *name, u32 name_len) in ntfs_attr_open() argument 429 if (!name_len) in ntfs_attr_open() 433 if (ntfs_ucsnlen(name, name_len) != name_len) { in ntfs_attr_open() 438 name = ntfs_ucsndup(name, name_len); in ntfs_attr_open() 448 if (ntfs_attr_lookup(type, name, name_len, 0, 0, NULL, 0, ctx)) in ntfs_attr_open() 471 name_len = a->name_length; in ntfs_attr_open() 474 name_len = 0; in ntfs_attr_open() [all …]
|
D | index.c | 120 ntfschar *name, u32 name_len) in ntfs_index_ctx_get() argument 137 .name_len = name_len, in ntfs_index_ctx_get() 190 .name_len = icx->name_len, in ntfs_index_ctx_reinit() 392 u32 name_len, ntfs_attr_search_ctx **ctx) in ntfs_ir_lookup() argument 403 if (ntfs_attr_lookup(AT_INDEX_ROOT, name, name_len, CASE_SENSITIVE, in ntfs_ir_lookup() 678 na = ntfs_attr_open(ni, AT_INDEX_ALLOCATION, icx->name, icx->name_len); in ntfs_ia_open() 786 ir = ntfs_ir_lookup(ni, icx->name, icx->name_len, &icx->actx); in ntfs_index_lookup() 982 if (ntfs_attr_exist(icx->ni, AT_BITMAP, icx->name, icx->name_len)) in ntfs_ibm_add() 988 if (ntfs_attr_add(icx->ni, AT_BITMAP, icx->name, icx->name_len, in ntfs_ibm_add() 1008 na = ntfs_attr_open(icx->ni, AT_BITMAP, icx->name, icx->name_len); in ntfs_ibm_modify() [all …]
|
/third_party/python/Python/ |
D | importdl.c | 40 Py_ssize_t name_len, lastdot; in get_encoded_name() local 44 name_len = PyUnicode_GetLength(name); in get_encoded_name() 45 if (name_len < 0) { in get_encoded_name() 48 lastdot = PyUnicode_FindChar(name, '.', 0, name_len, -1); in get_encoded_name() 52 tmp = PyUnicode_Substring(name, lastdot + 1, name_len); in get_encoded_name()
|
/third_party/node/src/crypto/ |
D | crypto_clienthello.cc | 148 uint16_t name_len = (data[offset + 1] << 8) + data[offset + 2]; in ParseExtension() local 150 if (offset + name_len > len) in ParseExtension() 153 servername_size_ = name_len; in ParseExtension() 154 offset += name_len; in ParseExtension()
|
/third_party/mesa3d/src/glx/ |
D | glxextensions.c | 53 unsigned name_len; member 297 unsigned name_len) in find_extension() argument 302 if ((name_len == ext[i].name_len) in find_extension() 303 && (strncmp(ext[i].name, name, name_len) == 0)) { in find_extension() 321 const char *name, unsigned name_len, GLboolean state, in set_glx_extension() argument 324 const struct extension_info *ext = find_extension(ext_list, name, name_len); in set_glx_extension() 598 ext_str_len += ext[i].name_len + 1; in __glXGetStringFromTable() 608 (void) memcpy(point, ext[i].name, ext[i].name_len); in __glXGetStringFromTable() 609 point += ext[i].name_len; in __glXGetStringFromTable()
|
/third_party/elfutils/libasm/ |
D | asm_newsym.c | 74 size_t name_len = strlen (name) + 1; in asm_newsym() local 76 result = malloc (sizeof (AsmSym_t) + name_len); in asm_newsym() 89 memcpy (result + 1, name, name_len)); in asm_newsym()
|
/third_party/libbpf/src/ |
D | elf.c | 294 const char *name, size_t name_len, const char *lib_ver) in symbol_match() argument 301 if (strncmp(sym->name, name, name_len) != 0) in symbol_match() 307 if (sym->name[name_len] != '\0' && sym->name[name_len] != '@') in symbol_match() 356 size_t name_len; in elf_find_func_offset() local 374 name_len = at_symbol - name; in elf_find_func_offset() 380 name_len = strlen(name); in elf_find_func_offset() 402 if (!symbol_match(&iter, sh_types[i], sym, name, name_len, lib_ver)) in elf_find_func_offset()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | mkntfs.c | 1214 const u32 name_len, const IGNORE_CASE_BOOL ic, in mkntfs_attr_find() argument 1261 } else if (name && !ntfs_names_are_equal(name, name_len, in mkntfs_attr_find() 1266 rc = ntfs_names_full_collate(name, name_len, in mkntfs_attr_find() 1282 rc = ntfs_names_full_collate(name, name_len, in mkntfs_attr_find() 1399 const u32 name_len, const IGNORE_CASE_BOOL ic, in mkntfs_attr_lookup() argument 1414 return mkntfs_attr_find(type, name, name_len, ic, val, val_len, in mkntfs_attr_lookup() 1430 const ATTR_TYPES type, const char *name, u32 name_len, in insert_positioned_attr_in_mft_record() argument 1509 asize = (((int)hdr_size + ((name_len + 7) & ~7) + mpa_size) + 7) & ~7; in insert_positioned_attr_in_mft_record() 1550 a->name_length = name_len; in insert_positioned_attr_in_mft_record() 1558 a->mapping_pairs_offset = cpu_to_le16(hdr_size + ((name_len + 7) & ~7)); in insert_positioned_attr_in_mft_record() [all …]
|
/third_party/node/deps/uv/src/unix/ |
D | pipe.c | 332 size_t name_len; in uv_pipe_chmod() local 344 name_len = 0; in uv_pipe_chmod() 345 r = uv_pipe_getsockname(handle, NULL, &name_len); in uv_pipe_chmod() 349 name_buffer = uv__malloc(name_len); in uv_pipe_chmod() 353 r = uv_pipe_getsockname(handle, name_buffer, &name_len); in uv_pipe_chmod()
|