Home
last modified time | relevance | path

Searched refs:utmp_ent (Results 1 – 2 of 2) sorted by relevance

/coreutils/src/
Dwho.c215 time_string (struct gl_utmp const *utmp_ent) in time_string() argument
218 struct tm *tmp = localtime (&utmp_ent->ut_ts.tv_sec); in time_string()
226 return timetostr (utmp_ent->ut_ts.tv_sec, buf); in time_string()
322 print_user (struct gl_utmp const *utmp_ent, time_t boottime) in print_user() argument
328 PIDSTR_DECL_AND_INIT (pidstr, utmp_ent); in print_user()
335 char *line = utmp_ent->ut_line; in print_user()
371 if (utmp_ent->ut_host[0]) in print_user()
375 char *ut_host = utmp_ent->ut_host; in print_user()
429 print_line (utmp_ent->ut_user, mesg, in print_user()
430 utmp_ent->ut_line, in print_user()
[all …]
Dpinky.c175 time_string (struct gl_utmp const *utmp_ent) in time_string() argument
178 struct tm *tmp = localtime (&utmp_ent->ut_ts.tv_sec); in time_string()
186 return timetostr (utmp_ent->ut_ts.tv_sec, buf); in time_string()
192 print_entry (struct gl_utmp const *utmp_ent) in print_entry() argument
199 char *line = utmp_ent->ut_line; in print_entry()
229 char *ut_user = utmp_ent->ut_user; in print_entry()
257 if (strnlen (utmp_ent->ut_line, 8) < 8) in print_entry()
258 printf ("%-8s", utmp_ent->ut_line); in print_entry()
260 fputs (utmp_ent->ut_line, stdout); in print_entry()
271 printf (" %s", time_string (utmp_ent)); in print_entry()
[all …]