OSDN Git Service

utmp.h: add more ut_type defines
authorMike Frysinger <vapier@google.com>
Fri, 9 Oct 2015 22:48:51 +0000 (18:48 -0400)
committerMike Frysinger <vapier@google.com>
Fri, 9 Oct 2015 22:52:49 +0000 (18:52 -0400)
This fills out the defines that utmp.h normally offers on other systems
such as glibc.

BUG=24810744

Change-Id: If57f9ced22e8673f072245fce3f5c0f8e1f591e5

libc/include/utmp.h

index ebf2372..7eeea41 100644 (file)
 #define UT_HOSTSIZE 16
 #endif
 
-#define USER_PROCESS 7
+#define EMPTY         0
+#define RUN_LVL       1
+#define BOOT_TIME     2
+#define NEW_TIME      3
+#define OLD_TIME      4
+#define INIT_PROCESS  5
+#define LOGIN_PROCESS 6
+#define USER_PROCESS  7
+#define DEAD_PROCESS  8
+#define ACCOUNTING    9
 
 struct lastlog
 {