2 |
7u83 |
1 |
# Crown Copyright (c) 1997
|
|
|
2 |
#
|
|
|
3 |
# This TenDRA(r) Computer Program is subject to Copyright
|
|
|
4 |
# owned by the United Kingdom Secretary of State for Defence
|
|
|
5 |
# acting through the Defence Evaluation and Research Agency
|
|
|
6 |
# (DERA). It is made available to Recipients with a
|
|
|
7 |
# royalty-free licence for its use, reproduction, transfer
|
|
|
8 |
# to other parties and amendment for any purpose not excluding
|
|
|
9 |
# product development provided that any such use et cetera
|
|
|
10 |
# shall be deemed to be acceptance of the following conditions:-
|
|
|
11 |
#
|
|
|
12 |
# (1) Its Recipients shall ensure that this Notice is
|
|
|
13 |
# reproduced upon any copies or amended versions of it;
|
|
|
14 |
#
|
|
|
15 |
# (2) Any amended version of it shall be clearly marked to
|
|
|
16 |
# show both the nature of and the organisation responsible
|
|
|
17 |
# for the relevant amendment or amendments;
|
|
|
18 |
#
|
|
|
19 |
# (3) Its onward transfer from a recipient to another
|
|
|
20 |
# party shall be deemed to be that party's acceptance of
|
|
|
21 |
# these conditions;
|
|
|
22 |
#
|
|
|
23 |
# (4) DERA gives no warranty or assurance as to its
|
|
|
24 |
# quality or suitability for any purpose and DERA accepts
|
|
|
25 |
# no liability whatsoever in relation to any use to which
|
|
|
26 |
# it may be put.
|
|
|
27 |
#
|
|
|
28 |
+CONST int NFF | NFF_EXP ;
|
|
|
29 |
+NAT ~NFF | NFF ;
|
|
|
30 |
+TYPE struct termiox ;
|
|
|
31 |
+FIELD struct termiox {
|
|
|
32 |
unsigned short x_hflag ;
|
|
|
33 |
unsigned short x_cflag ;
|
|
|
34 |
unsigned short x_rflag [ ~NFF ] ;
|
|
|
35 |
unsigned short x_sflag ;
|
|
|
36 |
} ;
|
|
|
37 |
|
|
|
38 |
+DEFINE RTSXOFF %% 0000001 %% ;
|
|
|
39 |
+DEFINE CTSXON %% 0000002 %% ;
|
|
|
40 |
+DEFINE DTRXOFF %% 0000004 %% ;
|
|
|
41 |
+DEFINE CDXON %% 0000010 %% ;
|
|
|
42 |
+DEFINE ISXOFF %% 0000010 %% ;
|
|
|
43 |
+DEFINE XMTCLK %% 0000007 %% ;
|
|
|
44 |
+DEFINE XCIBRG %% 0000000 %% ;
|
|
|
45 |
+DEFINE XCTSET %% 0000001 %% ;
|
|
|
46 |
+DEFINE XCRSET %% 0000002 %% ;
|
|
|
47 |
+DEFINE RCVCLK %% 0000070 %% ;
|
|
|
48 |
+DEFINE RCIBRG %% 0000000 %% ;
|
|
|
49 |
+DEFINE RCTSET %% 0000010 %% ;
|
|
|
50 |
+DEFINE RCRSET %% 0000010 %% ;
|
|
|
51 |
+DEFINE TSETCLK %% 0000700 %% ;
|
|
|
52 |
+DEFINE TSETCOFF %% 0000000 %% ;
|
|
|
53 |
+DEFINE TSETCRBRG %% 0000100 %% ;
|
|
|
54 |
+DEFINE TSETCTBRG %% 0000200 %% ;
|
|
|
55 |
+DEFINE TSETCTSET %% 0000300 %% ;
|
|
|
56 |
+DEFINE TSETCRSET %% 0000400 %% ;
|
|
|
57 |
+DEFINE RSETCLK %% 0007000 %% ;
|
|
|
58 |
+DEFINE RSETCOFF %% 0000000 %% ;
|
|
|
59 |
+DEFINE RSETCRBRG %% 0001000 %% ;
|
|
|
60 |
+DEFINE RSETCTBRG %% 0002000 %% ;
|
|
|
61 |
+DEFINE RSETCTSET %% 0003000 %% ;
|
|
|
62 |
+DEFINE RSETCRSET %% 0004000 %% ;
|
|
|
63 |
|
|
|
64 |
+CONST int TCGETX, TCSETX, TCSETXW, TCSETXF ;
|