Lines Matching refs:file_offset
2090 static struct dso *search_dso_by_fstat(const struct stat *st, const ns_t *ns, uint64_t file_offset) {
2094 if (p->dev == st->st_dev && p->ino == st->st_ino && p->file_offset == file_offset) {
2138 UT_STATIC struct dso *find_library_by_fstat(const struct stat *st, const ns_t *ns, bool check_inherited, uint64_t file_offset) {
2142 struct dso *p = search_dso_by_fstat(st, ns, file_offset);
2147 p = search_dso_by_fstat(st, inherit->inherited_ns, file_offset);
4884 task->file_offset = z_info->file_offset;
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);
5060 void *map = mmap(0, mapLen, PROT_READ, MAP_PRIVATE | MAP_XPM, task->fd, task->file_offset);
5080 ssize_t l = pread(task->fd, task->ehdr_buf, sizeof task->ehdr_buf, task->file_offset);
5098 l = pread(task->fd, task->allocated_buf, task->phsize, task->eh->e_phoff + task->file_offset);
5109 l = pread(task->fd, task->ehdr_buf + 1, task->phsize, task->eh->e_phoff + task->file_offset);
5140 /* The default value of file_offset is 0.
5141 * The value of file_offset may be greater than 0 when opening library from zip file.
5142 * The value of file_offset ensures PAGE_SIZE aligned. */
5143 task->dyn_map = mmap(0, task->dyn_map_len, PROT_READ, MAP_PRIVATE, task->fd, off_start + task->file_offset);
5168 task->shdr_allocated_buf = mmap(0, task->shsize, PROT_READ, MAP_PRIVATE, task->fd, off_start + task->file_offset);
5182 task->str_map = mmap(0, task->str_map_len, PROT_READ, MAP_PRIVATE, task->fd, off_start + task->file_offset);
5273 task->fd, ph->p_offset & -PAGE_SIZE + task->file_offset);
5341 : mmap((void *)start_addr, map_len, prot, map_flags, task->fd, off_start + task->file_offset);
5368 : mmap(real_map, map_len, prot, map_flags | MAP_FIXED, task->fd, off_start + task->file_offset);
5439 off_start + task->file_offset) == MAP_FAILED) {
5592 task->file_offset = z_info.file_offset;
5683 task->p = find_library_by_fstat(&st, namespace, check_inherited, task->file_offset);
5731 task->p->file_offset = task->file_offset;
6022 static int serialize_gnu_relro(int fd, struct dso *dso, ssize_t *file_offset)
6043 *file_offset);
6048 *file_offset += size;
6052 static int map_gnu_relro(int fd, struct dso *dso, ssize_t *file_offset)
6069 char *file_base = (char *)(ext_temp_map) + *file_offset;
6074 if (size > ext_fd_file_size - *file_offset) {
6098 ssize_t map_offset = *file_offset + start_offset;
6111 *file_offset += size;