1 /* tty_conf.c 6.4 84/12/21 */ 2 3 #include "param.h" 4 #include "systm.h" 5 #include "buf.h" 6 #include "ioctl.h" 7 #include "tty.h" 8 #include "conf.h" 9 10 int nodev(); 11 int nulldev(); 12 13 int ttyopen(),ttyclose(),ttread(),ttwrite(),nullioctl(),ttstart(); 14 int ttyinput(); 15 16 #include "bk.h" 17 #if NBK > 0 18 int bkopen(),bkclose(),bkread(),bkinput(),bkioctl(); 19 #endif 20 21 #include "tb.h" 22 #if NTB > 0 23 int tbopen(),tbclose(),tbread(),tbinput(),tbioctl(); 24 #endif 25 26 struct linesw linesw[] = 27 { 28 ttyopen, nulldev, ttread, ttwrite, nullioctl, 29 ttyinput, nodev, nulldev, ttstart, nulldev, 30 #if NBK > 0 31 bkopen, bkclose, bkread, ttwrite, bkioctl, 32 bkinput, nodev, nulldev, ttstart, nulldev, 33 #else 34 nodev, nodev, nodev, nodev, nodev, 35 nodev, nodev, nodev, nodev, nodev, 36 #endif 37 ttyopen, ttyclose, ttread, ttwrite, nullioctl, 38 ttyinput, nodev, nulldev, ttstart, nulldev, 39 #if NTB > 0 40 tbopen, tbclose, tbread, nodev, tbioctl, 41 tbinput, nodev, nulldev, ttstart, nulldev, /* 3 */ 42 #else 43 nodev, nodev, nodev, nodev, nodev, 44 nodev, nodev, nodev, nodev, nodev, 45 #endif 46 #if NTB > 0 47 tbopen, tbclose, tbread, nodev, tbioctl, 48 tbinput, nodev, nulldev, ttstart, nulldev, /* 4 */ 49 #else 50 nodev, nodev, nodev, nodev, nodev, 51 nodev, nodev, nodev, nodev, nodev, 52 #endif 53 }; 54 55 int nldisp = sizeof (linesw) / sizeof (linesw[0]); 56 57 /* 58 * Do nothing specific version of line 59 * discipline specific ioctl command. 60 */ 61 /*ARGSUSED*/ 62 nullioctl(tp, cmd, data, flags) 63 struct tty *tp; 64 char *data; 65 int flags; 66 { 67 68 #ifdef lint 69 tp = tp; data = data; flags = flags; 70 #endif 71 return (-1); 72 } 73