summaryrefslogtreecommitdiffstats
path: root/lib/libulog/ulog.h
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-12-03 16:33:47 +0000
committered <ed@FreeBSD.org>2009-12-03 16:33:47 +0000
commitde31befa07736fae7671f0dbe5d0561a438271da (patch)
treeb3d61b7c8ecfd89c6dc47f575da2811496626e2c /lib/libulog/ulog.h
parent6da88fd016a86602a1605b17d5d4c0dc2d2af76e (diff)
downloadFreeBSD-src-de31befa07736fae7671f0dbe5d0561a438271da.zip
FreeBSD-src-de31befa07736fae7671f0dbe5d0561a438271da.tar.gz
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.
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 2a613dd..fc95c3b 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;
};
OpenPOWER on IntegriCloud