mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
66c1a9be3b
Nothing crazy, this just means that PROT_READ allocates readable regions, and that PROT_WRITE allocates writable ones.
31 lines
454 B
C++
31 lines
454 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, int)
|
|
{
|
|
return KResult(-ENODEV);
|
|
}
|
|
|