mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
Rename FileHandle to FileDescriptor.
This commit is contained in:
parent
e088121b3a
commit
83172e6a4b
Notes:
sideshowbarker
2024-07-19 18:32:36 +09:00
Author: https://github.com/awesomekling
Commit: 83172e6a4b
18 changed files with 160 additions and 154 deletions
|
@ -18,7 +18,7 @@
|
|||
#include <VirtualFileSystem/RandomDevice.h>
|
||||
#include <VirtualFileSystem/Ext2FileSystem.h>
|
||||
#include <VirtualFileSystem/VirtualFileSystem.h>
|
||||
#include <VirtualFileSystem/FileHandle.h>
|
||||
#include <VirtualFileSystem/FileDescriptor.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include "MemoryManager.h"
|
||||
#include <ELFLoader/ELFLoader.h>
|
||||
|
@ -206,11 +206,11 @@ static void init_stage2()
|
|||
#ifdef KSYMS
|
||||
{
|
||||
int error;
|
||||
auto handle = vfs->open("/kernel.map", error);
|
||||
if (!handle) {
|
||||
auto descriptor = vfs->open("/kernel.map", error);
|
||||
if (!descriptor) {
|
||||
kprintf("Failed to open /kernel.map\n");
|
||||
} else {
|
||||
auto buffer = handle->readEntireFile();
|
||||
auto buffer = descriptor->readEntireFile();
|
||||
ASSERT(buffer);
|
||||
loadKsyms(buffer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue