1#ifndef __VSF_LINUX_TERMIOS_H__
2#define __VSF_LINUX_TERMIOS_H__
10#if VSF_LINUX_CFG_WRAPPER == ENABLED
11#define tcgetattr VSF_LINUX_WRAPPER(tcgetattr)
12#define tcsetattr VSF_LINUX_WRAPPER(tcsetattr)
13#define tcsendbreak VSF_LINUX_WRAPPER(tcsendbreak)
14#define tcdrain VSF_LINUX_WRAPPER(tcdrain)
15#define tcflush VSF_LINUX_WRAPPER(tcflush)
16#define tcflow VSF_LINUX_WRAPPER(tcflow)
17#define cfmakeraw VSF_LINUX_WRAPPER(cfmakeraw)
18#define cfgetispeed VSF_LINUX_WRAPPER(cfgetispeed)
19#define cfgetospeed VSF_LINUX_WRAPPER(cfgetospeed)
20#define cfsetispeed VSF_LINUX_WRAPPER(cfsetispeed)
21#define cfsetospeed VSF_LINUX_WRAPPER(cfsetospeed)
22#define cfsetspeed VSF_LINUX_WRAPPER(cfsetspeed)
26#define TCGETS (('t' << 8) | 0)
27#define TCSETS (('t' << 8) | 1)
51#define IMAXBEL 0020000
72#define ECHOCTL 0001000
73#define ECHOPRT 0002000
152#define B115200 B115200
154#define B230400 B230400
156#define B460800 B460800
158#define B500000 B500000
160#define B576000 B576000
162#define B921600 B921600
164#define B1000000 B1000000
166#define B1152000 B1152000
168#define B1500000 B1500000
170#define B2000000 B2000000
172#define B2500000 B2500000
174#define B3000000 B3000000
176#define B3500000 B3500000
178#define B4000000 B4000000
194#define CBAUDEX 0x4000
196#define CRTSCTS 0x0400
216#if VSF_LINUX_APPLET_USE_TERMIOS == ENABLED
233# ifndef __VSF_APPLET__
238#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_TERMIOS_LIB__))\
239 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_TERMIOS == ENABLED
241#ifndef VSF_LINUX_APPLET_TERMIOS_VPLT
242# if VSF_LINUX_USE_APPLET == ENABLED
243# define VSF_LINUX_APPLET_TERMIOS_VPLT \
244 ((vsf_linux_termios_vplt_t *)(VSF_LINUX_APPLET_VPLT->termios_vplt))
246# define VSF_LINUX_APPLET_TERMIOS_VPLT \
247 ((vsf_linux_termios_vplt_t *)vsf_vplt((void *)0))
251#define VSF_LINUX_APPLET_TERMIOS_ENTRY(__NAME) \
252 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_TERMIOS_VPLT, __NAME)
253#define VSF_LINUX_APPLET_TERMIOS_IMP(...) \
254 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_TERMIOS_VPLT, __VA_ARGS__)
262 return VSF_LINUX_APPLET_TERMIOS_ENTRY(
tcsetattr)(fd, optional_actions,
termios);
268VSF_LINUX_APPLET_TERMIOS_IMP(
tcdrain,
int,
int fd) {
270 return VSF_LINUX_APPLET_TERMIOS_ENTRY(
tcdrain)(fd);
272VSF_LINUX_APPLET_TERMIOS_IMP(
tcflush,
int,
int fd,
int queue_selector) {
274 return VSF_LINUX_APPLET_TERMIOS_ENTRY(
tcflush)(fd, queue_selector);
276VSF_LINUX_APPLET_TERMIOS_IMP(
tcflow,
int,
int fd,
int action) {
278 return VSF_LINUX_APPLET_TERMIOS_ENTRY(
tcflow)(fd,
action);
311int tcflush(
int fd,
int queue_selector);
__le16 duration
Definition ieee80211.h:1
u8 action
Definition ieee80211.h:120
speed_t c_ispeed
Definition termios.h:212
speed_t c_ospeed
Definition termios.h:213
tcflag_t c_cflag
Definition termios.h:208
cc_t c_cc[NCCS]
Definition termios.h:211
tcflag_t c_iflag
Definition termios.h:206
tcflag_t c_lflag
Definition termios.h:209
tcflag_t c_oflag
Definition termios.h:207
cc_t c_line
Definition termios.h:210
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(cfsetspeed)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(cfsetispeed)
vsf_vplt_info_t info
Definition termios.h:218
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(tcflow)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(cfgetospeed)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(cfmakeraw)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(tcdrain)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(tcflush)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(tcsetattr)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(tcgetattr)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(cfgetispeed)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(tcsendbreak)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(cfsetospeed)
unsigned short ws_row
Definition termios.h:199
unsigned short ws_col
Definition termios.h:200
unsigned short ws_xpixel
Definition termios.h:201
unsigned short ws_ypixel
Definition termios.h:202
#define B4000000
Definition termios.h:178
unsigned char cc_t
Definition termios.h:30
#define tcflow
Definition termios.h:16
#define B1800
Definition termios.h:138
#define B3500000
Definition termios.h:176
#define B2500000
Definition termios.h:172
unsigned int speed_t
Definition termios.h:31
#define NCCS
Definition termios.h:95
#define B576000
Definition termios.h:160
#define B1000000
Definition termios.h:164
#define B1200
Definition termios.h:136
#define B4800
Definition termios.h:142
#define tcgetattr
Definition termios.h:11
#define B600
Definition termios.h:134
#define B57600
Definition termios.h:150
#define B300
Definition termios.h:132
#define B500000
Definition termios.h:158
#define B460800
Definition termios.h:156
#define cfmakeraw
Definition termios.h:17
#define B75
Definition termios.h:122
#define cfsetspeed
Definition termios.h:22
#define B150
Definition termios.h:128
#define B1152000
Definition termios.h:166
#define B134
Definition termios.h:126
#define tcsetattr
Definition termios.h:12
#define B200
Definition termios.h:130
#define B1500000
Definition termios.h:168
#define B230400
Definition termios.h:154
#define tcdrain
Definition termios.h:14
#define cfgetospeed
Definition termios.h:19
#define tcflush
Definition termios.h:15
#define B38400
Definition termios.h:148
#define B50
Definition termios.h:120
#define cfsetospeed
Definition termios.h:21
#define cfsetispeed
Definition termios.h:20
#define B110
Definition termios.h:124
#define B2000000
Definition termios.h:170
unsigned int tcflag_t
Definition termios.h:29
#define B3000000
Definition termios.h:174
#define B9600
Definition termios.h:144
#define cfgetispeed
Definition termios.h:18
__VSF_VPLT_DECORATOR__ vsf_linux_termios_vplt_t vsf_linux_termios_vplt
Definition vsf_linux.c:4994
#define B921600
Definition termios.h:162
#define B19200
Definition termios.h:146
#define tcsendbreak
Definition termios.h:13
#define B115200
Definition termios.h:152
@ B0
Definition termios.h:118
#define B2400
Definition termios.h:140
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165