/external/e2fsprogs/lib/ext2fs/ |
D | dirblock.c | 28 unsigned int name_len, rec_len; in ext2fs_read_dir_block3() local 42 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_read_dir_block3() 44 name_len = dirent->name_len; in ext2fs_read_dir_block3() 47 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_read_dir_block3() 54 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_read_dir_block3() 102 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_write_dir_block3() 105 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_write_dir_block3()
|
D | ext2_ext_attr.h | 41 #define EXT2_EXT_ATTR_LEN(name_len) \ argument 42 (((name_len) + EXT2_EXT_ATTR_ROUND + \ 52 #define EXT2_XATTR_LEN(name_len) \ argument 53 (((name_len) + EXT2_EXT_ATTR_ROUND + \
|
D | link.c | 74 min_rec_len = EXT2_DIR_REC_LEN(dirent->name_len & 0xFF); in link_proc() 84 next->name_len = 0; in link_proc() 98 dirent->name_len = ls->namelen; in link_proc() 101 dirent->name_len |= (ls->flags & 0x7) << 8; in link_proc()
|
D | get_pathname.c | 54 if (((dirent->name_len & 0xFF) == 2) && in get_pathname_proc() 58 retval = ext2fs_get_mem((dirent->name_len & 0xFF) + 1, in get_pathname_proc() 64 strncpy(gp->name, dirent->name, (dirent->name_len & 0xFF)); in get_pathname_proc() 65 gp->name[dirent->name_len & 0xFF] = '\0'; in get_pathname_proc()
|
D | lookup.c | 39 if (ls->len != (dirent->name_len & 0xFF)) in lookup_proc() 41 if (strncmp(ls->name, dirent->name, (dirent->name_len & 0xFF))) in lookup_proc()
|
D | newdir.c | 59 dir->name_len = 1 | filetype; in ext2fs_new_dir_block() 74 dir->name_len = 2 | filetype; in ext2fs_new_dir_block()
|
D | unlink.c | 46 if ((dirent->name_len & 0xFF) != ls->namelen) in unlink_proc() 48 if (strncmp(ls->name, dirent->name, dirent->name_len & 0xFF)) in unlink_proc()
|
/external/e2fsprogs/ext2ed/ |
D | dir_com.c | 228 strncpy (full_dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len); in type_dir___cd() 229 full_dir_name [dir_entry_ptr->name_len]=0; in type_dir___cd() 255 if (dir_entry_ptr->name_len != strlen (dir_name) || in type_dir___cd() 256 strncmp (dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len)!=0) in type_dir___cd() 326 if (dir_entry_ptr->name_len != strlen (name_search)) in action_name() 329 if (strncmp (dir_entry_ptr->name,name_search,dir_entry_ptr->name_len)==0) in action_name() 461 strncpy (temp,dir_entry_ptr->name,dir_entry_ptr->name_len); /* The name is not terminated */ in action_show() 462 temp [dir_entry_ptr->name_len]=0; in action_show() 463 if (dir_entry_ptr->name_len > (COLS - 55) && COLS > 55) in action_show() 466 dir_entry_ptr->inode,dir_entry_ptr->rec_len,dir_entry_ptr->name_len,temp); in action_show() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | rehash.c | 124 (((dirent->name_len & 0xFF)+8U) > rec_len)) { in fill_dir_block() 131 if (!fd->compress && ((dirent->name_len&0xFF) == 1) && in fill_dir_block() 134 if (!fd->compress && ((dirent->name_len&0xFF) == 2) && in fill_dir_block() 151 fd->dir_size += EXT2_DIR_REC_LEN(dirent->name_len & 0xFF); in fill_dir_block() 157 dirent->name_len & 0xFF, in fill_dir_block() 185 min_len = he_a->dir->name_len; in name_cmp() 186 if (min_len > he_b->dir->name_len) in name_cmp() 187 min_len = he_b->dir->name_len; in name_cmp() 191 if (he_a->dir->name_len > he_b->dir->name_len) in name_cmp() 193 else if (he_a->dir->name_len < he_b->dir->name_len) in name_cmp() [all …]
|
D | pass2.c | 304 a_len = de_a->name_len & 0xFF; in dict_de_cmp() 306 b_len = de_b->name_len & 0xFF; in dict_de_cmp() 359 else if (((dirent->name_len & 0xFF) != 1) || in check_dot() 371 dirent->name_len = 1; in check_dot() 395 nextdir->name_len = 0; in check_dot() 417 else if (((dirent->name_len & 0xFF) != 2) || in check_dotdot() 435 dirent->name_len = 2; in check_dotdot() 463 for ( i = 0; i < (dirent->name_len & 0xFF); i++) { in check_name() 485 int filetype = dirent->name_len >> 8; in check_filetype() 494 dirent->name_len = dirent->name_len & 0xFF; in check_filetype() [all …]
|
/external/libvpx/libvpx/ |
D | args.c | 55 const size_t name_len = strlen(def->long_name); in arg_match() local 57 if (strlen(arg.argv[0]) >= name_len + 2 in arg_match() 59 && !strncmp(arg.argv[0] + 2, def->long_name, name_len) in arg_match() 60 && (arg.argv[0][name_len + 2] == '=' in arg_match() 61 || arg.argv[0][name_len + 2] == '\0')) { in arg_match() 64 arg.val = arg.name[name_len] == '=' ? arg.name + name_len + 1 : NULL; in arg_match()
|
/external/libnfc-nci/src/nfc/llcp/ |
D | llcp_sdp.c | 94 UINT16 name_len = (UINT16) strlen (p_name); in llcp_sdp_add_sdreq() local 99 UINT8_TO_BE_STREAM (p, (1 + name_len)); in llcp_sdp_add_sdreq() 101 ARRAY_TO_BE_STREAM (p, p_name, name_len); in llcp_sdp_add_sdreq() 103 llcp_cb.sdp_cb.p_snl->len += LLCP_SDREQ_MIN_LEN + name_len; in llcp_sdp_add_sdreq() 119 UINT16 name_len; in llcp_sdp_send_sdreq() local 142 name_len = (UINT16) strlen (p_name); in llcp_sdp_send_sdreq() 145 if ( (available_bytes >= LLCP_SDREQ_MIN_LEN + name_len) in llcp_sdp_send_sdreq() 146 … &&(llcp_cb.sdp_cb.p_snl->len + LLCP_SDREQ_MIN_LEN + name_len <= llcp_cb.lcb.effective_miu) ) in llcp_sdp_send_sdreq()
|
/external/toybox/toys/android/ |
D | setprop.c | 28 size_t name_len = strlen(name), value_len = strlen(value); in setprop_main() local 34 if (name_len >= PROP_NAME_MAX) in setprop_main() 41 if (*name == '.' || name[name_len - 1] == '.') in setprop_main()
|
/external/google-breakpad/src/common/linux/ |
D | elfutils-inl.h | 57 int name_len = my_strlen(name); in FindElfSectionByName() local 58 if (name_len == 0) in FindElfSectionByName() 64 names_end - section_name >= name_len + 1 && in FindElfSectionByName()
|
/external/f2fs-tools/fsck/ |
D | fsck.c | 631 int name_len; in print_dentry() local 638 name_len = le16_to_cpu(dentry[idx].name_len); in print_dentry() 639 next_idx = idx + (name_len + F2FS_SLOT_LEN - 1) / F2FS_SLOT_LEN; in print_dentry() 678 u16 name_len;; in __chk_dentries() local 698 name_len = le16_to_cpu(dentry[i].name_len); in __chk_dentries() 699 i += (name_len + F2FS_SLOT_LEN - 1) / F2FS_SLOT_LEN; in __chk_dentries() 732 name_len = le16_to_cpu(dentry[i].name_len); in __chk_dentries() 733 name = calloc(name_len + 1, 1); in __chk_dentries() 734 memcpy(name, filenames[i], name_len); in __chk_dentries() 736 name_len); in __chk_dentries() [all …]
|
/external/ppp/pppd/plugins/pppoatm/ |
D | ans.c | 46 int answer_len,name_len,data_len,found_len; in ans() local 65 if ((name_len = dn_expand(answer,answer+answer_len,pos,name,MAX_NAME)) < 0) in ans() 67 pos += name_len; in ans() 80 if ((name_len = dn_expand(answer,answer+answer_len,pos,name,MAX_NAME)) in ans() 82 pos += name_len; in ans()
|
/external/lldb/include/lldb/Target/ |
D | Platform.h | 590 SetCachedUserName (uint32_t uid, const char *name, size_t name_len) in SetCachedUserName() argument 595 if (m_max_uid_name_len < name_len) in SetCachedUserName() 596 m_max_uid_name_len = name_len; in SetCachedUserName() 633 SetCachedGroupName (uint32_t gid, const char *name, size_t name_len) in SetCachedGroupName() argument 638 if (m_max_gid_name_len < name_len) in SetCachedGroupName() 639 m_max_gid_name_len = name_len; in SetCachedGroupName()
|
/external/elfutils/src/libasm/ |
D | asm_newsym.c | 76 size_t name_len = strlen (name) + 1; local 78 result = (AsmSym_t *) malloc (sizeof (AsmSym_t) + name_len); 91 memcpy (result + 1, name, name_len), 0);
|
/external/opencv/cxcore/src/ |
D | cxswitcher.cpp | 498 size_t name_len, version_len; in cvRegisterModule() local 502 name_len = strlen(module->name); in cvRegisterModule() 506 name_len + 1 + version_len + 1 )); in cvRegisterModule() 510 module_copy->version = (char*)(module_copy + 1) + name_len + 1; in cvRegisterModule() 512 memcpy( (void*)module_copy->name, module->name, name_len + 1 ); in cvRegisterModule() 662 size_t i, name_len = strlen(name); in cvGetModuleInfo() local 666 if( strlen(module->name) == name_len ) in cvGetModuleInfo() 668 for( i = 0; i < name_len; i++ ) in cvGetModuleInfo() 674 if( i == name_len ) in cvGetModuleInfo()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_mac.cc | 193 uptr name_len = internal_strlen(name); in GetEnv() local 196 if (len > name_len) { in GetEnv() 198 if (!internal_memcmp(p, name, name_len) && in GetEnv() 199 p[name_len] == '=') { // Match. in GetEnv() 200 return *environ + name_len + 1; // String starting after =. in GetEnv()
|
/external/mesa3d/src/egl/main/ |
D | egldriver.c | 470 size_t name_len = 0; in _eglAddUserDriver() local 484 name_len = (suffix) ? suffix - env : strlen(env); in _eglAddUserDriver() 488 name_len = strlen(env); in _eglAddUserDriver() 496 if (name_len) { in _eglAddUserDriver() 501 if (strlen(_eglBuiltInDrivers[i].name) == name_len && in _eglAddUserDriver() 502 !strncmp(_eglBuiltInDrivers[i].name, env, name_len)) { in _eglAddUserDriver()
|
/external/elfutils/src/lib/ |
D | color.c | 152 size_t name_len = env - start; in parse_opt() local 184 if (name_len == known[i].len in parse_opt() 185 && memcmp (start, known[i].name, name_len) == 0) in parse_opt()
|
/external/tcpdump/ |
D | print-vtp.c | 54 u_int8_t name_len; member 260 len -= VTP_VLAN_INFO_OFFSET + 4*((vtp_vlan->name_len + 3)/4); in vtp_print() 261 tptr += VTP_VLAN_INFO_OFFSET + 4*((vtp_vlan->name_len + 3)/4); in vtp_print()
|
/external/e2fsprogs/debugfs/ |
D | ncheck.c | 47 int filetype = dirent->name_len >> 8; in ncheck_proc() 68 (dirent->name_len & 0xFF), dirent->name); in ncheck_proc() 72 (dirent->name_len & 0xFF), dirent->name); in ncheck_proc()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_mschapv2.c | 288 size_t len, name_len, i; in eap_mschapv2_process_response() local 320 name_len = end - name; in eap_mschapv2_process_response() 331 wpa_hexdump_ascii(MSG_MSGDUMP, "EAP-MSCHAPV2: Name", name, name_len); in eap_mschapv2_process_response() 333 buf = os_malloc(name_len * 4 + 1); in eap_mschapv2_process_response() 335 printf_encode(buf, name_len * 4 + 1, name, name_len); in eap_mschapv2_process_response() 354 user_len = name_len; in eap_mschapv2_process_response()
|