Back to index

glibc  2.9
Classes | Defines | Typedefs
termios.h File Reference

Go to the source code of this file.

Classes

struct  termios

Defines

#define NCCS   32
#define VINTR   0 /* Interrupt character [ISIG]. */
#define VQUIT   1 /* Quit character [ISIG]. */
#define VERASE   2 /* Erase character [ICANON]. */
#define VKILL   3 /* Kill-line character [ICANON]. */
#define VMIN   4 /* Minimum number of bytes read at once [!ICANON]. */
#define VTIME   5 /* Time-out value (tenths of a second) [!ICANON]. */
#define VEOL2   6 /* Second EOL character [ICANON]. */
#define VSWTC   7
#define VSWTCH   VSWTC
#define VSTART   8 /* Start (X-ON) character [IXON, IXOFF]. */
#define VSTOP   9 /* Stop (X-OFF) character [IXON, IXOFF]. */
#define VSUSP   10 /* Suspend character [ISIG]. */
#define VREPRINT   12 /* Reprint-line character [ICANON]. */
#define VDISCARD   13 /* Discard character [IEXTEN]. */
#define VWERASE   14 /* Word-erase character [ICANON]. */
#define VLNEXT   15 /* Literal-next character [IEXTEN]. */
#define VEOF   16 /* End-of-file character [ICANON]. */
#define VEOL   17 /* End-of-line character [ICANON]. */
#define IGNBRK   0000001 /* Ignore break condition. */
#define BRKINT   0000002 /* Signal interrupt on break. */
#define IGNPAR   0000004 /* Ignore characters with parity errors. */
#define PARMRK   0000010 /* Mark parity and framing errors. */
#define INPCK   0000020 /* Enable input parity check. */
#define ISTRIP   0000040 /* Strip 8th bit off characters. */
#define INLCR   0000100 /* Map NL to CR on input. */
#define IGNCR   0000200 /* Ignore CR. */
#define ICRNL   0000400 /* Map CR to NL on input. */
#define IUCLC   0001000 /* Map upper case to lower case on input. */
#define IXON   0002000 /* Enable start/stop output control. */
#define IXANY   0004000 /* Any character will restart after stop. */
#define IXOFF   0010000 /* Enable start/stop input control. */
#define IMAXBEL   0020000 /* Ring bell when input queue is full. */
#define IUTF8   0040000 /* Input is UTF8. */
#define OPOST   0000001 /* Perform output processing. */
#define OLCUC   0000002 /* Map lower case to upper case on output. */
#define ONLCR   0000004 /* Map NL to CR-NL on output. */
#define OCRNL   0000010
#define ONOCR   0000020
#define ONLRET   0000040
#define OFILL   0000100
#define OFDEL   0000200
#define VTDLY   0040000
#define VT0   0000000
#define VT1   0040000
#define B0   0000000 /* hang up */
#define B50   0000001
#define B75   0000002
#define B110   0000003
#define B134   0000004
#define B150   0000005
#define B200   0000006
#define B300   0000007
#define B600   0000010
#define B1200   0000011
#define B1800   0000012
#define B2400   0000013
#define B4800   0000014
#define B9600   0000015
#define B19200   0000016
#define B38400   0000017
#define CSIZE   0000060 /* Number of bits per byte (mask). */
#define CS5   0000000 /* 5 bits per byte. */
#define CS6   0000020 /* 6 bits per byte. */
#define CS7   0000040 /* 7 bits per byte. */
#define CS8   0000060 /* 8 bits per byte. */
#define CSTOPB   0000100 /* Two stop bits instead of one. */
#define CREAD   0000200 /* Enable receiver. */
#define PARENB   0000400 /* Parity enable. */
#define PARODD   0001000 /* Odd parity instead of even. */
#define HUPCL   0002000 /* Hang up on last close. */
#define CLOCAL   0004000 /* Ignore modem status lines. */
#define B57600   0010001
#define B115200   0010002
#define B230400   0010003
#define B460800   0010004
#define B500000   0010005
#define B576000   0010006
#define B921600   0010007
#define B1000000   0010010
#define B1152000   0010011
#define B1500000   0010012
#define B2000000   0010013
#define B2500000   0010014
#define B3000000   0010015
#define B3500000   0010016
#define B4000000   0010017
#define __MAX_BAUD   B4000000
#define ISIG   0000001 /* Enable signals. */
#define ICANON   0000002 /* Do erase and kill processing. */
#define ECHO   0000010 /* Enable echo. */
#define ECHOE   0000020 /* Visual erase for ERASE. */
#define ECHOK   0000040 /* Echo NL after KILL. */
#define ECHONL   0000100 /* Echo NL even if ECHO is off. */
#define NOFLSH   0000200 /* Disable flush after interrupt. */
#define IEXTEN   0000400 /* Enable DISCARD and LNEXT. */
#define TOSTOP   0100000 /* Send SIGTTOU for background output. */
#define ITOSTOP   TOSTOP
#define TIOCSER_TEMT   0x01 /* Transmitter physically empty */
#define TCOOFF   0 /* Suspend output. */
#define TCOON   1 /* Restart suspended output. */
#define TCIOFF   2 /* Send a STOP character. */
#define TCION   3 /* Send a START character. */
#define TCIFLUSH   0 /* Discard data received but not yet read. */
#define TCOFLUSH   1 /* Discard data written but not yet sent. */
#define TCIOFLUSH   2 /* Discard all pending data. */
#define TCSANOW   0x540e /* Same as TCSETS; change immediately. */
#define TCSADRAIN   0x540f /* Same as TCSETSW; change when pending output is written. */
#define TCSAFLUSH   0x5410 /* Same as TCSETSF; flush pending input before changing. */
#define _IOT_termios

Typedefs

typedef unsigned char cc_t
typedef unsigned int speed_t
typedef unsigned int tcflag_t

Class Documentation

struct termios

Definition at line 112 of file termios.h.

Class Members
speed_t __ispeed
speed_t __ospeed
cc_t c_cc
tcflag_t c_cflag
tcflag_t c_iflag
speed_t c_ispeed
tcflag_t c_lflag
cc_t c_line
char c_line
tcflag_t c_oflag
speed_t c_ospeed

Define Documentation

#define __MAX_BAUD   B4000000

Definition at line 170 of file termios.h.

#define _IOT_termios
Value:
/* Hurd ioctl type field.  */ \
  _IOT (_IOTS (cflag_t), 4, _IOTS (cc_t), NCCS, _IOTS (speed_t), 2)

Definition at line 217 of file termios.h.

#define B0   0000000 /* hang up */

Definition at line 121 of file termios.h.

#define B1000000   0010010

Definition at line 162 of file termios.h.

#define B110   0000003

Definition at line 124 of file termios.h.

#define B115200   0010002

Definition at line 156 of file termios.h.

#define B1152000   0010011

Definition at line 163 of file termios.h.

#define B1200   0000011

Definition at line 130 of file termios.h.

#define B134   0000004

Definition at line 125 of file termios.h.

#define B150   0000005

Definition at line 126 of file termios.h.

#define B1500000   0010012

Definition at line 164 of file termios.h.

#define B1800   0000012

Definition at line 131 of file termios.h.

#define B19200   0000016

Definition at line 135 of file termios.h.

#define B200   0000006

Definition at line 127 of file termios.h.

#define B2000000   0010013

Definition at line 165 of file termios.h.

#define B230400   0010003

Definition at line 157 of file termios.h.

#define B2400   0000013

Definition at line 132 of file termios.h.

#define B2500000   0010014

Definition at line 166 of file termios.h.

#define B300   0000007

Definition at line 128 of file termios.h.

#define B3000000   0010015

Definition at line 167 of file termios.h.

#define B3500000   0010016

Definition at line 168 of file termios.h.

#define B38400   0000017

Definition at line 136 of file termios.h.

#define B4000000   0010017

Definition at line 169 of file termios.h.

#define B460800   0010004

Definition at line 158 of file termios.h.

#define B4800   0000014

Definition at line 133 of file termios.h.

#define B50   0000001

Definition at line 122 of file termios.h.

#define B500000   0010005

Definition at line 159 of file termios.h.

#define B57600   0010001

Definition at line 155 of file termios.h.

#define B576000   0010006

Definition at line 160 of file termios.h.

#define B600   0000010

Definition at line 129 of file termios.h.

#define B75   0000002

Definition at line 123 of file termios.h.

#define B921600   0010007

Definition at line 161 of file termios.h.

#define B9600   0000015

Definition at line 134 of file termios.h.

#define BRKINT   0000002 /* Signal interrupt on break. */

Definition at line 63 of file termios.h.

#define CLOCAL   0004000 /* Ignore modem status lines. */

Definition at line 151 of file termios.h.

#define CREAD   0000200 /* Enable receiver. */

Definition at line 147 of file termios.h.

#define CS5   0000000 /* 5 bits per byte. */

Definition at line 142 of file termios.h.

#define CS6   0000020 /* 6 bits per byte. */

Definition at line 143 of file termios.h.

#define CS7   0000040 /* 7 bits per byte. */

Definition at line 144 of file termios.h.

#define CS8   0000060 /* 8 bits per byte. */

Definition at line 145 of file termios.h.

#define CSIZE   0000060 /* Number of bits per byte (mask). */

Definition at line 141 of file termios.h.

#define CSTOPB   0000100 /* Two stop bits instead of one. */

Definition at line 146 of file termios.h.

#define ECHO   0000010 /* Enable echo. */

Definition at line 182 of file termios.h.

#define ECHOE   0000020 /* Visual erase for ERASE. */

Definition at line 183 of file termios.h.

#define ECHOK   0000040 /* Echo NL after KILL. */

Definition at line 184 of file termios.h.

#define ECHONL   0000100 /* Echo NL even if ECHO is off. */

Definition at line 185 of file termios.h.

#define HUPCL   0002000 /* Hang up on last close. */

Definition at line 150 of file termios.h.

#define ICANON   0000002 /* Do erase and kill processing. */

Definition at line 178 of file termios.h.

#define ICRNL   0000400 /* Map CR to NL on input. */

Definition at line 70 of file termios.h.

#define IEXTEN   0000400 /* Enable DISCARD and LNEXT. */

Definition at line 187 of file termios.h.

#define IGNBRK   0000001 /* Ignore break condition. */

Definition at line 62 of file termios.h.

#define IGNCR   0000200 /* Ignore CR. */

Definition at line 69 of file termios.h.

#define IGNPAR   0000004 /* Ignore characters with parity errors. */

Definition at line 64 of file termios.h.

#define IMAXBEL   0020000 /* Ring bell when input queue is full. */

Definition at line 75 of file termios.h.

#define INLCR   0000100 /* Map NL to CR on input. */

Definition at line 68 of file termios.h.

#define INPCK   0000020 /* Enable input parity check. */

Definition at line 66 of file termios.h.

#define ISIG   0000001 /* Enable signals. */

Definition at line 177 of file termios.h.

#define ISTRIP   0000040 /* Strip 8th bit off characters. */

Definition at line 67 of file termios.h.

#define ITOSTOP   TOSTOP

Definition at line 196 of file termios.h.

#define IUCLC   0001000 /* Map upper case to lower case on input. */

Definition at line 71 of file termios.h.

#define IUTF8   0040000 /* Input is UTF8. */

Definition at line 76 of file termios.h.

#define IXANY   0004000 /* Any character will restart after stop. */

Definition at line 73 of file termios.h.

#define IXOFF   0010000 /* Enable start/stop input control. */

Definition at line 74 of file termios.h.

#define IXON   0002000 /* Enable start/stop output control. */

Definition at line 72 of file termios.h.

#define NCCS   32

Definition at line 28 of file termios.h.

#define NOFLSH   0000200 /* Disable flush after interrupt. */

Definition at line 186 of file termios.h.

#define OCRNL   0000010

Definition at line 82 of file termios.h.

#define OFDEL   0000200

Definition at line 86 of file termios.h.

#define OFILL   0000100

Definition at line 85 of file termios.h.

#define OLCUC   0000002 /* Map lower case to upper case on output. */

Definition at line 80 of file termios.h.

#define ONLCR   0000004 /* Map NL to CR-NL on output. */

Definition at line 81 of file termios.h.

#define ONLRET   0000040

Definition at line 84 of file termios.h.

#define ONOCR   0000020

Definition at line 83 of file termios.h.

#define OPOST   0000001 /* Perform output processing. */

Definition at line 79 of file termios.h.

#define PARENB   0000400 /* Parity enable. */

Definition at line 148 of file termios.h.

#define PARMRK   0000010 /* Mark parity and framing errors. */

Definition at line 65 of file termios.h.

#define PARODD   0001000 /* Odd parity instead of even. */

Definition at line 149 of file termios.h.

#define TCIFLUSH   0 /* Discard data received but not yet read. */

Definition at line 208 of file termios.h.

#define TCIOFF   2 /* Send a STOP character. */

Definition at line 204 of file termios.h.

#define TCIOFLUSH   2 /* Discard all pending data. */

Definition at line 210 of file termios.h.

#define TCION   3 /* Send a START character. */

Definition at line 205 of file termios.h.

#define TCOFLUSH   1 /* Discard data written but not yet sent. */

Definition at line 209 of file termios.h.

#define TCOOFF   0 /* Suspend output. */

Definition at line 202 of file termios.h.

#define TCOON   1 /* Restart suspended output. */

Definition at line 203 of file termios.h.

#define TCSADRAIN   0x540f /* Same as TCSETSW; change when pending output is written. */

Definition at line 214 of file termios.h.

#define TCSAFLUSH   0x5410 /* Same as TCSETSF; flush pending input before changing. */

Definition at line 215 of file termios.h.

#define TCSANOW   0x540e /* Same as TCSETS; change immediately. */

Definition at line 213 of file termios.h.

#define TIOCSER_TEMT   0x01 /* Transmitter physically empty */

Definition at line 199 of file termios.h.

#define TOSTOP   0100000 /* Send SIGTTOU for background output. */

Definition at line 195 of file termios.h.

#define VDISCARD   13 /* Discard character [IEXTEN]. */

Definition at line 55 of file termios.h.

#define VEOF   16 /* End-of-file character [ICANON]. */

Definition at line 58 of file termios.h.

#define VEOL   17 /* End-of-line character [ICANON]. */

Definition at line 59 of file termios.h.

#define VEOL2   6 /* Second EOL character [ICANON]. */

Definition at line 46 of file termios.h.

#define VERASE   2 /* Erase character [ICANON]. */

Definition at line 42 of file termios.h.

#define VINTR   0 /* Interrupt character [ISIG]. */

Definition at line 40 of file termios.h.

#define VKILL   3 /* Kill-line character [ICANON]. */

Definition at line 43 of file termios.h.

#define VLNEXT   15 /* Literal-next character [IEXTEN]. */

Definition at line 57 of file termios.h.

#define VMIN   4 /* Minimum number of bytes read at once [!ICANON]. */

Definition at line 44 of file termios.h.

#define VQUIT   1 /* Quit character [ISIG]. */

Definition at line 41 of file termios.h.

#define VREPRINT   12 /* Reprint-line character [ICANON]. */

Definition at line 54 of file termios.h.

#define VSTART   8 /* Start (X-ON) character [IXON, IXOFF]. */

Definition at line 49 of file termios.h.

#define VSTOP   9 /* Stop (X-OFF) character [IXON, IXOFF]. */

Definition at line 50 of file termios.h.

#define VSUSP   10 /* Suspend character [ISIG]. */

Definition at line 51 of file termios.h.

#define VSWTC   7

Definition at line 47 of file termios.h.

#define VSWTCH   VSWTC

Definition at line 48 of file termios.h.

#define VT0   0000000

Definition at line 110 of file termios.h.

#define VT1   0040000

Definition at line 111 of file termios.h.

#define VTDLY   0040000

Definition at line 109 of file termios.h.

#define VTIME   5 /* Time-out value (tenths of a second) [!ICANON]. */

Definition at line 45 of file termios.h.

#define VWERASE   14 /* Word-erase character [ICANON]. */

Definition at line 56 of file termios.h.


Typedef Documentation

typedef unsigned char cc_t

Definition at line 24 of file termios.h.

typedef unsigned int speed_t

Definition at line 25 of file termios.h.

typedef unsigned int tcflag_t

Definition at line 26 of file termios.h.