• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/bsd/kern/

Lines Matching refs:tty

91 #include <sys/tty.h>
109 void _printf(int, struct tty *, const char *, ...);
127 extern struct tty cons; /* standard console tty */
128 extern struct tty *constty; /* pointer to console "window" tty */
138 static void printn(uint32_t n, int b, int flags, struct tty *ttyp, int zf, int fld_size);
148 struct tty *tty;
155 * It may block if the tty queue is overfull. No message is printed if
170 pca.tty = SESSION_TP(sessp);
171 if (pca.tty != NULL)
172 tty_lock(pca.tty);
176 if (pca.tty != NULL)
177 tty_unlock(pca.tty);
216 struct tty *tp = TTY_NULL;
228 /* going to the tty; leave locked */
230 /* not going to the tty... */
237 pca.tty = tp;
249 * Ttyprintf displays a message on a tty; it should be used only by
250 * the tty driver, or anything that knows the underlying tty will not
258 ttyprintf(struct tty *tp, const char *fmt, ...)
265 pca.tty = tp;
282 pca.tty = NULL;
285 printn((uint32_t)level, 10, TOLOG, (struct tty *)0, 0, 0);
310 pca.tty = NULL;
325 _printf(int flags, struct tty *ttyp, const char *format, ...)
331 pca.tty = ttyp;
345 prf(const char *fmt, va_list ap, int flags, struct tty *ttyp)
350 pca.tty = ttyp;
362 printn(uint32_t n, int b, int flags, struct tty *ttyp, int zf, int fld_size)
369 pca.tty = ttyp;
407 * Locks: If TOTTY is set, we assume that the tty lock is held
415 char **sp = (char**) pca->tty;
419 if ((pca->flags & TOCONS) && pca->tty == NULL && constty) {
420 pca->tty = constty;
423 if ((pca->flags & TOTTY) && pca->tty && tputchar(c, pca->tty) < 0 &&
424 (pca->flags & TOCONS) && pca->tty == constty)
444 pca.tty = NULL;