Example #1
0
void
enter_where(struct utmpentry *ep, PERSON *pn)
{
	WHERE *w;

	w = walloc(pn);
	w->info = LOGGEDIN;
	w->tty = ep->line;
	w->host = ep->host;
	w->loginat = (time_t)ep->tv.tv_sec;
	find_idle_and_ttywrite(w);
}
Example #2
0
void
enter_where(struct utmpx *ut, PERSON *pn)
{
	WHERE *w;

	w = walloc(pn);
	w->info = LOGGEDIN;
	strcpy(w->tty, ut->ut_line);
	strcpy(w->host, ut->ut_host);
	w->loginat = ut->ut_tv.tv_sec;
	find_idle_and_ttywrite(w);
}