TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
termios_types.h
Aller à la documentation de ce fichier.
1 
30 #ifndef _TERMIOS_TYPES_H
31 #define _TERMIOS_TYPES_H
32 
33 typedef unsigned int tcflag_t;
34 typedef unsigned int cc_t;
35 typedef unsigned int speed_t;
36 
37 #define NCCS 17
38 
39 #define TCGETS 1
40 #define TCSETS 2
41 
42 #define TCSANOW 1
44 /* c_iflag bits */
45 #define INLCR 0000100
46 #define IGNCR 0000200
47 #define ICRNL 0000400
48 #define IXON 0002000
49 #define IXOFF 0010000
51 /* c_oflag bits */
52 #define OPOST 0000001
53 #define ONLCR 0000004
54 #define OCRNL 0000010
55 #define ONOCR 0000020
56 #define ONLRET 0000040
58 /* c_lflag bits */
59 #define ISIG 0000001
60 #define ICANON 0000002
61 #define ECHO 0000010
62 #define ECHOE 0000020
63 #define ECHOK 0000040
64 #define ECHOCTL 0001000
65 #define ECHOKE 0004000
67 /* c_cflag bit meaning */
68 #define CSIZE 0000060
69 #define CS5 0000000
70 #define CS6 0000020
71 #define CS7 0000040
72 #define CS8 0000060
73 #define CSTOPB 0000100
74 #define CREAD 0000200
75 #define PARENB 0000400
76 #define PARODD 0001000
77 #define HUPCL 0002000
79 /* c_cc characters */
80 #define VINTR 0
81 #define VQUIT 1
82 #define VERASE 2
83 #define VKILL 3
84 #define VEOF 4
85 #define VTIME 5
86 #define VMIN 6
87 #define VSWTC 7
88 #define VSTART 8
89 #define VSTOP 9
90 #define VSUSP 10
91 #define VEOL 11
92 #define VREPRINT 12
93 #define VDISCARD 13
94 #define VWERASE 14
95 #define VLNEXT 15
96 #define VEOL2 16
98 struct termios {
99  tcflag_t c_iflag;
100  tcflag_t c_oflag;
101  tcflag_t c_cflag;
102  tcflag_t c_lflag;
103  cc_t c_cc[NCCS];
104  speed_t c_ispeed;
105 };
106 
107 #endif
tcflag_t c_lflag
Definition: termios_types.h:102
speed_t c_ispeed
Definition: termios_types.h:104
tcflag_t c_oflag
Definition: termios_types.h:100
tcflag_t c_iflag
Definition: termios_types.h:99
tcflag_t c_cflag
Definition: termios_types.h:101