Home | History | Annotate | Download | only in openssh

Lines Matching full:last

58  *  (utmp and friends) and last login time retrieval.
89 * Retrieving the time of last login ('lastlog') is in some ways even
95 * we look backwards in the wtmp or wtmpx file for the last login entry
128 * getlast_entry(), which tries one of three methods to find the last
258 * login_get_lastlog_time(int) - Retrieve the last login time
260 * Retrieve the last login time for the given uid. Will try to use the
309 * reliably search wtmp(x) for the last login (see
502 ** getlast_entry: Call low-level functions to retrieve the last login
506 /* take the uid in li and return the last login time */
519 /* On some systems we shouldn't even try to obtain last login
524 /* retrieve last login time from utmp */
531 /* Give up: No means of retrieving last login time */
587 * form of the line (Just use the last <dstsize> characters of the
1201 /* Seek to the start of the last struct utmp */
1366 /* Seek to the start of the last struct utmpx */
1536 struct lastlog last;
1542 memset(&last, '\0', sizeof(last));
1543 line_stripname(last.ll_line, li->line, sizeof(last.ll_line));
1544 strlcpy(last.ll_host, li->hostname,
1545 MIN_SIZEOF(last.ll_host, li->hostname));
1546 last.ll_time = li->tv_sec;
1552 if (atomicio(vwrite, fd, &last, sizeof(last)) != sizeof(last)) {
1589 struct lastlog last;
1595 ret = atomicio(read, fd, &last, sizeof(last));
1600 memset(&last, '\0', sizeof(last));
1602 case sizeof(last):
1603 line_fullname(li->line, last.ll_line, sizeof(li->line));
1604 strlcpy(li->hostname, last.ll_host,
1605 MIN_SIZEOF(li->hostname, last.ll_host));
1606 li->tv_sec = last.ll_time;
1614 __func__, LASTLOG_FILE, (int)sizeof(last), ret);