termios_netbsd_amd64.go 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  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_netbsd_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. ALTWERASE = 0x00000200 // termios.h:174:1:
  15. ARG_MAX = 262144 // syslimits.h:45:1:
  16. B0 = 0 // termios.h:215:1:
  17. B1000000 = 1000000 // termios.h:242:1:
  18. B110 = 110 // termios.h:218:1:
  19. B115200 = 115200 // termios.h:237:1:
  20. B1200 = 1200 // termios.h:224:1:
  21. B134 = 134 // termios.h:219:1:
  22. B14400 = 14400 // termios.h:233:1:
  23. B150 = 150 // termios.h:220:1:
  24. B1500000 = 1500000 // termios.h:243:1:
  25. B1800 = 1800 // termios.h:225:1:
  26. B19200 = 19200 // termios.h:229:1:
  27. B200 = 200 // termios.h:221:1:
  28. B2000000 = 2000000 // termios.h:244:1:
  29. B230400 = 230400 // termios.h:238:1:
  30. B2400 = 2400 // termios.h:226:1:
  31. B2500000 = 2500000 // termios.h:245:1:
  32. B28800 = 28800 // termios.h:234:1:
  33. B300 = 300 // termios.h:222:1:
  34. B3000000 = 3000000 // termios.h:246:1:
  35. B3500000 = 3500000 // termios.h:247:1:
  36. B38400 = 38400 // termios.h:230:1:
  37. B4000000 = 4000000 // termios.h:248:1:
  38. B460800 = 460800 // termios.h:239:1:
  39. B4800 = 4800 // termios.h:227:1:
  40. B50 = 50 // termios.h:216:1:
  41. B500000 = 500000 // termios.h:240:1:
  42. B57600 = 57600 // termios.h:235:1:
  43. B600 = 600 // termios.h:223:1:
  44. B7200 = 7200 // termios.h:232:1:
  45. B75 = 75 // termios.h:217:1:
  46. B76800 = 76800 // termios.h:236:1:
  47. B921600 = 921600 // termios.h:241:1:
  48. B9600 = 9600 // termios.h:228:1:
  49. BC_DIM_MAX = 65535 // syslimits.h:64:1:
  50. BRKINT = 0x00000002 // termios.h:91:1:
  51. CCTS_OFLOW = 65536 // termios.h:145:1:
  52. CDISCARD = 15 // ttydefaults.h:72:1:
  53. CDSUSP = 25 // ttydefaults.h:68:1:
  54. CDTRCTS = 0x00020000 // termios.h:146:1:
  55. CEOF = 4 // ttydefaults.h:58:1:
  56. CEOT = 4 // ttydefaults.h:75:1:
  57. CERASE = 0177 // ttydefaults.h:60:1:
  58. CFLUSH = 15 // ttydefaults.h:79:1:
  59. CHILD_MAX = 160 // syslimits.h:47:1:
  60. CHWFLOW = 1245184 // termios.h:148:1:
  61. CIGNORE = 0x00000001 // termios.h:129:1:
  62. CINTR = 3 // ttydefaults.h:61:1:
  63. CKILL = 21 // ttydefaults.h:63:1:
  64. CLNEXT = 22 // ttydefaults.h:71:1:
  65. CLOCAL = 0x00008000 // termios.h:141:1:
  66. CMIN = 1 // ttydefaults.h:64:1:
  67. COLL_WEIGHTS_MAX = 2 // syslimits.h:67:1:
  68. CQUIT = 034 // ttydefaults.h:65:1:
  69. CREAD = 0x00000800 // termios.h:137:1:
  70. CREPRINT = 18 // ttydefaults.h:74:1:
  71. CRPRNT = 18 // ttydefaults.h:78:1:
  72. CRTSCTS = 0x00010000 // termios.h:143:1:
  73. CRTS_IFLOW = 65536 // termios.h:144:1:
  74. CS5 = 0x00000000 // termios.h:132:1:
  75. CS6 = 0x00000100 // termios.h:133:1:
  76. CS7 = 0x00000200 // termios.h:134:1:
  77. CS8 = 0x00000300 // termios.h:135:1:
  78. CSIZE = 0x00000300 // termios.h:131:1:
  79. CSTART = 17 // ttydefaults.h:69:1:
  80. CSTATUS = 20 // ttydefaults.h:62:1:
  81. CSTOP = 19 // ttydefaults.h:70:1:
  82. CSTOPB = 0x00000400 // termios.h:136:1:
  83. CSUSP = 26 // ttydefaults.h:66:1:
  84. CTIME = 0 // ttydefaults.h:67:1:
  85. CWERASE = 23 // ttydefaults.h:73:1:
  86. ECHO = 0x00000008 // termios.h:165:1:
  87. ECHOCTL = 0x00000040 // termios.h:169:1:
  88. ECHOE = 0x00000002 // termios.h:163:1:
  89. ECHOK = 0x00000004 // termios.h:164:1:
  90. ECHOKE = 0x00000001 // termios.h:161:1:
  91. ECHONL = 0x00000010 // termios.h:166:1:
  92. ECHOPRT = 0x00000020 // termios.h:168:1:
  93. EXPR_NEST_MAX = 32 // syslimits.h:68:1:
  94. EXTA = 19200 // termios.h:249:1:
  95. EXTB = 38400 // termios.h:250:1:
  96. EXTPROC = 0x00000800 // termios.h:178:1:
  97. FLUSHO = 0x00800000 // termios.h:182:1:
  98. GID_MAX = 2147483647 // syslimits.h:49:1:
  99. HDLCDISC = 9 // ttycom.h:177:1:
  100. HUPCL = 0x00004000 // termios.h:140:1:
  101. ICANON = 0x00000100 // termios.h:172:1:
  102. ICRNL = 0x00000100 // termios.h:98:1:
  103. IEXTEN = 0x00000400 // termios.h:176:1:
  104. IGNBRK = 0x00000001 // termios.h:90:1:
  105. IGNCR = 0x00000080 // termios.h:97:1:
  106. IGNPAR = 0x00000004 // termios.h:92:1:
  107. IMAXBEL = 0x00002000 // termios.h:105:1:
  108. INLCR = 0x00000040 // termios.h:96:1:
  109. INPCK = 0x00000010 // termios.h:94:1:
  110. IOCGROUP_SHIFT = 8 // ioccom.h:49:1:
  111. IOCPARM_MASK = 0x1fff // ioccom.h:47:1:
  112. IOCPARM_SHIFT = 16 // ioccom.h:48:1:
  113. IOV_MAX = 1024 // syslimits.h:84:1:
  114. ISIG = 0x00000080 // termios.h:171:1:
  115. ISTRIP = 0x00000020 // termios.h:95:1:
  116. IXANY = 0x00000800 // termios.h:102:1:
  117. IXOFF = 0x00000400 // termios.h:100:1:
  118. IXON = 0x00000200 // termios.h:99:1:
  119. LINE_MAX = 2048 // syslimits.h:69:1:
  120. LINK_MAX = 32767 // syslimits.h:50:1:
  121. LOGIN_NAME_MAX = 17 // syslimits.h:77:1:
  122. MAX_CANON = 255 // syslimits.h:51:1:
  123. MAX_INPUT = 255 // syslimits.h:52:1:
  124. MDMBUF = 0x00100000 // termios.h:147:1:
  125. NAME_MAX = 511 // syslimits.h:53:1:
  126. NCCS = 20 // termios.h:79:1:
  127. NGROUPS_MAX = 16 // syslimits.h:55:1:
  128. NOFLSH = 0x80000000 // termios.h:186:1:
  129. NOKERNINFO = 0x02000000 // termios.h:183:1:
  130. NZERO = 20 // syslimits.h:85:1:
  131. OCRNL = 0x00000010 // termios.h:120:1:
  132. ONLCR = 0x00000002 // termios.h:113:1:
  133. ONLRET = 0x00000040 // termios.h:122:1:
  134. ONOCR = 0x00000020 // termios.h:121:1:
  135. ONOEOT = 0x00000008 // termios.h:117:1:
  136. OPEN_MAX = 128 // syslimits.h:58:1:
  137. OPOST = 0x00000001 // termios.h:111:1:
  138. OXTABS = 0x00000004 // termios.h:116:1:
  139. PARENB = 0x00001000 // termios.h:138:1:
  140. PARMRK = 0x00000008 // termios.h:93:1:
  141. PARODD = 0x00002000 // termios.h:139:1:
  142. PATH_MAX = 1024 // syslimits.h:60:1:
  143. PENDIN = 0x20000000 // termios.h:184:1:
  144. PIPE_BUF = 512 // syslimits.h:61:1:
  145. PPPDISC = 5 // ttycom.h:175:1:
  146. RE_DUP_MAX = 255 // syslimits.h:70:1:
  147. SLIPDISC = 4 // ttycom.h:174:1:
  148. STRIPDISC = 6 // ttycom.h:176:1:
  149. TABLDISC = 3 // ttycom.h:173:1:
  150. TCIFLUSH = 1 // termios.h:255:1:
  151. TCIOFF = 3 // termios.h:260:1:
  152. TCIOFLUSH = 3 // termios.h:257:1:
  153. TCION = 4 // termios.h:261:1:
  154. TCOFLUSH = 2 // termios.h:256:1:
  155. TCOOFF = 1 // termios.h:258:1:
  156. TCOON = 2 // termios.h:259:1:
  157. TCSADRAIN = 1 // termios.h:206:1:
  158. TCSAFLUSH = 2 // termios.h:207:1:
  159. TCSANOW = 0 // termios.h:205:1:
  160. TCSASOFT = 0x10 // termios.h:209:1:
  161. TIOCFLAG_CDTRCTS = 0x10 // ttycom.h:158:1:
  162. TIOCFLAG_CLOCAL = 0x02 // ttycom.h:155:1:
  163. TIOCFLAG_CRTSCTS = 0x04 // ttycom.h:156:1:
  164. TIOCFLAG_MDMBUF = 0x08 // ttycom.h:157:1:
  165. TIOCFLAG_SOFTCAR = 0x01 // ttycom.h:154:1:
  166. TIOCM_CAR = 0100 // ttycom.h:89:1:
  167. TIOCM_CD = 64 // ttycom.h:90:1:
  168. TIOCM_CTS = 0040 // ttycom.h:88:1:
  169. TIOCM_DSR = 0400 // ttycom.h:93:1:
  170. TIOCM_DTR = 0002 // ttycom.h:84:1:
  171. TIOCM_LE = 0001 // ttycom.h:83:1:
  172. TIOCM_RI = 128 // ttycom.h:92:1:
  173. TIOCM_RNG = 0200 // ttycom.h:91:1:
  174. TIOCM_RTS = 0004 // ttycom.h:85:1:
  175. TIOCM_SR = 0020 // ttycom.h:87:1:
  176. TIOCM_ST = 0010 // ttycom.h:86:1:
  177. TIOCPKT_DATA = 0x00 // ttycom.h:126:1:
  178. TIOCPKT_DOSTOP = 0x20 // ttycom.h:132:1:
  179. TIOCPKT_FLUSHREAD = 0x01 // ttycom.h:127:1:
  180. TIOCPKT_FLUSHWRITE = 0x02 // ttycom.h:128:1:
  181. TIOCPKT_IOCTL = 0x40 // ttycom.h:133:1:
  182. TIOCPKT_NOSTOP = 0x10 // ttycom.h:131:1:
  183. TIOCPKT_START = 0x08 // ttycom.h:130:1:
  184. TIOCPKT_STOP = 0x04 // ttycom.h:129:1:
  185. TOSTOP = 0x00400000 // termios.h:180:1:
  186. TTLINEDNAMELEN = 32 // ttycom.h:110:1:
  187. TTYDEF_CFLAG = 19200 // ttydefaults.h:51:1:
  188. TTYDEF_IFLAG = 11010 // ttydefaults.h:48:1:
  189. TTYDEF_LFLAG = 1483 // ttydefaults.h:50:1:
  190. TTYDEF_OFLAG = 7 // ttydefaults.h:49:1:
  191. TTYDEF_SPEED = 9600 // ttydefaults.h:52:1:
  192. TTYDISC = 0 // ttycom.h:172:1:
  193. UID_MAX = 2147483647 // syslimits.h:56:1:
  194. VDISCARD = 15 // termios.h:71:1:
  195. VDSUSP = 11 // termios.h:65:1:
  196. VEOF = 0 // termios.h:47:1:
  197. VEOL = 1 // termios.h:48:1:
  198. VEOL2 = 2 // termios.h:50:1:
  199. VERASE = 3 // termios.h:52:1:
  200. VINTR = 8 // termios.h:61:1:
  201. VKILL = 5 // termios.h:56:1:
  202. VLNEXT = 14 // termios.h:70:1:
  203. VMIN = 16 // termios.h:73:1:
  204. VQUIT = 9 // termios.h:62:1:
  205. VREPRINT = 6 // termios.h:58:1:
  206. VSTART = 12 // termios.h:67:1:
  207. VSTATUS = 18 // termios.h:76:1:
  208. VSTOP = 13 // termios.h:68:1:
  209. VSUSP = 10 // termios.h:63:1:
  210. VTIME = 17 // termios.h:74:1:
  211. VWERASE = 4 // termios.h:54:1:
  212. X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
  213. X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
  214. X_LP64 = 1 // <predefined>:268:1:
  215. X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
  216. X_NETBSD_SYS_TTYCOM_H_ = 0 // ttycom.h:65:1:
  217. X_PATH_PTMDEV = "/dev/ptm" // ttycom.h:81:1:
  218. X_POSIX_SYS_TTYCOM_H_ = 0 // ttycom.h:40:1:
  219. X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
  220. X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
  221. X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
  222. X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
  223. X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
  224. X_SYS_IOCCOM_H_ = 0 // ioccom.h:35:1:
  225. X_SYS_SYSLIMITS_H_ = 0 // syslimits.h:35:1:
  226. X_SYS_TERMIOS_H_ = 0 // termios.h:35:1:
  227. X_SYS_TTYDEFAULTS_H_ = 0 // ttydefaults.h:43:1:
  228. X_X86_64_CDEFS_H_ = 0 // cdefs.h:4: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__float128 = float64 /* <builtin>:47:21 */
  243. // return true if value 'a' fits in type 't'
  244. // $NetBSD: int_types.h,v 1.7 2014/07/25 21:43:13 joerg Exp $
  245. // -
  246. // Copyright (c) 1990 The Regents of the University of California.
  247. // All rights reserved.
  248. //
  249. // Redistribution and use in source and binary forms, with or without
  250. // modification, are permitted provided that the following conditions
  251. // are met:
  252. // 1. Redistributions of source code must retain the above copyright
  253. // notice, this list of conditions and the following disclaimer.
  254. // 2. Redistributions in binary form must reproduce the above copyright
  255. // notice, this list of conditions and the following disclaimer in the
  256. // documentation and/or other materials provided with the distribution.
  257. // 3. Neither the name of the University nor the names of its contributors
  258. // may be used to endorse or promote products derived from this software
  259. // without specific prior written permission.
  260. //
  261. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  262. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  263. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  264. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  265. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  266. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  267. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  268. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  269. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  270. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  271. // SUCH DAMAGE.
  272. //
  273. // from: @(#)types.h 7.5 (Berkeley) 3/9/91
  274. // $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $
  275. // -
  276. // Copyright (c) 2014 The NetBSD Foundation, Inc.
  277. // All rights reserved.
  278. //
  279. // This code is derived from software contributed to The NetBSD Foundation
  280. // by Joerg Sonnenberger.
  281. //
  282. // Redistribution and use in source and binary forms, with or without
  283. // modification, are permitted provided that the following conditions
  284. // are met:
  285. // 1. Redistributions of source code must retain the above copyright
  286. // notice, this list of conditions and the following disclaimer.
  287. // 2. Redistributions in binary form must reproduce the above copyright
  288. // notice, this list of conditions and the following disclaimer in the
  289. // documentation and/or other materials provided with the distribution.
  290. //
  291. // THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
  292. // ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  293. // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  294. // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
  295. // BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  296. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  297. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  298. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  299. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  300. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  301. // POSSIBILITY OF SUCH DAMAGE.
  302. // 7.18.1 Integer types
  303. // 7.18.1.1 Exact-width integer types
  304. type X__int8_t = int8 /* common_int_types.h:45:27 */
  305. type X__uint8_t = uint8 /* common_int_types.h:46:27 */
  306. type X__int16_t = int16 /* common_int_types.h:47:27 */
  307. type X__uint16_t = uint16 /* common_int_types.h:48:27 */
  308. type X__int32_t = int32 /* common_int_types.h:49:27 */
  309. type X__uint32_t = uint32 /* common_int_types.h:50:27 */
  310. type X__int64_t = int64 /* common_int_types.h:51:27 */
  311. type X__uint64_t = uint64 /* common_int_types.h:52:27 */
  312. // 7.18.1.4 Integer types capable of holding object pointers
  313. type X__intptr_t = int64 /* common_int_types.h:58:27 */
  314. type X__uintptr_t = uint64 /* common_int_types.h:59:26 */
  315. // Types which are fundamental to the implementation and may appear in
  316. // more than one standard header are defined here. Standard headers
  317. // then use:
  318. // #ifdef _BSD_SIZE_T_
  319. // typedef _BSD_SIZE_T_ size_t;
  320. // #undef _BSD_SIZE_T_
  321. // #endif
  322. type X__caddr_t = uintptr /* ansi.h:37:14 */ // core address
  323. type X__gid_t = X__uint32_t /* ansi.h:38:20 */ // group id
  324. type X__in_addr_t = X__uint32_t /* ansi.h:39:20 */ // IP(v4) address
  325. type X__in_port_t = X__uint16_t /* ansi.h:40:20 */ // "Internet" port number
  326. type X__mode_t = X__uint32_t /* ansi.h:41:20 */ // file permissions
  327. type X__off_t = X__int64_t /* ansi.h:42:19 */ // file offset
  328. type X__pid_t = X__int32_t /* ansi.h:43:19 */ // process id
  329. type X__sa_family_t = X__uint8_t /* ansi.h:44:19 */ // socket address family
  330. type X__socklen_t = uint32 /* ansi.h:45:22 */ // socket-related datum length
  331. type X__uid_t = X__uint32_t /* ansi.h:46:20 */ // user id
  332. type X__fsblkcnt_t = X__uint64_t /* ansi.h:47:20 */ // fs block count (statvfs)
  333. type X__fsfilcnt_t = X__uint64_t /* ansi.h:48:20 */
  334. type X__wctrans_t = uintptr /* ansi.h:51:32 */
  335. type X__wctype_t = uintptr /* ansi.h:54:31 */
  336. // mbstate_t is an opaque object to keep conversion state, during multibyte
  337. // stream conversions. The content must not be referenced by user programs.
  338. type X__mbstate_t = struct {
  339. F__mbstateL X__int64_t
  340. F__ccgo_pad1 [120]byte
  341. } /* ansi.h:63:3 */
  342. type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
  343. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  344. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  345. // Public domain.
  346. //
  347. // NOTE: Do not protect this header against multiple inclusion. Doing
  348. // so can have subtle side-effects due to header file inclusion order
  349. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  350. // protect each CPP macro that we want to supply.
  351. // Feature-test macros are defined by several standards, and allow an
  352. // application to specify what symbols they want the system headers to
  353. // expose, and hence what standard they want them to conform to.
  354. // There are two classes of feature-test macros. The first class
  355. // specify complete standards, and if one of these is defined, header
  356. // files will try to conform to the relevant standard. They are:
  357. //
  358. // ANSI macros:
  359. // _ANSI_SOURCE ANSI C89
  360. //
  361. // POSIX macros:
  362. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  363. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  364. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  365. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  366. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  367. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  368. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  369. //
  370. // X/Open macros:
  371. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  372. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  373. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  374. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  375. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  376. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  377. //
  378. // NetBSD macros:
  379. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  380. //
  381. // If more than one of these "major" feature-test macros is defined,
  382. // then the set of facilities provided (and namespace used) is the
  383. // union of that specified by the relevant standards, and in case of
  384. // conflict, the earlier standard in the above list has precedence (so
  385. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  386. // of rename() that's used is the POSIX one). If none of the "major"
  387. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  388. //
  389. // There are also "minor" feature-test macros, which enable extra
  390. // functionality in addition to some base standard. They should be
  391. // defined along with one of the "major" macros. The "minor" macros
  392. // are:
  393. //
  394. // _REENTRANT
  395. // _ISOC99_SOURCE
  396. // _ISOC11_SOURCE
  397. // _LARGEFILE_SOURCE Large File Support
  398. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  399. // Special Control Characters
  400. //
  401. // Index into c_cc[] character array.
  402. //
  403. // Name Subscript Enabled by
  404. // 7 spare 1
  405. // 19 spare 2
  406. // Input flags - software input processing
  407. // Output flags - software output processing
  408. // Control flags - hardware control of terminal
  409. // "Local" flags - dumping ground for other state
  410. //
  411. // Warning: some flags in this structure begin with
  412. // the letter "I" and look like they belong in the
  413. // input flag.
  414. type Tcflag_t = uint32 /* termios.h:188:22 */
  415. type Cc_t = uint8 /* termios.h:189:23 */
  416. type Speed_t = uint32 /* termios.h:190:22 */
  417. type Termios = struct {
  418. Fc_iflag Tcflag_t
  419. Fc_oflag Tcflag_t
  420. Fc_cflag Tcflag_t
  421. Fc_lflag Tcflag_t
  422. Fc_cc [20]Cc_t
  423. Fc_ispeed int32
  424. Fc_ospeed int32
  425. } /* termios.h:192:1 */
  426. // Commands passed to tcsetattr() for setting the termios structure.
  427. // Standard speeds
  428. type Pid_t = X__pid_t /* termios.h:265:18 */
  429. // Include tty ioctl's that aren't just for backwards compatibility
  430. // with the old tty driver. These ioctl definitions were previously
  431. // in <sys/ioctl.h>. Most of this appears only when _NETBSD_SOURCE
  432. // is defined, but (at least) struct winsize has been made standard,
  433. // and needs to be visible here (as well as via the old <sys/ioctl.h>.)
  434. // $NetBSD: ttycom.h,v 1.21 2017/10/25 06:32:59 kre Exp $
  435. // -
  436. // Copyright (c) 1982, 1986, 1990, 1993, 1994
  437. // The Regents of the University of California. All rights reserved.
  438. // (c) UNIX System Laboratories, Inc.
  439. // All or some portions of this file are derived from material licensed
  440. // to the University of California by American Telephone and Telegraph
  441. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  442. // the permission of UNIX System Laboratories, Inc.
  443. //
  444. // Redistribution and use in source and binary forms, with or without
  445. // modification, are permitted provided that the following conditions
  446. // are met:
  447. // 1. Redistributions of source code must retain the above copyright
  448. // notice, this list of conditions and the following disclaimer.
  449. // 2. Redistributions in binary form must reproduce the above copyright
  450. // notice, this list of conditions and the following disclaimer in the
  451. // documentation and/or other materials provided with the distribution.
  452. // 3. Neither the name of the University nor the names of its contributors
  453. // may be used to endorse or promote products derived from this software
  454. // without specific prior written permission.
  455. //
  456. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  457. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  458. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  459. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  460. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  461. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  462. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  463. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  464. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  465. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  466. // SUCH DAMAGE.
  467. //
  468. // @(#)ttycom.h 8.1 (Berkeley) 3/28/94
  469. // $NetBSD: syslimits.h,v 1.28 2015/08/21 07:19:39 uebayasi Exp $
  470. // Copyright (c) 1988, 1993
  471. // The Regents of the University of California. All rights reserved.
  472. //
  473. // Redistribution and use in source and binary forms, with or without
  474. // modification, are permitted provided that the following conditions
  475. // are met:
  476. // 1. Redistributions of source code must retain the above copyright
  477. // notice, this list of conditions and the following disclaimer.
  478. // 2. Redistributions in binary form must reproduce the above copyright
  479. // notice, this list of conditions and the following disclaimer in the
  480. // documentation and/or other materials provided with the distribution.
  481. // 3. Neither the name of the University nor the names of its contributors
  482. // may be used to endorse or promote products derived from this software
  483. // without specific prior written permission.
  484. //
  485. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  486. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  487. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  488. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  489. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  490. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  491. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  492. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  493. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  494. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  495. // SUCH DAMAGE.
  496. //
  497. // @(#)syslimits.h 8.1 (Berkeley) 6/2/93
  498. // $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
  499. // Written by Klaus Klein <kleink@NetBSD.org>, February 2, 1998.
  500. // Public domain.
  501. //
  502. // NOTE: Do not protect this header against multiple inclusion. Doing
  503. // so can have subtle side-effects due to header file inclusion order
  504. // and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead,
  505. // protect each CPP macro that we want to supply.
  506. // Feature-test macros are defined by several standards, and allow an
  507. // application to specify what symbols they want the system headers to
  508. // expose, and hence what standard they want them to conform to.
  509. // There are two classes of feature-test macros. The first class
  510. // specify complete standards, and if one of these is defined, header
  511. // files will try to conform to the relevant standard. They are:
  512. //
  513. // ANSI macros:
  514. // _ANSI_SOURCE ANSI C89
  515. //
  516. // POSIX macros:
  517. // _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?)
  518. // _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990
  519. // _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992
  520. // _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993
  521. // _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996
  522. // _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001
  523. // _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008
  524. //
  525. // X/Open macros:
  526. // _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2
  527. // _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions
  528. // _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5
  529. // _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2
  530. // _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option
  531. // _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option
  532. //
  533. // NetBSD macros:
  534. // _NETBSD_SOURCE == 1 Make all NetBSD features available.
  535. //
  536. // If more than one of these "major" feature-test macros is defined,
  537. // then the set of facilities provided (and namespace used) is the
  538. // union of that specified by the relevant standards, and in case of
  539. // conflict, the earlier standard in the above list has precedence (so
  540. // if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version
  541. // of rename() that's used is the POSIX one). If none of the "major"
  542. // feature-test macros is defined, _NETBSD_SOURCE is assumed.
  543. //
  544. // There are also "minor" feature-test macros, which enable extra
  545. // functionality in addition to some base standard. They should be
  546. // defined along with one of the "major" macros. The "minor" macros
  547. // are:
  548. //
  549. // _REENTRANT
  550. // _ISOC99_SOURCE
  551. // _ISOC11_SOURCE
  552. // _LARGEFILE_SOURCE Large File Support
  553. // <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
  554. // kept in sync with MAXNAMLEN
  555. // IEEE Std 1003.1c-95, adopted in X/Open CAE Specification Issue 5 Version 2
  556. // X/Open CAE Specification Issue 5 Version 2
  557. // $NetBSD: ioccom.h,v 1.13 2019/05/26 10:21:33 hannken Exp $
  558. // -
  559. // Copyright (c) 1982, 1986, 1990, 1993, 1994
  560. // The Regents of the University of California. All rights reserved.
  561. //
  562. // Redistribution and use in source and binary forms, with or without
  563. // modification, are permitted provided that the following conditions
  564. // are met:
  565. // 1. Redistributions of source code must retain the above copyright
  566. // notice, this list of conditions and the following disclaimer.
  567. // 2. Redistributions in binary form must reproduce the above copyright
  568. // notice, this list of conditions and the following disclaimer in the
  569. // documentation and/or other materials provided with the distribution.
  570. // 3. Neither the name of the University nor the names of its contributors
  571. // may be used to endorse or promote products derived from this software
  572. // without specific prior written permission.
  573. //
  574. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  575. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  576. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  577. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  578. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  579. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  580. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  581. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  582. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  583. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  584. // SUCH DAMAGE.
  585. //
  586. // @(#)ioccom.h 8.3 (Berkeley) 1/9/95
  587. // Ioctl's have the command encoded in the lower word, and the size of
  588. // any in or out parameters in the upper word. The high 3 bits of the
  589. // upper word are used to encode the in/out status of the parameter.
  590. //
  591. // 31 29 28 16 15 8 7 0
  592. // +---------------------------------------------------------------+
  593. // | I/O | Parameter Length | Command Group | Command |
  594. // +---------------------------------------------------------------+
  595. // no parameters
  596. // copy parameters out
  597. // copy parameters in
  598. // copy parameters in and out
  599. // mask for IN/OUT/VOID
  600. // this should be _IORW, but stdio got there first
  601. // Tty ioctl's except for those supported only for backwards compatibility
  602. // with the old tty driver.
  603. // Window/terminal size structure. This information is stored by the kernel
  604. // in order to provide a consistent interface, but is not used by the kernel.
  605. type Winsize = struct {
  606. Fws_row uint16
  607. Fws_col uint16
  608. Fws_xpixel uint16
  609. Fws_ypixel uint16
  610. } /* ttycom.h:54:1 */
  611. // The following are not exposed when imported via <termios.h>
  612. // when _POSIX_SOURCE (et.al.) is defined (and hence _NETBSD_SOURCE
  613. // is not, unless that is added manually.)
  614. // ptmget, for /dev/ptm pty getting ioctl TIOCPTMGET, and for TIOCPTSNAME
  615. type Ptmget = struct {
  616. Fcfd int32
  617. Fsfd int32
  618. Fcn [1024]int8
  619. Fsn [1024]int8
  620. } /* ttycom.h:74:1 */
  621. // 8-10 compat
  622. // 15 unused
  623. // 17-18 compat
  624. // This is the maximum length of a line discipline's name.
  625. type Linedn_t = [32]int8 /* ttycom.h:111:14 */
  626. // END OF PROTECTED INCLUDE.
  627. // $NetBSD: ttydefaults.h,v 1.16 2008/05/24 14:06:39 yamt Exp $
  628. // -
  629. // Copyright (c) 1982, 1986, 1993
  630. // The Regents of the University of California. All rights reserved.
  631. // (c) UNIX System Laboratories, Inc.
  632. // All or some portions of this file are derived from material licensed
  633. // to the University of California by American Telephone and Telegraph
  634. // Co. or Unix System Laboratories, Inc. and are reproduced herein with
  635. // the permission of UNIX System Laboratories, Inc.
  636. //
  637. // Redistribution and use in source and binary forms, with or without
  638. // modification, are permitted provided that the following conditions
  639. // are met:
  640. // 1. Redistributions of source code must retain the above copyright
  641. // notice, this list of conditions and the following disclaimer.
  642. // 2. Redistributions in binary form must reproduce the above copyright
  643. // notice, this list of conditions and the following disclaimer in the
  644. // documentation and/or other materials provided with the distribution.
  645. // 3. Neither the name of the University nor the names of its contributors
  646. // may be used to endorse or promote products derived from this software
  647. // without specific prior written permission.
  648. //
  649. // THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  650. // ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  651. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  652. // ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  653. // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  654. // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  655. // OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  656. // HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  657. // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  658. // OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  659. // SUCH DAMAGE.
  660. //
  661. // @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
  662. // System wide defaults for terminal state.
  663. // Defaults on "first" open.
  664. // Control Character Defaults
  665. // compat
  666. // PROTECTED INCLUSION ENDS HERE
  667. // #define TTYDEFCHARS to include an array of default control characters.
  668. var _ int8 /* gen.c:2:13: */