mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
30 lines
476 B
C++
30 lines
476 B
C++
#include <Kernel/File.h>
|
|
#include <Kernel/FileSystem/FileDescription.h>
|
|
|
|
File::File()
|
|
{
|
|
}
|
|
|
|
File::~File()
|
|
{
|
|
}
|
|
|
|
KResultOr<Retained<FileDescription>> File::open(int options)
|
|
{
|
|
UNUSED_PARAM(options);
|
|
return FileDescription::create(this);
|
|
}
|
|
|
|
void File::close()
|
|
{
|
|
}
|
|
|
|
int File::ioctl(FileDescription&, unsigned, unsigned)
|
|
{
|
|
return -ENOTTY;
|
|
}
|
|
|
|
KResultOr<Region*> File::mmap(Process&, FileDescription&, VirtualAddress, size_t, size_t, int)
|
|
{
|
|
return KResult(-ENODEV);
|
|
}
|