Imported tab->space correction by redhat
[infodrom/manpages-de] / man4 / tty.4
1 .\" Copyright (c) 1993 Michael Haardt (u31b3hs@pool.informatik.rwth-aachen.de), Fri Apr  2 11:32:09 MET DST 1993
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
21 .\" USA.
22 .\" 
23 .\" Modified Sat Jul 24 17:02:24 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" 
25 .\" Translated Tue Jan 23 01:30:24 1996
26 .\" by Norbert Kümin (norbert.kuemin@lugs.ch)
27 .\" Modified Mon Jun 10 01:45:33 1996 by Martin Schulze (joey@linux.de)
28 .\" 
29 .TH TTY 4 "21. Januar 1992" "Linux" "Gerätedateien"
30 .SH BEZEICHNUNG
31 tty \- Terminal Kontrolle
32 .SH BESCHREIBUNG
33 Die Datei
34 .B /dev/tty
35 ist ein zeichenorientierte Gerätedatei mit der
36 Hauptnummer 5 und der Nebennummer 0, normalerweise besitzt diese Datei den
37 Modus 0666 un gehört root.tty.  Dies ist ein Synonym für das kontrollierende
38 Terminal eines Prozesses, wenn eines existiert.
39 .LP
40 Zusätzlich zu den
41 .BR ioctl() " Anfragen werden von " tty " unterstützt:"
42 .TP
43 .B TIOCNOTTY
44 Entbindet den aktuellen Prozess vom kontrollierenden Terminal und entfernt
45 von der aktuellen Prozessgruppe, ohne es einer neuen Prozessgruppe zuzuordnen
46 (Gruppenprozess-ID wird auf Null gesetzt).  Dieser
47 .B ioctl()
48 Aufruf funktioniert nur, wenn die Ausgabedatei verbunden ist mit
49 .BR /dev/tty ;
50 dies wird benötigt von Dämon-Prozessen, wenn diese von Benutzern an einem
51 Terminal gestartet werden.  Der Prozess versucht
52 .B /dev/tty
53 zu öffnen; wenn es gelingt, entbindet er sich selbst vom Terminal mit
54 .BR TIOCNOTTY ,
55 denn falls das Öffnen fehlschlägt, arbeitet der Prozess nicht mit einem
56 Terminal zusammen und braucht sich selbst so nicht zu entbinden.
57 .SH DATEIEN
58 .I /dev/tty
59 .SH "SIEHE AUCH"
60 .BR mknod (1),
61 .BR chown (1),
62 .BR getty (1),
63 .BR termios (2),
64 .BR console (4),
65 .BR ttys (4).
66