Lines Matching refs:tty
74 #include <sys/tty.h>
83 #define d_devtotty_t struct tty **
88 typedef void d_stop_t(struct tty *tp, int rw);
96 static void ptsstart(struct tty *tp);
97 static void ptcwakeup(struct tty *tp, int flag);
121 * pts == /dev/tty[pqrsPQRS][0123456789abcdefghijklmnopqrstuv]
125 __private_extern__ struct tty *pt_tty[NPTY] = { NULL };
158 /* create the pseudo tty device nodes */
166 "tty%c%x", j + START_CHAR, i);
180 struct tty *tp;
240 struct tty *tp;
273 struct tty *tp = pt_tty[minor(dev)];
355 * Write to pseudo-tty.
356 * Wakeups of controlling tty will happen
357 * indirectly, when tty driver calls ptsstart.
362 struct tty *tp;
380 * Start output on pseudo-tty.
381 * Wake up process selecting or sleeping for input from controlling tty.
388 ptsstart(struct tty *tp)
407 ptcwakeup(struct tty *tp, int flag)
424 struct tty *tp;
465 struct tty *tp = pt_tty[minor(dev)];
495 struct tty *tp = pt_tty[minor(dev)];
565 ptsstop(struct tty *tp, int flush)
591 struct tty *tp = pt_tty[minor(dev)];
656 struct tty *tp = pt_tty[minor(dev)];
772 struct tty *tp = pt_tty[minor(dev)];
897 snprintf(data, 128, "/dev/tty%c%x",