]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/tty.h
xnu-3247.1.106.tar.gz
[apple/xnu.git] / bsd / sys / tty.h
index ecfb234d5ba4a4e995b9ddd12bbf7ae009ca9edd..7fdcd02c72e72b9ec7f7d1f15220b554ae17f8f8 100644 (file)
@@ -144,6 +144,7 @@ struct tty {
        int     t_lowat;                /* Low water mark. */
        int     t_gen;                  /* Generation number. */
        void    *t_iokit;               /* IOKit management */
+       int     t_refcnt;               /* reference count */
 };
 
 #define TTY_NULL (struct tty *)0
@@ -221,6 +222,7 @@ struct clist;
 #endif
 
 #define        TS_IOCTL_NOT_OK 0x1000000       /* Workaround <rdar://....> */
+#define        TS_PGRPHUP      0x2000000       /* Don't change Foregroud process group */
 
 
 /* Character type information. */
@@ -326,6 +328,8 @@ int  ttysleep(struct tty *tp,
 int     ttywait(struct tty *tp);
 struct tty *ttymalloc(void);
 void     ttyfree(struct tty *);
+void     ttysetpgrphup(struct tty *tp);
+void     ttyclrpgrphup(struct tty *tp);
 
 __END_DECLS