Lines Matching refs:ll
993 struct lastlog ll;
997 (void)lseek(fd, (off_t)pwd->pw_uid * sizeof(ll), L_SET);
999 if (read(fd, (char *)&ll, sizeof(ll)) == sizeof(ll) &&
1000 ll.ll_time != 0) {
1002 24-5, (char *)ctime(&ll.ll_time));
1003 if (*ll.ll_host != '\0')
1005 (int)sizeof(ll.ll_host),
1006 ll.ll_host);
1009 (int)sizeof(ll.ll_line),
1010 ll.ll_line);
1012 (void)lseek(fd, (off_t)pwd->pw_uid * sizeof(ll), L_SET);
1014 memset((void *)&ll, 0, sizeof(ll));
1015 (void)time(&ll.ll_time);
1016 (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
1018 (void)strncpy(ll.ll_host, hostname, sizeof(ll.ll_host));
1019 (void)write(fd, (char *)&ll, sizeof(ll));