mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 14:38:13 +00:00

Implemented some syscalls: dup(), dup2(), getdtablesize(). FileHandle is now a retainable, since that's needed for dup()'ed fd's. I didn't really test any of this beyond a basic smoke check.
10 lines
190 B
C++
10 lines
190 B
C++
#include "CharacterDevice.h"
|
|
|
|
CharacterDevice::~CharacterDevice()
|
|
{
|
|
}
|
|
|
|
RetainPtr<FileHandle> CharacterDevice::open(int options)
|
|
{
|
|
return VirtualFileSystem::the().open(*this, options);
|
|
}
|