Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen revert previous; utmpxname is already documente...



details:   https://anonhg.NetBSD.org/src/rev/73fb244d05b5
branches:  trunk
changeset: 973597:73fb244d05b5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jul 05 01:09:48 2020 +0000

description:
revert previous; utmpxname is already documented in getlastlogx.3. Should
probably be moved.

diffstat:

 lib/libc/gen/Makefile.inc |   4 ++--
 lib/libc/gen/endutxent.3  |  32 +++++++-------------------------
 2 files changed, 9 insertions(+), 27 deletions(-)

diffs (106 lines):

diff -r 16864a882d14 -r 73fb244d05b5 lib/libc/gen/Makefile.inc
--- a/lib/libc/gen/Makefile.inc Sun Jul 05 01:05:50 2020 +0000
+++ b/lib/libc/gen/Makefile.inc Sun Jul 05 01:09:48 2020 +0000
@@ -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 @@
        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
diff -r 16864a882d14 -r 73fb244d05b5 lib/libc/gen/endutxent.3
--- a/lib/libc/gen/endutxent.3  Sun Jul 05 01:05:50 2020 +0000
+++ b/lib/libc/gen/endutxent.3  Sun Jul 05 01:09:48 2020 +0000
@@ -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 @@
 .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 @@
 .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 @@
 .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 ,



Home | Main Index | Thread Index | Old Index