Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
+TYPE ( unsigned ) cc_t, ( unsigned ) speed_t, ( unsigned ) tcflag_t ;
29
 
30
+TYPE struct termios ;
31
+CONST int NCCS | NCCS_EXP ;
32
+NAT ~NCCS | NCCS ;
33
+FIELD struct termios {
34
    tcflag_t c_iflag ;
35
    tcflag_t c_oflag ;
36
    tcflag_t c_cflag ;
37
    tcflag_t c_lflag ;
38
    cc_t c_cc [ ~NCCS ] ;
39
} ;
40
 
41
+CONST int VEOF, VEOL, VERASE, VINTR, VKILL, VMIN, VQUIT, VSTART, VSTOP ;
42
+CONST int VSUSP, VTIME ;
43
 
44
+CONST int BRKINT, ICRNL, IGNBRK, IGNCR, IGNPAR, INLCR, INPCK, ISTRIP ;
45
+CONST int IXOFF, IXON, PARMRK, OPOST ;
46
 
47
+CONST int B0, B50, B75, B110, B134, B150, B200, B300, B600, B1200, B1800 ;
48
+CONST int B2400, B4800, B9600, B19200, B38400 ;
49
 
50
+CONST int CSIZE, CS5, CS6, CS7, CS8, CSTOPB, CREAD, PARENB, PARODD ;
51
+CONST int HUPCL, CLOCAL ;
52
 
53
+CONST int ECHO, ECHOE, ECHOK, ECHONL, ICANON, IEXTEN, ISIG, NOFLSH, TOSTOP ;
54
 
55
+CONST int TCSANOW, TCSADRAIN, TCSAFLUSH ;
56
+CONST int TCIFLUSH, TCOFLUSH, TCIOFLUSH ;
57
+CONST int TCIOFF, TCION, TCOOFF, TCOON ;
58
 
59
+FUNC speed_t cfgetispeed ( const struct termios * ) ;
60
+FUNC speed_t cfgetospeed ( const struct termios * ) ;
61
+FUNC int cfsetispeed ( struct termios *, speed_t ) ;
62
+FUNC int cfsetospeed ( struct termios *, speed_t ) ;
63
+FUNC int tcdrain ( int ) ;
64
+FUNC int tcflow ( int, int ) ;
65
+FUNC int tcflush ( int, int ) ;
66
+FUNC int tcgetattr ( int, struct termios * ) ;
67
+FUNC int tcsendbreak ( int, int ) ;
68
+FUNC int tcsetattr ( int, int, const struct termios * ) ;