Searched defs:name_len (Results 1 - 11 of 11) sorted by relevance

/system/core/libcorkscrew/
H A Dmap_info.c50 size_t name_len = strlen(name); local
51 if (name_len && name[name_len - 1] == '\n') {
52 name_len -= 1;
55 map_info_t* mi = calloc(1, sizeof(map_info_t) + name_len + 1);
62 memcpy(mi->name, name, name_len);
63 mi->name[name_len] = '\0';
/system/core/sh/
H A Dvar.h56 int name_len; /* length of name */ member in struct:var
/system/core/adb/
H A Dusb_windows.c222 unsigned long name_len = 0; local
227 &name_len,
229 if (0 != name_len) {
230 ret->interface_name = (char*)malloc(name_len);
236 &name_len,
/system/core/fastboot/
H A Dusb_windows.c119 unsigned long name_len = 0; local
124 &name_len,
126 if (0 != name_len) {
127 ret->interface_name = (char*)malloc(name_len);
133 &name_len,
/system/core/toolbox/
H A Dschedtop.c98 size_t name_len; local
126 name_len = strlen(name);
143 name_len = name_end - name;
145 if (name_len >= sizeof(info->name))
146 name_len = sizeof(info->name) - 1;
147 memcpy(info->name, name, name_len);
148 info->name[name_len] = '\0';
/system/extras/ext4_utils/
H A Dcontents.c59 u8 name_len = strlen(name); local
60 u16 rec_len = 8 + ALIGN(name_len, 4);
77 dentry->name_len = name_len;
79 memcpy(dentry->name, name, name_len);
166 dentry->name_len = 0;
265 size_t name_len = strlen(XATTR_SELINUX_SUFFIX); local
279 memset(entry, 0, EXT4_XATTR_LEN(name_len));
281 entry->e_name_len = name_len;
282 memcpy(entry->e_name, XATTR_SELINUX_SUFFIX, name_len);
[all...]
H A Dext4.h537 __le16 name_len; member in struct:ext4_dir_entry
544 __u8 name_len; member in struct:ext4_dir_entry_2
562 #define EXT4_DIR_REC_LEN(name_len) (((name_len) + 8 + EXT4_DIR_ROUND) & ~EXT4_DIR_ROUND)
/system/vold/
H A DCommandListener.cpp288 size_t name_len = strlen(dent->d_name); local
289 if (name_len > 5 && name_len < 260 &&
290 !strcmp(&dent->d_name[name_len - 5], ".asec")) {
293 strlcpy(id, dent->d_name, name_len - 4);
H A DVolumeManager.cpp1415 size_t name_len = strlen(dent->d_name); local
1416 if (name_len > 5 && name_len < (ID_BUF_LEN + ASEC_SUFFIX_LEN - 1) &&
1417 !strcmp(&dent->d_name[name_len - 5], ASEC_SUFFIX)) {
1419 strlcpy(id, dent->d_name, name_len - 4);
/system/core/init/
H A Ddevices.c90 int name_len; member in struct:platform_node
227 int name_len = strlen(name); local
233 if ((bus->name_len < name_len) &&
234 (name[bus->name_len] == '/') &&
235 !strncmp(name, bus->name, bus->name_len))
244 bus->name_len = name_len;
255 int name_len = strlen(name); local
261 if ((bus->name_len < name_le
[all...]
H A Dinit.c617 int name_len = strlen(name); local
621 if (name_len == 0) return;
642 } else if (!strncmp(name, "androidboot.", 12) && name_len > 12) {

Completed in 147 milliseconds