2019-04-28 14:53:50 +02:00
|
|
|
#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()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-04-29 13:58:40 +02:00
|
|
|
int File::ioctl(FileDescriptor&, unsigned, unsigned)
|
2019-04-28 14:53:50 +02:00
|
|
|
{
|
|
|
|
return -ENOTTY;
|
|
|
|
}
|
|
|
|
|
2019-06-02 10:14:28 +02:00
|
|
|
KResultOr<Region*> File::mmap(Process&, FileDescriptor&, LinearAddress, size_t, size_t, int)
|
2019-04-28 14:53:50 +02:00
|
|
|
{
|
|
|
|
return KResult(-ENODEV);
|
|
|
|
}
|
|
|
|
|