Source-Changes-HG archive

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

[src/trunk]: src/include add utmpx/wtmpx processing routines



details:   https://anonhg.NetBSD.org/src/rev/2b61a39660c1
branches:  trunk
changeset: 534476:2b61a39660c1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 27 23:49:00 2002 +0000

description:
add utmpx/wtmpx processing routines

diffstat:

 include/util.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r dfa040e22914 -r 2b61a39660c1 include/util.h
--- a/include/util.h    Sat Jul 27 22:58:07 2002 +0000
+++ b/include/util.h    Sat Jul 27 23:49:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.h,v 1.22 2002/05/22 07:31:40 itojun Exp $ */
+/*     $NetBSD: util.h,v 1.23 2002/07/27 23:49:00 christos Exp $       */
 
 /*-
  * Copyright (c) 1995
@@ -43,6 +43,7 @@
 #include <pwd.h>
 #include <termios.h>
 #include <utmp.h>
+#include <utmpx.h>
 
 #define        PIDLOCK_NONBLOCK        1
 #define PIDLOCK_USEHOSTNAME    2
@@ -66,9 +67,12 @@
 int            getmaxpartitions(void);
 int            getrawpartition(void);
 void           login(const struct utmp *);
+void           loginx(const struct utmpx *);
 int            login_tty(int);
 int            logout(const char *);
+int            logoutx(const char *, int, int);
 void           logwtmp(const char *, const char *, const char *);
+void           logwtmpx(const char *, const char *, const char *, int, int);
 int            opendisk(const char *, int, char *, size_t, int);
 int            openpty(int *, int *, char *, struct termios *,
                        struct winsize *);



Home | Main Index | Thread Index | Old Index