Lines Matching refs:namelen
66 memset(node->name, 0xef, node->namelen); in release_node_locked()
109 size_t namelen; in get_node_path_locked() local
112 namelen = node->graft_pathlen; in get_node_path_locked()
115 namelen = node->namelen; in get_node_path_locked()
118 namelen = node->namelen; in get_node_path_locked()
121 if (bufsize < namelen + 1) { in get_node_path_locked()
127 pathlen = get_node_path_locked(node->parent, buf, bufsize - namelen - 1); in get_node_path_locked()
134 memcpy(buf + pathlen, name, namelen + 1); /* include trailing \0 */ in get_node_path_locked()
135 return pathlen + namelen; in get_node_path_locked()
150 size_t namelen = strlen(name); in find_file_within() local
151 size_t childlen = pathlen + namelen + 1; in find_file_within()
161 memcpy(actual, name, namelen + 1); in find_file_within()
173 memcpy(actual, entry->d_name, namelen); in find_file_within()
343 size_t namelen = strlen(name); in create_node_locked() local
356 node->name = static_cast<char*>(malloc(namelen + 1)); in create_node_locked()
361 memcpy(node->name, name, namelen + 1); in create_node_locked()
363 node->actual_name = static_cast<char*>(malloc(namelen + 1)); in create_node_locked()
369 memcpy(node->actual_name, actual_name, namelen + 1); in create_node_locked()
371 node->namelen = namelen; in create_node_locked()
387 size_t namelen = strlen(name); in rename_node_locked() local
392 if (namelen > node->namelen) { in rename_node_locked()
393 char* new_name = static_cast<char*>(realloc(node->name, namelen + 1)); in rename_node_locked()
399 char* new_actual_name = static_cast<char*>(realloc(node->actual_name, namelen + 1)); in rename_node_locked()
410 node->actual_name = static_cast<char*>(malloc(namelen + 1)); in rename_node_locked()
415 memcpy(node->actual_name, actual_name, namelen + 1); in rename_node_locked()
420 memcpy(node->name, name, namelen + 1); in rename_node_locked()
421 node->namelen = namelen; in rename_node_locked()
557 size_t namelen = strlen(name); in fuse_notify_delete() local
558 hdr.len = sizeof(hdr) + sizeof(data) + namelen + 1; in fuse_notify_delete()
564 data.namelen = namelen; in fuse_notify_delete()
573 vec[2].iov_len = namelen + 1; in fuse_notify_delete()
581 } else if (static_cast<size_t>(ret) != sizeof(hdr) + sizeof(data) + namelen + 1) { in fuse_notify_delete()
583 << sizeof(hdr) + sizeof(data) + namelen + 1 << " ***"; in fuse_notify_delete()
1111 out.st.namelen = stat.f_namelen; in handle_statfs()
1218 fde->namelen = strlen(de->d_name); in handle_readdir()
1219 memcpy(fde->name, de->d_name, fde->namelen + 1); in handle_readdir()
1221 FUSE_DIRENT_ALIGN(sizeof(struct fuse_dirent) + fde->namelen)); in handle_readdir()