| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
| H A D | file_size.pass.cpp | 56 uintmax_t expect = file_size(ent); in TEST_CASE() 63 TEST_CHECK(ent.file_size(ec) == expect); in TEST_CASE() 70 uintmax_t expect = file_size(ent); in TEST_CASE() 76 TEST_CHECK(ent.file_size(ec) == 99); in TEST_CASE() 102 uintmax_t expect = file_size(p, other_ec); in TEST_CASE() 104 uintmax_t got = ent.file_size(ec); in TEST_CASE() 164 TEST_CHECK(ent.file_size(ec) == expect_bad); in TEST_CASE() 178 uintmax_t expect_good = file_size(file); in TEST_CASE() 197 TEST_CHECK_NO_THROW(ent.file_size()); in TEST_CASE() 223 TEST_CHECK_NO_THROW(ent.file_size()); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/ |
| H A D | file_size.pass.cpp | 36 ASSERT_SAME_TYPE(decltype(file_size(p)), uintmax_t); in TEST_CASE() 37 ASSERT_SAME_TYPE(decltype(file_size(p, ec)), uintmax_t); in TEST_CASE() 38 ASSERT_NOT_NOEXCEPT(file_size(p)); in TEST_CASE() 39 ASSERT_NOEXCEPT(file_size(p, ec)); in TEST_CASE() 46 TEST_CHECK(file_size(p) == 0); in TEST_CASE() 48 TEST_CHECK(file_size(p, ec) == 0); in TEST_CASE() 55 TEST_CHECK(file_size(p) == 42); in TEST_CASE() 57 TEST_CHECK(file_size(p, ec) == 42); in TEST_CASE() 65 TEST_CHECK(file_size(p) == file_size(p2)); in TEST_CASE() 83 TEST_CHECK(file_size(TC.p, ec) == expect); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/lldb/source/Symbol/ |
| H A D | ObjectFile.cpp | 45 module_sp, data_sp, data_offset, file, file_offset, file_size)); in CreateObjectFromContainer() 61 static_cast<uint64_t>(file_size)); in FindPlugin() 76 module_sp, file, file_offset, file_size, data_sp, data_offset); in FindPlugin() 84 if (file_size > 0) { in FindPlugin() 101 file_size = FileSystem::Instance().GetByteSize(archive_file); in FindPlugin() 102 if (file_size > 0) { in FindPlugin() 142 module_sp, file, file_offset, file_size, data_sp, data_offset); in FindPlugin() 189 lldb::offset_t file_size, in GetModuleSpecifications() argument 196 if (file_size == 0) { in GetModuleSpecifications() 200 file_size = actual_file_size - file_offset; in GetModuleSpecifications() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectContainer/BSD-Archive/ |
| H A D | ObjectContainerBSDArchive.cpp | 57 file_size = 0; in Clear() 122 file_size = size - ar_name_len; in ExtractFromThin() 200 file_size = size - ar_name_len; in Extract() 231 offset += obj.file_size; in ParseObjects() 249 offset += obj.file_size; in ParseObjects() 563 lldb::offset_t file_size = object->size; in GetObjectFile() local 567 if (child_data_sp->GetByteSize() != object->file_size) in GetObjectFile() 572 object->file_size, child_data_sp, data_offset); in GetObjectFile() 632 spec.SetObjectSize(object->file_size); in GetModuleSpecifications() 639 if (object->file_offset < file_size && file_size > object_file_offset) { in GetModuleSpecifications() [all …]
|
| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBSection.cpp | 194 uint64_t file_size = size; in GetSectionData() local 195 if (file_size == UINT64_MAX) { in GetSectionData() 196 file_size = section_sp->GetByteSize(); in GetSectionData() 197 if (file_size > offset) in GetSectionData() 198 file_size -= offset; in GetSectionData() 200 file_size = 0; in GetSectionData() 203 objfile->GetFileSpec().GetPath(), file_size, file_offset); in GetSectionData()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.resize_file/ |
| H A D | resize_file.pass.cpp | 82 TEST_CHECK(file_size(file1) == new_s); in TEST_CASE() 89 TEST_CHECK(file_size(file1) == new_s); in TEST_CASE() 96 TEST_CHECK(file_size(file1) == new_s); in TEST_CASE() 104 TEST_CHECK(file_size(file1) == new_s); in TEST_CASE()
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | GCDAProfiling.c | 78 static uint64_t file_size = 0; variable 223 file_size = ftell(output_file); in map_file() 227 if (file_size == 0) in map_file() 237 … = CreateFileMapping(mmap_fd, NULL, PAGE_READWRITE, DWORD_HI(file_size), DWORD_LO(file_size), NULL… in map_file() 244 write_buffer = MapViewOfFile(mmap_handle, FILE_MAP_WRITE, 0, 0, file_size); in map_file() 252 write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE, in map_file() 279 if (munmap(write_buffer, file_size) == -1) { in unmap_file() 287 file_size = 0; in unmap_file()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/ |
| H A D | copy_file.pass.cpp | 142 TEST_CHECK(file_size(dest) == 42); in TEST_CASE() 155 TEST_CHECK(file_size(dest) == 42); in TEST_CASE() 172 TEST_CHECK(file_size(older) == 55); in TEST_CASE() 177 TEST_CHECK(file_size(newer) == 2); in TEST_CASE() 185 TEST_CHECK(file_size(file2) == 55); in TEST_CASE()
|
| H A D | copy_file_large.pass.cpp | 62 TEST_REQUIRE(file_size(source) == test_file_size); in TEST_CASE() 70 TEST_CHECK(file_size(dest) == test_file_size); in TEST_CASE()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | FileOutputBufferTest.cpp | 59 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST() 97 ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size)); in TEST() 140 ASSERT_NO_ERROR(fs::file_size(Twine(File5), File5Size)); in TEST() 154 ASSERT_NO_ERROR(fs::file_size(Twine(File6), File6Size)); in TEST()
|
| H A D | TarWriterTest.cpp | 136 std::error_code EC = sys::fs::file_size(TarWriterTest.path(), TarSize); in TEST_F() 153 std::error_code EC = sys::fs::file_size(TarWriterTest.path(), TarSize); in TEST_F() 170 std::error_code EC = sys::fs::file_size(TarWriterTest.path(), TarSize); in TEST_F()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/ |
| H A D | path.pass.cpp | 95 TEST_CHECK(ent.file_size() == 42); in TEST_CASE() 96 TEST_CHECK(ent_ec.file_size() == 42); in TEST_CASE() 116 TEST_CHECK(ent.file_size() == 101); in TEST_CASE() 117 TEST_CHECK(ent_ec.file_size() == 101); in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | refresh.pass.cpp | 247 TEST_CHECK(ent.file_size() == 42); in TEST_CASE() 257 TEST_CHECK(ent.file_size(ec) == uintmax_t(-1)); in TEST_CASE() 261 TEST_CHECK_THROW(filesystem_error, ent.file_size()); in TEST_CASE() 268 TEST_CHECK(ent.file_size() == 99); in TEST_CASE() 277 TEST_CHECK(ent.file_size(ec) == uintmax_t(-1)); in TEST_CASE() 280 TEST_CHECK_THROW(filesystem_error, ent.file_size()); in TEST_CASE()
|
| H A D | replace_filename.pass.cpp | 109 TEST_CHECK(ent.file_size() == 101); in TEST_CASE() 122 TEST_CHECK(ent.file_size() == 99); in TEST_CASE()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/ |
| H A D | ObjectContainerUniversalMachO.cpp | 202 lldb::offset_t file_size, lldb_private::ModuleSpecList &specs) { in GetModuleSpecifications() argument 214 if (fat_arch.offset < file_size && file_size > slice_file_offset) { in GetModuleSpecifications() 216 file, slice_file_offset, file_size - slice_file_offset, specs); in GetModuleSpecifications()
|
| /llvm-project-15.0.7/lldb/include/lldb/Core/ |
| H A D | Section.h | 112 lldb::offset_t file_size, uint32_t log2align, uint32_t flags, 123 lldb::offset_t file_size, uint32_t log2align, uint32_t flags, 154 void SetFileSize(lldb::offset_t file_size) { m_file_size = file_size; } in SetFileSize() argument
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/ |
| H A D | copy.pass.cpp | 229 TEST_CHECK(file_size(created) == FI.size); in TEST_CASE() 242 TEST_CHECK(file_size(created) == FI.size); in TEST_CASE() 258 TEST_CHECK(file_size(created) == FI.size); in TEST_CASE() 260 TEST_CHECK(file_size(nested_created) == FI.size); in TEST_CASE() 280 TEST_CHECK(file_size(dest) == 42); in TEST_CASE()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/ |
| H A D | rename.pass.cpp | 96 TEST_CHECK(file_size(file) == 42); in TEST_CASE() 105 TEST_CHECK(file_size(sym) == 42); in TEST_CASE() 115 TEST_CHECK(file_size(file3) == 42); in TEST_CASE()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/JIT/ |
| H A D | ObjectFileJIT.cpp | 206 lldb::offset_t file_size = section->GetFileSize(); in ReadSectionData() local 207 if (section_offset < file_size) { in ReadSectionData() 208 size_t src_len = file_size - section_offset; in ReadSectionData()
|
| /llvm-project-15.0.7/lldb/unittests/Process/gdb-remote/ |
| H A D | GDBRemoteCommunicationClientTest.cpp | 190 R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])"); in TEST_F() 215 R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])"); in TEST_F() 235 R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])", in TEST_F() 238 R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])", in TEST_F() 241 R"("file_path":"/foo/bar.so","file_offset":0,"file_size":1234}]])", in TEST_F() 244 R"("file_offset":0,"file_size":1234}]])", in TEST_F() 247 R"("file_path":"/foo/bar.so","file_size":1234}]])", in TEST_F()
|
| /llvm-project-15.0.7/lldb/include/lldb/Symbol/ |
| H A D | ObjectFile.h | 165 lldb::offset_t file_offset, lldb::offset_t file_size, 190 lldb::offset_t file_size, ModuleSpecList &specs, 197 lldb::offset_t file_size,
|
| /llvm-project-15.0.7/lldb/source/Core/ |
| H A D | Section.cpp | 157 lldb::offset_t file_offset, lldb::offset_t file_size, in Section() argument 163 m_file_offset(file_offset), m_file_size(file_size), in Section() 173 lldb::offset_t file_offset, lldb::offset_t file_size, in Section() argument 179 m_file_offset(file_offset), m_file_size(file_size), in Section()
|
| H A D | Module.cpp | 151 lldb::offset_t file_size = 0; in Module() local 153 file_size = data_sp->GetByteSize(); in Module() 159 module_spec.GetFileSpec(), 0, file_size, modules_specs, data_sp) == 0) in Module() 1260 lldb::offset_t file_size = 0; in GetObjectFile() local 1263 file_size = m_data_sp->GetByteSize(); in GetObjectFile() 1265 file_size = FileSystem::Instance().GetByteSize(m_file); in GetObjectFile() 1267 if (file_size > m_object_offset) { in GetObjectFile() 1274 file_size - m_object_offset, data_sp, data_offset); in GetObjectFile()
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | lto.h | 228 lto_module_create_from_fd(int fd, const char *path, size_t file_size); 237 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size,
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | Host.cpp | 498 uint64_t file_size = in RunShellCommand() local 500 if (file_size > 0) { in RunShellCommand() 501 if (file_size > command_output_ptr->max_size()) { in RunShellCommand()
|