OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man4 / tty.4
index 4f9cca4..b1ea7c0 100644 (file)
 .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
 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
@@ -53,12 +58,16 @@ and all processes in the current session lose their controlling tty.
 This
 .BR ioctl (2)
 call works only on file descriptors connected
-to \fI/dev/tty\fP.
+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
@@ -73,3 +82,12 @@ to detach itself.
 .BR ttyS (4),
 .BR agetty (8),
 .BR mingetty (8)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.