]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man4/tty.4
veth.4: ffix
[thirdparty/man-pages.git] / man4 / tty.4
index 0653415321ee32e405d77f90b3c17084df078b0d..431d0c50152813bb017bbe1827e33fc8363efa44 100644 (file)
 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
 .\" Modified 2003-04-07 by Michael Kerrisk
 .\"
-.TH TTY 4 2003-04-07 "Linux" "Linux Programmer's Manual"
+.TH TTY 4 2017-05-03 "Linux" "Linux Programmer's Manual"
 .SH NAME
 tty \- controlling terminal
 .SH DESCRIPTION
-The file \fI/dev/tty\fP is a character file with major number 5 and
+The file
+.I /dev/tty
+is a character file with major number 5 and
 minor number 0, usually of mode 0666 and owner.group root.tty.
 It is a synonym for the controlling terminal of a process, if any.
-.LP
+.PP
 In addition to the
 .BR ioctl (2)
 requests supported by the device that
-\fBtty\fP refers to, the
+.B tty
+refers to, the
 .BR ioctl (2)
-request \fBTIOCNOTTY\fP is supported.
+request
+.B TIOCNOTTY
+is supported.
 .SS TIOCNOTTY
 Detach the calling process from its controlling terminal.
-.sp
+.PP
 If the process is the session leader,
 then
 .B SIGHUP
@@ -49,16 +54,20 @@ and
 .B SIGCONT
 signals are sent to the foreground process group
 and all processes in the current session lose their controlling tty.
-.sp
+.PP
 This
 .BR ioctl (2)
-call only works on file descriptors connected
-to \fI/dev/tty\fP.
+call works only on file descriptors connected
+to
+.IR /dev/tty .
 It is used by daemon processes when they are invoked
 by a user at a terminal.
-The process attempts to open \fI/dev/tty\fP.
+The process attempts to open
+.IR /dev/tty .
 If the open succeeds, it
-detaches itself from the terminal by using \fBTIOCNOTTY\fP, while if the
+detaches itself from the terminal by using
+.BR TIOCNOTTY ,
+while if the
 open fails, it is obviously not attached to a terminal and does not need
 to detach itself.
 .SH FILES
@@ -67,9 +76,9 @@ to detach itself.
 .BR chown (1),
 .BR mknod (1),
 .BR ioctl (2),
+.BR ioctl_console (2),
+.BR ioctl_tty (2),
 .BR termios (3),
-.BR console (4),
-.BR tty_ioctl (4),
 .BR ttyS (4),
 .BR agetty (8),
 .BR mingetty (8)