X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2Futmp.h;fp=listati%2Futmp.h;h=4d918b6fbfa8ceb28b9c68d118801bdd41676768;hp=0000000000000000000000000000000000000000;hb=cf60963212306540ce7485ed7c86405e143a3352;hpb=6377acba6d39c62ceff07a420e0028bf6e03408c diff --git a/listati/utmp.h b/listati/utmp.h new file mode 100644 index 0000000..4d918b6 --- /dev/null +++ b/listati/utmp.h @@ -0,0 +1,15 @@ +struct utmp +{ + short int ut_type; /* Type of login. */ + pid_t ut_pid; /* Process ID of login process. */ + char ut_line[UT_LINESIZE]; /* Devicename. */ + char ut_id[4]; /* Inittab ID. */ + char ut_user[UT_NAMESIZE]; /* Username. */ + char ut_host[UT_HOSTSIZE]; /* Hostname for remote login. */ + struct exit_status ut_exit; /* Exit status of a process marked + as DEAD_PROCESS. */ + long int ut_session; /* Session ID, used for windowing. */ + struct timeval ut_tv; /* Time entry was made. */ + int32_t ut_addr_v6[4]; /* Internet address of remote host. */ + char __unused[20]; /* Reserved for future use. */ +};