termios_linux_ppc64le.go 60 KB

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