File: login.3

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (134 lines) | stat: -rw-r--r-- 3,541 bytes parent folder | download | duplicates (2)
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
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
.\" USA.
.\"
.\" Derived from text written by Martin Schulze (or taken from glibc.info)
.\" and text written by Paul Thompson - both copyright 2002.
.\"
.\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
.\"         all rights reserved.
.\" Translated Thu Aug 26 06:04:53 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\" Updated & Modified Sat Jan 15 06:38:41 JST 2005 by Yuichi SATO
.\"
.TH LOGIN 3 2004-05-06 "GNU" "Linux Programmer's Manual"
.SH ̾
login, logout \- utmp  wtmp ȥ񤭹
.SH 
.B #include <utmp.h>
.sp
.BI "void login(const struct utmp *" ut );
.sp
.BI "int logout(const char *" ut_line );
.sp
\fI\-lutil\fP ǥ󥯤롣
.SH 
utmp եϸߥƥѤƤ桼Ͽ롣
wtmp եϤ٤ƤΥȥȤϿ롣
.BR utmp (5)
򻲾Ȥ뤳ȡ
.LP
ؿ
.BR login ()
Ϳ줿 \fIstruct utmp\fP
.I ut
 utmp  wtmp եξ˽񤭹ࡣ
.LP
ؿ
.BR logout ()
 utmp եˤ륨ȥ򥯥ꥢ롣
.SS "GNU Ǥξܺ"
Τˤϡ
.BR login ()
ϰ
.I ut
¤ΤȤꡢ(⤷¸ߤʤ) ե
.I ut\->ut_type

.B USER_PROCESS
Ȥͤˤ(⤷¸ߤʤ) ե
.I ut\->ut_pid
ƤӽФץΥץ ID ͤˤ롣
˥ե
.I ut\->ut_line
ͤꤷ褦Ȥ롣
δؿϡɸϡɸϡɸ२顼Ϥ椫
ü (tty) ǤǽΤΤȤꡢ
бѥ̾Ƭ \fI/dev/\fP Τ
Υեɤ˳Ǽơι¤Τ utmp ե˽񤭹ࡣ
ü̾ĤʤϡΥեɤ "???" Ȥơ
ι¤Τ utmp ե˽񤭹ޤʤ
θˤι¤Τ wtmp ե˽񤭹ޤ롣
.LP
.BR logout ()
ؿ utmp ե뤫
.I ut_line
˥ޥå륨ȥõ
쥳ɤĤä硢
.I ut_name

.I ut_host
եɤ򥯥ꥢơ
.I ut_tv
ॹץեɤ򹹿
(⤷¸ߤʤ)
.I ut_type
եɤ
.B DEAD_PROCESS
˹롣
.SH ֤
ȥǡ١˽񤭹Τ硢
.BR logout ()
ؿ 1 ֤
ޤ顼ä硢0 ֤
.SH ե
.TP
.I /var/run/utmp
桼ȥǡ١
.I <paths.h>
ˤ
.B _PATH_UTMP
ꤵƤ롣
.TP
.I /var/log/wtmp
桼ȥե롣
.I <paths.h>
ˤ
.B _PATH_WTMP
ꤵƤ롣
.SH 
POSIX.1-2001 ˤϤʤ
BSD Ϥ¸ߤ롣
.SH 
.I struct utmp
Υ
.I ut_user
ϡBSD Ǥ
.I ut_name
Ȥ̾Ǥդ뤳ȡ
Τ
.I ut_name

.I <utmp.h>
ˤ
.I ut_user
ΥꥢȤƤ롣
.SH Ϣ
.BR getutent (3),
.BR utmp (5)