- register timo;
- register struct cpdcb_o *current;
- int unit;
-
- unit = minor(tp->t_dev);
- current = &consout[unit];
- timo = 30000;
+ register timo = 30000;
+ int unit = minor(tp->t_dev);
+ register struct cpdcb_o *current = &consout[unit];
+ register cflag = t->c_cflag;
+ int speedcode, csize;
+
+ if (((speedcode == ttspeedtab(t->c_ospeed, cnspeedtab)) < 0) ||
+ (t->c_ispeed && t->c_ispeed != t->c_ospeed) ||
+ ((csize = (cflag&CSIZE)) != CS7 && csize != CS8))
+ return (EINVAL);
+ /*XXX*/return (0);