Figure 3: Possible values for ut_type
#define EMPTY 0
#define RUN_LVL 1 /* current run level of the system */
#define BOOT_TIME 2 /* last time that system booted */
#define OLD_TIME 3 /* login time */
#define NEW_TIME 4 /* idle time */
#define INIT_PROCESS 5 /* Process spawned by "init" */
#define LOGIN_PROCESS 6 /* A "getty" process waiting for a login */
#define USER_PROCESS 7 /* A user process */
#define DEAD_PROCESS 8 /* Process with pid is no longer active */
#define ACCOUNTING 9 /* System accounting process */
#define TSH_PROCESS 10 /* Trusted shell process */
|