mirror of https://github.com/mkerrisk/man-pages
updwtmp.3: Replace AVAILABILITY section with note to link logwtmp() using -lutil
Linux libc details are no longer needed these days. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0fbb147d10
commit
5479edd39c
|
@ -38,6 +38,10 @@ updwtmp, logwtmp \- append an entry to the wtmp file
|
|||
.BI "void logwtmp(const char *" line ", const char *" name \
|
||||
", const char *" host );
|
||||
.fi
|
||||
|
||||
For
|
||||
.BR logwtmp (),
|
||||
link with \fI\-lutil\fP.
|
||||
.SH DESCRIPTION
|
||||
.BR updwtmp ()
|
||||
appends the utmp structure
|
||||
|
@ -58,16 +62,6 @@ database of past user logins
|
|||
.SH CONFORMING TO
|
||||
Not in POSIX.1-2001.
|
||||
Present on Solaris, NetBSD, and perhaps other systems.
|
||||
.SH AVAILABILITY
|
||||
Both functions are available under glibc2, but not under libc5.
|
||||
However,
|
||||
.BR logwtmp ()
|
||||
used to occur in the old libbsd.
|
||||
These days, the
|
||||
.BR logwtmp ()
|
||||
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)),
|
||||
|
|
Loading…
Reference in New Issue