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
|
.\" WORD: current process ID ץID
.\" WORD: AVAILABILITY ѲǽʴĶ
.\" Copyright 1997 Nicol Lichtmaier <nick@debian.org>
.\" Created Wed Jul 2 23:27:34 ART 1997
.\"
.\" 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.
.\"
.\" Added info on availability, aeb, 971207
.\" Added -lutil remark, 030718
.\"
.\" Japanese Version Copyright (c) 1998 Tomoyuki NISHIOKA
.\" all rights reserved.
.\" Translated Sat May 23 18:46:34 JST 1998
.\" by Tomoyuki NISHIOKA <nishioka@a.tsukuba-tech.ac.jp>
.\" Updated Sun Sep 14 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
.\"
.TH UPDWTMP 3 2003-07-18 "GNU" "Linux Programmer's Manual"
.SH ̾
updwtmp, logwtmp \- wtmp ե˥ȥɲä
.SH
.nf
.B #include <utmp.h>
.sp
.BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
.br
.BI "void logwtmp(const char *" line ", const char *" name ", const char *" host );
.fi
.SH
.BR updwtmp ()
ϡutmp ¤
.I ut
wtmp եɲä롣
.PP
.BR logwtmp ()
ϡ
.IR line ", " name ", " host ,
ץID utmp ¤Τꡢ
.BR updwtmp ()
ƤӽФƤι¤Τutmp եɲä롣
.SH ե
.TP
.I /var/log/wtmp
桼ǡ١
.SH
POSIX.1-2001 ˤϤʤ
Solaris, NetBSD ¸ߤ餯¾Υƥˤ⤢
.SH ѲǽʴĶ
glibc2 βǤϤɤδؿѲǽǤ롣
libc5 βǤϤɤȤʤ
.BR logwtmp ()
ϸŤ libbsd ˤä
ǶǤϡ
.BR logwtmp ()
ؿ libutil ˴ޤޤƤ
(äơδؿȤˤϥѥΥޥɥ饤
\fI\-lutil\fP ɲäɬפ)
.SH Ϣ
.BR wtmp (5)
|