mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:57:36 +00:00
Kernel/TTY: Implement TIOCGPTN ioctl for MasterPTY
This ioctl operation will allow userspace to determine the index number of a MasterPTY after opening /dev/ptmx and actually getting an internal file descriptor of MasterPTY.
This commit is contained in:
parent
e508073168
commit
5ffe2f117c
2 changed files with 12 additions and 2 deletions
|
@ -89,6 +89,7 @@ enum IOCtlNumber {
|
|||
TIOCSTI,
|
||||
TIOCNOTTY,
|
||||
TIOCSWINSZ,
|
||||
TIOCGPTN,
|
||||
FB_IOCTL_GET_PROPERTIES,
|
||||
FB_IOCTL_GET_HEAD_PROPERTIES,
|
||||
FB_IOCTL_SET_HEAD_RESOLUTION,
|
||||
|
@ -143,6 +144,7 @@ enum IOCtlNumber {
|
|||
#define TIOCSTI TIOCSTI
|
||||
#define TIOCNOTTY TIOCNOTTY
|
||||
#define TIOCSWINSZ TIOCSWINSZ
|
||||
#define TIOCGPTN TIOCGPTN
|
||||
#define FB_IOCTL_GET_PROPERTIES FB_IOCTL_GET_PROPERTIES
|
||||
#define FB_IOCTL_GET_HEAD_PROPERTIES FB_IOCTL_GET_HEAD_PROPERTIES
|
||||
#define FB_IOCTL_GET_HEAD_EDID FB_IOCTL_GET_HEAD_EDID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue