[BACK]Return to tty.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/tty.c between version 1.191 and 1.192

version 1.191, 2007/02/17 21:43:08 version 1.192, 2007/03/04 06:03:10
Line 821  ttyoutput(int c, struct tty *tp)
Line 821  ttyoutput(int c, struct tty *tp)
  */   */
 /* ARGSUSED */  /* ARGSUSED */
 int  int
 ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct lwp *l)  ttioctl(struct tty *tp, u_long cmd, void *data, int flag, struct lwp *l)
 {  {
         extern struct tty *constty;     /* Temporary virtual console. */          extern struct tty *constty;     /* Temporary virtual console. */
         struct proc *p = l ? l->l_proc : NULL;          struct proc *p = l ? l->l_proc : NULL;
Line 1239  ttioctl(struct tty *tp, u_long cmd, cadd
Line 1239  ttioctl(struct tty *tp, u_long cmd, cadd
                 splx(s);                  splx(s);
                 break;                  break;
         case TIOCSWINSZ:                /* set window size */          case TIOCSWINSZ:                /* set window size */
                 if (memcmp((caddr_t)&tp->t_winsize, data,                  if (memcmp((void *)&tp->t_winsize, data,
                     sizeof(struct winsize))) {                      sizeof(struct winsize))) {
                         tp->t_winsize = *(struct winsize *)data;                          tp->t_winsize = *(struct winsize *)data;
                         mutex_enter(&proclist_mutex);                          mutex_enter(&proclist_mutex);
Line 1481  ttyflush(struct tty *tp, int rw)
Line 1481  ttyflush(struct tty *tp, int rw)
                 if (cdev != NULL)                  if (cdev != NULL)
                         (*cdev->d_stop)(tp, rw);                          (*cdev->d_stop)(tp, rw);
                 FLUSHQ(&tp->t_outq);                  FLUSHQ(&tp->t_outq);
                 wakeup((caddr_t)&tp->t_outq);                  wakeup((void *)&tp->t_outq);
                 selnotify(&tp->t_wsel, NOTE_SUBMIT);                  selnotify(&tp->t_wsel, NOTE_SUBMIT);
         }          }
 }  }
Line 2333  ttwakeup(struct tty *tp)
Line 2333  ttwakeup(struct tty *tp)
                 pgsignal(tp->t_pgrp, SIGIO, tp->t_session != NULL);                  pgsignal(tp->t_pgrp, SIGIO, tp->t_session != NULL);
                 mutex_exit(&proclist_mutex);                  mutex_exit(&proclist_mutex);
         }          }
         wakeup((caddr_t)&tp->t_rawq);          wakeup((void *)&tp->t_rawq);
 }  }
   
 /*  /*

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

CVSweb <webmaster@jp.NetBSD.org>