diff options
author | Cyrill Gorcunov <gorcunov@openvz.org> | 2012-10-24 15:43:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-25 15:07:18 -0400 |
commit | c6298038bcfc20710430a4ad069bb1f3f069997c (patch) | |
tree | 0a9a299b22bd1b14075c8df54ac47021dc5d66b6 /fs/compat_ioctl.c | |
parent | 06026d911c31dfa602e14e635a3489b8d67cc786 (diff) |
tty, ioctls -- Add new ioctl definitions for tty flags fetching
This patch defines new ioctl codes TIOCGPKT, TIOCGPTLCK,
TIOCGEXCL for fetching pty's packet mode and locking state,
and exclusive mode of tty.
[ No real handlers for the codes though, this will be
addressed in another patch for easier review and
bisectability ]
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
CC: Alan Cox <alan@lxorguk.ukuu.org.uk>
CC: "H. Peter Anvin" <hpa@zytor.com>
CC: Pavel Emelyanov <xemul@parallels.com>
CC: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/compat_ioctl.c')
-rw-r--r-- | fs/compat_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index f5054025f9da..89cf6014a967 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c | |||
@@ -842,6 +842,9 @@ COMPATIBLE_IOCTL(TIOCGDEV) | |||
842 | COMPATIBLE_IOCTL(TIOCCBRK) | 842 | COMPATIBLE_IOCTL(TIOCCBRK) |
843 | COMPATIBLE_IOCTL(TIOCGSID) | 843 | COMPATIBLE_IOCTL(TIOCGSID) |
844 | COMPATIBLE_IOCTL(TIOCGICOUNT) | 844 | COMPATIBLE_IOCTL(TIOCGICOUNT) |
845 | COMPATIBLE_IOCTL(TIOCGPKT) | ||
846 | COMPATIBLE_IOCTL(TIOCGPTLCK) | ||
847 | COMPATIBLE_IOCTL(TIOCGEXCL) | ||
845 | /* Little t */ | 848 | /* Little t */ |
846 | COMPATIBLE_IOCTL(TIOCGETD) | 849 | COMPATIBLE_IOCTL(TIOCGETD) |
847 | COMPATIBLE_IOCTL(TIOCSETD) | 850 | COMPATIBLE_IOCTL(TIOCSETD) |