diff options
author | Liav A <liavalb@gmail.com> | 2022-02-15 21:31:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-22 20:26:05 +0100 |
commit | 5ffe2f117c668ce011ff08635b4eba52ccacb083 (patch) | |
tree | 2cad9ad5a7ba538c26a6e722fdfaf2d892137b69 /Userland/Libraries/LibC/sys | |
parent | e508073168ef8cf1dc0e0763ee92adfe64b9cb8d (diff) | |
download | serenity-5ffe2f117c668ce011ff08635b4eba52ccacb083.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibC/sys')
-rw-r--r-- | Userland/Libraries/LibC/sys/ioctl_numbers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/ioctl_numbers.h b/Userland/Libraries/LibC/sys/ioctl_numbers.h index 0c1448a9d9..02920b37df 100644 --- a/Userland/Libraries/LibC/sys/ioctl_numbers.h +++ b/Userland/Libraries/LibC/sys/ioctl_numbers.h @@ -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 |