Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include updates to lastlogx implementation.
details: https://anonhg.NetBSD.org/src/rev/f3c7ab3133e2
branches: trunk
changeset: 534472:f3c7ab3133e2
user: christos <christos%NetBSD.org@localhost>
date: Sat Jul 27 19:38:08 2002 +0000
description:
updates to lastlogx implementation.
diffstat:
include/utmpx.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 6bce7c1f6b8e -r f3c7ab3133e2 include/utmpx.h
--- a/include/utmpx.h Sat Jul 27 19:09:07 2002 +0000
+++ b/include/utmpx.h Sat Jul 27 19:38:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utmpx.h,v 1.7 2002/06/02 00:00:27 christos Exp $ */
+/* $NetBSD: utmpx.h,v 1.8 2002/07/27 19:38:08 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -102,7 +102,7 @@
#ifndef _XOPEN_SOURCE
struct lastlogx {
- struct timespec ll_time; /* time entry was created */
+ struct timeval ll_tv; /* time entry was created */
char ll_line[_UTX_LINESIZE]; /* tty name */
char ll_host[_UTX_HOSTSIZE]; /* host name */
struct sockaddr_storage ll_ss; /* address where entry was made from */
@@ -119,10 +119,10 @@
struct utmpx *pututxline(const struct utmpx *);
#ifndef _XOPEN_SOURCE
-void updwtmpx(const char *, const struct utmpx *);
+int updwtmpx(const char *, const struct utmpx *);
int lastlogxname(const char *);
-struct lastlogx *getlastlogxuid(uid_t);
-void updlastlogx(const char *, struct lastlogx *);
+struct lastlogx *getlastlogx(uid_t, struct lastlogx *);
+int updlastlogx(const char *, uid_t, struct lastlogx *);
struct utmp;
void getutmp(const struct utmpx *, struct utmp *);
void getutmpx(const struct utmp *, struct utmpx *);
Home |
Main Index |
Thread Index |
Old Index