Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 8 of 8) sorted by relevance

/system/core/libcutils/
Dsocket_local_client.c49 size_t namelen; in socket_make_sockaddr_un() local
54 namelen = strlen(name); in socket_make_sockaddr_un()
57 if ((namelen + 1) > sizeof(p_addr->sun_path)) { in socket_make_sockaddr_un()
67 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un()
71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un()
73 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un()
86 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
96 namelen = strlen(name); in socket_make_sockaddr_un()
98 if (namelen > sizeof(*p_addr) in socket_make_sockaddr_un()
[all …]
/system/core/sdcard/
Dsdcard.c109 size_t namelen; member
170 memset(node->name, 0xef, node->namelen); in release_node_locked()
213 size_t namelen = node->namelen; in get_node_path_locked() local
214 if (bufsize < namelen + 1) { in get_node_path_locked()
220 pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 2); in get_node_path_locked()
228 memcpy(buf + pathlen, name, namelen + 1); /* include trailing \0 */ in get_node_path_locked()
229 return pathlen + namelen; in get_node_path_locked()
244 size_t namelen = strlen(name); in find_file_within() local
245 size_t childlen = pathlen + namelen + 1; in find_file_within()
255 memcpy(actual, name, namelen + 1); in find_file_within()
[all …]
Dfuse.h112 __u32 namelen; member
556 __u32 namelen; member
564 FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen)
574 __u32 namelen; member
/system/core/adb/
Dfile_sync_service.c109 msg.dent.namelen = htoll(len); in do_list()
125 msg.dent.namelen = 0; in do_list()
363 unsigned namelen; local
375 namelen = ltohl(msg.req.namelen);
376 if(namelen > 1024) {
380 if(readx(fd, name, namelen)) {
384 name[namelen] = 0;
386 msg.req.namelen = 0;
Dfile_sync_service.h53 unsigned namelen; member
66 unsigned namelen; member
Dfile_sync_client.c70 msg.req.namelen = 0; in sync_quit()
87 msg.req.namelen = htoll(len); in sync_ls()
99 len = ltohl(msg.dent.namelen); in sync_ls()
132 msg.req.namelen = htoll(len); in sync_readtime()
157 msg.req.namelen = htoll(len); in sync_start_readtime()
191 msg.req.namelen = htoll(len); in sync_readmode()
371 msg.req.namelen = htoll(len + r); in sync_send()
453 msg.req.namelen = htoll(len); in sync_recv()
/system/core/init/
Dproperty_service.c343 size_t namelen = strlen(name); in property_set() local
346 if(namelen >= PROP_NAME_MAX) return -1; in property_set()
348 if(namelen < 1) return -1; in property_set()
366 memcpy(pi->name, name, namelen + 1); in property_set()
370 (namelen << 24) | (((unsigned) pi) - ((unsigned) pa)); in property_set()
/system/core/sh/
Dvar.c226 int namelen; in setvar() local
243 namelen = p - name; in setvar()
245 error("%.*s: bad variable name", namelen, name); in setvar()
246 len = namelen + 2; /* 2 is space for '=' and '\0' */ in setvar()
254 while (--namelen >= 0) in setvar()