OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / release / man3 / updwtmp.3
1 .\" WORD: current process ID    ¸½¥×¥í¥»¥¹ID
2 .\" WORD: AVAILABILITY          ÍøÍѲÄǽ¤Ê´Ä¶­
3 .\" Copyright 1997 NicoláÔ Lichtmaier <nick@debian.org>
4 .\" Created Wed Jul  2 23:27:34 ART 1997
5 .\"
6 .\" This is free documentation; you can redistribute it and/or
7 .\" modify it under the terms of the GNU General Public License as
8 .\" published by the Free Software Foundation; either version 2 of
9 .\" the License, or (at your option) any later version.
10 .\"
11 .\" The GNU General Public License's references to "object code"
12 .\" and "executables" are to be interpreted as the output of any
13 .\" document formatting or typesetting system, including
14 .\" intermediate and printed output.
15 .\"
16 .\" This manual is distributed in the hope that it will be useful,
17 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
18 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 .\" GNU General Public License for more details.
20 .\"
21 .\" Added info on availability, aeb, 971207
22 .\" Added -lutil remark, 030718
23 .\" 2008-07-02, mtk, document updwtmpx()
24 .\"
25 .\" Japanese Version Copyright (c) 1998 Tomoyuki NISHIOKA
26 .\"         all rights reserved.
27 .\" Translated Sat May 23 18:46:34 JST 1998
28 .\"         by Tomoyuki NISHIOKA <nishioka@a.tsukuba-tech.ac.jp>
29 .\" Updated 2003-09-14 by Kentaro Shirakata <argrath@ub32.org>
30 .\" Updated 2008-07-30 by Kentaro Shirakata <argrath@ub32.org>
31 .\"
32 .TH UPDWTMP 3  2008-07-02 "GNU" "Linux Programmer's Manual"
33 .SH Ì¾Á°
34 updwtmp, logwtmp \- wtmp ¥Õ¥¡¥¤¥ë¤Ë¥¨¥ó¥È¥ê¤òÄɲ乤ë
35 .SH ½ñ¼°
36 .nf
37 .B #include <utmp.h>
38 .sp
39 .BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
40 .br
41 .BI "void logwtmp(const char *" line ", const char *" name \
42 ", const char *" host );
43 .fi
44 .SH ÀâÌÀ
45 .BR updwtmp ()
46 ¤Ï¡¢utmp ¹½Â¤ÂÎ
47 .I ut
48 ¤ò wtmp ¥Õ¥¡¥¤¥ë¤ËÄɲ乤롣
49 .PP
50 .BR logwtmp ()
51 ¤Ï¡¢
52 .IR line ", " name ", " host ,
53 ¸½ºß»þ¹ï¡¢¸½¥×¥í¥»¥¹ID ¤«¤é utmp ¹½Â¤ÂΤòºî¤ê¡¢
54 .BR updwtmp ()
55 ¤ò¸Æ¤Ó½Ð¤·¤Æ¤½¤Î¹½Â¤ÂΤò wtmp ¥Õ¥¡¥¤¥ë¤ËÄɲ乤롣
56 .SH ¥Õ¥¡¥¤¥ë
57 .TP
58 .I /var/log/wtmp
59 ¥æ¡¼¥¶¥í¥°¥¤¥ó¤ÎÍúÎò¥Ç¡¼¥¿¥Ù¡¼¥¹
60 .SH ½àµò
61 POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
62 Solaris, NetBSD ¤Ë¸ºß¤·¡¢¤ª¤½¤é¤¯Â¾¤Î¥·¥¹¥Æ¥à¤Ë¤â¤¢¤ë¤À¤í¤¦¡£
63 .SH ÍøÍѲÄǽ¤Ê´Ä¶­
64 glibc2 ¤Î²¼¤Ç¤Ï¤É¤Á¤é¤Î´Ø¿ô¤âÍøÍѲÄǽ¤Ç¤¢¤ë¡£
65 libc5 ¤Î²¼¤Ç¤Ï¤É¤Á¤é¤â»È¤¨¤Ê¤¤¤¬¡¢
66 .BR logwtmp ()
67 ¤Ï¸Å¤¤ libbsd ¤Ë¤¢¤Ã¤¿¡£
68 ºÇ¶á¤Ç¤Ï¡¢
69 .BR logwtmp ()
70 ´Ø¿ô¤Ï libutil ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë
71 (¤·¤¿¤¬¤Ã¤Æ¡¢¤³¤Î´Ø¿ô¤ò»È¤¦¤¿¤á¤Ë¤Ï¥³¥ó¥Ñ¥¤¥é¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë
72 \fI\-lutil\fP ¤òÄɲ乤ëɬÍפ¬¤¢¤ë)¡£
73 .SH Ãí°Õ
74 ¾¤Î "utmpx" ´Ø¿ô·²
75 .RB ( getutxent (3)
76 »²¾È) ¤È¤Î°ì´ÓÀ­¤Î¤¿¤á¤Ë¡¢glibc (¥Ð¡¼¥¸¥ç¥ó 2.1 °Ê¹ß) ¤Ï°Ê²¼¤Î´Ø¿ô¤ò
77 Ä󶡤·¤Æ¤¤¤ë:
78 .nf
79 .sp
80 .B #include <utmpx.h>
81 .sp
82 .BI "void updwtmpx (const char *" wtmpx_file ", const struct utmpx *" utx );
83 .fi
84 .PP
85 ¤³¤Î´Ø¿ô¤Ï
86 .BR updwtmp ()
87 ¤ÈƱ¤¸ºî¶È¤ò¹Ô¤¦¤¬¡¢ºÇ¸å¤Î°ú¤­¿ô¤È¤·¤Æ
88 .I utmpx
89 ¹½Â¤ÂΤò¼è¤ë¤È¤³¤í¤¬°Û¤Ê¤ë¡£
90 .SH ´ØÏ¢¹àÌÜ
91 .BR getutxent (3),
92 .BR wtmp (5)