Lines Matching defs:z_info

230 static void open_library_by_path(const char *name, const char *s, struct loadtask *task, struct zip_info *z_info);
231 static void handle_asan_path_open_by_task(int fd, const char *name, ns_t *namespace, struct loadtask *task, struct zip_info *z_info);
4869 static void open_library_by_path(const char *name, const char *s, struct loadtask *task, struct zip_info *z_info)
4881 int res = open_uncompressed_library_in_zipfile(buf, z_info, separator);
4883 task->fd = z_info->fd;
4884 task->file_offset = z_info->file_offset;
4887 memset(z_info->path_buf, 0, sizeof(z_info->path_buf));
4899 struct zip_info *z_info)
4913 open_library_by_path(name, new_lib_paths, task, z_info);
4919 open_library_by_path(name, namespace->asan_lib_paths, task, z_info);
4924 open_library_by_path(name, namespace->lib_paths, task, z_info);
4934 int open_uncompressed_library_in_zipfile(const char *path, struct zip_info *z_info, char *separator)
4945 if (strlcpy(z_info->path_buf, path, PATH_BUF_SIZE) >= PATH_BUF_SIZE) {
4949 z_info->path_buf[separator - path] = '\0';
4950 z_info->file_path_index = separator - path + 2;
4951 char *zip_file_path = z_info->path_buf;
4952 char *lib_path = &z_info->path_buf[z_info->file_path_index];
5030 z_info->file_offset = c_dir_entry.local_header_offset + sizeof(zip_file_header) +
5032 if (zip_file_header.compression_method != COMPRESS_STORED || z_info->file_offset % PAGE_SIZE != 0) {
5035 lib_path, zip_file_path, zip_file_header.compression_method, z_info->file_offset);
5039 z_info->found = true;
5047 if (!z_info->found) {
5052 z_info->fd = fileno(zip_file);
5525 struct zip_info z_info;
5583 int res = open_uncompressed_library_in_zipfile(name, &z_info, separator);
5591 task->fd = z_info.fd;
5592 task->file_offset = z_info.file_offset;
5624 open_library_by_path(name, namespace->env_paths, task, &z_info);
5631 open_library_by_path(name, task->p->rpath, task, &z_info);
5643 handle_asan_path_open_by_task(task->fd, name, namespace, task, &z_info);
5647 open_library_by_path(name, namespace->lib_paths, task, &z_info);