termios_linux_arm64.go 48 KB

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