mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
Add ioctl() and reimplement tcsetpgrp/tcsetpgrp as ioctls.
This commit is contained in:
parent
2529925fe9
commit
c99f8af66d
16 changed files with 94 additions and 45 deletions
|
@ -4,6 +4,8 @@
|
|||
#include "Limits.h"
|
||||
#include "FileDescriptor.h"
|
||||
|
||||
class Process;
|
||||
|
||||
class CharacterDevice {
|
||||
public:
|
||||
virtual ~CharacterDevice();
|
||||
|
@ -20,10 +22,12 @@ public:
|
|||
|
||||
virtual bool isTTY() const { return false; }
|
||||
|
||||
virtual int ioctl(Process&, unsigned request, unsigned arg);
|
||||
|
||||
protected:
|
||||
CharacterDevice(unsigned major, unsigned minor) : m_major(major), m_minor(minor) { }
|
||||
|
||||
private:
|
||||
unsigned m_major { 0 };
|
||||
unsigned m_minor{ 0 };
|
||||
unsigned m_minor { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue