mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 10:44:57 +00:00

It's generated when the mapping is first created, so it won't update if the file moves. Maybe that's something we should support, too.
31 lines
471 B
C++
31 lines
471 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&, FileDescriptor&, LinearAddress, size_t, size_t, int)
|
|
{
|
|
return KResult(-ENODEV);
|
|
}
|
|
|