Lines Matching refs:typ

856 	struct ttyent *typ;  in single_user()  local
895 typ = getttynam("console"); in single_user()
896 if (typ && (typ->ty_status & TTY_SECURE) == 0 && in single_user()
1304 new_session(session_t *sprev, struct ttyent *typ) in new_session() argument
1308 if ((typ->ty_status & TTY_ON) == 0 || in new_session()
1309 typ->ty_name == 0 || in new_session()
1310 typ->ty_getty == 0) in new_session()
1317 if ((typ->ty_status & TTY_IFEXISTS) != 0) in new_session()
1320 if ((typ->ty_status & TTY_IFCONSOLE) != 0) in new_session()
1323 if (asprintf(&sp->se_device, "%s%s", _PATH_DEV, typ->ty_name) < 0) in new_session()
1326 if (setupargv(sp, typ) == 0) { in new_session()
1347 setupargv(session_t *sp, struct ttyent *typ) in setupargv() argument
1355 if (asprintf(&sp->se_getty, "%s %s", typ->ty_getty, typ->ty_name) < 0) in setupargv()
1373 if (typ->ty_window) { in setupargv()
1374 sp->se_window = strdup(typ->ty_window); in setupargv()
1388 sp->se_type = typ->ty_type ? strdup(typ->ty_type) : 0; in setupargv()
1399 struct ttyent *typ; in read_ttys() local
1417 while ((typ = getttyent()) != NULL) in read_ttys()
1418 if ((snext = new_session(sp, typ)) != NULL) in read_ttys()
1762 struct ttyent *typ; in clean_ttys() local
1775 while ((typ = getttyent()) != NULL) { in clean_ttys()
1777 if (strcmp(typ->ty_name, sp->se_device + devlen) == 0) in clean_ttys()
1783 if ((typ->ty_status & TTY_ON) == 0 || in clean_ttys()
1784 typ->ty_getty == 0) { in clean_ttys()
1793 if (setupargv(sp, typ) == 0) { in clean_ttys()
1822 new_session(sprev, typ); in clean_ttys()