Lines Matching refs:typ

855 	struct ttyent *typ;  in single_user()  local
894 typ = getttynam("console"); in single_user()
896 if (typ && (typ->ty_status & TTY_SECURE) == 0 && in single_user()
1296 new_session(session_t *sprev, struct ttyent *typ) in new_session() argument
1300 if ((typ->ty_status & TTY_ON) == 0 || in new_session()
1301 typ->ty_name == 0 || in new_session()
1302 typ->ty_getty == 0) in new_session()
1309 if ((typ->ty_status & TTY_IFEXISTS) != 0) in new_session()
1312 if ((typ->ty_status & TTY_IFCONSOLE) != 0) in new_session()
1315 if (asprintf(&sp->se_device, "%s%s", _PATH_DEV, typ->ty_name) < 0) in new_session()
1318 if (setupargv(sp, typ) == 0) { in new_session()
1339 setupargv(session_t *sp, struct ttyent *typ) in setupargv() argument
1347 if (asprintf(&sp->se_getty, "%s %s", typ->ty_getty, typ->ty_name) < 0) in setupargv()
1365 if (typ->ty_window) { in setupargv()
1366 sp->se_window = strdup(typ->ty_window); in setupargv()
1380 sp->se_type = typ->ty_type ? strdup(typ->ty_type) : 0; in setupargv()
1391 struct ttyent *typ; in read_ttys() local
1409 while ((typ = getttyent()) != NULL) in read_ttys()
1410 if ((snext = new_session(sp, typ)) != NULL) in read_ttys()
1754 struct ttyent *typ; in clean_ttys() local
1767 while ((typ = getttyent()) != NULL) { in clean_ttys()
1769 if (strcmp(typ->ty_name, sp->se_device + devlen) == 0) in clean_ttys()
1775 if ((typ->ty_status & TTY_ON) == 0 || in clean_ttys()
1776 typ->ty_getty == 0) { in clean_ttys()
1785 if (setupargv(sp, typ) == 0) { in clean_ttys()
1814 new_session(sprev, typ); in clean_ttys()