Home
last modified time | relevance | path

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

123

/external/e2fsprogs/lib/ext2fs/
Ddirblock.c28 unsigned int name_len, rec_len, do_swap; in ext2fs_read_dir_block2() local
46 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_read_dir_block2()
49 name_len = dirent->name_len; in ext2fs_read_dir_block2()
52 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_read_dir_block2()
59 if (((name_len & 0xFF) + 8) > dirent->rec_len) in ext2fs_read_dir_block2()
109 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_write_dir_block2()
113 dirent->name_len = ext2fs_swab16(dirent->name_len); in ext2fs_write_dir_block2()
Dext2_ext_attr.h41 #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 + \
Dlink.c61 min_rec_len = EXT2_DIR_REC_LEN(dirent->name_len & 0xFF); in link_proc()
69 next->name_len = 0; in link_proc()
81 dirent->name_len = ls->namelen; in link_proc()
84 dirent->name_len |= (ls->flags & 0x7) << 8; in link_proc()
Dget_pathname.c51 if (((dirent->name_len & 0xFF) == 2) && in get_pathname_proc()
55 retval = ext2fs_get_mem((dirent->name_len & 0xFF) + 1, in get_pathname_proc()
61 strncpy(gp->name, dirent->name, (dirent->name_len & 0xFF)); in get_pathname_proc()
62 gp->name[dirent->name_len & 0xFF] = '\0'; in get_pathname_proc()
Dnewdir.c54 dir->name_len = 1 | filetype; in ext2fs_new_dir_block()
65 dir->name_len = 2 | filetype; in ext2fs_new_dir_block()
Ddir_iterate.c41 (((dirent->name_len & 0xFF)+8) > dirent->rec_len)) in ext2fs_validate_entry()
164 (((dirent->name_len & 0xFF)+8) > dirent->rec_len)) { in ext2fs_process_dir_block()
192 size = ((dirent->name_len & 0xFF) + 11) & ~3; in ext2fs_process_dir_block()
Dlookup.c39 if (ls->len != (dirent->name_len & 0xFF)) in lookup_proc()
41 if (strncmp(ls->name, dirent->name, (dirent->name_len & 0xFF))) in lookup_proc()
Dunlink.c46 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/grub/stage2/
Dfsys_iso9660.c179 unsigned int name_len = idr->name_len.l; in iso9660_dir() local
182 if (name_len == 1) in iso9660_dir()
188 if (name_len > 2 && CHECK2(name + name_len - 2, ';', '1')) in iso9660_dir()
190 name_len -= 2; /* truncate trailing file version */ in iso9660_dir()
191 if (name_len > 1 && name[name_len - 1] == '.') in iso9660_dir()
192 name_len--; /* truncate trailing dot */ in iso9660_dir()
198 rr_len = (idr->length.l - idr->name_len.l in iso9660_dir()
201 rr_ptr.ptr = ((unsigned char *)idr + idr->name_len.l in iso9660_dir()
232 name_len = rr_ptr.rr->len - (4+sizeof(struct NM)); in iso9660_dir()
331 memcpy(NAME_BUF, name, name_len); in iso9660_dir()
[all …]
Dfsys_ext2fs.c178 __u8 name_len; /* Name length */ member
191 #define EXT2_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT2_DIR_ROUND) & \ argument
762 int saved_c = dp->name[dp->name_len]; in ext2fs_dir()
764 dp->name[dp->name_len] = 0; in ext2fs_dir()
777 dp->name[dp->name_len] = saved_c; in ext2fs_dir()
/external/bluetooth/glib/gio/
Dgwin32appinfo.c399 DWORD name_len, nbytes; in enumerate_open_with_list() local
406 name_len = 256; in enumerate_open_with_list()
411 &name_len, in enumerate_open_with_list()
420 name_len == 1) in enumerate_open_with_list()
427 name_len = 256; in enumerate_open_with_list()
432 name_len = 256; in enumerate_open_with_list()
436 &name_len, in enumerate_open_with_list()
442 *prognames = g_list_prepend (*prognames, g_memdup (name, (name_len + 1) * 2)); in enumerate_open_with_list()
444 name_len = 256; in enumerate_open_with_list()
454 DWORD name_len, type; in enumerate_open_with_progids() local
[all …]
/external/e2fsprogs/e2fsck/
Drehash.c123 (((dirent->name_len & 0xFF)+8) > dirent->rec_len)) { in fill_dir_block()
130 if (!fd->compress && ((dirent->name_len&0xFF) == 1) && in fill_dir_block()
133 if (!fd->compress && ((dirent->name_len&0xFF) == 2) && in fill_dir_block()
150 fd->dir_size += EXT2_DIR_REC_LEN(dirent->name_len & 0xFF); in fill_dir_block()
156 dirent->name_len & 0xFF, in fill_dir_block()
184 min_len = he_a->dir->name_len; in name_cmp()
185 if (min_len > he_b->dir->name_len) in name_cmp()
186 min_len = he_b->dir->name_len; in name_cmp()
190 if (he_a->dir->name_len > he_b->dir->name_len) in name_cmp()
192 else if (he_a->dir->name_len < he_b->dir->name_len) in name_cmp()
[all …]
Dpass2.c307 a_len = de_a->name_len & 0xFF; in dict_de_cmp()
309 b_len = de_b->name_len & 0xFF; in dict_de_cmp()
362 else if (((dirent->name_len & 0xFF) != 1) || in check_dot()
373 dirent->name_len = 1; in check_dot()
396 nextdir->name_len = 0; in check_dot()
417 else if (((dirent->name_len & 0xFF) != 2) || in check_dotdot()
434 dirent->name_len = 2; in check_dotdot()
462 for ( i = 0; i < (dirent->name_len & 0xFF); i++) { in check_name()
484 int filetype = dirent->name_len >> 8; in check_filetype()
493 dirent->name_len = dirent->name_len & 0xFF; in check_filetype()
[all …]
/external/e2fsprogs/ext2ed/
Ddir_com.c228 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/bluetooth/glib/gmodule/
Dgmodule-ar.c56 long name_len; in _g_module_get_member() local
81 name_len = atol(ar_header.ar_namlen); in _g_module_get_member()
83 member = g_malloc(name_len+1); in _g_module_get_member()
87 if (read(fd, (void*)member, name_len) != name_len) in _g_module_get_member()
94 member[name_len] = 0; in _g_module_get_member()
Dgmodule-beos.c138 int32 type, name_len; in _g_module_symbol() local
156 name_len = 256; in _g_module_symbol()
159 status = get_nth_image_symbol (id, n, name, &name_len, &type, &p); in _g_module_symbol()
174 name_len = 256; in _g_module_symbol()
177 status = get_nth_image_symbol (id, n, name, &name_len, &type, &p); in _g_module_symbol()
/external/libvpx/
Dargs.c60 int name_len = strlen(def->long_name); in arg_match() local
62 if (strlen(arg.argv[0]) >= name_len + 2 in arg_match()
64 && !strncmp(arg.argv[0] + 2, def->long_name, name_len) in arg_match()
65 && (arg.argv[0][name_len+2] == '=' in arg_match()
66 || arg.argv[0][name_len+2] == '\0')) in arg_match()
70 arg.val = arg.name[name_len] == '=' ? arg.name + name_len + 1 : NULL; in arg_match()
/external/bison/src/
Dparse-gram.y552 size_t name_len; in add_param() local
554 for (name_len = 1; in add_param()
555 memchr (alphanum, name_start[name_len], sizeof alphanum); in add_param()
556 name_len++) in add_param()
559 name = xmalloc (name_len + 1); in add_param()
560 memcpy (name, name_start, name_len); in add_param()
561 name[name_len] = '\0'; in add_param()
/external/e2fsprogs/misc/
De2image.c355 printf("rec_len = %d, name_len = %d\n", rec_len, dirent->name_len); in scramble_dir_block()
369 if (dirent->name_len + 8 > rec_len) { in scramble_dir_block()
372 dirent->name_len); in scramble_dir_block()
373 dirent->name_len = rec_len - 8; in scramble_dir_block()
377 len = rec_len - dirent->name_len - 8; in scramble_dir_block()
379 memset(cp+dirent->name_len, 0, len); in scramble_dir_block()
380 if (dirent->name_len==1 && cp[0] == '.') in scramble_dir_block()
382 if (dirent->name_len==2 && cp[0] == '.' && cp[1] == '.') in scramble_dir_block()
385 memset(cp, 'A', dirent->name_len); in scramble_dir_block()
386 len = dirent->name_len; in scramble_dir_block()
/external/ppp/pppd/plugins/pppoatm/
Dans.c46 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/oprofile/libutil/
Dop_file.c92 int name_len; in make_pathname_from_dirent() local
94 name_len = strlen(basedir) + strlen("/") + strlen(ent->d_name) + 1; in make_pathname_from_dirent()
95 name = xmalloc(name_len); in make_pathname_from_dirent()
/external/chromium/base/third_party/symbolize/
Dsymbolize.cc213 bool GetSectionHeaderByName(int fd, const char *name, size_t name_len, in GetSectionHeaderByName() argument
234 if (sizeof(header_name) < name_len) { in GetSectionHeaderByName()
236 "section will not be found (even if present).", name, name_len); in GetSectionHeaderByName()
241 ssize_t n_read = ReadFromOffset(fd, &header_name, name_len, name_offset); in GetSectionHeaderByName()
244 } else if (n_read != name_len) { in GetSectionHeaderByName()
248 if (memcmp(header_name, name, name_len) == 0) { in GetSectionHeaderByName()
/external/e2fsprogs/debugfs/
Dls.c62 thislen = ((dirent->name_len & 0xFF) < EXT2_NAME_LEN) ? in list_dir_proc()
63 (dirent->name_len & 0xFF) : EXT2_NAME_LEN; in list_dir_proc()
90 inode.i_mode, dirent->name_len >> 8, in list_dir_proc()
Dhtree.c67 (((dirent->name_len & 0xFF)+8) > dirent->rec_len)) { in htree_dump_leaf_node()
71 thislen = ((dirent->name_len & 0xFF) < EXT2_NAME_LEN) ? in htree_dump_leaf_node()
72 (dirent->name_len & 0xFF) : EXT2_NAME_LEN; in htree_dump_leaf_node()
383 p->len == (dirent->name_len & 0xFF) && in search_dir_block()
/external/chromium/net/http/
Dhttp_vary_data.cc112 size_t name_len = it.name_end() - it.name_begin(); in GetRequestValue() local
113 if (request_header.size() == name_len && in GetRequestValue()

123