summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2002-03-05 16:09:06 +0000
committerchristos <christos@NetBSD.org>2002-03-05 16:09:06 +0000
commit2e53a01f3e51dba0041a07f20a693035fe376461 (patch)
tree92d9f4262a8f45a1b2b6cfc678d32f5c24d480ae /include
parentf1dbc97679923a2e16b7e0b9aa2324c6ba9da053 (diff)
add a couple of XOPEN compatibility defines, and a non-xopen function that
we are expected to have (updwtmpx). Requested by tron.
Diffstat (limited to 'include')
-rw-r--r--include/utmpx.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/utmpx.h b/include/utmpx.h
index 075e8d5ea0f..c11fa75ee96 100644
--- a/include/utmpx.h
+++ b/include/utmpx.h
@@ -1,4 +1,4 @@
-/* $NetBSD: utmpx.h,v 1.4 2002/03/05 14:23:32 tron Exp $ */
+/* $NetBSD: utmpx.h,v 1.5 2002/03/05 16:09:06 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -79,6 +79,10 @@
* entries are stored in the files, and application should only access
* entries using routines described in getutxent(3).
*/
+
+#define ut_name ut_user
+#define ut_xtime ut_tv.tv_sec
+
struct utmpx {
char ut_user[_UTX_USERSIZE]; /* login name */
char ut_id[_UTX_IDSIZE]; /* inittab id */
@@ -115,7 +119,7 @@ struct utmpx *getutxline(const struct utmpx *);
struct utmpx *pututxline(const struct utmpx *);
#ifndef _XOPEN_SOURCE
-
+void updwtmpx(const char *, const struct utmpx *);
int lastlogxname(const char *);
struct lastlogx *getlastlogxuid(uid_t);
void updlastlogx(const char *, struct lastlogx *);