summaryrefslogtreecommitdiff
path: root/ioctl.pl
blob: 0327daee45d87f899137a625e6ab8eb9c65bd2b2 (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
$TIOCGSIZE = 0x40087468;
$TIOCSSIZE = 0x80087467;
$IOCPARM_MASK = 0x1fff;
$IOCPARM_MAX = 0x200;
$IOC_VOID = 0x20000000;
$IOC_OUT = 0x40000000;
$IOC_IN = 0x80000000;
$IOC_INOUT = 0xC0000000;
$IOC_DIRMASK = 0xe0000000;
$TIOCGETD = 0x40047400;
$TIOCSETD = 0x80047401;
$TIOCHPCL = 0x20007402;
$TIOCMODG = 0x40047403;
$TIOCMODS = 0x80047404;
$TIOCM_LE = 0001;
$TIOCM_DTR = 0002;
$TIOCM_RTS = 0004;
$TIOCM_ST = 0010;
$TIOCM_SR = 0020;
$TIOCM_CTS = 0040;
$TIOCM_CAR = 0100;
$TIOCM_CD = 0x40;
$TIOCM_RNG = 0200;
$TIOCM_RI = 0x80;
$TIOCM_DSR = 0400;
$TIOCGETP = 0x40067408;
$TIOCSETP = 0x80067409;
$TIOCSETN = 0x8006740A;
$TIOCEXCL = 0x2000740D;
$TIOCNXCL = 0x2000740E;
$TIOCFLUSH = 0x80047410;
$TIOCSETC = 0x80067411;
$TIOCGETC = 0x40067412;
$TANDEM = 0x00000001;
$CBREAK = 0x00000002;
$LCASE = 0x00000004;
$ECHO = 0x00000008;
$CRMOD = 0x00000010;
$RAW = 0x00000020;
$ODDP = 0x00000040;
$EVENP = 0x00000080;
$ANYP = 0x000000c0;
$NLDELAY = 0x00000300;
$NL0 = 0x00000000;
$NL1 = 0x00000100;
$NL2 = 0x00000200;
$NL3 = 0x00000300;
$TBDELAY = 0x00000c00;
$TAB0 = 0x00000000;
$TAB1 = 0x00000400;
$TAB2 = 0x00000800;
$XTABS = 0x00000c00;
$CRDELAY = 0x00003000;
$CR0 = 0x00000000;
$CR1 = 0x00001000;
$CR2 = 0x00002000;
$CR3 = 0x00003000;
$VTDELAY = 0x00004000;
$FF0 = 0x00000000;
$FF1 = 0x00004000;
$BSDELAY = 0x00008000;
$BS0 = 0x00000000;
$BS1 = 0x00008000;
$ALLDELAY = 0xFF00;
$CRTBS = 0x00010000;
$PRTERA = 0x00020000;
$CRTERA = 0x00040000;
$TILDE = 0x00080000;
$MDMBUF = 0x00100000;
$LITOUT = 0x00200000;
$TOSTOP = 0x00400000;
$FLUSHO = 0x00800000;
$NOHANG = 0x01000000;
$L001000 = 0x02000000;
$CRTKIL = 0x04000000;
$PASS8 = 0x08000000;
$CTLECH = 0x10000000;
$PENDIN = 0x20000000;
$DECCTQ = 0x40000000;
$NOFLSH = 0x80000000;
$TIOCLBIS = 0x8004747F;
$TIOCLBIC = 0x8004747E;
$TIOCLSET = 0x8004747D;
$TIOCLGET = 0x4004747C;
$LCRTBS = 0x1;
$LPRTERA = 0x2;
$LCRTERA = 0x4;
$LTILDE = 0x8;
$LMDMBUF = 0x10;
$LLITOUT = 0x20;
$LTOSTOP = 0x40;
$LFLUSHO = 0x80;
$LNOHANG = 0x100;
$LCRTKIL = 0x400;
$LPASS8 = 0x800;
$LCTLECH = 0x1000;
$LPENDIN = 0x2000;
$LDECCTQ = 0x4000;
$LNOFLSH = 0xFFFF8000;
$TIOCSBRK = 0x2000747B;
$TIOCCBRK = 0x2000747A;
$TIOCSDTR = 0x20007479;
$TIOCCDTR = 0x20007478;
$TIOCGPGRP = 0x40047477;
$TIOCSPGRP = 0x80047476;
$TIOCSLTC = 0x80067475;
$TIOCGLTC = 0x40067474;
$TIOCOUTQ = 0x40047473;
$TIOCSTI = 0x80017472;
$TIOCNOTTY = 0x20007471;
$TIOCPKT = 0x80047470;
$TIOCPKT_DATA = 0x00;
$TIOCPKT_FLUSHREAD = 0x01;
$TIOCPKT_FLUSHWRITE = 0x02;
$TIOCPKT_STOP = 0x04;
$TIOCPKT_START = 0x08;
$TIOCPKT_NOSTOP = 0x10;
$TIOCPKT_DOSTOP = 0x20;
$TIOCSTOP = 0x2000746F;
$TIOCSTART = 0x2000746E;
$TIOCMSET = 0x8004746D;
$TIOCMBIS = 0x8004746C;
$TIOCMBIC = 0x8004746B;
$TIOCMGET = 0x4004746A;
$TIOCREMOTE = 0x80047469;
$TIOCGWINSZ = 0x40087468;
$TIOCSWINSZ = 0x80087467;
$TIOCUCNTL = 0x80047466;
$TIOCSSOFTC = 0x80047465;
$TIOCGSOFTC = 0x40047464;
$TIOCSCARR = 0x80047463;
$TIOCWCARR = 0x20007462;
$OTTYDISC = 0;
$NETLDISC = 1;
$NTTYDISC = 2;
$TABLDISC = 3;
$SLIPDISC = 4;
$FIOCLEX = 0x20006601;
$FIONCLEX = 0x20006602;
$FIONREAD = 0x4004667F;
$FIONBIO = 0x8004667E;
$FIOASYNC = 0x8004667D;
$FIOSETOWN = 0x8004667C;
$FIOGETOWN = 0x4004667B;
$SIOCSHIWAT = 0x80047300;
$SIOCGHIWAT = 0x40047301;
$SIOCSLOWAT = 0x80047302;
$SIOCGLOWAT = 0x40047303;
$SIOCATMARK = 0x40047307;
$SIOCSPGRP = 0x80047308;
$SIOCGPGRP = 0x40047309;
$SIOCADDRT = 0x8030720A;
$SIOCDELRT = 0x8030720B;
$SIOCSIFADDR = 0x8020690C;
$SIOCGIFADDR = 0xC020690D;
$SIOCSIFDSTADDR = 0x8020690E;
$SIOCGIFDSTADDR = 0xC020690F;
$SIOCSIFFLAGS = 0x80206910;
$SIOCGIFFLAGS = 0xC0206911;
$SIOCGIFBRDADDR = 0xC0206912;
$SIOCSIFBRDADDR = 0x80206913;
$SIOCGIFCONF = 0xC0086914;
$SIOCGIFNETMASK = 0xC0206915;
$SIOCSIFNETMASK = 0x80206916;
$SIOCGIFMETRIC = 0xC0206917;
$SIOCSIFMETRIC = 0x80206918;
$SIOCSARP = 0x8024691E;
$SIOCGARP = 0xC024691F;
$SIOCDARP = 0x80246920;