Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_crt_pad_segment_test.cpp61 struct stat file_stat; in GetPadSegment() local
62 EXPECT_NE(TEMP_FAILURE_RETRY(fstat(fd.get(), &file_stat)), -1) in GetPadSegment()
66 EXPECT_TRUE(elf_reader.Read(path.c_str(), fd.get(), 0, file_stat.st_size)) in GetPadSegment()
Dlinker_main.cpp202 struct stat file_stat; member
216 if (TEMP_FAILURE_RETRY(stat(exe_path, &result.file_stat) == -1)) { in get_executable_info()
218 if (TEMP_FAILURE_RETRY(stat(arg_path, &result.file_stat) == -1)) { in get_executable_info()
279 if (TEMP_FAILURE_RETRY(fstat(fd.get(), &result.file_stat)) == -1) { in load_executable()
284 if (!elf_reader.Read(result.path.c_str(), fd.get(), file_offset, result.file_stat.st_size)) { in load_executable()
364 exe_info.path.c_str(), &exe_info.file_stat, in linker_main()
Dlinker_main.h53 const struct stat* file_stat, off64_t file_offset,
Dlinker_soinfo.cpp214 soinfo::soinfo(android_namespace_t* ns, const char* realpath, const struct stat* file_stat, in soinfo() argument
223 if (file_stat != nullptr) { in soinfo()
224 this->st_dev_ = file_stat->st_dev; in soinfo()
225 this->st_ino_ = file_stat->st_ino; in soinfo()
Dlinker.cpp313 const struct stat* file_stat, off64_t file_offset, in soinfo_alloc() argument
321 soinfo* si = new (g_soinfo_allocator.alloc()) soinfo(ns, name, file_stat, in soinfo_alloc()
1110 const struct stat& file_stat, in find_loaded_library_by_inode() argument
1114 if (file_stat.st_dev == 0 || file_stat.st_ino == 0) { in find_loaded_library_by_inode()
1120 return si->get_st_ino() == file_stat.st_ino && in find_loaded_library_by_inode()
1121 si->get_st_dev() == file_stat.st_dev && in find_loaded_library_by_inode()
1186 struct stat file_stat; in load_library() local
1187 if (TEMP_FAILURE_RETRY(fstat(task->get_fd(), &file_stat)) != 0) { in load_library()
1191 if (file_offset >= file_stat.st_size) { in load_library()
1193 name, file_offset, file_stat.st_size); in load_library()
[all …]
Dlinker_phdr.cpp1256 struct stat file_stat; in phdr_table_map_gnu_relro() local
1257 if (TEMP_FAILURE_RETRY(fstat(fd, &file_stat)) != 0) { in phdr_table_map_gnu_relro()
1260 off_t file_size = file_stat.st_size; in phdr_table_map_gnu_relro()
Dlinker_soinfo.h248 soinfo(android_namespace_t* ns, const char* name, const struct stat* file_stat,
/bionic/tests/
Ddlext_test.cpp2050 struct stat file_stat; in TEST() local
2051 int ret = TEMP_FAILURE_RETRY(stat(private_library_absolute_path.c_str(), &file_stat)); in TEST()
2053 size_t file_size = file_stat.st_size; in TEST()