1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)tty_conf.c	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: #include "param.h"
  10: #include "systm.h"
  11: #include "buf.h"
  12: #include "ioctl.h"
  13: #include "tty.h"
  14: #include "conf.h"
  15: 
  16: int nodev();
  17: int nulldev();
  18: 
  19: int ttyopen(),ttylclose(),ttread(),ttwrite(),nullioctl(),ttstart();
  20: int ttymodem(), nullmodem(), ttyinput();
  21: 
  22: #include "bk.h"
  23: #if NBK > 0
  24: int bkopen(),bkclose(),bkread(),bkinput(),bkioctl();
  25: #endif
  26: 
  27: #include "tb.h"
  28: #if NTB > 0
  29: int tbopen(),tbclose(),tbread(),tbinput(),tbioctl();
  30: #endif
  31: #include "sl.h"
  32: #if NSL > 0
  33: int slopen(),slclose(),slinput(),sltioctl(),slstart();
  34: #endif
  35: 
  36: 
  37: struct  linesw linesw[] =
  38: {
  39:     ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 0- OTTYDISC */
  40:     ttyinput, nodev, nulldev, ttstart, ttymodem,
  41: #if NBK > 0
  42:     bkopen, bkclose, bkread, ttwrite, bkioctl,  /* 1- NETLDISC */
  43:     bkinput, nodev, nulldev, ttstart, nullmodem,
  44: #else
  45:     nodev, nodev, nodev, nodev, nodev,
  46:     nodev, nodev, nodev, nodev, nodev,
  47: #endif
  48:     ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 2- NTTYDISC */
  49:     ttyinput, nodev, nulldev, ttstart, ttymodem,
  50: #if NTB > 0
  51:     tbopen, tbclose, tbread, nodev, tbioctl,
  52:     tbinput, nodev, nulldev, ttstart, nullmodem,    /* 3- TABLDISC */
  53: #else
  54:     nodev, nodev, nodev, nodev, nodev,
  55:     nodev, nodev, nodev, nodev, nodev,
  56: #endif
  57: #if NSL > 0
  58:     slopen, slclose, nodev, nodev, sltioctl,
  59:     slinput, nodev, nulldev, slstart, nulldev,  /* 4- SLIPDISC */
  60: #else
  61:     nodev, nodev, nodev, nodev, nodev,
  62:     nodev, nodev, nodev, nodev, nodev,
  63: #endif
  64: };
  65: 
  66: int nldisp = sizeof (linesw) / sizeof (linesw[0]);
  67: 
  68: /*
  69:  * Do nothing specific version of line
  70:  * discipline specific ioctl command.
  71:  */
  72: /*ARGSUSED*/
  73: nullioctl(tp, cmd, data, flags)
  74:     struct tty *tp;
  75:     char *data;
  76:     int flags;
  77: {
  78: 
  79: #ifdef lint
  80:     tp = tp; data = data; flags = flags;
  81: #endif
  82:     return (-1);
  83: }

Defined functions

nullioctl defined in line 73; used 3 times

Defined variables

linesw defined in line 37; used 2 times
  • in line 66(2)
nldisp defined in line 66; never used
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 779
Valid CSS Valid XHTML 1.0 Strict