OSDN Git Service

f04da4c9d994a564ce60bfd36498bb48263ff64b
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man4 / tty.4
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\"     Fri Apr  2 11:32:09 MET DST 1993
3 .\"
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
26 .\" Modified 2003-04-07 by Michael Kerrisk
27 .\"
28 .\"*******************************************************************
29 .\"
30 .\" This file was generated with po4a. Translate the source file.
31 .\"
32 .\"*******************************************************************
33 .\"
34 .\" Japanese Version Copyright (c) 1996,1997,1998 ISHIKAWA Mutsumi
35 .\"         all rights reserved.
36 .\" Translated Tue Feb 6 16:57:03 JST 1997
37 .\"         by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
38 .\" Modified Thu Feb  5 17:28:31 JST 1998
39 .\"         by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
40 .\" Updated Fri Aug 16 00:04:53 JST 2002
41 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
42 .\"
43 .TH TTY 4 2019\-03\-06 Linux "Linux Programmer's Manual"
44 .SH 名前
45 tty \- 制御端末
46 .SH 説明
47 The file \fI/dev/tty\fP is a character file with major number 5 and minor
48 number 0, usually with mode 0666 and ownership root:tty.  It is a synonym
49 for the controlling terminal of a process, if any.
50 .PP
51 \fBtty\fP が参照しているデバイスがサポートしている \fBioctl\fP(2)  要求に 加えて、 \fBioctl\fP(2)  要求
52 \fBTIOCNOTTY\fP がサポートされている。
53 .SS TIOCNOTTY
54 呼び出し元のプロセスをその制御端末から切り離す。
55 .PP
56 そのプロセスがセッションリーダー (session leader) の場合、 シグナル \fBSIGHUP\fP と \fBSIGCONT\fP
57 がフォアグラウンドプロセスグループに送られ、 カレントセッションに属す全てのプロセスについて各々の制御端末が切り離される。
58 .PP
59 この \fBioctl\fP(2)  呼び出しは \fI/dev/tty\fP に結びつけられたファイル
60 ディスクリプターにのみ作用する。この機能は、ユーザーによって端末から 起動されたデーモンプロセスにより使用される。 そのプロセスは
61 \fI/dev/tty\fP をオープンしようと試みる。 オープンに成功すると、そのプロセスは \fBTIOCNOTTY\fP を使って
62 自分自身を端末から切り離す。オープンに失敗した場合、そのプロセスが 端末に結びつけられていないのは明らかであり、自身を端末から切り離す 必要はない。
63 .SH ファイル
64 \fI/dev/tty\fP
65 .SH 関連項目
66 \fBchown\fP(1), \fBmknod\fP(1), \fBioctl\fP(2), \fBioctl_console\fP(2), \fBioctl_tty\fP(2),
67 \fBtermios\fP(3), \fBttyS\fP(4), \fBvcs\fP(4), \fBpty\fP(7), \fBagetty\fP(8),
68 \fBmingetty\fP(8)
69 .SH この文書について
70 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
71 \%https://www.kernel.org/doc/man\-pages/ に書かれている。