File: ttyslot.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (159 lines) | stat: -rw-r--r-- 4,958 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
.\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" This replaces an earlier man page written by Walter Harms
.\" <walter.harms@informatik.uni-oldenburg.de>.
.\"
.\" Japanese Version Copyright (c) 2004 Yuichi SATO
.\"         all rights reserved.
.\" Translated Wed Sep  8 01:25:01 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH TTYSLOT 3 2007-11-26 "GNU" "Linux Programmer's Manual"
.SH ̾
ttyslot \- ȥ桼üΥåȤե뤫õ
.SH 
.BR "#include <unistd.h>"       "    /* BSD ϤΥƥ Linux ξ  */"
.br
.BR "#include <stdlib.h>"       "    /* System V ϤΥƥξ */"
.sp
.B "int ttyslot(void);"
.sp
.in -4n
glibc εǽޥ׷
.RB ( feature_test_macros (7)
):
.in
.sp
.ad l
.BR ttyslot ():
_BSD_SOURCE || (_XOPEN_SOURCE_EXTENDED && !\ _XOPEN_SOURCE\ >=\ 500)
.ad b
.SH 
쥬ʴؿ
.BR ttyslot ()
ϡե˽񤫤Ƥ륫ȥ桼ΥȥΥǥå֤
.LP
֤ɤΥեʤΤפȤ䤬
Ǥϡޤǽˤˤ򸫤Ƥߤ褦
.SS Τ
Unix V6 Ǥ
.I /etc/ttys
ե뤬ȤƤ
.BR init (8)
ץϡΥեɤ߹ߡ
üԤDz򤹤٤õ
ƹԤ 3 ʸ鹽Ƥ롣
1 ʸܤ \(aq0\(aq ޤ \(aq1\(aq Ǥꡢ
\(aq0\(aq ϡ̵뤹פȤɽ
2 ʸܤü򼨤: \(aq8\(aq  "/dev/tty8" ɽ
3 ʸܤ
.BR getty (8)
ؤΰǤꡢ(³) ߤ®٤νɽ
(\(aq\-\(aq  110 ܡ³λԤ򳫻Ϥ뤳Ȥɽ)
äưŪʹԤ "18\-" Ȥʤ롣
Ԥǥϥ󥰤ϡ\(aq1\(aq  \(aq0\(aq ѹ
init ˥ʥꡢ\(aq0\(aq  \(aq1\(aq ٤ѹ
init ˺٥ʥ뤳ȤDz褹롣
.LP
Unix V7 ǤϥեޥåȤѹ줿:
2 ʸܤ
.BR getty (8)
ΰȤʤꡢ(³) ߤ®٤νɽ褦ˤʤ
(\(aq0\(aq  300-1200-150-110 򷫤֤Ȥɽ
\(aq4\(aq ϥ饤󥳥󥽡 DECwriter ɽ)
ԤλĤ (ʸ) ü̾Ȥʤä
äơŪʹԤ "14console" Ȥʤ롣
.LP
ԤΥƥν񼰤ϡǤ롣
System V ϤΥƥǤϡ
.I /etc/inittab
.SS "Τ (2)"
ߥ󤷤ƤͤꥹȤե
.I /etc/utmp

.BR login (1)
ˤäƴƤ롣
Υեϸꤵ줿ǤꡢեŬڤʥǥåϡ
.BR login (1)
ˤäƷꤵ롣
κݤ
.BR ttyslot ()
ƤФơ
.I /etc/ttys
ˤֹ򸫤Ĥ (ֹ 1 )
.SS "ttyslot ΰ̣"
äơؿ
.BR ttyslot ()
ϡե
.I /etc/ttys
ˤƤӽФΥץüΥǥå֤

.I /etc/utmp
ˤ륫ȥ桼ΥȥΥǥå (̾) 
BSD ˤ̤
.I /etc/ttys
ե뤬뤬System V ϤΥƥˤϤʤΤǡ
Υե򻲾Ȥ뤳ȤϤǤʤ
äơΤ褦ʥƥǤ
.RB  ttyslot ()
ϥȥ桼Υ桼ȥǡ١ˤ륤ǥå֤
ȥɥȤ˽񤫤Ƥ롣
.SH ֤
硢δؿϥåֹ֤
顼ξ
(㤨Сեǥץ 0, 1, 2 β
ǡ١ˤü˴ϢŤƤʤ)
Unix V6, V7, BSD ϤΥƥ 0 ֤
System V ϤΥƥ -1 ֤
.SH 
SUSv1SUSv2 Ǥϡֲ̾ (LEGACY)פȰդƤ롣
POSIX.1-2001 Ǻ줿
SUSv2 Ǥϥ顼 \-1 ֤Ȥ׵ᤵƤ롣
.SH 
utmp ե͡ʥƥ
.IR /etc/utmp ,
.IR /var/adm/utmp ,
.I /var/run/utmp
Τ褦ˤʾˤ롣
.LP
δؿ glibc2 ˤǤϡե
.B _PATH_TTYS
ɤ߹ࡣ

.I <ttyent.h>
ˤ "/etc/ttys" Ƥ롣
顼ξ硢0 ֤
Linux ƥˤ̾ "/etc/ttys" ʤΤǡ 0 ֤
.LP
Minix ˤ
.IR fttyslot ( fd )
⤢롣
.\" .SH 
.\" .BR ttyslot ()
.\"  Unix V7 о줷
.SH Ϣ
.BR getttyent (3),
.BR ttyname (3),
.BR utmp (5)