1 /* $NetBSD: svr4_ttold.h,v 1.5 2005/12/11 12:20:26 christos Exp $ */
2
3 /*-
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #ifndef _SVR4_TTOLD_H_
40 #define _SVR4_TTOLD_H_
41
42 struct svr4_tchars {
43 char t_intrc;
44 char t_quitc;
45 char t_startc;
46 char t_stopc;
47 char t_eofc;
48 char t_brkc;
49 };
50
51 struct svr4_sgttyb {
52 u_char sg_ispeed;
53 u_char sg_ospeed;
54 u_char sg_erase;
55 u_char sg_kill;
56 int sg_flags;
57 };
58
59 struct svr4_ltchars {
60 char t_suspc;
61 char t_dsuspc;
62 char t_rprntc;
63 char t_flushc;
64 char t_werasc;
65 char t_lnextc;
66 };
67
68 #ifndef SVR4_tIOC
69 #define SVR4_tIOC ('t' << 8)
70 #endif
71
72 #define SVR4_TIOCGETD (SVR4_tIOC | 0)
73 #define SVR4_TIOCSETD (SVR4_tIOC | 1)
74 #define SVR4_TIOCHPCL (SVR4_tIOC | 2)
75 #define SVR4_TIOCGETP (SVR4_tIOC | 8)
76 #define SVR4_TIOCSETP (SVR4_tIOC | 9)
77 #define SVR4_TIOCSETN (SVR4_tIOC | 10)
78 #define SVR4_TIOCEXCL (SVR4_tIOC | 13)
79 #define SVR4_TIOCNXCL (SVR4_tIOC | 14)
80 #define SVR4_TIOCFLUSH (SVR4_tIOC | 16)
81 #define SVR4_TIOCSETC (SVR4_tIOC | 17)
82 #define SVR4_TIOCGETC (SVR4_tIOC | 18)
83 #define SVR4_TIOCGPGRP (SVR4_tIOC | 20)
84 #define SVR4_TIOCSPGRP (SVR4_tIOC | 21)
85 #define SVR4_TIOCGSID (SVR4_tIOC | 22)
86 #define SVR4_TIOCSTI (SVR4_tIOC | 23)
87 #define SVR4_TIOCSSID (SVR4_tIOC | 24)
88 #define SVR4_TIOCMSET (SVR4_tIOC | 26)
89 #define SVR4_TIOCMBIS (SVR4_tIOC | 27)
90 #define SVR4_TIOCMBIC (SVR4_tIOC | 28)
91 #define SVR4_TIOCMGET (SVR4_tIOC | 29)
92 #define SVR4_TIOCREMOTE (SVR4_tIOC | 30)
93 #define SVR4_TIOCSIGNAL (SVR4_tIOC | 31)
94
95 #define SVR4_TIOCSTART (SVR4_tIOC | 110)
96 #define SVR4_TIOCSTOP (SVR4_tIOC | 111)
97 #define SVR4_TIOCNOTTY (SVR4_tIOC | 113)
98 #define SVR4_TIOCOUTQ (SVR4_tIOC | 115)
99 #define SVR4_TIOCGLTC (SVR4_tIOC | 116)
100 #define SVR4_TIOCSLTC (SVR4_tIOC | 117)
101 #define SVR4_TIOCCDTR (SVR4_tIOC | 120)
102 #define SVR4_TIOCSDTR (SVR4_tIOC | 121)
103 #define SVR4_TIOCCBRK (SVR4_tIOC | 122)
104 #define SVR4_TIOCSBRK (SVR4_tIOC | 123)
105 #define SVR4_TIOCLGET (SVR4_tIOC | 124)
106 #define SVR4_TIOCLSET (SVR4_tIOC | 125)
107 #define SVR4_TIOCLBIC (SVR4_tIOC | 126)
108 #define SVR4_TIOCLBIS (SVR4_tIOC | 127)
109
110 #define SVR4_TIOCM_LE 0001
111 #define SVR4_TIOCM_DTR 0002
112 #define SVR4_TIOCM_RTS 0004
113 #define SVR4_TIOCM_ST 0010
114 #define SVR4_TIOCM_SR 0020
115 #define SVR4_TIOCM_CTS 0040
116 #define SVR4_TIOCM_CAR 0100
117 #define SVR4_TIOCM_CD SVR4_TIOCM_CAR
118 #define SVR4_TIOCM_RNG 0200
119 #define SVR4_TIOCM_RI SVR4_TIOCM_RNG
120 #define SVR4_TIOCM_DSR 0400
121
122 #define SVR4_OTTYDISC 0
123 #define SVR4_NETLDISC 1
124 #define SVR4_NTTYDISC 2
125 #define SVR4_TABLDISC 3
126 #define SVR4_NTABLDISC 4
127 #define SVR4_MOUSELDISC 5
128 #define SVR4_KBDLDISC 6
129
130 #endif /* !_SVR4_TTOLD_H_ */
Cache object: 4a79d4acea6755aa772a63a3acf6e996
|