From fab0a3c99775d55b333555bdc353f97802d430f8 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Thu, 3 Dec 2009 16:33:47 +0000 Subject: Also implement ut_type. I thought we couldn't emulate this field, but we can derive this field by looking at special values for ut_host, ut_line and ut_name. --- lib/libulog/ulog.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/libulog/ulog.h') diff --git a/lib/libulog/ulog.h b/lib/libulog/ulog.h index 2a613ddf46ca..fc95c3b99ae9 100644 --- a/lib/libulog/ulog.h +++ b/lib/libulog/ulog.h @@ -63,8 +63,23 @@ struct ulog_utmpx { char *ut_host; #if 0 pid_t ut_pid; +#endif short ut_type; +#define EMPTY 0 +#if 0 +#define BOOT_TIME 1 #endif +#define OLD_TIME 2 +#define NEW_TIME 3 +#if 0 +#define USER_PROCESS 4 +#define INIT_PROCESS 5 +#endif +#define LOGIN_PROCESS 6 +#define DEAD_PROCESS 7 + +#define SHUTDOWN_TIME 8 +#define REBOOT_TIME 9 struct timeval ut_tv; }; -- cgit v1.2.3