]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/tty_compat.c
xnu-4570.31.3.tar.gz
[apple/xnu.git] / bsd / kern / tty_compat.c
index 6cab324acf6ace63799dfb2bfe7eeb7f9374079d..4348bd1330b79eaf5da4346cd5ebaf4cedec4e5b 100644 (file)
@@ -224,7 +224,7 @@ ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term)
                 * pending input is not discarded.
                 */
            {
-               register struct sgttyb *sg = (struct sgttyb *)data;
+               struct sgttyb *sg = (struct sgttyb *)data;
                int speed;
 
                if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0)
@@ -253,7 +253,7 @@ ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term)
                 */
            {
                struct tchars *tc = (struct tchars *)data;
-               register cc_t *cc;
+               cc_t *cc;
 
                cc = term->c_cc;
                cc[VINTR] = tc->t_intrc;
@@ -274,7 +274,7 @@ ttsetcompat(struct tty *tp, u_long *com, caddr_t data, struct termios *term)
                 */
        {
                struct ltchars *ltc = (struct ltchars *)data;
-               register cc_t *cc;
+               cc_t *cc;
 
                cc = term->c_cc;
                cc[VSUSP] = ltc->t_suspc;
@@ -387,8 +387,8 @@ ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, struct proc *p)
                 * flags, into the structure pointed to by 'data'.
                 */
            {
-               register struct sgttyb *sg = (struct sgttyb *)data;
-               register cc_t *cc = tp->t_cc;
+               struct sgttyb *sg = (struct sgttyb *)data;
+               cc_t *cc = tp->t_cc;
 
                sg->sg_ospeed = ttcompatspeedtab(tp->t_ospeed, compatspeeds);
                if (tp->t_ispeed == 0)
@@ -407,7 +407,7 @@ ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, struct proc *p)
                 */
            {
                struct tchars *tc = (struct tchars *)data;
-               register cc_t *cc = tp->t_cc;
+               cc_t *cc = tp->t_cc;
 
                tc->t_intrc = cc[VINTR];
                tc->t_quitc = cc[VQUIT];
@@ -424,7 +424,7 @@ ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, struct proc *p)
                 */
        {
                struct ltchars *ltc = (struct ltchars *)data;
-               register cc_t *cc = tp->t_cc;
+               cc_t *cc = tp->t_cc;
 
                ltc->t_suspc = cc[VSUSP];
                ltc->t_dsuspc = cc[VDSUSP];
@@ -517,11 +517,11 @@ ttcompat(struct tty *tp, u_long com, caddr_t data, int flag, struct proc *p)
 static int
 ttcompatgetflags(struct tty *tp)
 {
-       register tcflag_t iflag = tp->t_iflag;
-       register tcflag_t lflag = tp->t_lflag;
-       register tcflag_t oflag = tp->t_oflag;
-       register tcflag_t cflag = tp->t_cflag;
-       register int flags = 0;
+       tcflag_t iflag  = tp->t_iflag;
+       tcflag_t lflag  = tp->t_lflag;
+       tcflag_t oflag  = tp->t_oflag;
+       tcflag_t cflag  = tp->t_cflag;
+       int flags = 0;
 
        if (iflag&IXOFF)
                flags |= TANDEM;
@@ -589,11 +589,11 @@ ttcompatgetflags(struct tty *tp)
 static void
 ttcompatsetflags(struct tty *tp, struct termios *t)
 {
-       register int flags = tp->t_flags;
-       register tcflag_t iflag = t->c_iflag;
-       register tcflag_t oflag = t->c_oflag;
-       register tcflag_t lflag = t->c_lflag;
-       register tcflag_t cflag = t->c_cflag;
+       int flags = tp->t_flags;
+       tcflag_t iflag  = t->c_iflag;
+       tcflag_t oflag  = t->c_oflag;
+       tcflag_t lflag  = t->c_lflag;
+       tcflag_t cflag  = t->c_cflag;
 
        if (flags & RAW) {
                iflag = IGNBRK;
@@ -680,11 +680,11 @@ ttcompatsetflags(struct tty *tp, struct termios *t)
 static void
 ttcompatsetlflags(struct tty *tp, struct termios *t)
 {
-       register int flags = tp->t_flags;
-       register tcflag_t iflag = t->c_iflag;
-       register tcflag_t oflag = t->c_oflag;
-       register tcflag_t lflag = t->c_lflag;
-       register tcflag_t cflag = t->c_cflag;
+       int flags = tp->t_flags;
+       tcflag_t iflag  = t->c_iflag;
+       tcflag_t oflag  = t->c_oflag;
+       tcflag_t lflag  = t->c_lflag;
+       tcflag_t cflag  = t->c_cflag;
 
        iflag &= ~(PARMRK|IGNPAR|IGNCR|INLCR);
        if (flags&CRTERA)