Home | History | Annotate | Download | only in login

Lines Matching defs:ll

271 	struct lastlogx ll;
272 if (!quiet && getlastlogx(_PATH_LASTLOGX, pwd->pw_uid, &ll) != NULL) {
273 time_t t = (time_t)ll.ll_tv.tv_sec;
275 if (*ll.ll_host != '\0')
277 (int)sizeof(ll.ll_host),
278 ll.ll_host);
280 (int)sizeof(ll.ll_line),
281 ll.ll_line);
283 ll.ll_tv = now;
284 (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
286 (void)strncpy(ll.ll_host, hostname, sizeof(ll.ll_host));
288 (void)memset(ll.ll_host, '\0', sizeof(ll.ll_host));
290 ll.ll_ss = ss;
292 (void)memset(&ll.ll_ss, 0, sizeof(ll.ll_ss));
293 if (updlastlogx(_PATH_LASTLOGX, pwd->pw_uid, &ll) != 0)
316 struct lastlog ll;
320 (void)lseek(fd, (off_t)(pwd->pw_uid * sizeof(ll)), SEEK_SET);
322 if (read(fd, (char *)&ll, sizeof(ll)) == sizeof(ll) &&
323 ll.ll_time != 0) {
325 ctime(&ll.ll_time));
326 if (*ll.ll_host != '\0')
328 (int)sizeof(ll.ll_host),
329 ll.ll_host);
331 (int)sizeof(ll.ll_line), ll.ll_line);
333 (void)lseek(fd, (off_t)(pwd->pw_uid * sizeof(ll)),
336 memset((void *)&ll, 0, sizeof(ll));
337 ll.ll_time = now.tv_sec;
338 (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
340 (void)strncpy(ll.ll_host, hostname, sizeof(ll.ll_host));
341 (void)write(fd, (char *)&ll, sizeof(ll));