X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..c910b4d9d2451126ae3917b931cd4390c11e1d52:/bsd/sys/tty.h?ds=sidebyside diff --git a/bsd/sys/tty.h b/bsd/sys/tty.h index e49a9dbf2..97178a419 100644 --- a/bsd/sys/tty.h +++ b/bsd/sys/tty.h @@ -138,6 +138,8 @@ struct tty { int t_gen; /* Generation number. */ }; +#define TTY_NULL (struct tty *)0 + #define t_cc t_termios.c_cc #define t_cflag t_termios.c_cflag #define t_iflag t_termios.c_iflag @@ -241,13 +243,6 @@ struct speedtab { #define TTY_BI 0x08000000 /* Break condition */ #ifdef KERNEL -/* Is tp controlling terminal for p? */ -#define isctty(p, tp) \ - ((p)->p_session == (tp)->t_session && (p)->p_flag & P_CONTROLT) - -/* Is p in background of tp? */ -#define isbackground(p, tp) \ - (isctty((p), (tp)) && (p)->p_pgrp != (tp)->t_pgrp) /* Unique sleep addresses. */ #define TSA_CARR_ON(tp) ((void *)&(tp)->t_rawq)