mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Everywhere: Use LibFileSystem
where trivial
This commit is contained in:
parent
edab0cbf41
commit
1d24f394c6
115 changed files with 275 additions and 228 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <LibELF/AuxiliaryVector.h>
|
||||
#include <LibELF/Image.h>
|
||||
#include <LibELF/Validation.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
#include <LibX86/ELFSymbolProvider.h>
|
||||
#include <fcntl.h>
|
||||
#include <syscall.h>
|
||||
|
@ -423,7 +424,7 @@ MmapRegion const* Emulator::load_library_from_address(FlatPtr address)
|
|||
return {};
|
||||
|
||||
DeprecatedString lib_path = lib_name;
|
||||
if (Core::DeprecatedFile::looks_like_shared_library(lib_name))
|
||||
if (FileSystem::looks_like_shared_library(lib_name))
|
||||
lib_path = DeprecatedString::formatted("/usr/lib/{}", lib_path);
|
||||
|
||||
if (!m_dynamic_library_cache.contains(lib_path)) {
|
||||
|
@ -461,7 +462,7 @@ Optional<Emulator::SymbolInfo> Emulator::symbol_at(FlatPtr address)
|
|||
auto const* first_region = (lib_name.is_null() || lib_name.is_empty()) ? address_region : first_region_for_object(lib_name);
|
||||
VERIFY(first_region);
|
||||
auto lib_path = lib_name;
|
||||
if (Core::DeprecatedFile::looks_like_shared_library(lib_name)) {
|
||||
if (FileSystem::looks_like_shared_library(lib_name)) {
|
||||
lib_path = DeprecatedString::formatted("/usr/lib/{}", lib_name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue