tty_ioctl.4: wfix

This commit is contained in:
Michael Kerrisk 2008-10-16 17:36:39 +02:00
parent 922a35c0dc
commit bf70773447
1 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ Redirect output that would have gone to
or or
.I /dev/tty0 .I /dev/tty0
to the given tty. to the given tty.
If that was a pseudoterminal master, send it to the slave. If that was a pseudo-terminal master, send it to the slave.
In Linux before version 2.6.10, In Linux before version 2.6.10,
anybody can do this as long as the output was not redirected yet; anybody can do this as long as the output was not redirected yet;
since version 2.6.10, only root (a process with the since version 2.6.10, only root (a process with the
@ -274,7 +274,7 @@ Set the foreground process group ID of this tty.
Get the session ID of the given tty. Get the session ID of the given tty.
This will fail with This will fail with
.B ENOTTY .B ENOTTY
in case the tty is not a master pseudoterminal and not our controlling tty. in case the tty is not a master pseudo-terminal and not our controlling tty.
Strange. Strange.
.SS "Exclusive mode" .SS "Exclusive mode"
.TP .TP
@ -298,7 +298,7 @@ Get the line discipline of the tty.
.TP .TP
.BI "TIOCSETD const int *" argp .BI "TIOCSETD const int *" argp
Set the line discipline of the tty. Set the line discipline of the tty.
.SS "Pseudo-tty ioctls" .SS "Pseudo-terminal ioctls"
.TP .TP
.BI "TIOCPKT const int *" argp .BI "TIOCPKT const int *" argp
Enable (when Enable (when
@ -311,7 +311,7 @@ In packet mode, each subsequent
.BR read (2) .BR read (2)
will return a packet that either contains a single non-zero control byte, will return a packet that either contains a single non-zero control byte,
or has a single byte containing zero (\(aq\0\(aq) followed by data or has a single byte containing zero (\(aq\0\(aq) followed by data
written on the slave side of the pseudoterminal. written on the slave side of the pseudo-terminal.
If the first byte is not If the first byte is not
.B TIOCPKT_DATA .B TIOCPKT_DATA
(0), it is an OR of one (0), it is an OR of one