ladybird/Kernel/Device.cpp
Andreas Kling 994279d56c Kernel: Add Device base class for CharacterDevice.
..to prepare for adding a BlockDevice class.
2019-02-16 00:47:20 +01:00

21 lines
303 B
C++

#include "CharacterDevice.h"
#include <LibC/errno_numbers.h>
Device::~Device()
{
}
RetainPtr<FileDescriptor> Device::open(int& error, int options)
{
return VFS::the().open(*this, error, options);
}
void Device::close()
{
}
int Device::ioctl(Process&, unsigned, unsigned)
{
return -ENOTTY;
}