1: /*
   2:  * ioctl definitions, and special character and local tty definitions
   3:  */
   4: #ifndef _IOCTL_
   5: #define _IOCTL_
   6: struct tchars {
   7:     char    t_intrc;    /* interrupt */
   8:     char    t_quitc;    /* quit */
   9:     char    t_startc;   /* start output */
  10:     char    t_stopc;    /* stop output */
  11:     char    t_eofc;     /* end-of-file */
  12:     char    t_brkc;     /* input delimiter (like nl) */
  13: };
  14: struct ltchars {
  15:     char    t_suspc;    /* stop process signal */
  16:     char    t_dsuspc;   /* delayed stop process signal */
  17:     char    t_rprntc;   /* reprint line */
  18:     char    t_flushc;   /* flush output (toggles) */
  19:     char    t_werasc;   /* word erase */
  20:     char    t_lnextc;   /* literal next character */
  21: };
  22: 
  23: /*
  24:  * local mode settings
  25:  */
  26: #define LCRTBS  0000001     /* correct backspacing for crt */
  27: #define LPRTERA 0000002     /* printing terminal \ ... / erase */
  28: #define LCRTERA 0000004     /* do " \b " to wipe out character */
  29: #define LTILDE  0000010     /* IIASA - hazeltine tilde kludge */
  30: #define LMDMBUF 0000020     /* IIASA - start/stop output on carrier intr */
  31: #define LLITOUT 0000040     /* IIASA - suppress any output translations */
  32: #define LTOSTOP 0000100     /* send stop for any background tty output */
  33: #define LFLUSHO 0000200     /* flush output sent to terminal */
  34: #define LNOHANG 0000400     /* IIASA - don't send hangup on carrier drop */
  35: #define LETXACK 0001000     /* IIASA - diablo style buffer hacking */
  36: #define LCRTKIL 0002000     /* erase whole line on kill with " \b " */
  37: #define LINTRUP 0004000     /* interrupt on every input char - SIGTINT */
  38: #define LCTLECH 0010000     /* echo control characters as ^X */
  39: #define LPENDIN 0020000     /* tp->t_rawq is waiting to be reread */
  40: #define LDECCTQ 0040000     /* only ^Q starts after ^S */
  41: #define LNOFLSH 0100000     /* don't flush output on signals */
  42: 
  43: /* local mode extension (t_xflags) */
  44: #ifdef  TEXAS_AUTOBAUD
  45: #define LIMAGE  01      /* ignoring framing errors for autobauding */
  46: #endif
  47: 
  48: /* local state */
  49: #define LSBKSL  01      /* state bit for lowercase backslash work */
  50: #define LSQUOT  02      /* last character input was \ */
  51: #define LSERASE 04      /* within a \.../ for LPRTRUB */
  52: #define LSLNCH  010     /* next character is literal */
  53: #define LSTYPEN 020     /* retyping suspended input (LPENDIN) */
  54: #define LSCNTTB 040     /* counting width of tab; leave LFLUSHO alone */
  55: 
  56: /*
  57:  * tty ioctl commands
  58:  */
  59: #define TIOCGETD    (('t'<<8)|0)    /* get line discipline */
  60: #define TIOCSETD    (('t'<<8)|1)    /* set line discipline */
  61: #define TIOCHPCL    (('t'<<8)|2)    /* set hangup line on close bit */
  62: #define TIOCMODG    (('t'<<8)|3)    /* modem bits get (???) */
  63: #define TIOCMODS    (('t'<<8)|4)    /* modem bits set (???) */
  64: #define TIOCGETP    (('t'<<8)|8)    /* get parameters - like old gtty */
  65: #define TIOCSETP    (('t'<<8)|9)    /* set parameters - like old stty */
  66: #define TIOCSETN    (('t'<<8)|10)   /* set params w/o flushing buffers */
  67: #define TIOCEXCL    (('t'<<8)|13)   /* set exclusive use of tty */
  68: #define TIOCNXCL    (('t'<<8)|14)   /* reset exclusive use of tty */
  69: #define TIOCFLUSH   (('t'<<8)|16)   /* flush buffers */
  70: #define TIOCSETC    (('t'<<8)|17)   /* set special characters */
  71: #define TIOCGETC    (('t'<<8)|18)   /* get special characters */
  72: #define TIOCIOANS   (('t'<<8)|20)
  73: #define TIOCSIGNAL  (('t'<<8)|21)
  74: #define TIOCUTTY    (('t'<<8)|22)
  75: /* locals, from 127 down */
  76: #define TIOCLBIS    (('t'<<8)|127)  /* bis local mode bits */
  77: #define TIOCLBIC    (('t'<<8)|126)  /* bic local mode bits */
  78: #define TIOCLSET    (('t'<<8)|125)  /* set entire local mode word */
  79: #define TIOCLGET    (('t'<<8)|124)  /* get local modes */
  80: #define TIOCSBRK    (('t'<<8)|123)  /* set break bit */
  81: #define TIOCCBRK    (('t'<<8)|122)  /* clear break bit */
  82: #define TIOCSDTR    (('t'<<8)|121)  /* set data terminal ready */
  83: #define TIOCCDTR    (('t'<<8)|120)  /* clear data terminal ready */
  84: #define TIOCGPGRP   (('t'<<8)|119)  /* get pgrp of tty */
  85: #define TIOCSPGRP   (('t'<<8)|118)  /* set pgrp of tty */
  86: #define TIOCSLTC    (('t'<<8)|117)  /* set local special characters */
  87: #define TIOCGLTC    (('t'<<8)|116)  /* get local special characters */
  88: #define TIOCOUTQ    (('t'<<8)|115)  /* number of chars in output queue */
  89: #define TIOCSTI     (('t'<<8)|114)  /* simulate a terminal input character*/
  90: #define TIOCNOTTY   (('t'<<8)|113)  /* get rid of tty association */
  91: #define TIOCPKT     (('t'<<8)|112)  /* on pty: set/clear packet mode */
  92: #define     TIOCPKT_DATA        0x00    /* data packet */
  93: #define     TIOCPKT_FLUSHREAD   0x01    /* flush packet */
  94: #define     TIOCPKT_FLUSHWRITE  0x02    /* flush packet */
  95: #define     TIOCPKT_STOP        0x04    /* stop output */
  96: #define     TIOCPKT_START       0x08    /* start output */
  97: #define     TIOCPKT_NOSTOP      0x10    /* no more ^S, ^Q */
  98: #define     TIOCPKT_DOSTOP      0x20    /* now do ^S ^Q */
  99: #define TIOCSTOP    (('t'<<8)|111)  /* stop output, like ^S */
 100: #define TIOCSTART   (('t'<<8)|110)  /* start output, like ^Q */
 101: #define TIOCMSET    (('t'<<8)|109)  /* set all modem bits */
 102: #define TIOCMBIS    (('t'<<8)|108)  /* bis modem bits */
 103: #define TIOCMBIC    (('t'<<8)|107)  /* bic modem bits */
 104: #define TIOCMGET    (('t'<<8)|106)  /* get all modem bits */
 105: #define TIOCREMOTE  (('t'<<8)|105)  /* remote input editing */
 106: #ifdef  TEXAS_AUTOBAUD
 107: #define TIOCSIMG        (('t'<<8)|104)  /* set image mode */
 108: #define TIOCCIMG        (('t'<<8)|103)  /* clear image mode */
 109: #endif
 110: 
 111: #define OTTYDISC    0       /* old, v7 std tty driver */
 112: #define NTTYDISC    1       /* new tty discipline */
 113: #define NETLDISC    2       /* line discip for berk net */
 114: #ifdef  OLDTTY
 115: #	define    DFLT_LDISC  OTTYDISC    /* default disc. on initial open */
 116: #else
 117: #	define    DFLT_LDISC  NTTYDISC    /* default disc. on initial open */
 118: #endif
 119: 
 120: #define FIOCLEX     (('f'<<8)|1)
 121: #define FIONCLEX    (('f'<<8)|2)
 122: /* another local */
 123: #define FIONREAD    (('f'<<8)|127)  /* get # bytes to read */
 124: 
 125: #ifdef  UCB_NET
 126: #define FIONBIO     (('f'<<8)|126)
 127: #define FIOASYNC    (('f'<<8)|125)
 128: #define SIOCDONE    (('s'<<8)|0)    /* shutdown read/write on socket */
 129: #define SIOCSKEEP   (('s'<<8)|1)    /* set keep alive */
 130: #define SIOCGKEEP   (('s'<<8)|2)    /* inspect keep alive */
 131: #define SIOCSLINGER (('s'<<8)|3)    /* set linger time */
 132: #define SIOCGLINGER (('s'<<8)|4)    /* get linger time */
 133: #define SIOCSENDOOB (('s'<<8)|5)    /* send out of band */
 134: #define SIOCRCVOOB  (('s'<<8)|6)    /* get out of band */
 135: #define SIOCATMARK  (('s'<<8)|7)    /* at out of band mark? */
 136: #define SIOCSPGRP   (('s'<<8)|8)    /* set process group */
 137: #define SIOCGPGRP   (('s'<<8)|9)    /* get process group */
 138: #define SIOCADDRT   (('s'<<8)|10)   /* add a routing table entry */
 139: #define SIOCDELRT   (('s'<<8)|11)   /* delete a routing table entry */
 140: #define SIOCCHGRT   (('s'<<8)|12)   /* change a routing table entry */
 141: #endif
 142: #endif	_IOCTL_

Defined struct's

tchars defined in line 6; used 14 times

Defined macros

FIOASYNC defined in line 127; used 1 times
FIONBIO defined in line 126; used 1 times
FIONCLEX defined in line 121; used 1 times
FIONREAD defined in line 123; used 1 times
LCRTBS defined in line 26; used 13 times
LCRTERA defined in line 28; used 13 times
LCRTKIL defined in line 36; used 12 times
LCTLECH defined in line 38; used 11 times
LDECCTQ defined in line 40; used 5 times
LETXACK defined in line 35; used 3 times
LFLUSHO defined in line 33; used 19 times
LIMAGE defined in line 45; used 3 times
LINTRUP defined in line 37; used 8 times
LLITOUT defined in line 31; used 10 times
LMDMBUF defined in line 30; used 4 times
LNOFLSH defined in line 41; used 6 times
LNOHANG defined in line 34; used 6 times
LPENDIN defined in line 39; used 8 times
LPRTERA defined in line 27; used 12 times
LSBKSL defined in line 49; used 4 times
LSCNTTB defined in line 54; used 3 times
LSERASE defined in line 51; used 5 times
LSLNCH defined in line 52; used 3 times
LSQUOT defined in line 50; used 3 times
LSTYPEN defined in line 53; used 3 times
LTILDE defined in line 29; used 5 times
LTOSTOP defined in line 32; used 4 times
OTTYDISC defined in line 111; used 4 times
SIOCADDRT defined in line 138; never used
SIOCATMARK defined in line 135; never used
SIOCCHGRT defined in line 140; never used
SIOCDELRT defined in line 139; never used
SIOCDONE defined in line 128; never used
SIOCGKEEP defined in line 130; never used
SIOCGLINGER defined in line 132; never used
SIOCGPGRP defined in line 137; never used
SIOCRCVOOB defined in line 134; never used
SIOCSENDOOB defined in line 133; never used
SIOCSKEEP defined in line 129; never used
SIOCSLINGER defined in line 131; never used
SIOCSPGRP defined in line 136; never used
TIOCCDTR defined in line 83; never used
TIOCCIMG defined in line 108; used 2 times
TIOCFLUSH defined in line 69; used 12 times
TIOCIOANS defined in line 72; never used
TIOCLBIC defined in line 77; used 2 times
TIOCLBIS defined in line 76; used 1 times
TIOCLSET defined in line 78; used 7 times
TIOCMBIC defined in line 103; never used
TIOCMBIS defined in line 102; never used
TIOCMGET defined in line 104; never used
TIOCMODG defined in line 62; never used
TIOCMODS defined in line 63; never used
TIOCMSET defined in line 101; never used
TIOCNOTTY defined in line 90; used 3 times
TIOCNXCL defined in line 68; used 2 times
TIOCOUTQ defined in line 88; never used
TIOCPKT defined in line 91; never used
TIOCPKT_DATA defined in line 92; never used
TIOCPKT_DOSTOP defined in line 98; never used
TIOCPKT_FLUSHREAD defined in line 93; never used
TIOCPKT_FLUSHWRITE defined in line 94; never used
TIOCPKT_NOSTOP defined in line 97; never used
TIOCPKT_START defined in line 96; never used
TIOCPKT_STOP defined in line 95; never used
TIOCREMOTE defined in line 105; never used
TIOCSDTR defined in line 82; never used
TIOCSIGNAL defined in line 73; never used
TIOCSIMG defined in line 107; used 1 times
TIOCSTART defined in line 100; never used
TIOCSTI defined in line 89; used 13 times
TIOCSTOP defined in line 99; never used
TIOCUTTY defined in line 74; never used
_IOCTL_ defined in line 5; used 2 times

Usage of this include

Last modified: 1983-09-06
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1972
Valid CSS Valid XHTML 1.0 Strict