summaryrefslogtreecommitdiff
path: root/hurd/tioctl.defs
blob: 1f0bb8d2a140956e6e680d0817c2bcf5c4efdc00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
/* Definitions for terminal ioctls
   Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation

This file is part of the GNU Hurd.

The GNU Hurd is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

The GNU Hurd is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with the GNU Hurd; see the file COPYING.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */


#include <hurd/hurd_types.defs>

/* Ioctl class `t'; the subsystem is derived from calculations in
   <ioctls.h>. */
subsystem tioctl 156000; /* XXX */

import "../hurd/ioctl_types.h"; /* XXX */

/* These are the pieces of a struct termios as specified by the
   definition of _IOT_termios in <termbits.h>. */
type modes_t = array[4] of int;
type ccs_t = array[20] of char;
type speeds_t = array[2] of int;

/* This is the arg for a struct winsize as specified by the
   definition of _IOT_winsize in <sys/ioctl.h>. */
type winsize_t = struct[4] of short;

skip; skip; skip; /* 0 1 2 unused */

/* 3 TIOCMODG */
routine tioctl_tiocmodg (
	reqport: io_t;
	out state: int);   

/* 4 TIOCMODS */
routine tioctl_tiocmods (
	reqport: io_t;
	state: int);

skip; skip; skip; skip; /* 5 6 7 8 unused */
skip; skip; skip; skip; /* 9 10 11 12 unused */

/* 13 TIOCEXCL */
routine tioctl_tiocexcl (
	reqport: io_t);

/* 14 TIOCNXCL */
routine tioctl_tiocnxcl (
	reqport: io_t);

skip; /* 15 unused */

/* 16 TIOCFLUSH */
routine tioctl_tiocflush (
	reqport: io_t;
	queue_selector: int);

skip; skip; /* 17 18 unused */

/* 19 TIOCGETA */
routine tioctl_tiocgeta (
	port: io_t;
	out modes: modes_t;
	out ccs: ccs_t;
	out speeds: speeds_t);
   
/* 20 TIOCSETA */
routine tioctl_tiocseta (
	port: io_t;
	modes: modes_t;
	ccs: ccs_t;
	speeds: speeds_t);

/* 21 TIOCSETAW */
/* INTR */
routine tioctl_tiocsetaw (
	port: io_t;
	modes: modes_t;
	ccs: ccs_t;
	speeds: speeds_t);

/* 22 TIOCSETAF */
/* INTR */
routine tioctl_tiocsetaf (
	port: io_t;
	modes: modes_t;
	ccs: ccs_t;
	speeds: speeds_t);

skip; skip; skip; /* 23 24 25 unused */
   
/* 26 TIOCGETD */
routine tioctl_tiocgetd (
	port: io_t;
	out discipline: int);

/* 27 TIOCSETD */
routine tioctl_tiocsetd (
	port: io_t;
	discipline: int);

skip; skip; /* 28 29 unused */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; /* 30-39 unused */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; /* 40-49 unused */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; /* 50-59 unused */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; /* 60-69 unused */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; /* 70-79 unused */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; /* 80-89 unused */
skip; skip; skip; skip; /* 90 91 92 93 unused */

/* 94 TIOCDRAIN */
/* INTR */
routine tioctl_tiocdrain (
	port: io_t);

/* 95 TIOCSIG */
routine tioctl_tiocsig (
	port: io_t;
	signal: int);

/* 96 TIOCEXT */
routine tioctl_tiocext (
	port: io_t);

skip; /* 97 TIOCSCTTY -- implemented in C library */
skip; /* 98 TIOCCONS -- implemented in C library */
   
skip; /* 99 unused */

/* Because MiG defines reply ports as 100 more than request ports, we
   have to leave one hundred empty RPC's here. */
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 

skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 
skip; skip; skip; skip; skip; skip; skip; skip; skip; skip; 


skip; skip; /* 100 101 unused */

/* 102 TIOCUCNTL */
routine tioctl_tiocucntl (
	port: io_t;
	set_or_clear: int);

/* 103 TIOCSWINSZ */
routine tioctl_tiocswinsz (
	port: io_t;
	sizes: winsize_t);

/* 104 TIOCGWINSZ */
routine tioctl_tiocgwinsz (
	port: io_t;
	out sizes: winsize_t);		

/* 105 TIOCREMOTE */
routine tioctl_tiocremote (
	port: io_t;
	on_or_off: int);

/* 106 TIOCMGET */
routine tioctl_tiocmget (
	port: io_t;
	out bits: int);

/* 107 TIOCMBIC */
routine tioctl_tiocmbic (
	port: io_t;
	bits: int);

/* 108 TIOCMBIS */
routine tioctl_tiocmbis (
	port: io_t;
	bits: int);

/* 109 TIOCMSET */
routine tioctl_tiocmset (
	port: io_t;
	bits: int);

/* 110 TIOCSTART */
routine tioctl_tiocstart (
	port: io_t);

/* 111 TIOCSTOP */
routine tioctl_tiocstop (
	port: io_t);

/* 112 TIOCPKT */
routine tioctl_tiocpkt (
	port: io_t;
	on_or_off: int);

skip; /* 113 TIOCNOTTY -- implemented in C library */

/* 114 TIOCSTI */
routine tioctl_tiocsti (
	port: io_t;
	datum: char);

/* 115 TIOCOUTQ */
routine tioctl_tiocoutq (
	port: io_t;
	out queue_size: int);

skip; skip; /* 116 117 unused */

/* 118 TIOCSPGRP */
routine tioctl_tiocspgrp (
	port: io_t;
	pgrp: int);

/* 119 TIOCGPGRP */
routine tioctl_tiocgpgrp (
	port: io_t;
	out pgrp: int);

/* 120 TIOCCDTR */
routine tioctl_tioccdtr (
	port: io_t);

/* 121 TIOCSDTR */
routine tioctl_tiocsdtr (
	port: io_t);

/* 122 TIOCCBRK */
routine tioctl_tioccbrk (
	port: io_t);

/* 123 TIOCSBRK */
routine tioctl_tiocsbrk (
	port: io_t);

/* 124 - 256 unused */