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
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.
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.
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.
21 .\" Added info on availability, aeb, 971207
22 .\" Added -lutil remark, 030718
23 .\" 2008-07-02, mtk, document updwtmpx()
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>
32 .TH UPDWTMP 3 2008-07-02 "GNU" "Linux Programmer's Manual"
34 updwtmp, logwtmp \- wtmp ファイルにエントリを追加する
39 .BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
41 .BI "void logwtmp(const char *" line ", const char *" name \
42 ", const char *" host );
46 .\"O appends the utmp structure
48 .\"O to the wtmp file.
55 .\"O constructs a utmp structure using
56 .\"O .IR line ", " name ", " host ,
57 .\"O current time and current process ID.
60 .\"O to append the structure to the wtmp file.
63 .IR line ", " name ", " host ,
64 現在時刻、現プロセスID から utmp 構造体を作り、
66 を呼び出してその構造体を wtmp ファイルに追加する。
71 .\"O .SH "CONFORMING TO"
73 .\"O Not in POSIX.1-2001.
74 .\"O Present on Solaris, NetBSD, and perhaps other systems.
76 Solaris, NetBSD に存在し、おそらく他のシステムにもあるだろう。
79 .\"O Both functions are available under glibc2, but not under libc5.
80 glibc2 の下ではどちらの関数も利用可能である。
83 .\"O used to occur in the old libbsd.
86 .\"O function is included in libutil.
87 .\"O (Hence you'll need to add \fI\-lutil\fP
88 .\"O to your compiler commandline to get it.)
95 (したがって、この関数を使うためにはコンパイラのコマンドラインに
96 \fI\-lutil\fP を追加する必要がある)。
99 .\"O For consistency with the other "utmpx" functions (see
100 .\"O .BR getutxent (3)),
101 .\"O glibc provides (since version 2.1):
104 参照) との一貫性のために、glibc (バージョン 2.1 以降) は以下の関数を
108 .B #include <utmpx.h>
110 .BI "void updwtmpx (const char *" wtmpx_file ", const struct utmpx *" utx );
113 .\"O This function performs the same task as
115 .\"O but differs in that it takes a
117 .\"O structure as its last argument.