Kernel: Make FIFO inherit from File.

This commit is contained in:
Andreas Kling 2019-04-29 04:55:54 +02:00
commit 0a0d739e98
Notes: sideshowbarker 2024-07-19 14:33:20 +09:00
18 changed files with 96 additions and 72 deletions

View file

@ -1,10 +1,15 @@
#pragma once
#include <AK/AKString.h>
#include <AK/Retainable.h>
#include <AK/Retained.h>
#include <AK/Types.h>
#include <Kernel/FileSystem/FileDescriptor.h>
#include <Kernel/KResult.h>
#include <Kernel/LinearAddress.h>
class FileDescriptor;
class Process;
class Region;
class File : public Retainable<File> {
public:
@ -28,6 +33,7 @@ public:
virtual bool is_seekable() const { return false; }
virtual bool is_shared_memory() const { return false; }
virtual bool is_fifo() const { return false; }
virtual bool is_device() const { return false; }
virtual bool is_tty() const { return false; }
virtual bool is_master_pty() const { return false; }