OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / 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 .TH TTY 4 2003\-04\-07 Linux "Linux Programmer's Manual"
34 .SH 名前
35 tty \- 制御端末
36 .SH 説明
37 \fI/dev/tty\fP ファイルは、メジャー番号 5、マイナー番号 0 のキャラクター デバイスである。通常、そのモードは 0666、オーナ.グループは
38 root.tty となっている。 プロセスの制御端末が存在する場合、このデバイスファイルはプロセスの制御端末と 同じものを表す。
39 .LP
40 \fBtty\fP が参照しているデバイスがサポートしている \fBioctl\fP(2)  要求に 加えて、 \fBioctl\fP(2)  要求
41 \fBTIOCNOTTY\fP がサポートされている。
42 .SS TIOCNOTTY
43 呼び出し元のプロセスをその制御端末から切り離す。
44 .sp
45 そのプロセスがセッション・リーダー (session leader) の場合、 シグナル \fBSIGHUP\fP と \fBSIGCONT\fP
46 がフォアグラウンド・プロセス・グループに送られ、 カレント・セッションに属す全てのプロセスについて各々の制御端末が切り離される。
47 .sp
48 この \fBioctl\fP(2)  呼び出しは \fI/dev/tty\fP に結びつけられたファイル・
49 ディスクリプタにのみ作用する。この機能は、ユーザによって端末から 起動されたデーモンプロセスにより使用される。 そのプロセスは \fI/dev/tty\fP
50 をオープンしようと試みる。 オープンに成功すると、そのプロセスは \fBTIOCNOTTY\fP を使って
51 自分自身を端末から切り離す。オープンに失敗した場合、そのプロセスが 端末に結びつけられていないのは明らかであり、自身を端末から切り離す 必要はない。
52 .SH ファイル
53 /dev/tty
54 .SH 関連項目
55 \fBchown\fP(1), \fBmknod\fP(1), \fBioctl\fP(2), \fBtermios\fP(3), \fBconsole\fP(4),
56 \fBtty_ioctl\fP(4), \fBttyS\fP(4), \fBagetty\fP(8), \fBmingetty\fP(8)
57 .SH この文書について
58 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
59 である。プロジェクトの説明とバグ報告に関する情報は
60 http://www.kernel.org/doc/man\-pages/ に書かれている。