aboutsummaryrefslogtreecommitdiff
path: root/lib/libulog/ulog.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-12-03 16:33:47 +0000
committerEd Schouten <ed@FreeBSD.org>2009-12-03 16:33:47 +0000
commitfab0a3c99775d55b333555bdc353f97802d430f8 (patch)
treeb3d61b7c8ecfd89c6dc47f575da2811496626e2c /lib/libulog/ulog.h
parente72b7e5bba864859f1bb12bcee62ef0f5519c8ff (diff)
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.
Notes
Notes: svn path=/head/; revision=200065
Diffstat (limited to 'lib/libulog/ulog.h')
-rw-r--r--lib/libulog/ulog.h15
1 files changed, 15 insertions, 0 deletions
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;
};