MCPcopy Create free account
hub / github.com/coreutils/coreutils / print_login

Function print_login

src/who.c:469–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469static void
470print_login (STRUCT_UTMP const *utmp_ent)
471{
472 char *comment = make_id_equals_comment (utmp_ent);
473 PIDSTR_DECL_AND_INIT (pidstr, utmp_ent);
474
475 /* FIXME: add idle time? */
476
477 print_line (_("LOGIN"), ' ', utmp_ent->ut_line,
478 time_string (utmp_ent), "", pidstr, comment, "");
479 free (comment);
480}
481
482static void
483print_initspawn (STRUCT_UTMP const *utmp_ent)

Callers 1

scan_entriesFunction · 0.85

Calls 3

make_id_equals_commentFunction · 0.85
print_lineFunction · 0.70
time_stringFunction · 0.70

Tested by

no test coverage detected