1: /*
   2:  * Structure for stty and gtty system calls.
   3:  */
   4: 
   5: #ifndef _IOCTL_
   6: #include    <sys/ioctl.h>
   7: #endif
   8: 
   9: struct  sgttyb {
  10:     char    sg_ispeed;      /* input speed */
  11:     char    sg_ospeed;      /* output speed */
  12:     char    sg_erase;       /* erase character */
  13:     char    sg_kill;        /* kill character */
  14:     short   sg_flags;       /* mode flags */
  15: };
  16: 
  17: /*
  18:  * Modes
  19:  */
  20: #define TANDEM  01
  21: #define CBREAK  02
  22: #define LCASE   04
  23: #define ECHO    010
  24: #define CRMOD   020
  25: #define RAW 040
  26: #define ODDP    0100
  27: #define EVENP   0200
  28: #define ANYP    0300
  29: #define NLDELAY 001400
  30: #define TBDELAY 006000
  31: #define XTABS   06000
  32: #define CRDELAY 030000
  33: #define VTDELAY 040000
  34: #define BSDELAY 0100000
  35: #define ALLDELAY 0177400
  36: 
  37: /*
  38:  * Delay algorithms
  39:  */
  40: #define CR0 0
  41: #define CR1 010000
  42: #define CR2 020000
  43: #define CR3 030000
  44: #define NL0 0
  45: #define NL1 000400
  46: #define NL2 001000
  47: #define NL3 001400
  48: #define TAB0    0
  49: #define TAB1    002000
  50: #define TAB2    004000
  51: #define FF0 0
  52: #define FF1 040000
  53: #define BS0 0
  54: #define BS1 0100000
  55: 
  56: /*
  57:  * Speeds
  58:  */
  59: #define B0  0
  60: #define B50 1
  61: #define B75 2
  62: #define B110    3
  63: #define B134    4
  64: #define B150    5
  65: #define B200    6
  66: #define B300    7
  67: #define B600    8
  68: #define B1200   9
  69: #define B1800   10
  70: #define B2400   11
  71: #define B4800   12
  72: #define B9600   13
  73: #define B19200  14
  74: #define EXTA    14
  75: #define EXTB    15

Defined struct's

sgttyb defined in line 9; used 216 times

Defined macros

ANYP defined in line 28; used 39 times
B134 defined in line 63; used 6 times
B19200 defined in line 73; used 6 times
BS0 defined in line 53; used 1 times
BS1 defined in line 54; used 5 times
BSDELAY defined in line 34; used 2 times
CR0 defined in line 40; used 1 times
CR1 defined in line 41; used 28 times
CR2 defined in line 42; used 9 times
CR3 defined in line 43; used 5 times
CRDELAY defined in line 32; used 2 times
EXTA defined in line 74; used 3 times
EXTB defined in line 75; used 3 times
FF0 defined in line 51; used 1 times
FF1 defined in line 52; used 15 times
NL0 defined in line 44; used 1 times
NL1 defined in line 45; used 24 times
NL2 defined in line 46; used 3 times
NL3 defined in line 47; used 5 times
NLDELAY defined in line 29; used 2 times
TAB0 defined in line 48; used 1 times
TAB1 defined in line 49; used 6 times
TAB2 defined in line 50; used 1 times
TBDELAY defined in line 30; used 4 times

Usage of this include

sgtty.h used 65 times
Last modified: 1983-08-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1331
Valid CSS Valid XHTML 1.0 Strict