@@ -36,10 +36,165 @@ public static void PerformModuleReload(PythonContext context, PythonDictionary d
3636#pragma warning restore IPY01 // Parameter which is marked not nullable does not have the NotNullAttribute
3737
3838
39- #region termios IO Control Codes (TIOC*)
39+ #region Generated TIOC Commands
40+
41+ // *** BEGIN GENERATED CODE ***
42+ // generated by function: generate_TIOC_commands from: generate_os_codes.py
43+
44+
45+ public static long TIOCCONS => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x80047462 : 0x541d ;
46+
47+ public static int TIOCEXCL => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x2000740d : 0x540c ;
48+
49+ public static int TIOCGETD => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x4004741a : 0x5424 ;
50+
51+ [ PythonHidden ( PlatformID . MacOSX ) ]
52+ [ SupportedOSPlatform ( "linux" ) ]
53+ public static int TIOCGICOUNT => 0x545d ;
54+
55+ [ PythonHidden ( PlatformID . MacOSX ) ]
56+ [ SupportedOSPlatform ( "linux" ) ]
57+ public static int TIOCGLCKTRMIOS => 0x5456 ;
58+
59+ public static int TIOCGPGRP => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x40047477 : 0x540f ;
60+
61+ [ PythonHidden ( PlatformID . MacOSX ) ]
62+ [ SupportedOSPlatform ( "linux" ) ]
63+ public static int TIOCGSERIAL => 0x541e ;
64+
65+ [ PythonHidden ( PlatformID . Unix ) ]
66+ [ SupportedOSPlatform ( "macos" ) ]
67+ public static int TIOCGSIZE => 0x40087468 ;
68+
69+ [ PythonHidden ( PlatformID . MacOSX ) ]
70+ [ SupportedOSPlatform ( "linux" ) ]
71+ public static int TIOCGSOFTCAR => 0x5419 ;
4072
4173 public static int TIOCGWINSZ => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x40087468 : 0x5413 ;
4274
75+ [ PythonHidden ( PlatformID . MacOSX ) ]
76+ [ SupportedOSPlatform ( "linux" ) ]
77+ public static int TIOCINQ => 0x541b ;
78+
79+ [ PythonHidden ( PlatformID . MacOSX ) ]
80+ [ SupportedOSPlatform ( "linux" ) ]
81+ public static int TIOCLINUX => 0x541c ;
82+
83+ public static long TIOCMBIC => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x8004746b : 0x5417 ;
84+
85+ public static long TIOCMBIS => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x8004746c : 0x5416 ;
86+
87+ public static int TIOCMGET => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x4004746a : 0x5415 ;
88+
89+ [ PythonHidden ( PlatformID . MacOSX ) ]
90+ [ SupportedOSPlatform ( "linux" ) ]
91+ public static int TIOCMIWAIT => 0x545c ;
92+
93+ public static long TIOCMSET => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x8004746d : 0x5418 ;
94+
95+ public static int TIOCM_CAR => 0x40 ;
96+
97+ public static int TIOCM_CD => 0x40 ;
98+
99+ public static int TIOCM_CTS => 0x20 ;
100+
101+ public static int TIOCM_DSR => 0x100 ;
102+
103+ public static int TIOCM_DTR => 0x2 ;
104+
105+ public static int TIOCM_LE => 0x1 ;
106+
107+ public static int TIOCM_RI => 0x80 ;
108+
109+ public static int TIOCM_RNG => 0x80 ;
110+
111+ public static int TIOCM_RTS => 0x4 ;
112+
113+ public static int TIOCM_SR => 0x10 ;
114+
115+ public static int TIOCM_ST => 0x8 ;
116+
117+ public static int TIOCNOTTY => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x20007471 : 0x5422 ;
118+
119+ public static int TIOCNXCL => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x2000740e : 0x540d ;
120+
121+ public static int TIOCOUTQ => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x40047473 : 0x5411 ;
122+
123+ public static long TIOCPKT => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x80047470 : 0x5420 ;
124+
125+ public static int TIOCPKT_DATA => 0x0 ;
126+
127+ public static int TIOCPKT_DOSTOP => 0x20 ;
128+
129+ public static int TIOCPKT_FLUSHREAD => 0x1 ;
130+
131+ public static int TIOCPKT_FLUSHWRITE => 0x2 ;
132+
133+ public static int TIOCPKT_NOSTOP => 0x10 ;
134+
135+ public static int TIOCPKT_START => 0x8 ;
136+
137+ public static int TIOCPKT_STOP => 0x4 ;
138+
139+ public static int TIOCSCTTY => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x20007461 : 0x540e ;
140+
141+ [ PythonHidden ( PlatformID . MacOSX ) ]
142+ [ SupportedOSPlatform ( "linux" ) ]
143+ public static int TIOCSERCONFIG => 0x5453 ;
144+
145+ [ PythonHidden ( PlatformID . MacOSX ) ]
146+ [ SupportedOSPlatform ( "linux" ) ]
147+ public static int TIOCSERGETLSR => 0x5459 ;
148+
149+ [ PythonHidden ( PlatformID . MacOSX ) ]
150+ [ SupportedOSPlatform ( "linux" ) ]
151+ public static int TIOCSERGETMULTI => 0x545a ;
152+
153+ [ PythonHidden ( PlatformID . MacOSX ) ]
154+ [ SupportedOSPlatform ( "linux" ) ]
155+ public static int TIOCSERGSTRUCT => 0x5458 ;
156+
157+ [ PythonHidden ( PlatformID . MacOSX ) ]
158+ [ SupportedOSPlatform ( "linux" ) ]
159+ public static int TIOCSERGWILD => 0x5454 ;
160+
161+ [ PythonHidden ( PlatformID . MacOSX ) ]
162+ [ SupportedOSPlatform ( "linux" ) ]
163+ public static int TIOCSERSETMULTI => 0x545b ;
164+
165+ [ PythonHidden ( PlatformID . MacOSX ) ]
166+ [ SupportedOSPlatform ( "linux" ) ]
167+ public static int TIOCSERSWILD => 0x5455 ;
168+
169+ [ PythonHidden ( PlatformID . MacOSX ) ]
170+ [ SupportedOSPlatform ( "linux" ) ]
171+ public static int TIOCSER_TEMT => 0x1 ;
172+
173+ public static long TIOCSETD => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x8004741b : 0x5423 ;
174+
175+ [ PythonHidden ( PlatformID . MacOSX ) ]
176+ [ SupportedOSPlatform ( "linux" ) ]
177+ public static int TIOCSLCKTRMIOS => 0x5457 ;
178+
179+ public static long TIOCSPGRP => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x80047476 : 0x5410 ;
180+
181+ [ PythonHidden ( PlatformID . MacOSX ) ]
182+ [ SupportedOSPlatform ( "linux" ) ]
183+ public static int TIOCSSERIAL => 0x541f ;
184+
185+ [ PythonHidden ( PlatformID . Unix ) ]
186+ [ SupportedOSPlatform ( "macos" ) ]
187+ public static long TIOCSSIZE => 0x80087467 ;
188+
189+ [ PythonHidden ( PlatformID . MacOSX ) ]
190+ [ SupportedOSPlatform ( "linux" ) ]
191+ public static int TIOCSSOFTCAR => 0x541a ;
192+
193+ public static long TIOCSTI => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x80017472 : 0x5412 ;
194+
195+ public static long TIOCSWINSZ => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x80087467 : 0x5414 ;
196+
197+ // *** END GENERATED CODE ***
43198
44199 #endregion
45200
0 commit comments