Lines Matching refs:tty_name
17 void FAST_FUNC write_new_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, … in write_new_utmp() argument
26 tty_name = skip_dev_pfx(tty_name); in write_new_utmp()
27 safe_strncpy(utent.ut_line, tty_name, sizeof(utent.ut_line)); in write_new_utmp()
38 if (tty_name[0] == 'p') { in write_new_utmp()
44 if (strlen(tty_name) > 3) in write_new_utmp()
45 tty_name += 3; in write_new_utmp()
46 strncpy(id, tty_name, width); in write_new_utmp()
65 void FAST_FUNC update_utmp(pid_t pid, int new_type, const char *tty_name, const char *username, con… in update_utmp() argument
103 write_new_utmp(pid, new_type, tty_name, username, hostname); in update_utmp()
114 if (tty_name) in update_utmp()
115 safe_strncpy(utent.ut_line, skip_dev_pfx(tty_name), sizeof(utent.ut_line)); in update_utmp()