File: getttyent.3

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (75 lines) | stat: -rw-r--r-- 1,926 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
.\"  Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
.\"  Distributed under GPL
.\"  
.\" Japanese Version Copyright (c) 2004 Yuichi SATO
.\"         all rights reserved.
.\" Translated Fri Aug 20 03:27:22 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH GETTTYENT 3 2002-07-18  "glibc"
.SH ̾
getttyent, getttynam, setttyent, endttyent - ttys եΥȥ
.SH 
.sp
.B "#include <ttyent.h>"
.sp
.B "struct ttyent *getttyent(void);"
.sp
.BI "struct ttyent *getttynam(const char *" name );
.sp
.B "int setttyent(void);"
.sp
.B "int endttyent(void);"
.SH 
δؿϥե
.B _PATH_TTYS
(㤨
.IR /etc/ttys )
ؤΥ󥿥ե󶡤롣

ؿ
.BR setttyent ()
ϥե򥪡ץ󤹤롣
ޤ˥ץ󤵤Ƥϡ᤹

ؿ
.BR  endttyent ()
ϥե򥯥롣

ؿ
.BR getttynam ()
ϻꤵ줿ü̾ˤĤƥե򸡺롣
δؿ (ʲƤ) struct ttyent ؤΥݥ󥿤֤

ؿ
.BR getttyent ()
 (⤷ɬפǤ) ե _PATH_TTYS 򥪡ץ󤷡
ǽΥȥ֤
ե뤬˥ץ󤵤ƤϡΥȥ֤

.SS "ttyent ¤"
.nf
struct ttyent {
        char    *ty_name;       /* üǥХ̾ */
        char    *ty_getty;      /* ¹Ԥ륳ޥɡ̾ getty */
        char    *ty_type;       /* termcap Τü */
        int     ty_status;      /* ֥ե饰 */
        char    *ty_window;     /* ɥޥ͡ư륳ޥ */
        char    *ty_comment;    /* ȥե */
};
.fi

.I ty_status
ϰʲΤ줫ͤȤ뤳ȤǤ롣
.br
.nf
#define TTY_ON       0x01   /* ͭˤ (ty_getty ץ򳫻Ϥ) */
#define TTY_SECURE   0x02   /* 桼 ID 0 ǤΥĤ */
.fi
.SH 
Linux Ǥϡե
.I /etc/ttys
ȾؿϻȤƤʤ
.SH Ϣ
.BR ttyname (3),
.BR ttyslot (3)