mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
8cbb7f101f
This will allow us to implement different behaviors depending on the role of the descriptor a File is being accessed through.
31 lines
449 B
C++
31 lines
449 B
C++
#include <Kernel/File.h>
|
|
#include <Kernel/FileSystem/FileDescriptor.h>
|
|
|
|
File::File()
|
|
{
|
|
}
|
|
|
|
File::~File()
|
|
{
|
|
}
|
|
|
|
KResultOr<Retained<FileDescriptor>> File::open(int options)
|
|
{
|
|
UNUSED_PARAM(options);
|
|
return FileDescriptor::create(this);
|
|
}
|
|
|
|
void File::close()
|
|
{
|
|
}
|
|
|
|
int File::ioctl(FileDescriptor&, unsigned, unsigned)
|
|
{
|
|
return -ENOTTY;
|
|
}
|
|
|
|
KResultOr<Region*> File::mmap(Process&, LinearAddress, size_t, size_t)
|
|
{
|
|
return KResult(-ENODEV);
|
|
}
|
|
|