1 .\" Copyright 1997 Nicolás Lichtmaier <nick@debian.org>
2 .\" Created Wed Jul 2 23:27:34 ART 1997
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
25 .\" Added info on availability, aeb, 971207
26 .\" Added -lutil remark, 030718
27 .\" 2008-07-02, mtk, document updwtmpx()
29 .TH UPDWTMP 3 2008-07-02 "GNU" "Linux Programmer's Manual"
31 updwtmp, logwtmp \- append an entry to the wtmp file
36 .BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
38 .BI "void logwtmp(const char *" line ", const char *" name \
39 ", const char *" host );
43 appends the utmp structure
48 constructs a utmp structure using
49 .IR line ", " name ", " host ,
50 current time and current process ID.
53 to append the structure to the wtmp file.
57 database of past user logins
60 Present on Solaris, NetBSD, and perhaps other systems.
62 Both functions are available under glibc2, but not under libc5.
65 used to occur in the old libbsd.
68 function is included in libutil.
69 (Hence you'll need to add \fI\-lutil\fP
70 to your compiler command line to get it.)
72 For consistency with the other "utmpx" functions (see
74 glibc provides (since version 2.1):
79 .BI "void updwtmpx (const char *" wtmpx_file ", const struct utmpx *" utx );
82 This function performs the same task as
84 but differs in that it takes a
86 structure as its last argument.
91 This page is part of release 3.68 of the Linux
94 A description of the project,
95 information about reporting bugs,
96 and the latest version of this page,
98 \%http://www.kernel.org/doc/man\-pages/.