ladybird/Kernel/File.cpp
2019-06-07 12:56:50 +02:00

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);
}