Home | History | Annotate | Download | only in pam_lastlog

Lines Matching defs:tty

119 	const char *user, *rhost, *tty, *nuser;
152 tty = (const char *)vtty;
154 if (tty == NULL) {
164 if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0)
165 tty = tty + strlen(_PATH_DEV);
167 if (*tty == '\0') {
188 doutmpx(user, rhost, tty, ss, &now);
189 dolastlogx(pamh, quiet, pwd, rhost, tty, ss, &now);
193 doutmp(user, rhost, tty, &now);
194 dolastlog(pamh, quiet, pwd, rhost, tty, &now);
208 const char *tty, *nuser;
218 tty = (const char *)vtty;
220 if (strncmp(tty, _PATH_DEV, strlen(_PATH_DEV)) == 0)
221 tty = tty + strlen(_PATH_DEV);
223 if (*tty == '\0')
229 if (logoutx(tty, 0, DEAD_PROCESS))
230 logwtmpx(tty, "", "", 0, DEAD_PROCESS);
233 __func__, tty);
237 if (logout(tty))
238 logwtmp(tty, "", "");
241 __func__, tty);
271 doutmpx(const char *username, const char *hostname, const char *tty,
285 (void)strncpy(utmpx.ut_line, tty, sizeof(utmpx.ut_line));
288 t = tty + strlen(tty);
289 if ((size_t)(t - tty) >= sizeof(utmpx.ut_id)) {
293 (void)strncpy(utmpx.ut_id, tty, sizeof(utmpx.ut_id));
304 const char *hostname, const char *tty, const struct sockaddr_storage *ss,
315 (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));
335 doutmp(const char *username, const char *hostname, const char *tty,
345 (void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
351 const char *hostname, const char *tty, const struct timeval *now)
373 (void)strncpy(ll.ll_line, tty, sizeof(ll.ll_line));