summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-01-08 11:52:15 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-01-08 11:52:15 +0000
commit6d61c2b2fec095e795e7adb2f2e69b0ad0e992ba (patch)
tree0560ba8dc111de22bdfb12889da95d9ca345d0b6 /share
parent7992f809e9185a54690683e07e421bd9dd5d9ca0 (diff)
Translate the TIOCSBRK & TIOCCBRK ioctl(2)s issued on a pty(4) slave to
corresponding user mode ioctls. If the master part of the pseudo terminal previously enabled TIOCUCNTL, it will now receive the TIOCUCNTL_{S,C}BRK commands. This allows to send BREAKS commands over a pty(4) independently of the serial terminal emulator used. Guidance and ok nicm@, ok ccardenas@, looks ok to deraadt@
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/pty.416
1 files changed, 14 insertions, 2 deletions
diff --git a/share/man/man4/pty.4 b/share/man/man4/pty.4
index 737b9cbf36c..ca8e9d8c851 100644
--- a/share/man/man4/pty.4
+++ b/share/man/man4/pty.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pty.4,v 1.23 2016/06/30 15:59:30 tedu Exp $
+.\" $OpenBSD: pty.4,v 1.24 2018/01/08 11:52:14 mpi Exp $
.\" $NetBSD: pty.4,v 1.4 1998/03/21 03:14:30 fair Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)pty.4 8.2 (Berkeley) 11/30/93
.\"
-.Dd $Mdocdate: June 30 2016 $
+.Dd $Mdocdate: January 8 2018 $
.Dt PTY 4
.Os
.Sh NAME
@@ -204,6 +204,18 @@ The
.Dv UIOCCMD Ns (0)
is a no-op that may be used to probe for
the existence of this facility.
+.Pp
+While this mode is in use, any of the
+.Dv TIOCSBRK
+and
+.Dv TIOCCBRK
+ioctl requests issued on the slave part of the pseudo terminal will be
+translated to a
+.Dv TIOCUCNTL_SBRK
+or
+.Dv TIOCUCNTL_CBRK
+user command on the master side.
+.Pp
As with
.Dv TIOCPKT
mode, command operations may be detected with a