Searched refs:utmp_buf (Results 1 – 4 of 4) sorted by relevance
/coreutils/src/ |
D | who.c | 535 list_entries_who (idx_t n, struct gl_utmp const *utmp_buf) in list_entries_who() argument 542 if (IS_USER_PROCESS (utmp_buf)) in list_entries_who() 546 trimmed_name = extract_trimmed_name (utmp_buf); in list_entries_who() 553 utmp_buf++; in list_entries_who() 567 scan_entries (idx_t n, struct gl_utmp const *utmp_buf) in scan_entries() argument 587 || STREQ (ttyname_b, utmp_buf->ut_line)) in scan_entries() 589 if (need_users && IS_USER_PROCESS (utmp_buf)) in scan_entries() 590 print_user (utmp_buf, boottime); in scan_entries() 591 else if (need_runlevel && UT_TYPE_RUN_LVL (utmp_buf)) in scan_entries() 592 print_runlevel (utmp_buf); in scan_entries() [all …]
|
D | uptime.c | 41 print_uptime (idx_t n, struct gl_utmp const *utmp_buf) in print_uptime() argument 51 struct gl_utmp const *this = &utmp_buf[i]; in print_uptime() 129 struct gl_utmp *utmp_buf; in uptime() local 130 int read_utmp_status = (read_utmp (filename, &n_users, &utmp_buf, options) < 0 in uptime() 136 utmp_buf = nullptr; in uptime() 139 int print_uptime_status = print_uptime (n_users, utmp_buf); in uptime()
|
D | users.c | 86 struct gl_utmp *utmp_buf; in users() local 88 if (read_utmp (filename, &n_users, &utmp_buf, options) != 0) in users() 91 list_entries_users (n_users, utmp_buf); in users() 93 free (utmp_buf); in users()
|
D | pinky.c | 424 scan_entries (idx_t n, struct gl_utmp const *utmp_buf, in scan_entries() argument 443 if (IS_USER_PROCESS (utmp_buf)) in scan_entries() 448 if (STREQ (utmp_buf->ut_user, argv_names[i])) in scan_entries() 450 print_entry (utmp_buf); in scan_entries() 455 print_entry (utmp_buf); in scan_entries() 457 utmp_buf++; in scan_entries() 468 struct gl_utmp *utmp_buf; in short_pinky() local 469 if (read_utmp (filename, &n_users, &utmp_buf, READ_UTMP_USER_PROCESS) != 0) in short_pinky() 472 scan_entries (n_users, utmp_buf, argc_names, argv_names); in short_pinky()
|