Lines Matching refs:li
78 struct logininfo li; in get_last_login_time() local
80 login_get_lastlog(&li, uid); in get_last_login_time()
81 strlcpy(buf, li.hostname, bufsize); in get_last_login_time()
82 return (time_t)li.tv_sec; in get_last_login_time()
139 struct logininfo *li; in record_login() local
144 li = login_alloc_entry(pid, user, host, tty); in record_login()
145 login_set_addr(li, addr, addrlen); in record_login()
146 login_login(li); in record_login()
147 login_free_entry(li); in record_login()
155 struct logininfo *li; in record_utmp_only() local
157 li = login_alloc_entry(pid, user, host, ttyname); in record_utmp_only()
158 login_set_addr(li, addr, addrlen); in record_utmp_only()
159 login_utmp_only(li); in record_utmp_only()
160 login_free_entry(li); in record_utmp_only()
168 struct logininfo *li; in record_logout() local
170 li = login_alloc_entry(pid, user, NULL, tty); in record_logout()
171 login_logout(li); in record_logout()
172 login_free_entry(li); in record_logout()