Lines Matching refs:username
307 (void) strlcpy(li->username, pw->pw_name, sizeof(li->username)); in login_get_lastlog()
326 logininfo *login_alloc_entry(int pid, const char *username, in login_alloc_entry() argument
333 (void)login_init_entry(newli, pid, username, hostname, line, progname); in login_alloc_entry()
355 login_init_entry(struct logininfo *li, int pid, const char *username, in login_init_entry() argument
375 if (username) { in login_init_entry()
376 (void) strlcpy(li->username, username, sizeof(li->username)); in login_init_entry()
377 pw = getpwnam(li->username); in login_init_entry()
379 fatal("login_init_entry: Cannot find user \"%s\"", li->username); in login_init_entry()
649 (void) strncpy(ut->ut_name, li->username, MIN_SIZEOF(ut->ut_name, li->username)); in construct_utmp()
708 (void) strncpy(utx->ut_name, li->username, MIN_SIZEOF(utx->ut_name, li->username)); in construct_utmpx()
1077 if (strncmp(li->username, ut->ut_name, in wtmp_islogin()
1078 MIN_SIZEOF(li->username, ut->ut_name)) == 0) { in wtmp_islogin()
1232 if ( strncmp(li->username, utx->ut_name, in wtmpx_islogin()
1233 MIN_SIZEOF(li->username, utx->ut_name)) == 0 ) { in wtmpx_islogin()
1427 LASTLOG_FILE, li->username); in lastlog_openseek()