Lines Matching refs:tty
139 if ((flags & PSS_TTY) && pe->tty != TTYMAP(pss, pss->disc->tty))
146 if (pe->tty == PSS_NODEV)
150 if (pe->tty != PSS_NODEV)
190 x = pe->tty;
255 * add name,dev to the tty hash
261 register Tty_t* tty;
265 if (!(tty = vmnewof(pss->vm, 0, Tty_t, 1, strlen(name))))
271 strcpy(tty->name, name);
272 tty->dev = dev;
273 dtinsert(pss->ttybyname, tty);
275 dtinsert(pss->ttybydev, tty);
281 * scan /dev and enter in the tty hash
350 * return dev given tty base name
357 register Tty_t* tty;
365 if (tty = (Tty_t*)dtmatch(pss->ttybyname, s))
366 return tty->dev;
373 sfsprintf(pss->buf, sizeof(pss->buf), "/dev/tty%s", name);
377 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|2, "%s: unknown tty", name);
386 * return tty base name given tty dev
392 register Tty_t* tty;
400 dev = pe->tty;
403 if (tty = (Tty_t*)dtmatch(pss->ttybydev, &dev))
404 return tty->name;
407 if (tty = (Tty_t*)dtmatch(pss->ttybydev, &dev))
408 return tty->name;