Files
ladybird/VirtualFileSystem/CharacterDevice.cpp
Andreas Kling b46ae2bf09 Get rid of Vnode concept.
We already have an abstraction between Process and Inode/CharacterDevice/FIFO
and it's called FileDescriptor. :^)
2019-01-16 12:57:07 +01:00

18 lines
320 B
C++

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