"update for hp300 support from Utah"
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 07:20:29 +0000 (23:20 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 16 May 1990 07:20:29 +0000 (23:20 -0800)
SCCS-vsn: sys/kern/tty_compat.c 7.5

usr/src/sys/kern/tty_compat.c

index 0de8362..6b77f89 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)tty_compat.c        7.4 (Berkeley) %G%
+ *     @(#)tty_compat.c        7.5 (Berkeley) %G%
  */
 
 /* 
  */
 
 /* 
@@ -186,6 +186,10 @@ ttcompat(tp, com, data, flag)
 
                return(ttioctl(tp, TIOCSETD, 
                        *(int *)data == 2 ? (caddr_t)&ldisczero : data, flag));
 
                return(ttioctl(tp, TIOCSETD, 
                        *(int *)data == 2 ? (caddr_t)&ldisczero : data, flag));
+
+       case OTIOCCONS:
+               *(int *)data = 1;
+               return(ttioctl(tp, TIOCCONS, data, flag));
        }
 
        default:
        }
 
        default: