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 IGNBRK   (1 << 0) /* Ignore break condition. */
#define BRKINT   (1 << 1) /* Signal interrupt on break. */
#define IGNPAR   (1 << 2) /* Ignore characters with parity errors. */
#define PARMRK   (1 << 3) /* Mark parity and framing errors. */
#define INPCK   (1 << 4) /* Enable input parity check. */
#define ISTRIP   (1 << 5) /* Strip 8th bit off characters. */
#define INLCR   (1 << 6) /* Map NL to CR on input. */
#define IGNCR   (1 << 7) /* Ignore CR. */
#define ICRNL   (1 << 8) /* Map CR to NL on input. */
#define IXON   (1 << 9) /* Enable start/stop output control. */
#define IXOFF   (1 << 10) /* Enable start/stop input control. */
#define OPOST   (1 << 0) /* Perform output processing. */
#define CSIZE   (CS5|CS6|CS7|CS8) /* Number of bits per byte (mask). */
#define CS5   0 /* 5 bits per byte. */
#define CS6   (1 << 8) /* 6 bits per byte. */
#define CS7   (1 << 9) /* 7 bits per byte. */
#define CS8   (CS6|CS7) /* 8 bits per byte. */
#define CSTOPB   (1 << 10) /* Two stop bits instead of one. */
#define CREAD   (1 << 11) /* Enable receiver. */
#define PARENB   (1 << 12) /* Parity enable. */
#define PARODD   (1 << 13) /* Odd parity instead of even. */
#define HUPCL   (1 << 14) /* Hang up on last close. */
#define CLOCAL   (1 << 15) /* Ignore modem status lines. */
#define _ECHOE   (1 << 1) /* Visual erase for ERASE. */
#define ECHOE   _ECHOE
#define _ECHOK   (1 << 2) /* Echo NL after KILL. */
#define ECHOK   _ECHOK
#define _ECHO   (1 << 3) /* Enable echo. */
#define ECHO   _ECHO
#define _ECHONL   (1 << 4) /* Echo NL even if ECHO is off. */
#define ECHONL   _ECHONL
#define _ISIG   (1 << 7) /* Enable signals. */
#define ISIG   _ISIG
#define _ICANON   (1 << 8) /* Do erase and kill processing. */
#define ICANON   _ICANON
#define _IEXTEN   (1 << 10) /* Enable DISCARD and LNEXT. */
#define IEXTEN   _IEXTEN
#define EXTPROC   (1 << 11) /* External processing. */
#define _TOSTOP   (1 << 22) /* Send SIGTTOU for background output. */
#define TOSTOP   _TOSTOP
#define _NOFLSH   (1 << 31) /* Disable flush after interrupt. */
#define NOFLSH   _NOFLSH
#define VEOF   0 /* End-of-file character [ICANON]. */
#define VEOL   1 /* End-of-line character [ICANON]. */
#define VERASE   3 /* Erase character [ICANON]. */
#define VKILL   5 /* Kill-line character [ICANON]. */
#define VINTR   8 /* Interrupt character [ISIG]. */
#define VQUIT   9 /* Quit character [ISIG]. */
#define VSUSP   10 /* Suspend character [ISIG]. */
#define VSTART   12 /* Start (X-ON) character [IXON, IXOFF]. */
#define VSTOP   13 /* Stop (X-OFF) character [IXON, IXOFF]. */
#define VMIN   16 /* Minimum number of bytes read at once [!ICANON]. */
#define VTIME   17 /* Time-out value (tenths of a second) [!ICANON]. */
#define NCCS   20 /* Value duplicated in <hurd/tioctl.defs>. */
#define B0   0 /* Hang up. */
#define B50   50 /* 50 baud. */
#define B75   75 /* 75 baud. */
#define B110   110 /* 110 baud. */
#define B134   134 /* 134.5 baud. */
#define B150   150 /* 150 baud. */
#define B200   200 /* 200 baud. */
#define B300   300 /* 300 baud. */
#define B600   600 /* 600 baud. */
#define B1200   1200 /* 1200 baud. */
#define B1800   1800 /* 1800 baud. */
#define B2400   2400 /* 2400 baud. */
#define B4800   4800 /* 4800 baud. */
#define B9600   9600 /* 9600 baud. */
#define B7200   7200 /* 7200 baud. */
#define B14400   14400 /* 14400 baud. */
#define B19200   19200 /* 19200 baud. */
#define B28800   28800 /* 28800 baud. */
#define B38400   38400 /* 38400 baud. */
#define B57600   57600
#define B76800   76800
#define B115200   115200
#define B230400   230400
#define B460800   460800
#define B500000   500000
#define B576000   576000
#define B921600   921600
#define B1000000   1000000
#define B1152000   1152000
#define B1500000   1500000
#define B2000000   2000000
#define B2500000   2500000
#define B3000000   3000000
#define B3500000   3500000
#define B4000000   4000000
#define _IOT_termios
#define TCSANOW   0 /* Change immediately. */
#define TCSADRAIN   1 /* Change when pending output is written. */
#define TCSAFLUSH   2 /* Flush pending input before changing. */
#define TCIFLUSH   1 /* Discard data received but not yet read. */
#define TCOFLUSH   2 /* Discard data written but not yet sent. */
#define TCIOFLUSH   3 /* Discard all pending data. */
#define TCOOFF   1 /* Suspend output. */
#define TCOON   2 /* Restart suspended output. */
#define TCIOFF   3 /* Send a STOP character. */
#define TCION   4 /* Send a START character. */

Typedefs

typedef unsigned long int tcflag_t
typedef unsigned char cc_t
typedef long int speed_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 _ECHO   (1 << 3) /* Enable echo. */

Definition at line 215 of file termios.h.

#define _ECHOE   (1 << 1) /* Visual erase for ERASE. */

Definition at line 211 of file termios.h.

#define _ECHOK   (1 << 2) /* Echo NL after KILL. */

Definition at line 213 of file termios.h.

#define _ECHONL   (1 << 4) /* Echo NL even if ECHO is off. */

Definition at line 217 of file termios.h.

#define _ICANON   (1 << 8) /* Do erase and kill processing. */

Definition at line 225 of file termios.h.

#define _IEXTEN   (1 << 10) /* Enable DISCARD and LNEXT. */

Definition at line 230 of file termios.h.

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

Definition at line 320 of file termios.h.

#define _ISIG   (1 << 7) /* Enable signals. */

Definition at line 223 of file termios.h.

#define _NOFLSH   (1 << 31) /* Disable flush after interrupt. */

Definition at line 240 of file termios.h.

#define _TOSTOP   (1 << 22) /* Send SIGTTOU for background output. */

Definition at line 233 of file termios.h.

#define B0   0 /* Hang up. */

Definition at line 279 of file termios.h.

#define B1000000   1000000

Definition at line 310 of file termios.h.

#define B110   110 /* 110 baud. */

Definition at line 282 of file termios.h.

#define B115200   115200

Definition at line 304 of file termios.h.

#define B1152000   1152000

Definition at line 311 of file termios.h.

#define B1200   1200 /* 1200 baud. */

Definition at line 288 of file termios.h.

#define B134   134 /* 134.5 baud. */

Definition at line 283 of file termios.h.

#define B14400   14400 /* 14400 baud. */

Definition at line 294 of file termios.h.

#define B150   150 /* 150 baud. */

Definition at line 284 of file termios.h.

#define B1500000   1500000

Definition at line 312 of file termios.h.

#define B1800   1800 /* 1800 baud. */

Definition at line 289 of file termios.h.

#define B19200   19200 /* 19200 baud. */

Definition at line 295 of file termios.h.

#define B200   200 /* 200 baud. */

Definition at line 285 of file termios.h.

#define B2000000   2000000

Definition at line 313 of file termios.h.

#define B230400   230400

Definition at line 305 of file termios.h.

#define B2400   2400 /* 2400 baud. */

Definition at line 290 of file termios.h.

#define B2500000   2500000

Definition at line 314 of file termios.h.

#define B28800   28800 /* 28800 baud. */

Definition at line 296 of file termios.h.

#define B300   300 /* 300 baud. */

Definition at line 286 of file termios.h.

#define B3000000   3000000

Definition at line 315 of file termios.h.

#define B3500000   3500000

Definition at line 316 of file termios.h.

#define B38400   38400 /* 38400 baud. */

Definition at line 297 of file termios.h.

#define B4000000   4000000

Definition at line 317 of file termios.h.

#define B460800   460800

Definition at line 306 of file termios.h.

#define B4800   4800 /* 4800 baud. */

Definition at line 291 of file termios.h.

#define B50   50 /* 50 baud. */

Definition at line 280 of file termios.h.

#define B500000   500000

Definition at line 307 of file termios.h.

#define B57600   57600

Definition at line 302 of file termios.h.

#define B576000   576000

Definition at line 308 of file termios.h.

#define B600   600 /* 600 baud. */

Definition at line 287 of file termios.h.

#define B7200   7200 /* 7200 baud. */

Definition at line 293 of file termios.h.

#define B75   75 /* 75 baud. */

Definition at line 281 of file termios.h.

#define B76800   76800

Definition at line 303 of file termios.h.

#define B921600   921600

Definition at line 309 of file termios.h.

#define B9600   9600 /* 9600 baud. */

Definition at line 292 of file termios.h.

#define BRKINT   (1 << 1) /* Signal interrupt on break. */

Definition at line 117 of file termios.h.

#define CLOCAL   (1 << 15) /* Ignore modem status lines. */

Definition at line 196 of file termios.h.

#define CREAD   (1 << 11) /* Enable receiver. */

Definition at line 192 of file termios.h.

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

Definition at line 187 of file termios.h.

#define CS6   (1 << 8) /* 6 bits per byte. */

Definition at line 188 of file termios.h.

#define CS7   (1 << 9) /* 7 bits per byte. */

Definition at line 189 of file termios.h.

#define CS8   (CS6|CS7) /* 8 bits per byte. */

Definition at line 190 of file termios.h.

#define CSIZE   (CS5|CS6|CS7|CS8) /* Number of bits per byte (mask). */

Definition at line 186 of file termios.h.

#define CSTOPB   (1 << 10) /* Two stop bits instead of one. */

Definition at line 191 of file termios.h.

#define ECHO   _ECHO

Definition at line 216 of file termios.h.

#define ECHOE   _ECHOE

Definition at line 212 of file termios.h.

#define ECHOK   _ECHOK

Definition at line 214 of file termios.h.

#define ECHONL   _ECHONL

Definition at line 218 of file termios.h.

#define EXTPROC   (1 << 11) /* External processing. */

Definition at line 232 of file termios.h.

#define HUPCL   (1 << 14) /* Hang up on last close. */

Definition at line 195 of file termios.h.

#define ICANON   _ICANON

Definition at line 226 of file termios.h.

#define ICRNL   (1 << 8) /* Map CR to NL on input. */

Definition at line 124 of file termios.h.

#define IEXTEN   _IEXTEN

Definition at line 231 of file termios.h.

#define IGNBRK   (1 << 0) /* Ignore break condition. */

Definition at line 116 of file termios.h.

#define IGNCR   (1 << 7) /* Ignore CR. */

Definition at line 123 of file termios.h.

#define IGNPAR   (1 << 2) /* Ignore characters with parity errors. */

Definition at line 118 of file termios.h.

#define INLCR   (1 << 6) /* Map NL to CR on input. */

Definition at line 122 of file termios.h.

#define INPCK   (1 << 4) /* Enable input parity check. */

Definition at line 120 of file termios.h.

#define ISIG   _ISIG

Definition at line 224 of file termios.h.

#define ISTRIP   (1 << 5) /* Strip 8th bit off characters. */

Definition at line 121 of file termios.h.

#define IXOFF   (1 << 10) /* Enable start/stop input control. */

Definition at line 126 of file termios.h.

#define IXON   (1 << 9) /* Enable start/stop output control. */

Definition at line 125 of file termios.h.

#define NCCS   20 /* Value duplicated in <hurd/tioctl.defs>. */

Definition at line 274 of file termios.h.

#define NOFLSH   _NOFLSH

Definition at line 241 of file termios.h.

#define OPOST   (1 << 0) /* Perform output processing. */

Definition at line 137 of file termios.h.

#define PARENB   (1 << 12) /* Parity enable. */

Definition at line 193 of file termios.h.

#define PARMRK   (1 << 3) /* Mark parity and framing errors. */

Definition at line 119 of file termios.h.

#define PARODD   (1 << 13) /* Odd parity instead of even. */

Definition at line 194 of file termios.h.

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

Definition at line 332 of file termios.h.

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

Definition at line 339 of file termios.h.

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

Definition at line 334 of file termios.h.

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

Definition at line 340 of file termios.h.

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

Definition at line 333 of file termios.h.

#define TCOOFF   1 /* Suspend output. */

Definition at line 337 of file termios.h.

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

Definition at line 338 of file termios.h.

#define TCSADRAIN   1 /* Change when pending output is written. */

Definition at line 325 of file termios.h.

#define TCSAFLUSH   2 /* Flush pending input before changing. */

Definition at line 326 of file termios.h.

#define TCSANOW   0 /* Change immediately. */

Definition at line 324 of file termios.h.

#define TOSTOP   _TOSTOP

Definition at line 234 of file termios.h.

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

Definition at line 244 of file termios.h.

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

Definition at line 245 of file termios.h.

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

Definition at line 249 of file termios.h.

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

Definition at line 257 of file termios.h.

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

Definition at line 253 of file termios.h.

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

Definition at line 269 of file termios.h.

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

Definition at line 258 of file termios.h.

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

Definition at line 263 of file termios.h.

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

Definition at line 264 of file termios.h.

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

Definition at line 259 of file termios.h.

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

Definition at line 270 of file termios.h.


Typedef Documentation

typedef unsigned char cc_t

Definition at line 106 of file termios.h.

typedef long int speed_t

Definition at line 109 of file termios.h.

typedef unsigned long int tcflag_t

Definition at line 103 of file termios.h.