OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / login.3
1 .\" This is free documentation; you can redistribute it and/or
2 .\" modify it under the terms of the GNU General Public License as
3 .\" published by the Free Software Foundation; either version 2 of
4 .\" the License, or (at your option) any later version.
5 .\"
6 .\" The GNU General Public License's references to "object code"
7 .\" and "executables" are to be interpreted as the output of any
8 .\" document formatting or typesetting system, including
9 .\" intermediate and printed output.
10 .\"
11 .\" This manual is distributed in the hope that it will be useful,
12 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
13 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 .\" GNU General Public License for more details.
15 .\"
16 .\" You should have received a copy of the GNU General Public
17 .\" License along with this manual; if not, write to the Free
18 .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
19 .\" USA.
20 .\"
21 .\" Derived from text written by Martin Schulze (or taken from glibc.info)
22 .\" and text written by Paul Thompson - both copyright 2002.
23 .\"
24 .\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
25 .\"         all rights reserved.
26 .\" Translated Thu Aug 26 06:04:53 JST 2004
27 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
28 .\" Updated & Modified Sat Jan 15 06:38:41 JST 2005 by Yuichi SATO
29 .\"
30 .TH LOGIN 3 2004-05-06 "GNU" "Linux Programmer's Manual"
31 .SH Ì¾Á°
32 login, logout \- utmp ¤È wtmp ¥¨¥ó¥È¥ê¤ò½ñ¤­¹þ¤à
33 .SH ½ñ¼°
34 .B #include <utmp.h>
35 .sp
36 .BI "void login(const struct utmp *" ut );
37 .sp
38 .BI "int logout(const char *" ut_line );
39 .sp
40 \fI\-lutil\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
41 .SH ÀâÌÀ
42 utmp ¥Õ¥¡¥¤¥ë¤Ï¸½ºß¥·¥¹¥Æ¥à¤ò»ÈÍѤ·¤Æ¤¤¤ë¥æ¡¼¥¶¤òµ­Ï¿¤¹¤ë¡£
43 wtmp ¥Õ¥¡¥¤¥ë¤Ï¤¹¤Ù¤Æ¤Î¥í¥°¥¤¥ó¤È¥í¥°¥¢¥¦¥È¤òµ­Ï¿¤¹¤ë¡£
44 .BR utmp (5)
45 ¤ò»²¾È¤¹¤ë¤³¤È¡£
46 .LP
47 ´Ø¿ô
48 .BR login ()
49 ¤ÏÍ¿¤¨¤é¤ì¤¿ \fIstruct utmp\fP
50 .I ut
51 ¤ò utmp ¤È wtmp ¥Õ¥¡¥¤¥ë¤ÎξÊý¤Ë½ñ¤­¹þ¤à¡£
52 .LP
53 ´Ø¿ô
54 .BR logout ()
55 ¤Ï utmp ¥Õ¥¡¥¤¥ë¤Ë¤¢¤ë¥¨¥ó¥È¥ê¤ò¥¯¥ê¥¢¤¹¤ë¡£
56 .SS "GNU ÈǤξܺÙ"
57 ¤è¤êÀµ³Î¤Ë¤Ï¡¢
58 .BR login ()
59 ¤Ï°ú¤­¿ô
60 .I ut
61 ¹½Â¤ÂΤò¤È¤ê¡¢(¤â¤·Â¸ºß¤¹¤ë¤Ê¤é¤Ð) ¥Õ¥£¡¼¥ë¥É
62 .I ut\->ut_type
63 ¤ò
64 .B USER_PROCESS
65 ¤È¤¤¤¦Ãͤˤ·¡¢(¤â¤·Â¸ºß¤¹¤ë¤Ê¤é¤Ð) ¥Õ¥£¡¼¥ë¥É
66 .I ut\->ut_pid
67 ¤ò¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î¥×¥í¥»¥¹ ID ¤ÎÃͤˤ¹¤ë¡£
68 ¼¡¤Ë¥Õ¥£¡¼¥ë¥É
69 .I ut\->ut_line
70 ¤ÎÃͤòÀßÄꤷ¤è¤¦¤È¤¹¤ë¡£
71 ¤³¤Î´Ø¿ô¤Ï¡¢É¸½àÆþÎÏ¡¦É¸½à½ÐÎÏ¡¦É¸½à¥¨¥é¡¼½ÐÎϤÎÃ椫¤é
72 üËö (tty) ¤Ç¤¢¤ëºÇ½é¤Î¤â¤Î¤ò¤È¤ê¡¢
73 Âбþ¤¹¤ë¥Ñ¥¹Ì¾¤«¤éÀèƬ¤Î \fI/dev/\fP ¤ò°ú¤¤¤¿¤â¤Î¤ò
74 ¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ë³ÊǼ¤·¤Æ¡¢¤³¤Î¹½Â¤ÂΤò utmp ¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤à¡£
75 °ìÊý¡¢Ã¼Ëö̾¤¬¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ï¡¢¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ï "???" ¤È¤µ¤ì¤Æ¡¢
76 ¤³¤Î¹½Â¤ÂΤϠutmp ¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤Þ¤ì¤Ê¤¤¡£
77 ¤½¤Î¸å¤Ë¤³¤Î¹½Â¤ÂΤϠwtmp ¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤Þ¤ì¤ë¡£
78 .LP
79 .BR logout ()
80 ´Ø¿ô¤Ï utmp ¥Õ¥¡¥¤¥ë¤«¤é
81 .I ut_line
82 °ú¤­¿ô¤Ë¥Þ¥Ã¥Á¤¹¤ë¥¨¥ó¥È¥ê¤òõ¤¹¡£
83 ¥ì¥³¡¼¥É¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢
84 .I ut_name
85 ¤È
86 .I ut_host
87 ¥Õ¥£¡¼¥ë¥É¤ò¥¯¥ê¥¢¤·¤Æ¡¢
88 .I ut_tv
89 ¥¿¥¤¥à¥¹¥¿¥ó¥×¥Õ¥£¡¼¥ë¥É¤ò¹¹¿·¤·¡¢
90 (¤â¤·Â¸ºß¤¹¤ë¤Ê¤é¤Ð)
91 .I ut_type
92 ¥Õ¥£¡¼¥ë¥É¤ò
93 .B DEAD_PROCESS
94 ¤Ë¹¹¿·¤¹¤ë¡£
95 .SH ÊÖ¤êÃÍ
96 ¥¨¥ó¥È¥ê¤ò¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë½ñ¤­¹þ¤à¤Î¤ËÀ®¸ù¤·¤¿¾ì¹ç¡¢
97 .BR logout ()
98 ´Ø¿ô¤Ï 1 ¤òÊÖ¤¹¡£
99 ¤Þ¤¿¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¾ì¹ç¡¢0 ¤òÊÖ¤¹¡£
100 .SH ¥Õ¥¡¥¤¥ë
101 .TP
102 .I /var/run/utmp
103 ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¥Ç¡¼¥¿¥Ù¡¼¥¹¡£
104 .I <paths.h>
105 ¤Ë¤ª¤±¤ë
106 .B _PATH_UTMP
107 ¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ë¡£
108 .TP
109 .I /var/log/wtmp
110 ¥æ¡¼¥¶¥¢¥«¥¦¥ó¥È¥í¥°¥Õ¥¡¥¤¥ë¡£
111 .I <paths.h>
112 ¤Ë¤ª¤±¤ë
113 .B _PATH_WTMP
114 ¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ë¡£
115 .SH ½àµò
116 POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
117 BSD ·Ï¤Ë¸ºß¤¹¤ë¡£
118 .SH Ãí°Õ
119 .I struct utmp
120 ¤Î¥á¥ó¥Ð
121 .I ut_user
122 ¤Ï¡¢BSD ¤Ç¤Ï
123 .I ut_name
124 ¤È¤¤¤¦Ì¾Á°¤Ç¤¢¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
125 ¤½¤Î¤¿¤á
126 .I ut_name
127 ¤Ï
128 .I <utmp.h>
129 ¤Ë¤ª¤¤¤Æ
130 .I ut_user
131 ¤Î¥¨¥¤¥ê¥¢¥¹¤È¤·¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
132 .SH ´ØÏ¢¹àÌÜ
133 .BR getutent (3),
134 .BR utmp (5)