/system/core/libcorkscrew/ |
D | map_info.c | 50 size_t name_len = strlen(name); in parse_maps_line() local 51 if (name_len && name[name_len - 1] == '\n') { in parse_maps_line() 52 name_len -= 1; in parse_maps_line() 55 map_info_t* mi = calloc(1, sizeof(map_info_t) + name_len + 1); in parse_maps_line() 63 memcpy(mi->name, name, name_len); in parse_maps_line() 64 mi->name[name_len] = '\0'; in parse_maps_line()
|
/system/extras/ext4_utils/ |
D | contents.c | 63 u8 name_len = strlen(name); in add_dentry() local 64 u16 rec_len = 8 + ALIGN(name_len, 4); in add_dentry() 81 dentry->name_len = name_len; in add_dentry() 83 memcpy(dentry->name, name, name_len); in add_dentry() 368 size_t name_len = strlen(name); in xattr_addto_range() local 369 if (name_len > 255) in xattr_addto_range() 373 size_t needed_size = EXT4_XATTR_LEN(name_len) + EXT4_XATTR_SIZE(value_len); in xattr_addto_range() 379 memset(new_entry, 0, EXT4_XATTR_LEN(name_len)); in xattr_addto_range() 381 new_entry->e_name_len = name_len; in xattr_addto_range() 383 memcpy(new_entry->e_name, name, name_len); in xattr_addto_range()
|
D | xattr.h | 35 #define EXT4_XATTR_LEN(name_len) \ argument 36 (((name_len) + EXT4_XATTR_ROUND + \
|
D | ext4.h | 537 __le16 name_len; member 544 __u8 name_len; member 562 #define EXT4_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT4_DIR_ROUND) & ~EXT4_DIR_ROUND) argument
|
D | ext4fixup.c | 698 strncpy(name, dirp->name, dirp->name_len); in recurse_dir() 699 name[dirp->name_len]='\0'; in recurse_dir()
|
/system/core/toolbox/ |
D | schedtop.c | 98 size_t name_len; in add_thread() local 126 name_len = strlen(name); in add_thread() 143 name_len = name_end - name; in add_thread() 145 if (name_len >= sizeof(info->name)) in add_thread() 146 name_len = sizeof(info->name) - 1; in add_thread() 147 memcpy(info->name, name, name_len); in add_thread() 148 info->name[name_len] = '\0'; in add_thread()
|
/system/core/sh/ |
D | var.c | 171 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar() 182 if (find_var("PS1", &vpp, &vps1.name_len) == NULL) { in initvar() 283 error("%.*s: is read only", vp->name_len, s); in setvareq() 289 (*vp->func)(s + vp->name_len + 1); in setvareq() 307 vp->name_len = nlen; in setvareq() 353 return v->text + v->name_len + 1; in lookupvar() 379 return v->text + v->name_len + 1; in bltinlookup() 644 if (name[vp->name_len] == '=') in mklocal() 676 (*vp->func)(lvp->text + vp->name_len + 1); in poplocalvars() 755 if (vp->text[vp->name_len + 1] != '\0') in unsetvar() [all …]
|
D | var.h | 56 int name_len; /* length of name */ member
|
/system/core/fastboot/ |
D | usb_windows.c | 119 unsigned long name_len = 0; in do_usb_open() local 124 &name_len, in do_usb_open() 126 if (0 != name_len) { in do_usb_open() 127 ret->interface_name = (char*)malloc(name_len); in do_usb_open() 133 &name_len, in do_usb_open()
|
/system/core/adb/ |
D | usb_windows.c | 222 unsigned long name_len = 0; in do_usb_open() local 227 &name_len, in do_usb_open() 229 if (0 != name_len) { in do_usb_open() 230 ret->interface_name = (char*)malloc(name_len); in do_usb_open() 236 &name_len, in do_usb_open()
|
/system/vold/ |
D | CommandListener.cpp | 294 size_t name_len = strlen(dent->d_name); in listAsecsInDirectory() local 295 if (name_len > 5 && name_len < 260 && in listAsecsInDirectory() 296 !strcmp(&dent->d_name[name_len - 5], ".asec")) { in listAsecsInDirectory() 299 strlcpy(id, dent->d_name, name_len - 4); in listAsecsInDirectory()
|
D | VolumeManager.cpp | 1488 size_t name_len = strlen(dent->d_name); in unmountAllAsecsInDir() local 1489 if (name_len > 5 && name_len < (ID_BUF_LEN + ASEC_SUFFIX_LEN - 1) && in unmountAllAsecsInDir() 1490 !strcmp(&dent->d_name[name_len - 5], ASEC_SUFFIX)) { in unmountAllAsecsInDir() 1492 strlcpy(id, dent->d_name, name_len - 4); in unmountAllAsecsInDir()
|
/system/core/init/ |
D | init.c | 591 int name_len = strlen(name); in import_kernel_nv() local 595 if (name_len == 0) return; in import_kernel_nv() 614 } else if (!strncmp(name, "androidboot.", 12) && name_len > 12) { in import_kernel_nv()
|