termios_linux_arm.go 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. // Code generated by 'ccgo termios/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o termios/termios_linux_arm.go -pkgname termios', DO NOT EDIT.
  2. package termios
  3. import (
  4. "math"
  5. "reflect"
  6. "sync/atomic"
  7. "unsafe"
  8. )
  9. var _ = math.Pi
  10. var _ reflect.Kind
  11. var _ atomic.Value
  12. var _ unsafe.Pointer
  13. const (
  14. B0 = 0000000
  15. B1000000 = 0010010
  16. B110 = 0000003
  17. B115200 = 0010002
  18. B1152000 = 0010011
  19. B1200 = 0000011
  20. B134 = 0000004
  21. B150 = 0000005
  22. B1500000 = 0010012
  23. B1800 = 0000012
  24. B19200 = 0000016
  25. B200 = 0000006
  26. B2000000 = 0010013
  27. B230400 = 0010003
  28. B2400 = 0000013
  29. B2500000 = 0010014
  30. B300 = 0000007
  31. B3000000 = 0010015
  32. B3500000 = 0010016
  33. B38400 = 0000017
  34. B4000000 = 0010017
  35. B460800 = 0010004
  36. B4800 = 0000014
  37. B50 = 0000001
  38. B500000 = 0010005
  39. B57600 = 0010001
  40. B576000 = 0010006
  41. B600 = 0000010
  42. B75 = 0000002
  43. B921600 = 0010007
  44. B9600 = 0000015
  45. BRKINT = 0000002
  46. BS0 = 0000000
  47. BS1 = 0020000
  48. BSDLY = 0020000
  49. CBAUD = 000000010017
  50. CBAUDEX = 000000010000
  51. CBRK = 0
  52. CDISCARD = 15
  53. CDSUSP = 25
  54. CEOF = 4
  55. CEOL = 0
  56. CEOT = 4
  57. CERASE = 0177
  58. CFLUSH = 15
  59. CIBAUD = 002003600000
  60. CINTR = 3
  61. CKILL = 21
  62. CLNEXT = 22
  63. CLOCAL = 0004000
  64. CMIN = 1
  65. CMSPAR = 010000000000
  66. CQUIT = 034
  67. CR0 = 0000000
  68. CR1 = 0001000
  69. CR2 = 0002000
  70. CR3 = 0003000
  71. CRDLY = 0003000
  72. CREAD = 0000200
  73. CREPRINT = 18
  74. CRPRNT = 18
  75. CRTSCTS = 020000000000
  76. CS5 = 0000000
  77. CS6 = 0000020
  78. CS7 = 0000040
  79. CS8 = 0000060
  80. CSIZE = 0000060
  81. CSTART = 17
  82. CSTATUS = 0
  83. CSTOP = 19
  84. CSTOPB = 0000100
  85. CSUSP = 26
  86. CTIME = 0
  87. CWERASE = 23
  88. ECHO = 0000010
  89. ECHOCTL = 0001000
  90. ECHOE = 0000020
  91. ECHOK = 0000040
  92. ECHOKE = 0004000
  93. ECHONL = 0000100
  94. ECHOPRT = 0002000
  95. EXTA = 14
  96. EXTB = 15
  97. EXTPROC = 0200000
  98. FF0 = 0000000
  99. FF1 = 0100000
  100. FFDLY = 0100000
  101. FLUSHO = 0010000
  102. HUPCL = 0002000
  103. ICANON = 0000002
  104. ICRNL = 0000400
  105. IEXTEN = 0100000
  106. IGNBRK = 0000001
  107. IGNCR = 0000200
  108. IGNPAR = 0000004
  109. IMAXBEL = 0020000
  110. INLCR = 0000100
  111. INPCK = 0000020
  112. ISIG = 0000001
  113. ISTRIP = 0000040
  114. IUCLC = 0001000
  115. IUTF8 = 0040000
  116. IXANY = 0004000
  117. IXOFF = 0010000
  118. IXON = 0002000
  119. NCCS = 32
  120. NL0 = 0000000
  121. NL1 = 0000400
  122. NLDLY = 0000400
  123. NOFLSH = 0000200
  124. OCRNL = 0000010
  125. OFDEL = 0000200
  126. OFILL = 0000100
  127. OLCUC = 0000002
  128. ONLCR = 0000004
  129. ONLRET = 0000040
  130. ONOCR = 0000020
  131. OPOST = 0000001
  132. PARENB = 0000400
  133. PARMRK = 0000010
  134. PARODD = 0001000
  135. PENDIN = 0040000
  136. TAB0 = 0000000
  137. TAB1 = 0004000
  138. TAB2 = 0010000
  139. TAB3 = 0014000
  140. TABDLY = 0014000
  141. TCIFLUSH = 0
  142. TCIOFF = 2
  143. TCIOFLUSH = 2
  144. TCION = 3
  145. TCOFLUSH = 1
  146. TCOOFF = 0
  147. TCOON = 1
  148. TCSADRAIN = 1
  149. TCSAFLUSH = 2
  150. TCSANOW = 0
  151. TIOCSER_TEMT = 0x01
  152. TOSTOP = 0000400
  153. TTYDEF_CFLAG = 1440
  154. TTYDEF_IFLAG = 11554
  155. TTYDEF_LFLAG = 35355
  156. TTYDEF_OFLAG = 6149
  157. TTYDEF_SPEED = 13
  158. VDISCARD = 13
  159. VEOF = 4
  160. VEOL = 11
  161. VEOL2 = 16
  162. VERASE = 2
  163. VINTR = 0
  164. VKILL = 3
  165. VLNEXT = 15
  166. VMIN = 6
  167. VQUIT = 1
  168. VREPRINT = 12
  169. VSTART = 8
  170. VSTOP = 9
  171. VSUSP = 10
  172. VSWTC = 7
  173. VT0 = 0000000
  174. VT1 = 0040000
  175. VTDLY = 0040000
  176. VTIME = 5
  177. VWERASE = 14
  178. XCASE = 0000004
  179. XTABS = 0014000
  180. X_ATFILE_SOURCE = 1
  181. X_BITS_TIME64_H = 1
  182. X_BITS_TYPESIZES_H = 1
  183. X_BITS_TYPES_H = 1
  184. X_DEFAULT_SOURCE = 1
  185. X_FEATURES_H = 1
  186. X_FILE_OFFSET_BITS = 64
  187. X_HAVE_STRUCT_TERMIOS_C_ISPEED = 1
  188. X_HAVE_STRUCT_TERMIOS_C_OSPEED = 1
  189. X_POSIX_C_SOURCE = 200809
  190. X_POSIX_SOURCE = 1
  191. X_STDC_PREDEF_H = 1
  192. X_SYS_CDEFS_H = 1
  193. X_SYS_TTYDEFAULTS_H_ = 0
  194. X_TERMIOS_H = 1
  195. Linux = 1
  196. Unix = 1
  197. )
  198. type Ptrdiff_t = int32 /* <builtin>:3:26 */
  199. type Size_t = uint32 /* <builtin>:9:23 */
  200. type Wchar_t = uint32 /* <builtin>:15:24 */
  201. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  202. type X__float128 = float64 /* <builtin>:47:21 */
  203. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  204. // This file is part of the GNU C Library.
  205. //
  206. // The GNU C Library is free software; you can redistribute it and/or
  207. // modify it under the terms of the GNU Lesser General Public
  208. // License as published by the Free Software Foundation; either
  209. // version 2.1 of the License, or (at your option) any later version.
  210. //
  211. // The GNU C Library is distributed in the hope that it will be useful,
  212. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  213. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  214. // Lesser General Public License for more details.
  215. //
  216. // You should have received a copy of the GNU Lesser General Public
  217. // License along with the GNU C Library; if not, see
  218. // <https://www.gnu.org/licenses/>.
  219. // POSIX Standard: 7.1-2 General Terminal Interface <termios.h>
  220. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  221. // This file is part of the GNU C Library.
  222. //
  223. // The GNU C Library is free software; you can redistribute it and/or
  224. // modify it under the terms of the GNU Lesser General Public
  225. // License as published by the Free Software Foundation; either
  226. // version 2.1 of the License, or (at your option) any later version.
  227. //
  228. // The GNU C Library is distributed in the hope that it will be useful,
  229. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  230. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  231. // Lesser General Public License for more details.
  232. //
  233. // You should have received a copy of the GNU Lesser General Public
  234. // License along with the GNU C Library; if not, see
  235. // <https://www.gnu.org/licenses/>.
  236. // These are defined by the user (or the compiler)
  237. // to specify the desired environment:
  238. //
  239. // __STRICT_ANSI__ ISO Standard C.
  240. // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
  241. // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
  242. // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
  243. // __STDC_WANT_LIB_EXT2__
  244. // Extensions to ISO C99 from TR 27431-2:2010.
  245. // __STDC_WANT_IEC_60559_BFP_EXT__
  246. // Extensions to ISO C11 from TS 18661-1:2014.
  247. // __STDC_WANT_IEC_60559_FUNCS_EXT__
  248. // Extensions to ISO C11 from TS 18661-4:2015.
  249. // __STDC_WANT_IEC_60559_TYPES_EXT__
  250. // Extensions to ISO C11 from TS 18661-3:2015.
  251. //
  252. // _POSIX_SOURCE IEEE Std 1003.1.
  253. // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
  254. // if >=199309L, add IEEE Std 1003.1b-1993;
  255. // if >=199506L, add IEEE Std 1003.1c-1995;
  256. // if >=200112L, all of IEEE 1003.1-2004
  257. // if >=200809L, all of IEEE 1003.1-2008
  258. // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
  259. // Single Unix conformance is wanted, to 600 for the
  260. // sixth revision, to 700 for the seventh revision.
  261. // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
  262. // _LARGEFILE_SOURCE Some more functions for correct standard I/O.
  263. // _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
  264. // _FILE_OFFSET_BITS=N Select default filesystem interface.
  265. // _ATFILE_SOURCE Additional *at interfaces.
  266. // _GNU_SOURCE All of the above, plus GNU extensions.
  267. // _DEFAULT_SOURCE The default set of features (taking precedence over
  268. // __STRICT_ANSI__).
  269. //
  270. // _FORTIFY_SOURCE Add security hardening to many library functions.
  271. // Set to 1 or 2; 2 performs stricter checks than 1.
  272. //
  273. // _REENTRANT, _THREAD_SAFE
  274. // Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
  275. //
  276. // The `-ansi' switch to the GNU C compiler, and standards conformance
  277. // options such as `-std=c99', define __STRICT_ANSI__. If none of
  278. // these are defined, or if _DEFAULT_SOURCE is defined, the default is
  279. // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
  280. // 200809L, as well as enabling miscellaneous functions from BSD and
  281. // SVID. If more than one of these are defined, they accumulate. For
  282. // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
  283. // give you ISO C, 1003.1, and 1003.2, but nothing else.
  284. //
  285. // These are defined by this file and are used by the
  286. // header files to decide what to declare or define:
  287. //
  288. // __GLIBC_USE (F) Define things from feature set F. This is defined
  289. // to 1 or 0; the subsequent macros are either defined
  290. // or undefined, and those tests should be moved to
  291. // __GLIBC_USE.
  292. // __USE_ISOC11 Define ISO C11 things.
  293. // __USE_ISOC99 Define ISO C99 things.
  294. // __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
  295. // __USE_ISOCXX11 Define ISO C++11 things.
  296. // __USE_POSIX Define IEEE Std 1003.1 things.
  297. // __USE_POSIX2 Define IEEE Std 1003.2 things.
  298. // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
  299. // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
  300. // __USE_XOPEN Define XPG things.
  301. // __USE_XOPEN_EXTENDED Define X/Open Unix things.
  302. // __USE_UNIX98 Define Single Unix V2 things.
  303. // __USE_XOPEN2K Define XPG6 things.
  304. // __USE_XOPEN2KXSI Define XPG6 XSI things.
  305. // __USE_XOPEN2K8 Define XPG7 things.
  306. // __USE_XOPEN2K8XSI Define XPG7 XSI things.
  307. // __USE_LARGEFILE Define correct standard I/O things.
  308. // __USE_LARGEFILE64 Define LFS things with separate names.
  309. // __USE_FILE_OFFSET64 Define 64bit interface as default.
  310. // __USE_MISC Define things from 4.3BSD or System V Unix.
  311. // __USE_ATFILE Define *at interfaces and AT_* constants for them.
  312. // __USE_GNU Define GNU extensions.
  313. // __USE_FORTIFY_LEVEL Additional security measures used, according to level.
  314. //
  315. // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
  316. // defined by this file unconditionally. `__GNU_LIBRARY__' is provided
  317. // only for compatibility. All new code should use the other symbols
  318. // to test for features.
  319. //
  320. // All macros listed above as possibly being defined by this file are
  321. // explicitly undefined if they are not explicitly defined.
  322. // Feature-test macros that are not defined by the user or compiler
  323. // but are implied by the other feature-test macros defined (or by the
  324. // lack of any definitions) are defined by the file.
  325. //
  326. // ISO C feature test macros depend on the definition of the macro
  327. // when an affected header is included, not when the first system
  328. // header is included, and so they are handled in
  329. // <bits/libc-header-start.h>, which does not have a multiple include
  330. // guard. Feature test macros that can be handled from the first
  331. // system header included are handled here.
  332. // Undefine everything, so we get a clean slate.
  333. // Suppress kernel-name space pollution unless user expressedly asks
  334. // for it.
  335. // Convenience macro to test the version of gcc.
  336. // Use like this:
  337. // #if __GNUC_PREREQ (2,8)
  338. // ... code requiring gcc 2.8 or later ...
  339. // #endif
  340. // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
  341. // added in 2.0.
  342. // Similarly for clang. Features added to GCC after version 4.2 may
  343. // or may not also be available in clang, and clang's definitions of
  344. // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
  345. // features can be queried via __has_extension/__has_feature.
  346. // Whether to use feature set F.
  347. // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
  348. // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
  349. // issue a warning; the expectation is that the source is being
  350. // transitioned to use the new macro.
  351. // If _GNU_SOURCE was defined by the user, turn on all the other features.
  352. // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
  353. // define _DEFAULT_SOURCE.
  354. // This is to enable the ISO C2X extension.
  355. // This is to enable the ISO C11 extension.
  356. // This is to enable the ISO C99 extension.
  357. // This is to enable the ISO C90 Amendment 1:1995 extension.
  358. // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
  359. // is defined, use POSIX.1-2008 (or another version depending on
  360. // _XOPEN_SOURCE).
  361. // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
  362. // defined in all multithreaded code. GNU libc has not required this
  363. // for many years. We now treat them as compatibility synonyms for
  364. // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
  365. // comprehensive support for multithreaded code. Using them never
  366. // lowers the selected level of POSIX conformance, only raises it.
  367. // The function 'gets' existed in C89, but is impossible to use
  368. // safely. It has been removed from ISO C11 and ISO C++14. Note: for
  369. // compatibility with various implementations of <cstdio>, this test
  370. // must consider only the value of __cplusplus when compiling C++.
  371. // GNU formerly extended the scanf functions with modified format
  372. // specifiers %as, %aS, and %a[...] that allocate a buffer for the
  373. // input using malloc. This extension conflicts with ISO C99, which
  374. // defines %a as a standalone format specifier that reads a floating-
  375. // point number; moreover, POSIX.1-2008 provides the same feature
  376. // using the modifier letter 'm' instead (%ms, %mS, %m[...]).
  377. //
  378. // We now follow C99 unless GNU extensions are active and the compiler
  379. // is specifically in C89 or C++98 mode (strict or not). For
  380. // instance, with GCC, -std=gnu11 will have C99-compliant scanf with
  381. // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
  382. // old extension.
  383. // Get definitions of __STDC_* predefined macros, if the compiler has
  384. // not preincluded this header automatically.
  385. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  386. // This file is part of the GNU C Library.
  387. //
  388. // The GNU C Library is free software; you can redistribute it and/or
  389. // modify it under the terms of the GNU Lesser General Public
  390. // License as published by the Free Software Foundation; either
  391. // version 2.1 of the License, or (at your option) any later version.
  392. //
  393. // The GNU C Library is distributed in the hope that it will be useful,
  394. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  395. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  396. // Lesser General Public License for more details.
  397. //
  398. // You should have received a copy of the GNU Lesser General Public
  399. // License along with the GNU C Library; if not, see
  400. // <https://www.gnu.org/licenses/>.
  401. // This macro indicates that the installed library is the GNU C Library.
  402. // For historic reasons the value now is 6 and this will stay from now
  403. // on. The use of this variable is deprecated. Use __GLIBC__ and
  404. // __GLIBC_MINOR__ now (see below) when you want to test for a specific
  405. // GNU C library version and use the values in <gnu/lib-names.h> to get
  406. // the sonames of the shared libraries.
  407. // Major and minor version number of the GNU C library package. Use
  408. // these macros to test for features in specific releases.
  409. // This is here only because every header file already includes this one.
  410. // Copyright (C) 1992-2020 Free Software Foundation, Inc.
  411. // This file is part of the GNU C Library.
  412. //
  413. // The GNU C Library is free software; you can redistribute it and/or
  414. // modify it under the terms of the GNU Lesser General Public
  415. // License as published by the Free Software Foundation; either
  416. // version 2.1 of the License, or (at your option) any later version.
  417. //
  418. // The GNU C Library is distributed in the hope that it will be useful,
  419. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  420. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  421. // Lesser General Public License for more details.
  422. //
  423. // You should have received a copy of the GNU Lesser General Public
  424. // License along with the GNU C Library; if not, see
  425. // <https://www.gnu.org/licenses/>.
  426. // We are almost always included from features.h.
  427. // The GNU libc does not support any K&R compilers or the traditional mode
  428. // of ISO C compilers anymore. Check for some of the combinations not
  429. // anymore supported.
  430. // Some user header file might have defined this before.
  431. // All functions, except those with callbacks or those that
  432. // synchronize memory, are leaf functions.
  433. // GCC can always grok prototypes. For C++ programs we add throw()
  434. // to help it optimize the function calls. But this works only with
  435. // gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
  436. // as non-throwing using a function attribute since programs can use
  437. // the -fexceptions options for C code as well.
  438. // Compilers that are not clang may object to
  439. // #if defined __clang__ && __has_extension(...)
  440. // even though they do not need to evaluate the right-hand side of the &&.
  441. // These two macros are not used in glibc anymore. They are kept here
  442. // only because some other projects expect the macros to be defined.
  443. // For these things, GCC behaves the ANSI way normally,
  444. // and the non-ANSI way under -traditional.
  445. // This is not a typedef so `const __ptr_t' does the right thing.
  446. // C++ needs to know that types and declarations are C, not C++.
  447. // Fortify support.
  448. // Support for flexible arrays.
  449. // Headers that should use flexible arrays only if they're "real"
  450. // (e.g. only if they won't affect sizeof()) should test
  451. // #if __glibc_c99_flexarr_available.
  452. // __asm__ ("xyz") is used throughout the headers to rename functions
  453. // at the assembly language level. This is wrapped by the __REDIRECT
  454. // macro, in order to support compilers that can do this some other
  455. // way. When compilers don't support asm-names at all, we have to do
  456. // preprocessor tricks instead (which don't have exactly the right
  457. // semantics, but it's the best we can do).
  458. //
  459. // Example:
  460. // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
  461. //
  462. // #elif __SOME_OTHER_COMPILER__
  463. //
  464. // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
  465. // GCC has various useful declarations that can be made with the
  466. // `__attribute__' syntax. All of the ways we use this do fine if
  467. // they are omitted for compilers that don't understand it.
  468. // At some point during the gcc 2.96 development the `malloc' attribute
  469. // for functions was introduced. We don't want to use it unconditionally
  470. // (although this would be possible) since it generates warnings.
  471. // Tell the compiler which arguments to an allocation function
  472. // indicate the size of the allocation.
  473. // At some point during the gcc 2.96 development the `pure' attribute
  474. // for functions was introduced. We don't want to use it unconditionally
  475. // (although this would be possible) since it generates warnings.
  476. // This declaration tells the compiler that the value is constant.
  477. // At some point during the gcc 3.1 development the `used' attribute
  478. // for functions was introduced. We don't want to use it unconditionally
  479. // (although this would be possible) since it generates warnings.
  480. // Since version 3.2, gcc allows marking deprecated functions.
  481. // Since version 4.5, gcc also allows one to specify the message printed
  482. // when a deprecated function is used. clang claims to be gcc 4.2, but
  483. // may also support this feature.
  484. // At some point during the gcc 2.8 development the `format_arg' attribute
  485. // for functions was introduced. We don't want to use it unconditionally
  486. // (although this would be possible) since it generates warnings.
  487. // If several `format_arg' attributes are given for the same function, in
  488. // gcc-3.0 and older, all but the last one are ignored. In newer gccs,
  489. // all designated arguments are considered.
  490. // At some point during the gcc 2.97 development the `strfmon' format
  491. // attribute for functions was introduced. We don't want to use it
  492. // unconditionally (although this would be possible) since it
  493. // generates warnings.
  494. // The nonull function attribute allows to mark pointer parameters which
  495. // must not be NULL.
  496. // If fortification mode, we warn about unused results of certain
  497. // function calls which can lead to problems.
  498. // Forces a function to be always inlined.
  499. // The Linux kernel defines __always_inline in stddef.h (283d7573), and
  500. // it conflicts with this definition. Therefore undefine it first to
  501. // allow either header to be included first.
  502. // Associate error messages with the source location of the call site rather
  503. // than with the source location inside the function.
  504. // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
  505. // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
  506. // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
  507. // older than 4.3 may define these macros and still not guarantee GNU inlining
  508. // semantics.
  509. //
  510. // clang++ identifies itself as gcc-4.2, but has support for GNU inlining
  511. // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
  512. // __GNUC_GNU_INLINE__ macro definitions.
  513. // GCC 4.3 and above allow passing all anonymous arguments of an
  514. // __extern_always_inline function to some other vararg function.
  515. // It is possible to compile containing GCC extensions even if GCC is
  516. // run in pedantic mode if the uses are carefully marked using the
  517. // `__extension__' keyword. But this is not generally available before
  518. // version 2.8.
  519. // __restrict is known in EGCS 1.2 and above.
  520. // ISO C99 also allows to declare arrays as non-overlapping. The syntax is
  521. // array_name[restrict]
  522. // GCC 3.1 supports this.
  523. // Describes a char array whose address can safely be passed as the first
  524. // argument to strncpy and strncat, as the char array is not necessarily
  525. // a NUL-terminated string.
  526. // Undefine (also defined in libc-symbols.h).
  527. // Copies attributes from the declaration or type referenced by
  528. // the argument.
  529. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  530. // This file is part of the GNU C Library.
  531. //
  532. // The GNU C Library is free software; you can redistribute it and/or
  533. // modify it under the terms of the GNU Lesser General Public
  534. // License as published by the Free Software Foundation; either
  535. // version 2.1 of the License, or (at your option) any later version.
  536. //
  537. // The GNU C Library is distributed in the hope that it will be useful,
  538. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  539. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  540. // Lesser General Public License for more details.
  541. //
  542. // You should have received a copy of the GNU Lesser General Public
  543. // License along with the GNU C Library; if not, see
  544. // <https://www.gnu.org/licenses/>.
  545. // Properties of long double type.
  546. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  547. // This file is part of the GNU C Library.
  548. //
  549. // The GNU C Library is free software; you can redistribute it and/or
  550. // modify it under the terms of the GNU Lesser General Public
  551. // License published by the Free Software Foundation; either
  552. // version 2.1 of the License, or (at your option) any later version.
  553. //
  554. // The GNU C Library is distributed in the hope that it will be useful,
  555. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  556. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  557. // Lesser General Public License for more details.
  558. //
  559. // You should have received a copy of the GNU Lesser General Public
  560. // License along with the GNU C Library; if not, see
  561. // <https://www.gnu.org/licenses/>.
  562. // This header is included by <sys/cdefs.h>.
  563. //
  564. // If long double is ABI-compatible with double, it should define
  565. // __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
  566. // __NO_LONG_DOUBLE_MATH undefined.
  567. //
  568. // If this build of the GNU C Library supports both long double
  569. // ABI-compatible with double and some other long double format not
  570. // ABI-compatible with double, it should define
  571. // __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
  572. // __LONG_DOUBLE_MATH_OPTIONAL undefined.
  573. //
  574. // If __NO_LONG_DOUBLE_MATH is already defined, this header must not
  575. // define anything; this is needed to work with the definition of
  576. // __NO_LONG_DOUBLE_MATH in nldbl-compat.h.
  577. // In the default version of this header, long double is
  578. // ABI-compatible with double.
  579. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  580. // intended for use in preprocessor macros.
  581. //
  582. // Note: MESSAGE must be a _single_ string; concatenation of string
  583. // literals is not supported.
  584. // Generic selection (ISO C11) is a C-only feature, available in GCC
  585. // since version 4.9. Previous versions do not provide generic
  586. // selection, even though they might set __STDC_VERSION__ to 201112L,
  587. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  588. // when testing __STDC_VERSION__ for generic selection support.
  589. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  590. // check is required to enable the use of generic selection.
  591. // If we don't have __REDIRECT, prototypes will be missing if
  592. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  593. // Decide whether we can define 'extern inline' functions in headers.
  594. // This is here only because every header file already includes this one.
  595. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  596. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  597. // that will always return failure (and set errno to ENOSYS).
  598. // This file is automatically generated.
  599. // This file selects the right generated file of `__stub_FUNCTION' macros
  600. // based on the architecture being compiled for.
  601. // This file is automatically generated.
  602. // It defines a symbol `__stub_FUNCTION' for each function
  603. // in the C library which is a stub, meaning it will fail
  604. // every time called, usually setting errno to ENOSYS.
  605. // We need `pid_t'.
  606. // bits/types.h -- definitions of __*_t types underlying *_t types.
  607. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  608. // This file is part of the GNU C Library.
  609. //
  610. // The GNU C Library is free software; you can redistribute it and/or
  611. // modify it under the terms of the GNU Lesser General Public
  612. // License as published by the Free Software Foundation; either
  613. // version 2.1 of the License, or (at your option) any later version.
  614. //
  615. // The GNU C Library is distributed in the hope that it will be useful,
  616. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  617. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  618. // Lesser General Public License for more details.
  619. //
  620. // You should have received a copy of the GNU Lesser General Public
  621. // License along with the GNU C Library; if not, see
  622. // <https://www.gnu.org/licenses/>.
  623. // Never include this file directly; use <sys/types.h> instead.
  624. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  625. // This file is part of the GNU C Library.
  626. //
  627. // The GNU C Library is free software; you can redistribute it and/or
  628. // modify it under the terms of the GNU Lesser General Public
  629. // License as published by the Free Software Foundation; either
  630. // version 2.1 of the License, or (at your option) any later version.
  631. //
  632. // The GNU C Library is distributed in the hope that it will be useful,
  633. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  634. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  635. // Lesser General Public License for more details.
  636. //
  637. // You should have received a copy of the GNU Lesser General Public
  638. // License along with the GNU C Library; if not, see
  639. // <https://www.gnu.org/licenses/>.
  640. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  641. // This file is part of the GNU C Library.
  642. //
  643. // The GNU C Library is free software; you can redistribute it and/or
  644. // modify it under the terms of the GNU Lesser General Public
  645. // License as published by the Free Software Foundation; either
  646. // version 2.1 of the License, or (at your option) any later version.
  647. //
  648. // The GNU C Library is distributed in the hope that it will be useful,
  649. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  650. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  651. // Lesser General Public License for more details.
  652. //
  653. // You should have received a copy of the GNU Lesser General Public
  654. // License along with the GNU C Library; if not, see
  655. // <https://www.gnu.org/licenses/>.
  656. // Bit size of the time_t type at glibc build time, general case.
  657. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  658. // This file is part of the GNU C Library.
  659. //
  660. // The GNU C Library is free software; you can redistribute it and/or
  661. // modify it under the terms of the GNU Lesser General Public
  662. // License as published by the Free Software Foundation; either
  663. // version 2.1 of the License, or (at your option) any later version.
  664. //
  665. // The GNU C Library is distributed in the hope that it will be useful,
  666. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  667. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  668. // Lesser General Public License for more details.
  669. //
  670. // You should have received a copy of the GNU Lesser General Public
  671. // License along with the GNU C Library; if not, see
  672. // <https://www.gnu.org/licenses/>.
  673. // Copyright (C) 1999-2020 Free Software Foundation, Inc.
  674. // This file is part of the GNU C Library.
  675. //
  676. // The GNU C Library is free software; you can redistribute it and/or
  677. // modify it under the terms of the GNU Lesser General Public
  678. // License as published by the Free Software Foundation; either
  679. // version 2.1 of the License, or (at your option) any later version.
  680. //
  681. // The GNU C Library is distributed in the hope that it will be useful,
  682. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  683. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  684. // Lesser General Public License for more details.
  685. //
  686. // You should have received a copy of the GNU Lesser General Public
  687. // License along with the GNU C Library; if not, see
  688. // <https://www.gnu.org/licenses/>.
  689. // Size in bits of the 'time_t' type of the default ABI.
  690. // Convenience types.
  691. type X__u_char = uint8 /* types.h:31:23 */
  692. type X__u_short = uint16 /* types.h:32:28 */
  693. type X__u_int = uint32 /* types.h:33:22 */
  694. type X__u_long = uint32 /* types.h:34:27 */
  695. // Fixed-size types, underlying types depend on word size and compiler.
  696. type X__int8_t = int8 /* types.h:37:21 */
  697. type X__uint8_t = uint8 /* types.h:38:23 */
  698. type X__int16_t = int16 /* types.h:39:26 */
  699. type X__uint16_t = uint16 /* types.h:40:28 */
  700. type X__int32_t = int32 /* types.h:41:20 */
  701. type X__uint32_t = uint32 /* types.h:42:22 */
  702. type X__int64_t = int64 /* types.h:47:44 */
  703. type X__uint64_t = uint64 /* types.h:48:46 */
  704. // Smallest types with at least a given width.
  705. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  706. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  707. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  708. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  709. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  710. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  711. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  712. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  713. // quad_t is also 64 bits.
  714. type X__quad_t = int64 /* types.h:66:37 */
  715. type X__u_quad_t = uint64 /* types.h:67:46 */
  716. // Largest integral types.
  717. type X__intmax_t = int64 /* types.h:75:37 */
  718. type X__uintmax_t = uint64 /* types.h:76:46 */
  719. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  720. // macros for each of the OS types we define below. The definitions
  721. // of those macros must use the following macros for underlying types.
  722. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  723. // variants of each of the following integer types on this machine.
  724. //
  725. // 16 -- "natural" 16-bit type (always short)
  726. // 32 -- "natural" 32-bit type (always int)
  727. // 64 -- "natural" 64-bit type (long or long long)
  728. // LONG32 -- 32-bit type, traditionally long
  729. // QUAD -- 64-bit type, traditionally long long
  730. // WORD -- natural type of __WORDSIZE bits (int or long)
  731. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  732. //
  733. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  734. // conventional uses of `long' or `long long' type modifiers match the
  735. // types we define, even when a less-adorned type would be the same size.
  736. // This matters for (somewhat) portably writing printf/scanf formats for
  737. // these types, where using the appropriate l or ll format modifiers can
  738. // make the typedefs and the formats match up across all GNU platforms. If
  739. // we used `long' when it's 64 bits where `long long' is expected, then the
  740. // compiler would warn about the formats not matching the argument types,
  741. // and the programmer changing them to shut up the compiler would break the
  742. // program's portability.
  743. //
  744. // Here we assume what is presently the case in all the GCC configurations
  745. // we support: long long is always 64 bits, long is always word/address size,
  746. // and int is always 32 bits.
  747. // We want __extension__ before typedef's that use nonstandard base types
  748. // such as `long long' in C89 mode.
  749. // bits/typesizes.h -- underlying types for *_t. Generic version.
  750. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  751. // This file is part of the GNU C Library.
  752. //
  753. // The GNU C Library is free software; you can redistribute it and/or
  754. // modify it under the terms of the GNU Lesser General Public
  755. // License as published by the Free Software Foundation; either
  756. // version 2.1 of the License, or (at your option) any later version.
  757. //
  758. // The GNU C Library is distributed in the hope that it will be useful,
  759. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  760. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  761. // Lesser General Public License for more details.
  762. //
  763. // You should have received a copy of the GNU Lesser General Public
  764. // License along with the GNU C Library; if not, see
  765. // <https://www.gnu.org/licenses/>.
  766. // See <bits/types.h> for the meaning of these macros. This file exists so
  767. // that <bits/types.h> need not vary across different GNU platforms.
  768. // Number of descriptors that can fit in an `fd_set'.
  769. // bits/time64.h -- underlying types for __time64_t. Generic version.
  770. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  771. // This file is part of the GNU C Library.
  772. //
  773. // The GNU C Library is free software; you can redistribute it and/or
  774. // modify it under the terms of the GNU Lesser General Public
  775. // License as published by the Free Software Foundation; either
  776. // version 2.1 of the License, or (at your option) any later version.
  777. //
  778. // The GNU C Library is distributed in the hope that it will be useful,
  779. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  780. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  781. // Lesser General Public License for more details.
  782. //
  783. // You should have received a copy of the GNU Lesser General Public
  784. // License along with the GNU C Library; if not, see
  785. // <https://www.gnu.org/licenses/>.
  786. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  787. // Define a 64-bit time type alongsize the 32-bit one.
  788. type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
  789. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  790. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  791. type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
  792. type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
  793. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  794. type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
  795. type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
  796. type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  797. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  798. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  799. type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
  800. type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
  801. type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
  802. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  803. type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
  804. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  805. type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
  806. type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
  807. type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
  808. // Clock ID used in clock and timer functions.
  809. type X__clockid_t = int32 /* types.h:168:29 */
  810. // Timer ID returned by `timer_create'.
  811. type X__timer_t = uintptr /* types.h:171:12 */
  812. // Type to represent block size.
  813. type X__blksize_t = int32 /* types.h:174:29 */
  814. // Types from the Large File Support interface.
  815. // Type to count number of disk blocks.
  816. type X__blkcnt_t = int32 /* types.h:179:28 */
  817. type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
  818. // Type to count file system blocks.
  819. type X__fsblkcnt_t = uint32 /* types.h:183:30 */
  820. type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
  821. // Type to count file system nodes.
  822. type X__fsfilcnt_t = uint32 /* types.h:187:30 */
  823. type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
  824. // Type of miscellaneous file system fields.
  825. type X__fsword_t = int32 /* types.h:191:28 */
  826. type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
  827. // Signed long type used in system calls.
  828. type X__syscall_slong_t = int32 /* types.h:196:33 */
  829. // Unsigned long type used in system calls.
  830. type X__syscall_ulong_t = uint32 /* types.h:198:33 */
  831. // These few don't really vary by system, they always correspond
  832. //
  833. // to one of the other defined types.
  834. type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
  835. type X__caddr_t = uintptr /* types.h:203:14 */
  836. // Duplicates info from stdint.h but this is used in unistd.h.
  837. type X__intptr_t = int32 /* types.h:206:25 */
  838. // Duplicate info from sys/socket.h.
  839. type X__socklen_t = uint32 /* types.h:209:23 */
  840. // C99: An integer type that can be accessed as an atomic entity,
  841. //
  842. // even in the presence of asynchronous interrupts.
  843. // It is not currently necessary for this to be machine-specific.
  844. type X__sig_atomic_t = int32 /* types.h:214:13 */
  845. // Seconds since the Epoch, visible to user code when time_t is too
  846. //
  847. // narrow only for consistency with the old way of widening too-narrow
  848. // types. User code should never use __time64_t.
  849. type X__time64_t = X__int64_t /* types.h:222:28 */
  850. type Pid_t = X__pid_t /* termios.h:30:17 */
  851. // Get the system-dependent definitions of `struct termios', `tcflag_t',
  852. // `cc_t', `speed_t', and all the macros specifying the flag bits.
  853. // termios type and macro definitions. Linux version.
  854. // Copyright (C) 1993-2020 Free Software Foundation, Inc.
  855. // This file is part of the GNU C Library.
  856. //
  857. // The GNU C Library is free software; you can redistribute it and/or
  858. // modify it under the terms of the GNU Lesser General Public
  859. // License as published by the Free Software Foundation; either
  860. // version 2.1 of the License, or (at your option) any later version.
  861. //
  862. // The GNU C Library is distributed in the hope that it will be useful,
  863. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  864. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  865. // Lesser General Public License for more details.
  866. //
  867. // You should have received a copy of the GNU Lesser General Public
  868. // License along with the GNU C Library; if not, see
  869. // <https://www.gnu.org/licenses/>.
  870. type Cc_t = uint8 /* termios.h:23:23 */
  871. type Speed_t = uint32 /* termios.h:24:22 */
  872. type Tcflag_t = uint32 /* termios.h:25:22 */
  873. // struct termios definition. Linux/generic version.
  874. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  875. // This file is part of the GNU C Library.
  876. //
  877. // The GNU C Library is free software; you can redistribute it and/or
  878. // modify it under the terms of the GNU Lesser General Public
  879. // License as published by the Free Software Foundation; either
  880. // version 2.1 of the License, or (at your option) any later version.
  881. //
  882. // The GNU C Library is distributed in the hope that it will be useful,
  883. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  884. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  885. // Lesser General Public License for more details.
  886. //
  887. // You should have received a copy of the GNU Lesser General Public
  888. // License along with the GNU C Library. If not, see
  889. // <https://www.gnu.org/licenses/>.
  890. type Termios = struct {
  891. Fc_iflag Tcflag_t
  892. Fc_oflag Tcflag_t
  893. Fc_cflag Tcflag_t
  894. Fc_lflag Tcflag_t
  895. Fc_line Cc_t
  896. Fc_cc [32]Cc_t
  897. F__ccgo_pad1 [3]byte
  898. Fc_ispeed Speed_t
  899. Fc_ospeed Speed_t
  900. } /* termios-struct.h:24:1 */
  901. // -
  902. // Copyright (c) 1982, 1986, 1993
  903. // The Regents of the University of California. All rights reserved.
  904. // (c) UNIX System Laboratories, Inc.
  905. // All or some portions of this file are derived from material licensed
  906. // to the University of California by American Telephone and Telegraph
  907. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  908. // the permission of UNIX System Laboratories, Inc.
  909. //
  910. // Redistribution and use in source and binary forms, with or without
  911. // modification, are permitted provided that the following conditions
  912. // are met:
  913. // 1. Redistributions of source code must retain the above copyright
  914. // notice, this list of conditions and the following disclaimer.
  915. // 2. Redistributions in binary form must reproduce the above copyright
  916. // notice, this list of conditions and the following disclaimer in the
  917. // documentation and/or other materials provided with the distribution.
  918. // 4. Neither the name of the University nor the names of its contributors
  919. // may be used to endorse or promote products derived from this software
  920. // without specific prior written permission.
  921. //
  922. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  923. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  924. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  925. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  926. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  927. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  928. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  929. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  930. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  931. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  932. // SUCH DAMAGE.
  933. //
  934. // @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
  935. // System wide defaults for terminal state. Linux version.
  936. // Defaults on "first" open.
  937. // Control Character Defaults
  938. // compat
  939. // PROTECTED INCLUSION ENDS HERE
  940. // #define TTYDEFCHARS to include an array of default control characters.
  941. var _ uint8 /* gen.c:2:13: */