diff options
Diffstat (limited to 'Kernel/File.cpp')
-rw-r--r-- | Kernel/File.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Kernel/File.cpp b/Kernel/File.cpp new file mode 100644 index 0000000000..8f09ad25e8 --- /dev/null +++ b/Kernel/File.cpp @@ -0,0 +1,31 @@ +#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(Process&, unsigned, unsigned) +{ + return -ENOTTY; +} + +KResultOr<Region*> File::mmap(Process&, LinearAddress, size_t, size_t) +{ + return KResult(-ENODEV); +} + |