* added compilers lcc and bcc (linux86)
[mascara-docs.git] / compilers / linux86-0.16.17 / libc / include / bsd / sgtty.h
blob4e21901c3f3c4ca79ea85d5a8fdc407e3619b112
1 /* sgtty.h */
3 /* This file contains defintions to help make linux termios look like
4 bsd sgtty. */
6 /* Copyright (c) 1992 Ross Biro
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public
19 License along with this library; if not, write to the Free
20 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #ifndef _BSD_SGTTY_H
25 #define _BSD_SGTTY_H
27 #include <termios.h>
29 #define TIOCGETP 0x5481
30 #define TIOCSETP 0x5482
31 #define TIOCGETC 0x5483
32 #define TIOCSETC 0x5484
33 #define TIOCGLTC 0x5485
34 #define TIOCSLTC 0x5486
35 #define TIOCLGET 0x5487
36 #define TIOCLSET 0x5488
37 #define TIOCFLUSH 0x5489
38 #define TIOCSETN 0x548a
40 struct sgttyb
42 unsigned short sg_flags;
43 char sg_ispeed;
44 char sg_ospeed;
45 char sg_erase;
46 char sg_kill;
47 struct termios t;
48 int check;
51 struct tchars
53 char t_intrc;
54 char t_quitc;
55 char t_eofc;
56 char t_startc;
57 char t_stopc;
58 char t_brkc;
61 struct ltchars
63 char t_werasc;
64 char t_suspc;
65 char t_dsuspc;
66 char t_rprntc;
67 char t_flushc;
68 char t_lnextc;
71 #define O_RAW 1
72 #define O_LCASE 2
73 #define O_CRMOD 4
74 #define O_ECHO 8
75 #define O_ODDP 16
76 #define O_EVENP 32
77 #define O_CBREAK 64
78 /* these don't do anything yet. */
79 #define O_TBDELAY 0
80 #define O_LLITOUT 0
81 #define O_XTABS 0
82 #define O_ANYP 0
84 #ifndef _SGTTY_SOURCE
86 #undef ioctl
87 #define ioctl bsd_ioctl
89 #undef RAW
90 #define RAW O_RAW
91 #undef LCASE
92 #define LCASE O_LCASE
93 #undef ECHO
94 #define ECHO O_ECHO
95 #undef CRMOD
96 #define CRMOD O_CRMOD
97 #undef ODDP
98 #define ODDP O_ODDP
99 #undef EVENP
100 #define EVENP O_EVENP
101 #undef CBREAK
102 #define CBREAK O_CBREAK
103 #undef TBDELAY
104 #define TBDELAY O_TBDELAY
105 #undef LLITOUT
106 #define LLITOUT O_LLITOUT
107 #undef XTABS
108 #define XTABS O_XTABS
109 #undef ANYP
110 #define ANYP O_ANYP
111 #endif
113 #endif /* _BSD_SGTTY_H */