µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
termios.h File Reference
#include <unistd.h>

Go to the source code of this file.

Classes

struct  termios
 

Macros

#define _POSIX_VDISABLE   0xff
 
#define B0   0
 
#define B110   110
 
#define B1200   1200
 
#define B134   134
 
#define B150   150
 
#define B1800   1800
 
#define B19200   19200
 
#define B200   200
 
#define B2400   2400
 
#define B300   300
 
#define B38400   38400
 
#define B4800   4800
 
#define B50   50
 
#define B600   600
 
#define B75   75
 
#define B9600   9600
 
#define BRKINT   0x00000002 /* map BREAK to SIGINTR */
 
#define CLOCAL   0x00008000 /* ignore modem status lines */
 
#define CREAD   0x00000800 /* enable receiver */
 
#define CS5   0x00000000 /* 5 bits (pseudo) */
 
#define CS6   0x00000100 /* 6 bits */
 
#define CS7   0x00000200 /* 7 bits */
 
#define CS8   0x00000300 /* 8 bits */
 
#define CSIZE   0x00000300 /* character size mask */
 
#define CSTOPB   0x00000400 /* send 2 stop bits */
 
#define ECHO   0x00000008 /* enable echoing */
 
#define ECHOE   0x00000002 /* visually erase chars */
 
#define ECHOK   0x00000004 /* echo NL after line kill */
 
#define ECHONL   0x00000010 /* echo NL even if ECHO is off */
 
#define EXTPROC   0x00000800 /* external processing */
 
#define HUPCL   0x00004000 /* hang up on last close */
 
#define ICANON   0x00000100 /* canonicalize input lines */
 
#define ICRNL   0x00000100 /* map CR to NL (ala CRMOD) */
 
#define IEXTEN   0x00000400 /* enable DISCARD and LNEXT */
 
#define IGNBRK   0x00000001 /* ignore BREAK condition */
 
#define IGNCR   0x00000080 /* ignore CR */
 
#define IGNPAR   0x00000004 /* ignore (discard) parity errors */
 
#define INLCR   0x00000040 /* map NL into CR */
 
#define INPCK   0x00000010 /* enable checking of parity errors */
 
#define ISIG   0x00000080 /* enable signals INTR, QUIT, [D]SUSP */
 
#define ISTRIP   0x00000020 /* strip 8th bit off chars */
 
#define IXANY   0x00000800 /* any char will restart after stop */
 
#define IXOFF   0x00000400 /* enable input flow control */
 
#define IXON   0x00000200 /* enable output flow control */
 
#define NCCS   20
 
#define NOFLSH   0x80000000 /* don't flush after interrupt */
 
#define OCRNL   0x00000010 /* map CR to NL on output */
 
#define ONLCR   0x00000002 /* map NL to CR-NL (ala CRMOD) */
 
#define ONLRET   0x00000040 /* NL performs CR function */
 
#define ONOCR   0x00000020 /* no CR output at column 0 */
 
#define ONOEOT   0x00000008 /* discard EOT's (^D) on output) */
 
#define OPOST   0x00000001 /* enable following output processing */
 
#define PARENB   0x00001000 /* parity enable */
 
#define PARMRK   0x00000008 /* mark parity and framing errors */
 
#define PARODD   0x00002000 /* odd parity, else even */
 
#define TAB0   0x00000000 /* no tab delay and expansion */
 
#define TAB3   0x00000004 /* expand tabs to spaces */
 
#define TABDLY   0x00000004 /* tab delay mask */
 
#define TCIFLUSH   1
 
#define TCIOFF   3
 
#define TCIOFLUSH   3
 
#define TCION   4
 
#define TCOFLUSH   2
 
#define TCOOFF   1
 
#define TCOON   2
 
#define TCSADRAIN   1 /* drain output, then change */
 
#define TCSAFLUSH   2 /* drain output, flush input */
 
#define TCSANOW   0 /* make change immediate */
 
#define TOSTOP   0x00400000 /* stop background jobs from output */
 
#define VEOF   0 /* ICANON */
 
#define VEOL   1 /* ICANON */
 
#define VERASE   3 /* ICANON */
 
#define VINTR   8 /* ISIG */
 
#define VKILL   5 /* ICANON */
 
#define VMIN   16 /* !ICANON */
 
#define VQUIT   9 /* ISIG */
 
#define VSTART   12 /* IXON, IXOFF */
 
#define VSTOP   13 /* IXON, IXOFF */
 
#define VSUSP   10 /* ISIG */
 
#define VTIME   17 /* !ICANON */
 
#define VTIME_MS   19 /* !ICANON */
 

Typedefs

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

Functions

int tcdrain (int fildes)
 
int tcflush (int fildes, int queue_selector)
 
int tcgetattr (int fildes, struct termios *termios_p)
 
int tcsendbreak (int fildes, int duration)
 
int tcsetattr (int fildes, int optional_actions, const struct termios *termios_p)
 

Macro Definition Documentation

◆ _POSIX_VDISABLE

#define _POSIX_VDISABLE   0xff

Definition at line 110 of file termios.h.

◆ B0

#define B0   0

Definition at line 159 of file termios.h.

◆ B110

#define B110   110

Definition at line 162 of file termios.h.

◆ B1200

#define B1200   1200

Definition at line 168 of file termios.h.

◆ B134

#define B134   134

Definition at line 163 of file termios.h.

◆ B150

#define B150   150

Definition at line 164 of file termios.h.

◆ B1800

#define B1800   1800

Definition at line 169 of file termios.h.

◆ B19200

#define B19200   19200

Definition at line 173 of file termios.h.

◆ B200

#define B200   200

Definition at line 165 of file termios.h.

◆ B2400

#define B2400   2400

Definition at line 170 of file termios.h.

◆ B300

#define B300   300

Definition at line 166 of file termios.h.

◆ B38400

#define B38400   38400

Definition at line 174 of file termios.h.

◆ B4800

#define B4800   4800

Definition at line 171 of file termios.h.

◆ B50

#define B50   50

Definition at line 160 of file termios.h.

◆ B600

#define B600   600

Definition at line 167 of file termios.h.

◆ B75

#define B75   75

Definition at line 161 of file termios.h.

◆ B9600

#define B9600   9600

Definition at line 172 of file termios.h.

◆ BRKINT

#define BRKINT   0x00000002 /* map BREAK to SIGINTR */

Definition at line 116 of file termios.h.

◆ CLOCAL

#define CLOCAL   0x00008000 /* ignore modem status lines */

Definition at line 207 of file termios.h.

◆ CREAD

#define CREAD   0x00000800 /* enable receiver */

Definition at line 203 of file termios.h.

◆ CS5

#define CS5   0x00000000 /* 5 bits (pseudo) */

Definition at line 198 of file termios.h.

◆ CS6

#define CS6   0x00000100 /* 6 bits */

Definition at line 199 of file termios.h.

◆ CS7

#define CS7   0x00000200 /* 7 bits */

Definition at line 200 of file termios.h.

◆ CS8

#define CS8   0x00000300 /* 8 bits */

Definition at line 201 of file termios.h.

◆ CSIZE

#define CSIZE   0x00000300 /* character size mask */

Definition at line 197 of file termios.h.

◆ CSTOPB

#define CSTOPB   0x00000400 /* send 2 stop bits */

Definition at line 202 of file termios.h.

◆ ECHO

#define ECHO   0x00000008 /* enable echoing */

Definition at line 228 of file termios.h.

◆ ECHOE

#define ECHOE   0x00000002 /* visually erase chars */

Definition at line 226 of file termios.h.

◆ ECHOK

#define ECHOK   0x00000004 /* echo NL after line kill */

Definition at line 227 of file termios.h.

◆ ECHONL

#define ECHONL   0x00000010 /* echo NL even if ECHO is off */

Definition at line 229 of file termios.h.

◆ EXTPROC

#define EXTPROC   0x00000800 /* external processing */

Definition at line 240 of file termios.h.

◆ HUPCL

#define HUPCL   0x00004000 /* hang up on last close */

Definition at line 206 of file termios.h.

◆ ICANON

#define ICANON   0x00000100 /* canonicalize input lines */

Definition at line 235 of file termios.h.

◆ ICRNL

#define ICRNL   0x00000100 /* map CR to NL (ala CRMOD) */

Definition at line 123 of file termios.h.

◆ IEXTEN

#define IEXTEN   0x00000400 /* enable DISCARD and LNEXT */

Definition at line 239 of file termios.h.

◆ IGNBRK

#define IGNBRK   0x00000001 /* ignore BREAK condition */

Definition at line 115 of file termios.h.

◆ IGNCR

#define IGNCR   0x00000080 /* ignore CR */

Definition at line 122 of file termios.h.

◆ IGNPAR

#define IGNPAR   0x00000004 /* ignore (discard) parity errors */

Definition at line 117 of file termios.h.

◆ INLCR

#define INLCR   0x00000040 /* map NL into CR */

Definition at line 121 of file termios.h.

◆ INPCK

#define INPCK   0x00000010 /* enable checking of parity errors */

Definition at line 119 of file termios.h.

◆ ISIG

#define ISIG   0x00000080 /* enable signals INTR, QUIT, [D]SUSP */

Definition at line 234 of file termios.h.

◆ ISTRIP

#define ISTRIP   0x00000020 /* strip 8th bit off chars */

Definition at line 120 of file termios.h.

◆ IXANY

#define IXANY   0x00000800 /* any char will restart after stop */

Definition at line 126 of file termios.h.

◆ IXOFF

#define IXOFF   0x00000400 /* enable input flow control */

Definition at line 125 of file termios.h.

◆ IXON

#define IXON   0x00000200 /* enable output flow control */

Definition at line 124 of file termios.h.

◆ NCCS

#define NCCS   20

Definition at line 108 of file termios.h.

◆ NOFLSH

#define NOFLSH   0x80000000 /* don't flush after interrupt */

Definition at line 247 of file termios.h.

◆ OCRNL

#define OCRNL   0x00000010 /* map CR to NL on output */

Definition at line 140 of file termios.h.

◆ ONLCR

#define ONLCR   0x00000002 /* map NL to CR-NL (ala CRMOD) */

Definition at line 135 of file termios.h.

◆ ONLRET

#define ONLRET   0x00000040 /* NL performs CR function */

Definition at line 142 of file termios.h.

◆ ONOCR

#define ONOCR   0x00000020 /* no CR output at column 0 */

Definition at line 141 of file termios.h.

◆ ONOEOT

#define ONOEOT   0x00000008 /* discard EOT's (^D) on output) */

Definition at line 139 of file termios.h.

◆ OPOST

#define OPOST   0x00000001 /* enable following output processing */

Definition at line 134 of file termios.h.

◆ PARENB

#define PARENB   0x00001000 /* parity enable */

Definition at line 204 of file termios.h.

◆ PARMRK

#define PARMRK   0x00000008 /* mark parity and framing errors */

Definition at line 118 of file termios.h.

◆ PARODD

#define PARODD   0x00002000 /* odd parity, else even */

Definition at line 205 of file termios.h.

◆ TAB0

#define TAB0   0x00000000 /* no tab delay and expansion */

Definition at line 137 of file termios.h.

◆ TAB3

#define TAB3   0x00000004 /* expand tabs to spaces */

Definition at line 138 of file termios.h.

◆ TABDLY

#define TABDLY   0x00000004 /* tab delay mask */

Definition at line 136 of file termios.h.

◆ TCIFLUSH

#define TCIFLUSH   1

Definition at line 262 of file termios.h.

◆ TCIOFF

#define TCIOFF   3

Definition at line 269 of file termios.h.

◆ TCIOFLUSH

#define TCIOFLUSH   3

Definition at line 264 of file termios.h.

◆ TCION

#define TCION   4

Definition at line 270 of file termios.h.

◆ TCOFLUSH

#define TCOFLUSH   2

Definition at line 263 of file termios.h.

◆ TCOOFF

#define TCOOFF   1

Definition at line 267 of file termios.h.

◆ TCOON

#define TCOON   2

Definition at line 268 of file termios.h.

◆ TCSADRAIN

#define TCSADRAIN   1 /* drain output, then change */

Definition at line 253 of file termios.h.

◆ TCSAFLUSH

#define TCSAFLUSH   2 /* drain output, flush input */

Definition at line 254 of file termios.h.

◆ TCSANOW

#define TCSANOW   0 /* make change immediate */

Definition at line 252 of file termios.h.

◆ TOSTOP

#define TOSTOP   0x00400000 /* stop background jobs from output */

Definition at line 241 of file termios.h.

◆ VEOF

#define VEOF   0 /* ICANON */

Definition at line 70 of file termios.h.

◆ VEOL

#define VEOL   1 /* ICANON */

Definition at line 71 of file termios.h.

◆ VERASE

#define VERASE   3 /* ICANON */

Definition at line 75 of file termios.h.

◆ VINTR

#define VINTR   8 /* ISIG */

Definition at line 85 of file termios.h.

◆ VKILL

#define VKILL   5 /* ICANON */

Definition at line 79 of file termios.h.

◆ VMIN

#define VMIN   16 /* !ICANON */

Definition at line 97 of file termios.h.

◆ VQUIT

#define VQUIT   9 /* ISIG */

Definition at line 86 of file termios.h.

◆ VSTART

#define VSTART   12 /* IXON, IXOFF */

Definition at line 91 of file termios.h.

◆ VSTOP

#define VSTOP   13 /* IXON, IXOFF */

Definition at line 92 of file termios.h.

◆ VSUSP

#define VSUSP   10 /* ISIG */

Definition at line 87 of file termios.h.

◆ VTIME

#define VTIME   17 /* !ICANON */

Definition at line 98 of file termios.h.

◆ VTIME_MS

#define VTIME_MS   19 /* !ICANON */

Definition at line 105 of file termios.h.

Typedef Documentation

◆ cc_t

typedef unsigned char cc_t

Definition at line 275 of file termios.h.

◆ speed_t

typedef unsigned int speed_t

Definition at line 276 of file termios.h.

◆ tcflag_t

typedef unsigned int tcflag_t

Definition at line 274 of file termios.h.

Function Documentation

◆ tcdrain()

int tcdrain ( int  fildes)

◆ tcflush()

int tcflush ( int  fildes,
int  queue_selector 
)

◆ tcgetattr()

int tcgetattr ( int  fildes,
struct termios termios_p 
)

◆ tcsendbreak()

int tcsendbreak ( int  fildes,
int  duration 
)

◆ tcsetattr()

int tcsetattr ( int  fildes,
int  optional_actions,
const struct termios termios_p 
)