]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/updwtmp.3
Start of man-pages-5.01: updating Changes and Changes.old
[thirdparty/man-pages.git] / man3 / updwtmp.3
CommitLineData
e00c3a07 1.\" Copyright 1997 Nicolás Lichtmaier <nick@debian.org>
fea681da
MK
2.\" Created Wed Jul 2 23:27:34 ART 1997
3.\"
1dd72f9c 4.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
fea681da
MK
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.
9.\"
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.
14.\"
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.
19.\"
faede11f
MK
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/>.
6a8d8745 23.\" %%%LICENSE_END
faede11f 24.\"
fea681da
MK
25.\" Added info on availability, aeb, 971207
26.\" Added -lutil remark, 030718
8a1ed66e 27.\" 2008-07-02, mtk, document updwtmpx()
fea681da 28.\"
4b8c67d9 29.TH UPDWTMP 3 2017-09-15 "GNU" "Linux Programmer's Manual"
fea681da
MK
30.SH NAME
31updwtmp, logwtmp \- append an entry to the wtmp file
32.SH SYNOPSIS
33.nf
34.B #include <utmp.h>
68e4db0a 35.PP
fea681da 36.BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
3d54a910
MK
37.BI "void logwtmp(const char *" line ", const char *" name \
38", const char *" host );
fea681da 39.fi
f90f031e 40.PP
5479edd3
MK
41For
42.BR logwtmp (),
43link with \fI\-lutil\fP.
fea681da 44.SH DESCRIPTION
60a90ecd
MK
45.BR updwtmp ()
46appends the utmp structure
fea681da
MK
47.I ut
48to the wtmp file.
49.PP
60a90ecd
MK
50.BR logwtmp ()
51constructs a utmp structure using
fea681da 52.IR line ", " name ", " host ,
357cf3fe 53current time and current process ID.
60a90ecd
MK
54Then it calls
55.BR updwtmp ()