Structs§
- Utmpx
Entry - A decoded utmpx entry.
- WhoConfig
- Configuration for the who command, derived from CLI flags.
Functions§
- current_
tty - Get the terminal device for the current process (for “who am i” / -m).
- format_
count - Format output for the -q / –count mode.
- format_
entry - Format a single utmpx entry as an output line.
- format_
heading - Format heading line.
- format_
time - Format a Unix timestamp as “YYYY-MM-DD HH:MM”.
- read_
utmpx - Read all utmpx entries from the system database.
- read_
utmpx_ with_ systemd_ fallback - Read utmpx with systemd fallback, checking PIDs (for who/users).
- read_
utmpx_ with_ systemd_ fallback_ ex - Read utmpx entries, falling back to systemd sessions if the utmpx database has no USER_PROCESS entries. This matches GNU coreutils behavior: when /var/run/utmp is absent or empty, use systemd-logind session files.
- read_
utmpx_ with_ systemd_ fallback_ no_ pid_ check - Read utmpx with systemd fallback, without PID checking (for pinky).
- run_who
- Run the who command and return the formatted output.
- should_
show - Check if an entry should be displayed given the config.