mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 11:00:29 +00:00
30 lines
481 B
C++
30 lines
481 B
C++
#include <Kernel/File.h>
|
|
#include <Kernel/FileSystem/FileDescription.h>
|
|
|
|
File::File()
|
|
{
|
|
}
|
|
|
|
File::~File()
|
|
{
|
|
}
|
|
|
|
KResultOr<NonnullRefPtr<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);
|
|
}
|