mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
LibCore: Rename File
to DeprecatedFile
As usual, this removes many unused includes and moves used includes further down the chain.
This commit is contained in:
parent
14951b92ca
commit
d43a7eae54
193 changed files with 536 additions and 556 deletions
|
@ -13,7 +13,6 @@
|
|||
#include <AK/LexicalPath.h>
|
||||
#include <AK/StringUtils.h>
|
||||
#include <Kernel/API/MemoryLayout.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/MappedFile.h>
|
||||
#include <LibELF/AuxiliaryVector.h>
|
||||
#include <LibELF/Image.h>
|
||||
|
@ -424,7 +423,7 @@ MmapRegion const* Emulator::load_library_from_address(FlatPtr address)
|
|||
return {};
|
||||
|
||||
DeprecatedString lib_path = lib_name;
|
||||
if (Core::File::looks_like_shared_library(lib_name))
|
||||
if (Core::DeprecatedFile::looks_like_shared_library(lib_name))
|
||||
lib_path = DeprecatedString::formatted("/usr/lib/{}", lib_path);
|
||||
|
||||
if (!m_dynamic_library_cache.contains(lib_path)) {
|
||||
|
@ -462,7 +461,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::File::looks_like_shared_library(lib_name)) {
|
||||
if (Core::DeprecatedFile::looks_like_shared_library(lib_name)) {
|
||||
lib_path = DeprecatedString::formatted("/usr/lib/{}", lib_name);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/ArgsParser.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/Process.h>
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
|
@ -46,9 +45,9 @@ int main(int argc, char** argv, char** env)
|
|||
|
||||
DeprecatedString executable_path;
|
||||
if (arguments[0].contains("/"sv))
|
||||
executable_path = Core::File::real_path_for(arguments[0]);
|
||||
executable_path = Core::DeprecatedFile::real_path_for(arguments[0]);
|
||||
else
|
||||
executable_path = Core::File::resolve_executable_from_environment(arguments[0]).value_or({});
|
||||
executable_path = Core::DeprecatedFile::resolve_executable_from_environment(arguments[0]).value_or({});
|
||||
if (executable_path.is_empty()) {
|
||||
reportln("Cannot find executable for '{}'."sv, arguments[0]);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue