X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/bsd/sys/tty.h diff --git a/bsd/sys/tty.h b/bsd/sys/tty.h index 45708bf47..b849f3aeb 100644 --- a/bsd/sys/tty.h +++ b/bsd/sys/tty.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2018 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -146,7 +146,7 @@ struct tty { int t_refcnt; /* reference count */ }; -#define TTY_NULL (struct tty *)0 +#define TTY_NULL (struct tty *)NULL #define t_cc t_termios.c_cc #define t_cflag t_termios.c_cflag @@ -221,7 +221,7 @@ struct clist; #endif #define TS_IOCTL_NOT_OK 0x1000000 /* Workaround */ -#define TS_PGRPHUP 0x2000000 /* Don't change Foregroud process group */ +#define TS_REVOKE 0x2000000 /* Terminal getting revoked */ /* Character type information. */ @@ -234,8 +234,8 @@ struct clist; #define RETURN 6 struct speedtab { - int sp_speed; /* Speed. */ - int sp_code; /* Code. */ + int sp_speed; + int sp_code; }; /* Modem control commands (driver). */ @@ -327,8 +327,6 @@ 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); #ifdef XNU_KERNEL_PRIVATE extern void ttyhold(struct tty *tp);