mirror of https://github.com/mkerrisk/man-pages
Document updwtmpx(3).
This commit is contained in:
parent
155a5e73d9
commit
7a950f85c1
|
@ -19,7 +19,7 @@
|
|||
.\" Added info on availability, aeb, 971207
|
||||
.\" Added -lutil remark, 030718
|
||||
.\"
|
||||
.TH UPDWTMP 3 2003-07-18 "GNU" "Linux Programmer's Manual"
|
||||
.TH UPDWTMP 3 2008-07-02 "GNU" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
updwtmp, logwtmp \- append an entry to the wtmp file
|
||||
.SH SYNOPSIS
|
||||
|
@ -60,5 +60,22 @@ These days, the
|
|||
function is included in libutil.
|
||||
(Hence you'll need to add \fI\-lutil\fP
|
||||
to your compiler command line to get it.)
|
||||
.SH NOTES
|
||||
For consistency with the other "utmpx" functions (see
|
||||
.BR getutxent (3)),
|
||||
glibc provides (since version 2.1):
|
||||
.nf
|
||||
.sp
|
||||
.B #include <utmpx.h>
|
||||
.sp
|
||||
.BI "void updwtmpx (const char *" wtmpx_file ", const struct utmpx *" utx );
|
||||
.fi
|
||||
.PP
|
||||
This function performs the same task as
|
||||
.BR updwtmp (),
|
||||
but differs in that it takes a
|
||||
.I utmpx
|
||||
structure as its last argument.
|
||||
.SH "SEE ALSO"
|
||||
.BR getutxent (3),
|
||||
.BR wtmp (5)
|
||||
|
|
Loading…
Reference in New Issue