termios_linux_amd64.go 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  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 -ignore-unsupported-alignment -o termios/termios_linux_amd64.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 // termios.h:33:1:
  15. B1000000 = 0010010 // termios-baud.h:40:1:
  16. B110 = 0000003 // termios.h:36:1:
  17. B115200 = 0010002 // termios-baud.h:34:1:
  18. B1152000 = 0010011 // termios-baud.h:41:1:
  19. B1200 = 0000011 // termios.h:42:1:
  20. B134 = 0000004 // termios.h:37:1:
  21. B150 = 0000005 // termios.h:38:1:
  22. B1500000 = 0010012 // termios-baud.h:42:1:
  23. B1800 = 0000012 // termios.h:43:1:
  24. B19200 = 0000016 // termios.h:47:1:
  25. B200 = 0000006 // termios.h:39:1:
  26. B2000000 = 0010013 // termios-baud.h:43:1:
  27. B230400 = 0010003 // termios-baud.h:35:1:
  28. B2400 = 0000013 // termios.h:44:1:
  29. B2500000 = 0010014 // termios-baud.h:44:1:
  30. B300 = 0000007 // termios.h:40:1:
  31. B3000000 = 0010015 // termios-baud.h:45:1:
  32. B3500000 = 0010016 // termios-baud.h:46:1:
  33. B38400 = 0000017 // termios.h:48:1:
  34. B4000000 = 0010017 // termios-baud.h:47:1:
  35. B460800 = 0010004 // termios-baud.h:36:1:
  36. B4800 = 0000014 // termios.h:45:1:
  37. B50 = 0000001 // termios.h:34:1:
  38. B500000 = 0010005 // termios-baud.h:37:1:
  39. B57600 = 0010001 // termios-baud.h:33:1:
  40. B576000 = 0010006 // termios-baud.h:38:1:
  41. B600 = 0000010 // termios.h:41:1:
  42. B75 = 0000002 // termios.h:35:1:
  43. B921600 = 0010007 // termios-baud.h:39:1:
  44. B9600 = 0000015 // termios.h:46:1:
  45. BRKINT = 0000002 // termios-c_iflag.h:25:1:
  46. BS0 = 0000000 // termios-c_oflag.h:48:1:
  47. BS1 = 0020000 // termios-c_oflag.h:49:1:
  48. BSDLY = 0020000 // termios-c_oflag.h:47:1:
  49. CBAUD = 000000010017 // termios-baud.h:24:1:
  50. CBAUDEX = 000000010000 // termios-baud.h:25:1:
  51. CBRK = 0 // ttydefaults.h:83:1:
  52. CDISCARD = 15 // ttydefaults.h:78:1:
  53. CDSUSP = 25 // ttydefaults.h:74:1:
  54. CEOF = 4 // ttydefaults.h:56:1:
  55. CEOL = 0 // ttydefaults.h:60:1:
  56. CEOT = 4 // ttydefaults.h:81:1:
  57. CERASE = 0177 // ttydefaults.h:62:1:
  58. CFLUSH = 15 // ttydefaults.h:85:1:
  59. CIBAUD = 002003600000 // termios-baud.h:27:1:
  60. CINTR = 3 // ttydefaults.h:63:1:
  61. CKILL = 21 // ttydefaults.h:69:1:
  62. CLNEXT = 22 // ttydefaults.h:77:1:
  63. CLOCAL = 0004000 // termios-c_cflag.h:34:1:
  64. CMIN = 1 // ttydefaults.h:70:1:
  65. CMSPAR = 010000000000 // termios-baud.h:28:1:
  66. CQUIT = 034 // ttydefaults.h:71:1:
  67. CR0 = 0000000 // termios-c_oflag.h:38:1:
  68. CR1 = 0001000 // termios-c_oflag.h:39:1:
  69. CR2 = 0002000 // termios-c_oflag.h:40:1:
  70. CR3 = 0003000 // termios-c_oflag.h:41:1:
  71. CRDLY = 0003000 // termios-c_oflag.h:37:1:
  72. CREAD = 0000200 // termios-c_cflag.h:30:1:
  73. CREPRINT = 18 // ttydefaults.h:80:1:
  74. CRPRNT = 18 // ttydefaults.h:84:1:
  75. CRTSCTS = 020000000000 // termios-baud.h:29:1:
  76. CS5 = 0000000 // termios-c_cflag.h:25:1:
  77. CS6 = 0000020 // termios-c_cflag.h:26:1:
  78. CS7 = 0000040 // termios-c_cflag.h:27:1:
  79. CS8 = 0000060 // termios-c_cflag.h:28:1:
  80. CSIZE = 0000060 // termios-c_cflag.h:24:1:
  81. CSTART = 17 // ttydefaults.h:75:1:
  82. CSTATUS = 0 // ttydefaults.h:67:1:
  83. CSTOP = 19 // ttydefaults.h:76:1:
  84. CSTOPB = 0000100 // termios-c_cflag.h:29:1:
  85. CSUSP = 26 // ttydefaults.h:72:1:
  86. CTIME = 0 // ttydefaults.h:73:1:
  87. CWERASE = 23 // ttydefaults.h:79:1:
  88. ECHO = 0000010 // termios-c_lflag.h:29:1:
  89. ECHOCTL = 0001000 // termios-c_lflag.h:37:1:
  90. ECHOE = 0000020 // termios-c_lflag.h:30:1:
  91. ECHOK = 0000040 // termios-c_lflag.h:32:1:
  92. ECHOKE = 0004000 // termios-c_lflag.h:45:1:
  93. ECHONL = 0000100 // termios-c_lflag.h:33:1:
  94. ECHOPRT = 0002000 // termios-c_lflag.h:42:1:
  95. EXTA = 14 // termios.h:50:1:
  96. EXTB = 15 // termios.h:51:1:
  97. EXTPROC = 0200000 // termios-c_lflag.h:57:1:
  98. FF0 = 0000000 // termios-c_oflag.h:51:1:
  99. FF1 = 0100000 // termios-c_oflag.h:52:1:
  100. FFDLY = 0100000 // termios-c_oflag.h:50:1:
  101. FLUSHO = 0010000 // termios-c_lflag.h:48:1:
  102. HUPCL = 0002000 // termios-c_cflag.h:33:1:
  103. ICANON = 0000002 // termios-c_lflag.h:25:1:
  104. ICRNL = 0000400 // termios-c_iflag.h:32:1:
  105. IEXTEN = 0100000 // termios-c_lflag.h:54:1:
  106. IGNBRK = 0000001 // termios-c_iflag.h:24:1:
  107. IGNCR = 0000200 // termios-c_iflag.h:31:1:
  108. IGNPAR = 0000004 // termios-c_iflag.h:26:1:
  109. IMAXBEL = 0020000 // termios-c_iflag.h:38:1:
  110. INLCR = 0000100 // termios-c_iflag.h:30:1:
  111. INPCK = 0000020 // termios-c_iflag.h:28:1:
  112. ISIG = 0000001 // termios-c_lflag.h:24:1:
  113. ISTRIP = 0000040 // termios-c_iflag.h:29:1:
  114. IUCLC = 0001000 // termios-c_iflag.h:33:1:
  115. IUTF8 = 0040000 // termios-c_iflag.h:40:1:
  116. IXANY = 0004000 // termios-c_iflag.h:36:1:
  117. IXOFF = 0010000 // termios-c_iflag.h:37:1:
  118. IXON = 0002000 // termios-c_iflag.h:35:1:
  119. NCCS = 32 // termios-struct.h:23:1:
  120. NL0 = 0000000 // termios-c_oflag.h:35:1:
  121. NL1 = 0000400 // termios-c_oflag.h:36:1:
  122. NLDLY = 0000400 // termios-c_oflag.h:34:1:
  123. NOFLSH = 0000200 // termios-c_lflag.h:34:1:
  124. OCRNL = 0000010 // termios-c_oflag.h:28:1:
  125. OFDEL = 0000200 // termios-c_oflag.h:32:1:
  126. OFILL = 0000100 // termios-c_oflag.h:31:1:
  127. OLCUC = 0000002 // termios-c_oflag.h:25:1:
  128. ONLCR = 0000004 // termios-c_oflag.h:27:1:
  129. ONLRET = 0000040 // termios-c_oflag.h:30:1:
  130. ONOCR = 0000020 // termios-c_oflag.h:29:1:
  131. OPOST = 0000001 // termios-c_oflag.h:24:1:
  132. PARENB = 0000400 // termios-c_cflag.h:31:1:
  133. PARMRK = 0000010 // termios-c_iflag.h:27:1:
  134. PARODD = 0001000 // termios-c_cflag.h:32:1:
  135. PENDIN = 0040000 // termios-c_lflag.h:50:1:
  136. TAB0 = 0000000 // termios-c_oflag.h:43:1:
  137. TAB1 = 0004000 // termios-c_oflag.h:44:1:
  138. TAB2 = 0010000 // termios-c_oflag.h:45:1:
  139. TAB3 = 0014000 // termios-c_oflag.h:46:1:
  140. TABDLY = 0014000 // termios-c_oflag.h:42:1:
  141. TCIFLUSH = 0 // termios.h:70:1:
  142. TCIOFF = 2 // termios.h:66:1:
  143. TCIOFLUSH = 2 // termios.h:72:1:
  144. TCION = 3 // termios.h:67:1:
  145. TCOFLUSH = 1 // termios.h:71:1:
  146. TCOOFF = 0 // termios.h:64:1:
  147. TCOON = 1 // termios.h:65:1:
  148. TCSADRAIN = 1 // termios-tcflow.h:25:1:
  149. TCSAFLUSH = 2 // termios-tcflow.h:26:1:
  150. TCSANOW = 0 // termios-tcflow.h:24:1:
  151. TIOCSER_TEMT = 0x01 // termios.h:60:1:
  152. TOSTOP = 0000400 // termios-c_lflag.h:35:1:
  153. TTYDEF_CFLAG = 1440 // ttydefaults.h:49:1:
  154. TTYDEF_IFLAG = 11554 // ttydefaults.h:46:1:
  155. TTYDEF_LFLAG = 35355 // ttydefaults.h:48:1:
  156. TTYDEF_OFLAG = 6149 // ttydefaults.h:47:1:
  157. TTYDEF_SPEED = 13 // ttydefaults.h:50:1:
  158. VDISCARD = 13 // termios-c_cc.h:37:1:
  159. VEOF = 4 // termios-c_cc.h:28:1:
  160. VEOL = 11 // termios-c_cc.h:35:1:
  161. VEOL2 = 16 // termios-c_cc.h:40:1:
  162. VERASE = 2 // termios-c_cc.h:26:1:
  163. VINTR = 0 // termios-c_cc.h:24:1:
  164. VKILL = 3 // termios-c_cc.h:27:1:
  165. VLNEXT = 15 // termios-c_cc.h:39:1:
  166. VMIN = 6 // termios-c_cc.h:30:1:
  167. VQUIT = 1 // termios-c_cc.h:25:1:
  168. VREPRINT = 12 // termios-c_cc.h:36:1:
  169. VSTART = 8 // termios-c_cc.h:32:1:
  170. VSTOP = 9 // termios-c_cc.h:33:1:
  171. VSUSP = 10 // termios-c_cc.h:34:1:
  172. VSWTC = 7 // termios-c_cc.h:31:1:
  173. VT0 = 0000000 // termios-c_oflag.h:56:1:
  174. VT1 = 0040000 // termios-c_oflag.h:57:1:
  175. VTDLY = 0040000 // termios-c_oflag.h:55:1:
  176. VTIME = 5 // termios-c_cc.h:29:1:
  177. VWERASE = 14 // termios-c_cc.h:38:1:
  178. XCASE = 0000004 // termios-c_lflag.h:27:1:
  179. XTABS = 0014000 // termios-c_oflag.h:60:1:
  180. X_ATFILE_SOURCE = 1 // features.h:342:1:
  181. X_BITS_TIME64_H = 1 // time64.h:24:1:
  182. X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
  183. X_BITS_TYPES_H = 1 // types.h:24:1:
  184. X_DEFAULT_SOURCE = 1 // features.h:227:1:
  185. X_FEATURES_H = 1 // features.h:19:1:
  186. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  187. X_HAVE_STRUCT_TERMIOS_C_ISPEED = 1 // termios-struct.h:34:1:
  188. X_HAVE_STRUCT_TERMIOS_C_OSPEED = 1 // termios-struct.h:35:1:
  189. X_LP64 = 1 // <predefined>:284:1:
  190. X_POSIX_C_SOURCE = 200809 // features.h:281:1:
  191. X_POSIX_SOURCE = 1 // features.h:279:1:
  192. X_STDC_PREDEF_H = 1 // <predefined>:162:1:
  193. X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
  194. X_SYS_TTYDEFAULTS_H_ = 0 // ttydefaults.h:41:1:
  195. X_TERMIOS_H = 1 // termios.h:23:1:
  196. Linux = 1 // <predefined>:231:1:
  197. Unix = 1 // <predefined>:177:1:
  198. )
  199. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  200. type Size_t = uint64 /* <builtin>:9:23 */
  201. type Wchar_t = int32 /* <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. // Both x86-64 and x32 use the 64-bit system call interface.
  540. // Properties of long double type. ldbl-96 version.
  541. // Copyright (C) 2016-2020 Free Software Foundation, Inc.
  542. // This file is part of the GNU C Library.
  543. //
  544. // The GNU C Library is free software; you can redistribute it and/or
  545. // modify it under the terms of the GNU Lesser General Public
  546. // License published by the Free Software Foundation; either
  547. // version 2.1 of the License, or (at your option) any later version.
  548. //
  549. // The GNU C Library is distributed in the hope that it will be useful,
  550. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  551. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  552. // Lesser General Public License for more details.
  553. //
  554. // You should have received a copy of the GNU Lesser General Public
  555. // License along with the GNU C Library; if not, see
  556. // <https://www.gnu.org/licenses/>.
  557. // long double is distinct from double, so there is nothing to
  558. // define here.
  559. // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
  560. // intended for use in preprocessor macros.
  561. //
  562. // Note: MESSAGE must be a _single_ string; concatenation of string
  563. // literals is not supported.
  564. // Generic selection (ISO C11) is a C-only feature, available in GCC
  565. // since version 4.9. Previous versions do not provide generic
  566. // selection, even though they might set __STDC_VERSION__ to 201112L,
  567. // when in -std=c11 mode. Thus, we must check for !defined __GNUC__
  568. // when testing __STDC_VERSION__ for generic selection support.
  569. // On the other hand, Clang also defines __GNUC__, so a clang-specific
  570. // check is required to enable the use of generic selection.
  571. // If we don't have __REDIRECT, prototypes will be missing if
  572. // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
  573. // Decide whether we can define 'extern inline' functions in headers.
  574. // This is here only because every header file already includes this one.
  575. // Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
  576. // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
  577. // that will always return failure (and set errno to ENOSYS).
  578. // This file is automatically generated.
  579. // This file selects the right generated file of `__stub_FUNCTION' macros
  580. // based on the architecture being compiled for.
  581. // This file is automatically generated.
  582. // It defines a symbol `__stub_FUNCTION' for each function
  583. // in the C library which is a stub, meaning it will fail
  584. // every time called, usually setting errno to ENOSYS.
  585. // We need `pid_t'.
  586. // bits/types.h -- definitions of __*_t types underlying *_t types.
  587. // Copyright (C) 2002-2020 Free Software Foundation, Inc.
  588. // This file is part of the GNU C Library.
  589. //
  590. // The GNU C Library is free software; you can redistribute it and/or
  591. // modify it under the terms of the GNU Lesser General Public
  592. // License as published by the Free Software Foundation; either
  593. // version 2.1 of the License, or (at your option) any later version.
  594. //
  595. // The GNU C Library is distributed in the hope that it will be useful,
  596. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  597. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  598. // Lesser General Public License for more details.
  599. //
  600. // You should have received a copy of the GNU Lesser General Public
  601. // License along with the GNU C Library; if not, see
  602. // <https://www.gnu.org/licenses/>.
  603. // Never include this file directly; use <sys/types.h> instead.
  604. // Copyright (C) 1991-2020 Free Software Foundation, Inc.
  605. // This file is part of the GNU C Library.
  606. //
  607. // The GNU C Library is free software; you can redistribute it and/or
  608. // modify it under the terms of the GNU Lesser General Public
  609. // License as published by the Free Software Foundation; either
  610. // version 2.1 of the License, or (at your option) any later version.
  611. //
  612. // The GNU C Library is distributed in the hope that it will be useful,
  613. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  614. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  615. // Lesser General Public License for more details.
  616. //
  617. // You should have received a copy of the GNU Lesser General Public
  618. // License along with the GNU C Library; if not, see
  619. // <https://www.gnu.org/licenses/>.
  620. // Determine the wordsize from the preprocessor defines.
  621. // Both x86-64 and x32 use the 64-bit system call interface.
  622. // Bit size of the time_t type at glibc build time, x86-64 and x32 case.
  623. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  624. // This file is part of the GNU C Library.
  625. //
  626. // The GNU C Library is free software; you can redistribute it and/or
  627. // modify it under the terms of the GNU Lesser General Public
  628. // License as published by the Free Software Foundation; either
  629. // version 2.1 of the License, or (at your option) any later version.
  630. //
  631. // The GNU C Library is distributed in the hope that it will be useful,
  632. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  633. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  634. // Lesser General Public License for more details.
  635. //
  636. // You should have received a copy of the GNU Lesser General Public
  637. // License along with the GNU C Library; if not, see
  638. // <https://www.gnu.org/licenses/>.
  639. // For others, time size is word size.
  640. // Convenience types.
  641. type X__u_char = uint8 /* types.h:31:23 */
  642. type X__u_short = uint16 /* types.h:32:28 */
  643. type X__u_int = uint32 /* types.h:33:22 */
  644. type X__u_long = uint64 /* types.h:34:27 */
  645. // Fixed-size types, underlying types depend on word size and compiler.
  646. type X__int8_t = int8 /* types.h:37:21 */
  647. type X__uint8_t = uint8 /* types.h:38:23 */
  648. type X__int16_t = int16 /* types.h:39:26 */
  649. type X__uint16_t = uint16 /* types.h:40:28 */
  650. type X__int32_t = int32 /* types.h:41:20 */
  651. type X__uint32_t = uint32 /* types.h:42:22 */
  652. type X__int64_t = int64 /* types.h:44:25 */
  653. type X__uint64_t = uint64 /* types.h:45:27 */
  654. // Smallest types with at least a given width.
  655. type X__int_least8_t = X__int8_t /* types.h:52:18 */
  656. type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
  657. type X__int_least16_t = X__int16_t /* types.h:54:19 */
  658. type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
  659. type X__int_least32_t = X__int32_t /* types.h:56:19 */
  660. type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
  661. type X__int_least64_t = X__int64_t /* types.h:58:19 */
  662. type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
  663. // quad_t is also 64 bits.
  664. type X__quad_t = int64 /* types.h:63:18 */
  665. type X__u_quad_t = uint64 /* types.h:64:27 */
  666. // Largest integral types.
  667. type X__intmax_t = int64 /* types.h:72:18 */
  668. type X__uintmax_t = uint64 /* types.h:73:27 */
  669. // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
  670. // macros for each of the OS types we define below. The definitions
  671. // of those macros must use the following macros for underlying types.
  672. // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
  673. // variants of each of the following integer types on this machine.
  674. //
  675. // 16 -- "natural" 16-bit type (always short)
  676. // 32 -- "natural" 32-bit type (always int)
  677. // 64 -- "natural" 64-bit type (long or long long)
  678. // LONG32 -- 32-bit type, traditionally long
  679. // QUAD -- 64-bit type, traditionally long long
  680. // WORD -- natural type of __WORDSIZE bits (int or long)
  681. // LONGWORD -- type of __WORDSIZE bits, traditionally long
  682. //
  683. // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
  684. // conventional uses of `long' or `long long' type modifiers match the
  685. // types we define, even when a less-adorned type would be the same size.
  686. // This matters for (somewhat) portably writing printf/scanf formats for
  687. // these types, where using the appropriate l or ll format modifiers can
  688. // make the typedefs and the formats match up across all GNU platforms. If
  689. // we used `long' when it's 64 bits where `long long' is expected, then the
  690. // compiler would warn about the formats not matching the argument types,
  691. // and the programmer changing them to shut up the compiler would break the
  692. // program's portability.
  693. //
  694. // Here we assume what is presently the case in all the GCC configurations
  695. // we support: long long is always 64 bits, long is always word/address size,
  696. // and int is always 32 bits.
  697. // No need to mark the typedef with __extension__.
  698. // bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
  699. // Copyright (C) 2012-2020 Free Software Foundation, Inc.
  700. // This file is part of the GNU C Library.
  701. //
  702. // The GNU C Library is free software; you can redistribute it and/or
  703. // modify it under the terms of the GNU Lesser General Public
  704. // License as published by the Free Software Foundation; either
  705. // version 2.1 of the License, or (at your option) any later version.
  706. //
  707. // The GNU C Library is distributed in the hope that it will be useful,
  708. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  709. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  710. // Lesser General Public License for more details.
  711. //
  712. // You should have received a copy of the GNU Lesser General Public
  713. // License along with the GNU C Library; if not, see
  714. // <https://www.gnu.org/licenses/>.
  715. // See <bits/types.h> for the meaning of these macros. This file exists so
  716. // that <bits/types.h> need not vary across different GNU platforms.
  717. // X32 kernel interface is 64-bit.
  718. // Tell the libc code that off_t and off64_t are actually the same type
  719. // for all ABI purposes, even if possibly expressed as different base types
  720. // for C type-checking purposes.
  721. // Same for ino_t and ino64_t.
  722. // And for __rlim_t and __rlim64_t.
  723. // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
  724. // Number of descriptors that can fit in an `fd_set'.
  725. // bits/time64.h -- underlying types for __time64_t. Generic version.
  726. // Copyright (C) 2018-2020 Free Software Foundation, Inc.
  727. // This file is part of the GNU C Library.
  728. //
  729. // The GNU C Library is free software; you can redistribute it and/or
  730. // modify it under the terms of the GNU Lesser General Public
  731. // License as published by the Free Software Foundation; either
  732. // version 2.1 of the License, or (at your option) any later version.
  733. //
  734. // The GNU C Library is distributed in the hope that it will be useful,
  735. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  736. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  737. // Lesser General Public License for more details.
  738. //
  739. // You should have received a copy of the GNU Lesser General Public
  740. // License along with the GNU C Library; if not, see
  741. // <https://www.gnu.org/licenses/>.
  742. // Define __TIME64_T_TYPE so that it is always a 64-bit type.
  743. // If we already have 64-bit time type then use it.
  744. type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
  745. type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
  746. type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
  747. type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
  748. type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
  749. type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
  750. type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
  751. type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
  752. type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
  753. type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
  754. type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
  755. type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
  756. type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
  757. type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
  758. type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
  759. type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
  760. type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
  761. type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
  762. type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
  763. type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
  764. // Clock ID used in clock and timer functions.
  765. type X__clockid_t = int32 /* types.h:168:29 */
  766. // Timer ID returned by `timer_create'.
  767. type X__timer_t = uintptr /* types.h:171:12 */
  768. // Type to represent block size.
  769. type X__blksize_t = int64 /* types.h:174:29 */
  770. // Types from the Large File Support interface.
  771. // Type to count number of disk blocks.
  772. type X__blkcnt_t = int64 /* types.h:179:28 */
  773. type X__blkcnt64_t = int64 /* types.h:180:30 */
  774. // Type to count file system blocks.
  775. type X__fsblkcnt_t = uint64 /* types.h:183:30 */
  776. type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
  777. // Type to count file system nodes.
  778. type X__fsfilcnt_t = uint64 /* types.h:187:30 */
  779. type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
  780. // Type of miscellaneous file system fields.
  781. type X__fsword_t = int64 /* types.h:191:28 */
  782. type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
  783. // Signed long type used in system calls.
  784. type X__syscall_slong_t = int64 /* types.h:196:33 */
  785. // Unsigned long type used in system calls.
  786. type X__syscall_ulong_t = uint64 /* types.h:198:33 */
  787. // These few don't really vary by system, they always correspond
  788. //
  789. // to one of the other defined types.
  790. type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
  791. type X__caddr_t = uintptr /* types.h:203:14 */
  792. // Duplicates info from stdint.h but this is used in unistd.h.
  793. type X__intptr_t = int64 /* types.h:206:25 */
  794. // Duplicate info from sys/socket.h.
  795. type X__socklen_t = uint32 /* types.h:209:23 */
  796. // C99: An integer type that can be accessed as an atomic entity,
  797. //
  798. // even in the presence of asynchronous interrupts.
  799. // It is not currently necessary for this to be machine-specific.
  800. type X__sig_atomic_t = int32 /* types.h:214:13 */
  801. // Seconds since the Epoch, visible to user code when time_t is too
  802. // narrow only for consistency with the old way of widening too-narrow
  803. // types. User code should never use __time64_t.
  804. type Pid_t = X__pid_t /* termios.h:30:17 */
  805. // Get the system-dependent definitions of `struct termios', `tcflag_t',
  806. // `cc_t', `speed_t', and all the macros specifying the flag bits.
  807. // termios type and macro definitions. Linux version.
  808. // Copyright (C) 1993-2020 Free Software Foundation, Inc.
  809. // This file is part of the GNU C Library.
  810. //
  811. // The GNU C Library is free software; you can redistribute it and/or
  812. // modify it under the terms of the GNU Lesser General Public
  813. // License as published by the Free Software Foundation; either
  814. // version 2.1 of the License, or (at your option) any later version.
  815. //
  816. // The GNU C Library is distributed in the hope that it will be useful,
  817. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  818. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  819. // Lesser General Public License for more details.
  820. //
  821. // You should have received a copy of the GNU Lesser General Public
  822. // License along with the GNU C Library; if not, see
  823. // <https://www.gnu.org/licenses/>.
  824. type Cc_t = uint8 /* termios.h:23:23 */
  825. type Speed_t = uint32 /* termios.h:24:22 */
  826. type Tcflag_t = uint32 /* termios.h:25:22 */
  827. // struct termios definition. Linux/generic version.
  828. // Copyright (C) 2019-2020 Free Software Foundation, Inc.
  829. // This file is part of the GNU C Library.
  830. //
  831. // The GNU C Library is free software; you can redistribute it and/or
  832. // modify it under the terms of the GNU Lesser General Public
  833. // License as published by the Free Software Foundation; either
  834. // version 2.1 of the License, or (at your option) any later version.
  835. //
  836. // The GNU C Library is distributed in the hope that it will be useful,
  837. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  838. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  839. // Lesser General Public License for more details.
  840. //
  841. // You should have received a copy of the GNU Lesser General Public
  842. // License along with the GNU C Library. If not, see
  843. // <https://www.gnu.org/licenses/>.
  844. type Termios = struct {
  845. Fc_iflag Tcflag_t
  846. Fc_oflag Tcflag_t
  847. Fc_cflag Tcflag_t
  848. Fc_lflag Tcflag_t
  849. Fc_line Cc_t
  850. Fc_cc [32]Cc_t
  851. F__ccgo_pad1 [3]byte
  852. Fc_ispeed Speed_t
  853. Fc_ospeed Speed_t
  854. } /* termios-struct.h:24:1 */
  855. // -
  856. // Copyright (c) 1982, 1986, 1993
  857. // The Regents of the University of California. All rights reserved.
  858. // (c) UNIX System Laboratories, Inc.
  859. // All or some portions of this file are derived from material licensed
  860. // to the University of California by American Telephone and Telegraph
  861. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  862. // the permission of UNIX System Laboratories, Inc.
  863. //
  864. // Redistribution and use in source and binary forms, with or without
  865. // modification, are permitted provided that the following conditions
  866. // are met:
  867. // 1. Redistributions of source code must retain the above copyright
  868. // notice, this list of conditions and the following disclaimer.
  869. // 2. Redistributions in binary form must reproduce the above copyright
  870. // notice, this list of conditions and the following disclaimer in the
  871. // documentation and/or other materials provided with the distribution.
  872. // 4. Neither the name of the University nor the names of its contributors
  873. // may be used to endorse or promote products derived from this software
  874. // without specific prior written permission.
  875. //
  876. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  877. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  878. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  879. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  880. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  881. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  882. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  883. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  884. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  885. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  886. // SUCH DAMAGE.
  887. //
  888. // @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
  889. // System wide defaults for terminal state. Linux version.
  890. // Defaults on "first" open.
  891. // Control Character Defaults
  892. // compat
  893. // PROTECTED INCLUSION ENDS HERE
  894. // #define TTYDEFCHARS to include an array of default control characters.
  895. var _ int8 /* gen.c:2:13: */