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 2014-08-19 "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 );
44 link with \fI\-lutil\fP.
47 appends the utmp structure
52 constructs a utmp structure using
53 .IR line ", " name ", " host ,
54 current time and current process ID.
57 to append the structure to the wtmp file.
61 database of past user logins
64 Present on Solaris, NetBSD, and perhaps other systems.
66 For consistency with the other "utmpx" functions (see
68 glibc provides (since version 2.1):
73 .BI "void updwtmpx (const char *" wtmpx_file ", const struct utmpx *" utx );
76 This function performs the same task as
78 but differs in that it takes a
80 structure as its last argument.