debuggers.hg

view extras/mini-os/include/posix/termios.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children
line source
1 #ifndef _POSIX_TERMIOS_H
2 #define _POSIX_TERMIOS_H
4 #define NCC 32
6 struct termios {
7 unsigned long c_iflag;
8 unsigned long c_oflag;
9 unsigned long c_lflag;
10 unsigned long c_cflag;
11 unsigned char c_cc[NCC];
12 };
14 /* modem lines */
15 #define TIOCM_DTR 0x002
16 #define TIOCM_RTS 0x004
17 #define TIOCM_CTS 0x020
18 #define TIOCM_CAR 0x040
19 #define TIOCM_RI 0x080
20 #define TIOCM_DSR 0x100
22 /* c_iflag */
23 #define IGNBRK 0x00000001
24 #define BRKINT 0x00000002
25 #define IGNPAR 0x00000004
26 #define PARMRK 0x00000008
27 #define INPCK 0x00000010
28 #define ISTRIP 0x00000020
29 #define INLCR 0x00000040
30 #define IGNCR 0x00000080
31 #define ICRNL 0x00000100
32 #define IUCLC 0x00000200
33 #define IXON 0x00000400
34 #define IXANY 0x00000800
35 #define IXOFF 0x00001000
36 #define IMAXBEL 0x00002000
37 #define IUTF8 0x00004000
39 /* c_oflag */
40 #define OPOST 0x00000001
41 #define OLCUC 0x00000002
42 #define ONLCR 0x00000004
43 #define OCRNL 0x00000008
44 #define ONOCR 0x00000010
45 #define ONLRET 0x00000020
46 #define OFILL 0x00000040
47 #define OFDEL 0x00000080
49 /* c_lflag */
50 #define ISIG 0x00000001
51 #define ICANON 0x00000002
52 #define XCASE 0x00000004
53 #define ECHO 0x00000008
54 #define ECHOE 0x00000010
55 #define ECHOK 0x00000020
56 #define ECHONL 0x00000040
57 #define NOFLSH 0x00000080
58 #define TOSTOP 0x00000100
59 #define ECHOCTL 0x00000200
60 #define ECHOPRT 0x00000400
61 #define ECHOKE 0x00000800
62 #define FLUSHO 0x00002000
63 #define PENDIN 0x00004000
64 #define IEXTEN 0x00008000
66 /* c_cflag */
67 #define CSIZE 0x00000030
68 #define CS8 0x00000030
69 #define CSTOPB 0x00000040
70 #define CREAD 0x00000080
71 #define PARENB 0x00000100
72 #define PARODD 0x00000200
73 #define HUPCL 0x00000400
74 #define CLOCAL 0x00000800
76 /* c_cc */
77 #define VTIME 5
78 #define VMIN 6
80 #define TCSANOW 0
81 #define TCSADRAIN 1
82 #define TCSAFLUSH 2
84 int tcsetattr(int fildes, int action, const struct termios *tios);
85 int tcgetattr(int fildes, struct termios *tios);
87 #endif /* _POSIX_TERMIOS_H */