mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
We already have an abstraction between Process and Inode/CharacterDevice/FIFO and it's called FileDescriptor. :^)
18 lines
320 B
C++
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;
|
|
}
|