Skip to content

Instantly share code, notes, and snippets.

@revENGR

revENGR/utmp.c Secret

Last active May 23, 2020 13:36
Show Gist options
  • Save revENGR/9557c3e1ae5b2e9f8da51b240f1351bf to your computer and use it in GitHub Desktop.
Save revENGR/9557c3e1ae5b2e9f8da51b240f1351bf to your computer and use it in GitHub Desktop.
...
struct utmp {
short ut_type; /* Type of record */
pid_t ut_pid; /* PID of login process */
char ut_line[UT_LINESIZE]; /* Device name of tty - "/dev/" */
char ut_id[4]; /* Terminal name suffix, or inittab(5) ID */
char ut_user[UT_NAMESIZE]; /* Username */
char ut_host[UT_HOSTSIZE]; /* Hostname for remote login, or kernel version for run-level messages */
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment