revert previous; utmpxname is already documented in getlastlogx.3. Should
probably be moved.
This commit is contained in:
parent
20e726508c
commit
65c5691e7d
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.204 2020/07/05 01:05:50 christos Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.205 2020/07/05 01:09:48 christos Exp $
|
||||
# from: @(#)Makefile.inc 8.6 (Berkeley) 5/4/95
|
||||
|
||||
# gen sources
|
||||
|
@ -97,7 +97,7 @@ MLINKS+=directory.3 closedir.3 directory.3 dirfd.3 directory.3 opendir.3 \
|
|||
directory.3 fdopendir.3
|
||||
MLINKS+=endutxent.3 getutxent.3 endutxent.3 getutxid.3 \
|
||||
endutxent.3 getutxline.3 endutxent.3 pututxline.3 \
|
||||
endutxent.3 setutxent.3 endutmpx.3 utmpxname.3
|
||||
endutxent.3 setutxent.3
|
||||
MLINKS+=err.3 verr.3 err.3 errx.3 err.3 verrx.3 err.3 warn.3 err.3 vwarn.3 \
|
||||
err.3 warnx.3 err.3 vwarnx.3 err.3 errc.3 err.3 verrc.3 err.3 warnc.3 \
|
||||
err.3 vwarnc.3
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: endutxent.3,v 1.6 2020/07/05 01:05:50 christos Exp $
|
||||
.\" $NetBSD: endutxent.3,v 1.7 2020/07/05 01:09:48 christos Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -27,7 +27,7 @@
|
|||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd July 4, 2020
|
||||
.Dd September 26, 2002
|
||||
.Dt ENDUTXENT 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -36,8 +36,7 @@
|
|||
.Nm getutxid ,
|
||||
.Nm getutxline ,
|
||||
.Nm pututxline ,
|
||||
.Nm setutxent ,
|
||||
.Nm utxname
|
||||
.Nm setutxent
|
||||
.Nd user accounting database functions
|
||||
.Sh LIBRARY
|
||||
.Lb libc
|
||||
|
@ -48,15 +47,13 @@
|
|||
.Ft struct utmpx *
|
||||
.Fn getutxent void
|
||||
.Ft struct utmpx *
|
||||
.Fn getutxid "const struct utmpx *ut"
|
||||
.Fn getutxid "const struct utmpx *"
|
||||
.Ft struct utmpx *
|
||||
.Fn getutxline "const struct utmpx *ut"
|
||||
.Fn getutxline "const struct utmpx *"
|
||||
.Ft struct utmpx *
|
||||
.Fn pututxline "const struct utmpx *ut"
|
||||
.Fn pututxline "const struct utmpx *"
|
||||
.Ft void
|
||||
.Fn setutxent void
|
||||
.Ft void
|
||||
.Fn utmpxname "const char *fname"
|
||||
.Sh DESCRIPTION
|
||||
These functions provide access to the
|
||||
.Xr utmpx 5
|
||||
|
@ -94,10 +91,6 @@ adds the argument
|
|||
.Xr utmpx 5
|
||||
entry line to the accounting database, replacing a previous entry for
|
||||
the same user if it exists.
|
||||
.Pp
|
||||
.Fn utmpxname
|
||||
set sets the database file to
|
||||
.Fa fname .
|
||||
.Ss The utmpx structure
|
||||
The
|
||||
.Nm utmpx
|
||||
|
@ -162,12 +155,6 @@ if no match was found.
|
|||
.Fn pututxline
|
||||
returns the structure that was successfully written, or
|
||||
.Dv NULL .
|
||||
.Fn utmpxname
|
||||
returns
|
||||
.Dv 1
|
||||
on success and
|
||||
.Dv 0
|
||||
on failure.
|
||||
.Sh SEE ALSO
|
||||
.Xr logwtmpx 3 ,
|
||||
.Xr utmpx 5
|
||||
|
@ -179,15 +166,10 @@ The
|
|||
.Fn getutxline ,
|
||||
.Fn pututxline ,
|
||||
.Fn setutxent
|
||||
functions all conform to
|
||||
all conform to
|
||||
.St -p1003.1-2001
|
||||
(XSI extension), and previously to
|
||||
.St -xpg4.2 .
|
||||
The
|
||||
.Fn utxname
|
||||
functions is a
|
||||
.Nx
|
||||
externsion.
|
||||
The fields
|
||||
.Fa ut_user ,
|
||||
.Fa ut_id ,
|
||||
|
|
Loading…
Reference in New Issue