]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/updwtmp.3
man*/: ffix (un-bracket tables)
[thirdparty/man-pages.git] / man3 / updwtmp.3
CommitLineData
a1eaacb1 1'\" t
e00c3a07 2.\" Copyright 1997 Nicolás Lichtmaier <nick@debian.org>
fea681da
MK
3.\" Created Wed Jul 2 23:27:34 ART 1997
4.\"
e4a74ca8 5.\" SPDX-License-Identifier: GPL-2.0-or-later
faede11f 6.\"
fea681da
MK
7.\" Added info on availability, aeb, 971207
8.\" Added -lutil remark, 030718
8a1ed66e 9.\" 2008-07-02, mtk, document updwtmpx()
fea681da 10.\"
4c1c5274 11.TH updwtmp 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
12.SH NAME
13updwtmp, logwtmp \- append an entry to the wtmp file
f0f144b2
AC
14.SH LIBRARY
15System utilities library
8fc3b2cf 16.RI ( libutil ", " \-lutil )
fea681da
MK
17.SH SYNOPSIS
18.nf
19.B #include <utmp.h>
68e4db0a 20.PP
fea681da 21.BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
3d54a910
MK
22.BI "void logwtmp(const char *" line ", const char *" name \
23", const char *" host );
fea681da
MK
24.fi
25.SH DESCRIPTION
60a90ecd
MK
26.BR updwtmp ()
27appends the utmp structure
fea681da
MK
28.I ut
29to the wtmp file.
30.PP
60a90ecd
MK
31.BR logwtmp ()
32constructs a utmp structure using
fea681da 33.IR line ", " name ", " host ,
3d81c05a 34current time, and current process ID.
60a90ecd
MK
35Then it calls
36.BR updwtmp ()