source: trunk/src/emx/include/sys/termio.h@ 1057

Last change on this file since 1057 was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.8 KB
Line 
1/* sys/termio.h (emx+gcc) */
2
3#ifndef _SYS_TERMIO_H
4#define _SYS_TERMIO_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10/* Request codes */
11
12#if !defined (TCGETA)
13#define TCGETA 1
14#define TCSETA 2
15#define TCSETAW 3
16#define TCSETAF 4
17#define TCFLSH 5
18#define TCSBRK 6
19#define TCXONC 7
20#endif
21
22/* c_cc indexes */
23
24#if !defined (VINTR) /* Symbols common to termio.h and termios.h */
25#define VINTR 0
26#define VQUIT 1
27#define VERASE 2
28#define VKILL 3
29#define VEOF 4
30#define VEOL 5
31#define VMIN 6
32#define VTIME 7
33#endif
34
35#define NCC 8 /* Number of the above */
36
37/* c_iflag, emx ignores most of the following bits */
38
39#if !defined (IGNBRK) /* Symbols common to termio.h and termios.h */
40#define IGNBRK 0x0001
41#define BRKINT 0x0002
42#define IGNPAR 0x0004
43#define PARMRK 0x0008
44#define INPCK 0x0010
45#define ISTRIP 0x0020
46#define INLCR 0x0040
47#define IGNCR 0x0080
48#define ICRNL 0x0100
49#define IUCLC 0x0200
50#define IXON 0x0400
51#define IXANY 0x0800
52#define IXOFF 0x1000
53#define IDELETE 0x8000 /* Extension (emx) */
54#endif
55
56/* c_oflag, emx ignores all of the following bits */
57
58#if !defined (OPOST) /* Symbols common to termio.h and termios.h */
59#define OPOST 0x0001
60#endif
61#define OLCUC 0x0002
62#define ONLCR 0x0004
63#define OCRNL 0x0008
64#define ONOCR 0x0010
65#define ONLRET 0x0020