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

Function short_pinky

src/pinky.c:456–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454/* Display a list of who is on the system, according to utmp file FILENAME. */
455
456static void
457short_pinky (char const *filename,
458 const int argc_names, char *const argv_names[])
459{
460 idx_t n_users;
461 STRUCT_UTMP *utmp_buf;
462 if (read_utmp (filename, &n_users, &utmp_buf, READ_UTMP_USER_PROCESS) != 0)
463 error (EXIT_FAILURE, errno, "%s", quotef (filename));
464
465 scan_entries (n_users, utmp_buf, argc_names, argv_names);
466 exit (EXIT_SUCCESS);
467}
468
469static void
470long_pinky (const int argc_names, char *const argv_names[])

Callers 1

mainFunction · 0.85

Calls 1

scan_entriesFunction · 0.70

Tested by

no test coverage detected