1: /*
2: * Structure for stty and gtty system calls.
3: */
4:
5: #ifndef _IOCTL_
6: #include <sys/ioctl.h>
7: #endif
8:
9: struct sgttyb {
10: char sg_ispeed; /* input speed */
11: char sg_ospeed; /* output speed */
12: char sg_erase; /* erase character */
13: char sg_kill; /* kill character */
14: short sg_flags; /* mode flags */
15: };
16:
17: /*
18: * Modes
19: */
20: #define TANDEM 01
21: #define CBREAK 02
22: #define LCASE 04
23: #define ECHO 010
24: #define CRMOD 020
25: #define RAW 040
26: #define ODDP 0100
27: #define EVENP 0200
28: #define ANYP 0300
29: #define NLDELAY 001400
30: #define TBDELAY 006000
31: #define XTABS 06000
32: #define CRDELAY 030000
33: #define VTDELAY 040000
34: #define BSDELAY 0100000
35: #define ALLDELAY 0177400
36:
37: /*
38: * Delay algorithms
39: */
40: #define CR0 0
41: #define CR1 010000
42: #define CR2 020000
43: #define CR3 030000
44: #define NL0 0
45: #define NL1 000400
46: #define NL2 001000
47: #define NL3 001400
48: #define TAB0 0
49: #define TAB1 002000
50: #define TAB2 004000
51: #define FF0 0
52: #define FF1 040000
53: #define BS0 0
54: #define BS1 0100000
55:
56: /*
57: * Speeds
58: */
59: #define B0 0
60: #define B50 1
61: #define B75 2
62: #define B110 3
63: #define B134 4
64: #define B150 5
65: #define B200 6
66: #define B300 7
67: #define B600 8
68: #define B1200 9
69: #define B1800 10
70: #define B2400 11
71: #define B4800 12
72: #define B9600 13
73: #define B19200 14
74: #define EXTA 14
75: #define EXTB 15
Defined struct's
sgttyb
defined in line
9; used 216 times
- in /usr/include/curses.h line
26(2)
- in /usr/src/cmd/adb/defs.h line
158(2)
- in /usr/src/cmd/cu.3451A.c line
136(2),
221-222(4),
287(2),
383(2),
827(2),
883(2)
- in /usr/src/cmd/cu.c line
119(2),
200-201(4),
239(2),
303(2),
703(2),
752(2)
- in /usr/src/cmd/ed.c line
1656(2)
- in /usr/src/cmd/getty.c line
22(2),
437(2)
- in /usr/src/cmd/login.c line
44(2),
113(2)
- in /usr/src/cmd/ls/symlnk_ucbls.c line
153(2)
- in /usr/src/cmd/ls/ucbls.c line
148(2)
- in /usr/src/cmd/remind/send.c line
88(2)
- in /usr/src/cmd/stty.c line
128(2),
170-174(8),
202(2),
212(2),
225(2),
238(2),
261(2),
292-295(8)
- in /usr/src/cmd/tabs.c line
60(2),
155(2),
175(2)
- in /usr/src/cmd/troff/n1.c line
57(2)
- in /usr/src/cmd/troff/n10.c line
28(2)
- in /usr/src/cmd/troff/n2.c line
51(2)
- in /usr/src/cmd/troff/n5.c line
62(2)
- in /usr/src/cmd/troff/nii.c line
59(2)
- in /usr/src/cmd/uucp/4.2/condevs.c line
881(2),
1024(2)
- in /usr/src/cmd/uucp/4.2/conn.c line
380(2),
676(2)
- in /usr/src/cmd/uucp/DIALUP/condevs.c line
882(2),
1025(2)
- in /usr/src/cmd/uucp/DIALUP/conn.c line
383(2),
679(2)
- in /usr/src/cmd/uucp/cico.c line
48(2),
421(2),
525(2)
- in /usr/src/cmd/uucp/condevs.c line
882(2),
1025(2)
- in /usr/src/cmd/uucp/conn.c line
383(2),
679(2)
- in /usr/src/cmd/uucp/dial.c line
131(2)
- in /usr/src/cmd/uucp/ioctl.c line
18-20(4)
- in /usr/src/games/snake/snake.h line
38(2)
- in /usr/src/lib/c/gen/isatty.c line
10(2)
- in /usr/src/lib/c/stdio/getpass.c line
10(2)
- in /usr/src/lib/curses/curses.h line
25(2)
- in /usr/src/lib/plot/t300/con.h line
25(2)
- in /usr/src/lib/plot/t300/open.c line
26(2)
- in /usr/src/lib/plot/t300s/con.h line
33(2)
- in /usr/src/lib/plot/t300s/open.c line
26(2)
- in /usr/src/lib/plot/t450/con.h line
27(2)
- in /usr/src/lib/plot/t450/open.c line
28(2)
- in /usr/src/local/sroff/s1.c line
60(2)
- in /usr/src/local/sroff/s10.c line
25(2),
65(2)
- in /usr/src/local/sroff/s2.c line
43(2),
150(2)
- in /usr/src/local/sroff/s5.c line
60(2)
- in /usr/src/local/sroff/sii.c line
35(2)
- in /usr/src/sys/dev/Others/mx2.c line
597(2),
654(2),
685-687(4)
- in /usr/src/sys/dev/tty.c line
255(2)
- in /usr/src/ucb/Mail/aux.c line
175(2)
- in /usr/src/ucb/Mail/main.c line
35(2)
- in /usr/src/ucb/Mail/tty.c line
28(2)
- in /usr/src/ucb/berknet/mach.c line
469(2)
- in /usr/src/ucb/berknet/net.c line
330(2)
- in /usr/src/ucb/berknet/setup.c line
105(2)
- in /usr/src/ucb/clear.c line
27(2)
- in /usr/src/ucb/csh/sh.lex.c line
1130(2)
- in /usr/src/ucb/lock.c line
15(2)
- in /usr/src/ucb/lpr/src/ulf.c line
147(2)
- in /usr/src/ucb/more.c line
44(2)
- in /usr/src/ucb/msgs/msgs.c line
91(2)
- in /usr/src/ucb/oldcsh/sh.lex.c line
1103(2)
- in /usr/src/ucb/pwhash/src/cmd/ls.c line
137(2)
- in /usr/src/ucb/pwhash/src/libc/stdio/getpass.c line
10(2)
- in /usr/src/ucb/reset.c line
13(2)
- in /usr/src/ucb/sendmail/aux/mconnect.c line
13(2)
- in /usr/src/ucb/tset/tset.c line
459-460(4),
1321(2),
1332(2)
- in /usr/src/ucb/vsh/tty.c line
12(2)
Defined macros
ANYP
defined in line
28; used 39 times
- in /usr/src/cmd/getty.c line
45-60(7),
66(2),
72,
78(2),
84(2),
90(2),
96(2),
102(2),
108(2),
114(2),
120(2),
137(2),
144(2),
443
- in /usr/src/cmd/uucp/4.2/conn.c line
404
- in /usr/src/cmd/uucp/DIALUP/conn.c line
407
- in /usr/src/cmd/uucp/cico.c line
542
- in /usr/src/cmd/uucp/conn.c line
407
- in /usr/src/ucb/berknet/setup.c line
144,
180
- in /usr/src/ucb/reset.c line
21
- in /usr/src/ucb/tset/tset.c line
580
B0
defined in line
59; used 16 times
B110
defined in line
62; used 17 times
B1200
defined in line
68; used 46 times
- in /usr/src/cmd/cu.3451A.c line
210
- in /usr/src/cmd/cu.c line
183
- in /usr/src/cmd/getty.c line
51(2),
85(2),
103(2),
222,
259,
408
- in /usr/src/cmd/stty.c line
27,
210,
219,
236
- in /usr/src/cmd/uucp/4.2/conn.c line
336-337(2)
- in /usr/src/cmd/uucp/DIALUP/conn.c line
339-340(2)
- in /usr/src/cmd/uucp/conn.c line
339-340(2)
- in /usr/src/sys/dev/dh.c line
577-578(2)
- in /usr/src/sys/dev/dhdm.c line
69-70(2)
- in /usr/src/ucb/Mail/cmd1.c line
145-147(2)
- in /usr/src/ucb/ex/ex2/ex_put.c line
987
- in /usr/src/ucb/ex/ex2/ex_set.c line
46,
54
- in /usr/src/ucb/ex/ex2/ex_tty.c line
20,
30,
71
- in /usr/src/ucb/ex/ex2/ex_vwind.c line
464
- in /usr/src/ucb/ex/ex3/ex_put.c line
1127
- in /usr/src/ucb/ex/ex3/ex_set.c line
48,
56
- in /usr/src/ucb/ex/ex3/ex_tty.c line
20,
30,
76,
151
- in /usr/src/ucb/ex/ex3/ex_vwind.c line
428
- in /usr/src/ucb/lpr/src/ulf.c line
127
- in /usr/src/ucb/more.c line
1429
- in /usr/src/ucb/tset/tset.c line
374,
1076
B134
defined in line
63; used 6 times
B150
defined in line
64; used 19 times
B1800
defined in line
69; used 11 times
B200
defined in line
65; used 9 times
B2400
defined in line
70; used 23 times
B300
defined in line
66; used 35 times
B4800
defined in line
71; used 14 times
B50
defined in line
60; used 9 times
B600
defined in line
67; used 10 times
B75
defined in line
61; used 9 times
B9600
defined in line
72; used 23 times
BS0
defined in line
53; used 1 times
BS1
defined in line
54; used 5 times
CBREAK
defined in line
21; used 87 times
- in /usr/include/curses.h line
133-134(2)
- in /usr/src/cmd/stty.c line
63-64(2),
348-349(2)
- in /usr/src/cmd/uucp/dial.c line
149
- in /usr/src/games/snake/move.c line
609
- in /usr/src/lib/curses/curses.h line
133-134(2)
- in /usr/src/sys/dev/tty.c line
196,
383-384(3),
532,
631
- in /usr/src/sys/dev/ttynew.c line
173,
329,
504,
558-562(2),
576
- in /usr/src/sys/dev/ttyold.c line
47-48(2),
55,
96,
171-172(2),
183,
210
- in /usr/src/ucb/ex/ex2/ex.c line
392,
401,
419
- in /usr/src/ucb/ex/ex2/ex.h line
341
- in /usr/src/ucb/ex/ex2/ex_cmds2.c line
492
- in /usr/src/ucb/ex/ex2/ex_put.c line
815-816(2),
891
- in /usr/src/ucb/ex/ex2/ex_v.c line
356,
369
- in /usr/src/ucb/ex/ex2/ex_vmain.c line
754,
760-764(2)
- in /usr/src/ucb/ex/ex2/ex_voper.c line
602,
609-613(2)
- in /usr/src/ucb/ex/ex2/ex_vwind.c line
259,
288,
303,
374,
394,
409,
428,
445
- in /usr/src/ucb/ex/ex3/ex.h line
388
- in /usr/src/ucb/ex/ex3/ex_cmds2.c line
504
- in /usr/src/ucb/ex/ex3/ex_put.c line
905-906(2),
1030
- in /usr/src/ucb/ex/ex3/ex_subr.c line
894,
904,
922
- in /usr/src/ucb/ex/ex3/ex_v.c line
346,
359
- in /usr/src/ucb/ex/ex3/ex_vmain.c line
932,
938-942(2)
- in /usr/src/ucb/ex/ex3/ex_voper.c line
619,
626-630(2)
- in /usr/src/ucb/ex/ex3/ex_vwind.c line
235,
258,
273,
344,
360,
373,
392,
409
- in /usr/src/ucb/more.c line
34,
1433
- in /usr/src/ucb/reset.c line
20
- in /usr/src/ucb/tset/tset.c line
576-577(2),
1000-1001(2)
- in /usr/src/ucb/vsh/tty.c line
24-25(2)
CR0
defined in line
40; used 1 times
CR1
defined in line
41; used 28 times
- in /usr/src/cmd/getty.c line
45-60(6),
66(2),
72,
78,
84,
90(2),
102,
108,
114,
120,
144
- in /usr/src/cmd/stty.c line
66,
80-87(4),
355
- in /usr/src/cmd/tabs.c line
178
- in /usr/src/local/sroff/tabsand.c line
44-46(2),
52
CR2
defined in line
42; used 9 times
CR3
defined in line
43; used 5 times
CRMOD
defined in line
24; used 65 times
- in /usr/include/curses.h line
132-138(3)
- in /usr/src/cmd/cu.3451A.c line
834-842(3)
- in /usr/src/cmd/cu.c line
710-718(3)
- in /usr/src/cmd/getty.c line
50,
60,
66,
78,
84,
96,
102,
108,
114,
120,
126(2),
137,
144,
299
- in /usr/src/cmd/remind/send.c line
96-98(2)
- in /usr/src/cmd/stty.c line
51-52(2),
339-340(2)
- in /usr/src/cmd/tabs.c line
87-92(3)
- in /usr/src/games/snake/move.c line
608
- in /usr/src/lib/curses/curses.h line
132-138(3)
- in /usr/src/lib/plot/t300/open.c line
41
- in /usr/src/lib/plot/t300s/open.c line
41
- in /usr/src/lib/plot/t450/open.c line
43
- in /usr/src/local/sroff/tabsand.c line
46,
54
- in /usr/src/sys/dev/kl.c line
61
- in /usr/src/sys/dev/ttynew.c line
367,
535,
845,
870
- in /usr/src/sys/dev/ttyold.c line
161,
247
- in /usr/src/ucb/ex/ex2/ex_put.c line
776,
814,
882
- in /usr/src/ucb/ex/ex2/ex_tty.c line
25
- in /usr/src/ucb/ex/ex3/ex_put.c line
866,
904,
1012
- in /usr/src/ucb/ex/ex3/ex_tty.c line
25
- in /usr/src/ucb/reset.c line
21
- in /usr/src/ucb/sendmail/aux/mconnect.c line
63-65(2)
- in /usr/src/ucb/tset/tset.c line
580,
1009-1011(2),
1093-1095(2)
ECHO
defined in line
23; used 77 times
- in /usr/include/curses.h line
135-136(2)
- in /usr/src/cmd/cu.3451A.c line
834-842(3)
- in /usr/src/cmd/cu.c line
300,
710-718(3)
- in /usr/src/cmd/ed.c line
1666
- in /usr/src/cmd/getty.c line
45-60(4),
66,
72,
78,
84,
90,
96,
102,
108,
114,
120,
126,
137,
144
- in /usr/src/cmd/stty.c line
53-54(2),
341-342(2)
- in /usr/src/cmd/troff/n2.c line
277
- in /usr/src/cmd/troff/n5.c line
596,
624
- in /usr/src/cmd/uucp/cico.c line
164-168(2)
- in /usr/src/games/snake/move.c line
608
- in /usr/src/lib/c/stdio/getpass.c line
26
- in /usr/src/lib/curses/curses.h line
135-136(2)
- in /usr/src/local/sroff/s2.c line
217
- in /usr/src/local/sroff/s5.c line
695,
723
- in /usr/src/local/sroff/tabsand.c line
54-56(2)
- in /usr/src/sys/dev/Others/dc.c line
98
- in /usr/src/sys/dev/Others/dj.c line
45
- in /usr/src/sys/dev/dh.c line
116
- in /usr/src/sys/dev/dz.c line
91
- in /usr/src/sys/dev/kl.c line
61
- in /usr/src/sys/dev/ttynew.c line
121,
249,
722,
838
- in /usr/src/sys/dev/ttyold.c line
181
- in /usr/src/ucb/berknet/mach.c line
497
- in /usr/src/ucb/berknet/net.c line
338
- in /usr/src/ucb/ex/ex2/ex_put.c line
776-780(2),
814,
827
- in /usr/src/ucb/ex/ex3/ex_put.c line
866-870(2),
904,
917
- in /usr/src/ucb/lock.c line
33
- in /usr/src/ucb/more.c line
1432,
1618,
1624
- in /usr/src/ucb/pwhash/src/libc/stdio/getpass.c line
26
- in /usr/src/ucb/reset.c line
21
- in /usr/src/ucb/tset/tset.c line
580,
598,
1009-1013(2),
1045,
1052
EVENP
defined in line
27; used 36 times
EXTA
defined in line
74; used 3 times
EXTB
defined in line
75; used 3 times
FF0
defined in line
51; used 1 times
FF1
defined in line
52; used 15 times
LCASE
defined in line
22; used 25 times
- in /usr/src/cmd/getty.c line
60,
66,
126,
301-303(2)
- in /usr/src/cmd/stty.c line
55-58(4),
343-344(2)
- in /usr/src/cmd/tabs.c line
87-92(2)
- in /usr/src/sys/dev/ttynew.c line
352,
537,
627,
853
- in /usr/src/sys/dev/ttyold.c line
75,
168,
233,
398
- in /usr/src/ucb/ex/ex2/ex_tty.c line
23
- in /usr/src/ucb/ex/ex3/ex_tty.c line
23
- in /usr/src/ucb/tset/tset.c line
996-998(2)
NL0
defined in line
44; used 1 times
NL1
defined in line
45; used 24 times
- in /usr/src/cmd/getty.c line
45-60(5),
66,
72(2),
78,
84,
90,
96,
102,
108,
114,
120,
144
- in /usr/src/cmd/stty.c line
73,
82-83(2),
351
- in /usr/src/local/sroff/tabsand.c line
44-46(2),
52
NL2
defined in line
46; used 3 times
NL3
defined in line
47; used 5 times
ODDP
defined in line
26; used 31 times
RAW
defined in line
25; used 92 times
- in /usr/include/curses.h line
131-132(2)
- in /usr/src/cmd/cu.3451A.c line
325,
833-841(3)
- in /usr/src/cmd/cu.c line
198,
709-717(3)
- in /usr/src/cmd/getty.c line
45-60(4),
66,
72,
78,
84,
90,
96,
102,
108,
114,
120,
126,
137,
144,
443
- in /usr/src/cmd/stty.c line
48-50(3),
337-338(2)
- in /usr/src/cmd/uucp/4.2/conn.c line
404
- in /usr/src/cmd/uucp/DIALUP/conn.c line
407
- in /usr/src/cmd/uucp/cico.c line
169,
542
- in /usr/src/cmd/uucp/conn.c line
407
- in /usr/src/lib/curses/curses.h line
131-132(2)
- in /usr/src/sys/dev/Others/dc.c line
198
- in /usr/src/sys/dev/Others/dj.c line
110,
155
- in /usr/src/sys/dev/dh.c line
220,
299-301(2),
429-431(2)
- in /usr/src/sys/dev/dz.c line
225-227(2),
269,
362,
402
- in /usr/src/sys/dev/kl.c line
153
- in /usr/src/sys/dev/tty.c line
196,
380(2),
532,
631
- in /usr/src/sys/dev/ttynew.c line
112,
316,
472,
576,
643,
841
- in /usr/src/sys/dev/ttyold.c line
47-48(2),
55,
96,
128,
171-172(2),
183,
208,
404
- in /usr/src/ucb/berknet/setup.c line
180
- in /usr/src/ucb/csh/sh.lex.c line
1135
- in /usr/src/ucb/ex/ex2/ex_put.c line
818,
898,
908
- in /usr/src/ucb/ex/ex2/exrecover.c line
180
- in /usr/src/ucb/ex/ex3/ex_put.c line
908,
1037,
1047
- in /usr/src/ucb/ex/ex3/exrecover.c line
180
- in /usr/src/ucb/more.c line
906,
1067
- in /usr/src/ucb/oldcsh/sh.lex.c line
1108
- in /usr/src/ucb/reset.c line
20
- in /usr/src/ucb/tset/tset.c line
575,
999
- in /usr/src/ucb/vsh/tty.c line
24
TAB0
defined in line
48; used 1 times
TAB1
defined in line
49; used 6 times
TAB2
defined in line
50; used 1 times
XTABS
defined in line
31; used 47 times
- in /usr/src/cmd/cu.3451A.c line
220
- in /usr/src/cmd/cu.c line
193
- in /usr/src/cmd/getty.c line
50,
60,
66,
78,
84,
90,
96,
102,
108,
114,
120,
137,
144
- in /usr/src/cmd/ls/symlnk_ucbls.c line
174
- in /usr/src/cmd/ls/ucbls.c line
169
- in /usr/src/cmd/stty.c line
59-60(2),
69-71(3),
347-352(3)
- in /usr/src/games/snake/move.c line
608,
620(2)
- in /usr/src/sys/dev/kl.c line
61
- in /usr/src/sys/dev/ttynew.c line
334
- in /usr/src/sys/dev/ttyold.c line
221
- in /usr/src/ucb/ex/ex2/ex_put.c line
776,
814
- in /usr/src/ucb/ex/ex2/ex_tty.c line
24(2)
- in /usr/src/ucb/ex/ex3/ex_put.c line
866,
904
- in /usr/src/ucb/ex/ex3/ex_tty.c line
24(2)
- in /usr/src/ucb/more.c line
1430
- in /usr/src/ucb/pwhash/src/cmd/ls.c line
158
- in /usr/src/ucb/reset.c line
21
- in /usr/src/ucb/tset/tset.c line
580,
1009,
1015,
1093-1095(2)
Usage of this include