A lightweight mechanism to provide an *instant kickstart* to a Go web server instance upon changing any Go source files under the project directory (and its subdirectories).

ztypes_linux_mips.go 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. // cgo -godefs -- -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build mips,linux
  4. package unix
  5. const (
  6. sizeofPtr = 0x4
  7. sizeofShort = 0x2
  8. sizeofInt = 0x4
  9. sizeofLong = 0x4
  10. sizeofLongLong = 0x8
  11. PathMax = 0x1000
  12. )
  13. type (
  14. _C_short int16
  15. _C_int int32
  16. _C_long int32
  17. _C_long_long int64
  18. )
  19. type Timespec struct {
  20. Sec int32
  21. Nsec int32
  22. }
  23. type Timeval struct {
  24. Sec int32
  25. Usec int32
  26. }
  27. type Timex struct {
  28. Modes uint32
  29. Offset int32
  30. Freq int32
  31. Maxerror int32
  32. Esterror int32
  33. Status int32
  34. Constant int32
  35. Precision int32
  36. Tolerance int32
  37. Time Timeval
  38. Tick int32
  39. Ppsfreq int32
  40. Jitter int32
  41. Shift int32
  42. Stabil int32
  43. Jitcnt int32
  44. Calcnt int32
  45. Errcnt int32
  46. Stbcnt int32
  47. Tai int32
  48. Pad_cgo_0 [44]byte
  49. }
  50. type Time_t int32
  51. type Tms struct {
  52. Utime int32
  53. Stime int32
  54. Cutime int32
  55. Cstime int32
  56. }
  57. type Utimbuf struct {
  58. Actime int32
  59. Modtime int32
  60. }
  61. type Rusage struct {
  62. Utime Timeval
  63. Stime Timeval
  64. Maxrss int32
  65. Ixrss int32
  66. Idrss int32
  67. Isrss int32
  68. Minflt int32
  69. Majflt int32
  70. Nswap int32
  71. Inblock int32
  72. Oublock int32
  73. Msgsnd int32
  74. Msgrcv int32
  75. Nsignals int32
  76. Nvcsw int32
  77. Nivcsw int32
  78. }
  79. type Rlimit struct {
  80. Cur uint64
  81. Max uint64
  82. }
  83. type _Gid_t uint32
  84. type Stat_t struct {
  85. Dev uint32
  86. Pad1 [3]int32
  87. Ino uint64
  88. Mode uint32
  89. Nlink uint32
  90. Uid uint32
  91. Gid uint32
  92. Rdev uint32
  93. Pad2 [3]int32
  94. Size int64
  95. Atim Timespec
  96. Mtim Timespec
  97. Ctim Timespec
  98. Blksize int32
  99. Pad4 int32
  100. Blocks int64
  101. Pad5 [14]int32
  102. }
  103. type Statfs_t struct {
  104. Type int32
  105. Bsize int32
  106. Frsize int32
  107. Pad_cgo_0 [4]byte
  108. Blocks uint64
  109. Bfree uint64
  110. Files uint64
  111. Ffree uint64
  112. Bavail uint64
  113. Fsid Fsid
  114. Namelen int32
  115. Flags int32
  116. Spare [5]int32
  117. Pad_cgo_1 [4]byte
  118. }
  119. type Dirent struct {
  120. Ino uint64
  121. Off int64
  122. Reclen uint16
  123. Type uint8
  124. Name [256]int8
  125. Pad_cgo_0 [5]byte
  126. }
  127. type Fsid struct {
  128. X__val [2]int32
  129. }
  130. type Flock_t struct {
  131. Type int16
  132. Whence int16
  133. Pad_cgo_0 [4]byte
  134. Start int64
  135. Len int64
  136. Pid int32
  137. Pad_cgo_1 [4]byte
  138. }
  139. type FscryptPolicy struct {
  140. Version uint8
  141. Contents_encryption_mode uint8
  142. Filenames_encryption_mode uint8
  143. Flags uint8
  144. Master_key_descriptor [8]uint8
  145. }
  146. type FscryptKey struct {
  147. Mode uint32
  148. Raw [64]uint8
  149. Size uint32
  150. }
  151. type KeyctlDHParams struct {
  152. Private int32
  153. Prime int32
  154. Base int32
  155. }
  156. const (
  157. FADV_NORMAL = 0x0
  158. FADV_RANDOM = 0x1
  159. FADV_SEQUENTIAL = 0x2
  160. FADV_WILLNEED = 0x3
  161. FADV_DONTNEED = 0x4
  162. FADV_NOREUSE = 0x5
  163. )
  164. type RawSockaddrInet4 struct {
  165. Family uint16
  166. Port uint16
  167. Addr [4]byte /* in_addr */
  168. Zero [8]uint8
  169. }
  170. type RawSockaddrInet6 struct {
  171. Family uint16
  172. Port uint16
  173. Flowinfo uint32
  174. Addr [16]byte /* in6_addr */
  175. Scope_id uint32
  176. }
  177. type RawSockaddrUnix struct {
  178. Family uint16
  179. Path [108]int8
  180. }
  181. type RawSockaddrLinklayer struct {
  182. Family uint16
  183. Protocol uint16
  184. Ifindex int32
  185. Hatype uint16
  186. Pkttype uint8
  187. Halen uint8
  188. Addr [8]uint8
  189. }
  190. type RawSockaddrNetlink struct {
  191. Family uint16
  192. Pad uint16
  193. Pid uint32
  194. Groups uint32
  195. }
  196. type RawSockaddrHCI struct {
  197. Family uint16
  198. Dev uint16
  199. Channel uint16
  200. }
  201. type RawSockaddrCAN struct {
  202. Family uint16
  203. Pad_cgo_0 [2]byte
  204. Ifindex int32
  205. Addr [8]byte
  206. }
  207. type RawSockaddrALG struct {
  208. Family uint16
  209. Type [14]uint8
  210. Feat uint32
  211. Mask uint32
  212. Name [64]uint8
  213. }
  214. type RawSockaddrVM struct {
  215. Family uint16
  216. Reserved1 uint16
  217. Port uint32
  218. Cid uint32
  219. Zero [4]uint8
  220. }
  221. type RawSockaddr struct {
  222. Family uint16
  223. Data [14]int8
  224. }
  225. type RawSockaddrAny struct {
  226. Addr RawSockaddr
  227. Pad [96]int8
  228. }
  229. type _Socklen uint32
  230. type Linger struct {
  231. Onoff int32
  232. Linger int32
  233. }
  234. type Iovec struct {
  235. Base *byte
  236. Len uint32
  237. }
  238. type IPMreq struct {
  239. Multiaddr [4]byte /* in_addr */
  240. Interface [4]byte /* in_addr */
  241. }
  242. type IPMreqn struct {
  243. Multiaddr [4]byte /* in_addr */
  244. Address [4]byte /* in_addr */
  245. Ifindex int32
  246. }
  247. type IPv6Mreq struct {
  248. Multiaddr [16]byte /* in6_addr */
  249. Interface uint32
  250. }
  251. type Msghdr struct {
  252. Name *byte
  253. Namelen uint32
  254. Iov *Iovec
  255. Iovlen uint32
  256. Control *byte
  257. Controllen uint32
  258. Flags int32
  259. }
  260. type Cmsghdr struct {
  261. Len uint32
  262. Level int32
  263. Type int32
  264. }
  265. type Inet4Pktinfo struct {
  266. Ifindex int32
  267. Spec_dst [4]byte /* in_addr */
  268. Addr [4]byte /* in_addr */
  269. }
  270. type Inet6Pktinfo struct {
  271. Addr [16]byte /* in6_addr */
  272. Ifindex uint32
  273. }
  274. type IPv6MTUInfo struct {
  275. Addr RawSockaddrInet6
  276. Mtu uint32
  277. }
  278. type ICMPv6Filter struct {
  279. Data [8]uint32
  280. }
  281. type Ucred struct {
  282. Pid int32
  283. Uid uint32
  284. Gid uint32
  285. }
  286. type TCPInfo struct {
  287. State uint8
  288. Ca_state uint8
  289. Retransmits uint8
  290. Probes uint8
  291. Backoff uint8
  292. Options uint8
  293. Pad_cgo_0 [2]byte
  294. Rto uint32
  295. Ato uint32
  296. Snd_mss uint32
  297. Rcv_mss uint32
  298. Unacked uint32
  299. Sacked uint32
  300. Lost uint32
  301. Retrans uint32
  302. Fackets uint32
  303. Last_data_sent uint32
  304. Last_ack_sent uint32
  305. Last_data_recv uint32
  306. Last_ack_recv uint32
  307. Pmtu uint32
  308. Rcv_ssthresh uint32
  309. Rtt uint32
  310. Rttvar uint32
  311. Snd_ssthresh uint32
  312. Snd_cwnd uint32
  313. Advmss uint32
  314. Reordering uint32
  315. Rcv_rtt uint32
  316. Rcv_space uint32
  317. Total_retrans uint32
  318. }
  319. const (
  320. SizeofSockaddrInet4 = 0x10
  321. SizeofSockaddrInet6 = 0x1c
  322. SizeofSockaddrAny = 0x70
  323. SizeofSockaddrUnix = 0x6e
  324. SizeofSockaddrLinklayer = 0x14
  325. SizeofSockaddrNetlink = 0xc
  326. SizeofSockaddrHCI = 0x6
  327. SizeofSockaddrCAN = 0x10
  328. SizeofSockaddrALG = 0x58
  329. SizeofSockaddrVM = 0x10
  330. SizeofLinger = 0x8
  331. SizeofIPMreq = 0x8
  332. SizeofIPMreqn = 0xc
  333. SizeofIPv6Mreq = 0x14
  334. SizeofMsghdr = 0x1c
  335. SizeofCmsghdr = 0xc
  336. SizeofInet4Pktinfo = 0xc
  337. SizeofInet6Pktinfo = 0x14
  338. SizeofIPv6MTUInfo = 0x20
  339. SizeofICMPv6Filter = 0x20
  340. SizeofUcred = 0xc
  341. SizeofTCPInfo = 0x68
  342. )
  343. const (
  344. IFA_UNSPEC = 0x0
  345. IFA_ADDRESS = 0x1
  346. IFA_LOCAL = 0x2
  347. IFA_LABEL = 0x3
  348. IFA_BROADCAST = 0x4
  349. IFA_ANYCAST = 0x5
  350. IFA_CACHEINFO = 0x6
  351. IFA_MULTICAST = 0x7
  352. IFLA_UNSPEC = 0x0
  353. IFLA_ADDRESS = 0x1
  354. IFLA_BROADCAST = 0x2
  355. IFLA_IFNAME = 0x3
  356. IFLA_MTU = 0x4
  357. IFLA_LINK = 0x5
  358. IFLA_QDISC = 0x6
  359. IFLA_STATS = 0x7
  360. IFLA_COST = 0x8
  361. IFLA_PRIORITY = 0x9
  362. IFLA_MASTER = 0xa
  363. IFLA_WIRELESS = 0xb
  364. IFLA_PROTINFO = 0xc
  365. IFLA_TXQLEN = 0xd
  366. IFLA_MAP = 0xe
  367. IFLA_WEIGHT = 0xf
  368. IFLA_OPERSTATE = 0x10
  369. IFLA_LINKMODE = 0x11
  370. IFLA_LINKINFO = 0x12
  371. IFLA_NET_NS_PID = 0x13
  372. IFLA_IFALIAS = 0x14
  373. IFLA_MAX = 0x2b
  374. RT_SCOPE_UNIVERSE = 0x0
  375. RT_SCOPE_SITE = 0xc8
  376. RT_SCOPE_LINK = 0xfd
  377. RT_SCOPE_HOST = 0xfe
  378. RT_SCOPE_NOWHERE = 0xff
  379. RT_TABLE_UNSPEC = 0x0
  380. RT_TABLE_COMPAT = 0xfc
  381. RT_TABLE_DEFAULT = 0xfd
  382. RT_TABLE_MAIN = 0xfe
  383. RT_TABLE_LOCAL = 0xff
  384. RT_TABLE_MAX = 0xffffffff
  385. RTA_UNSPEC = 0x0
  386. RTA_DST = 0x1
  387. RTA_SRC = 0x2
  388. RTA_IIF = 0x3
  389. RTA_OIF = 0x4
  390. RTA_GATEWAY = 0x5
  391. RTA_PRIORITY = 0x6
  392. RTA_PREFSRC = 0x7
  393. RTA_METRICS = 0x8
  394. RTA_MULTIPATH = 0x9
  395. RTA_FLOW = 0xb
  396. RTA_CACHEINFO = 0xc
  397. RTA_TABLE = 0xf
  398. RTN_UNSPEC = 0x0
  399. RTN_UNICAST = 0x1
  400. RTN_LOCAL = 0x2
  401. RTN_BROADCAST = 0x3
  402. RTN_ANYCAST = 0x4
  403. RTN_MULTICAST = 0x5
  404. RTN_BLACKHOLE = 0x6
  405. RTN_UNREACHABLE = 0x7
  406. RTN_PROHIBIT = 0x8
  407. RTN_THROW = 0x9
  408. RTN_NAT = 0xa
  409. RTN_XRESOLVE = 0xb
  410. RTNLGRP_NONE = 0x0
  411. RTNLGRP_LINK = 0x1
  412. RTNLGRP_NOTIFY = 0x2
  413. RTNLGRP_NEIGH = 0x3
  414. RTNLGRP_TC = 0x4
  415. RTNLGRP_IPV4_IFADDR = 0x5
  416. RTNLGRP_IPV4_MROUTE = 0x6
  417. RTNLGRP_IPV4_ROUTE = 0x7
  418. RTNLGRP_IPV4_RULE = 0x8
  419. RTNLGRP_IPV6_IFADDR = 0x9
  420. RTNLGRP_IPV6_MROUTE = 0xa
  421. RTNLGRP_IPV6_ROUTE = 0xb
  422. RTNLGRP_IPV6_IFINFO = 0xc
  423. RTNLGRP_IPV6_PREFIX = 0x12
  424. RTNLGRP_IPV6_RULE = 0x13
  425. RTNLGRP_ND_USEROPT = 0x14
  426. SizeofNlMsghdr = 0x10
  427. SizeofNlMsgerr = 0x14
  428. SizeofRtGenmsg = 0x1
  429. SizeofNlAttr = 0x4
  430. SizeofRtAttr = 0x4
  431. SizeofIfInfomsg = 0x10
  432. SizeofIfAddrmsg = 0x8
  433. SizeofRtMsg = 0xc
  434. SizeofRtNexthop = 0x8
  435. )
  436. type NlMsghdr struct {
  437. Len uint32
  438. Type uint16
  439. Flags uint16
  440. Seq uint32
  441. Pid uint32
  442. }
  443. type NlMsgerr struct {
  444. Error int32
  445. Msg NlMsghdr
  446. }
  447. type RtGenmsg struct {
  448. Family uint8
  449. }
  450. type NlAttr struct {
  451. Len uint16
  452. Type uint16
  453. }
  454. type RtAttr struct {
  455. Len uint16
  456. Type uint16
  457. }
  458. type IfInfomsg struct {
  459. Family uint8
  460. X__ifi_pad uint8
  461. Type uint16
  462. Index int32
  463. Flags uint32
  464. Change uint32
  465. }
  466. type IfAddrmsg struct {
  467. Family uint8
  468. Prefixlen uint8
  469. Flags uint8
  470. Scope uint8
  471. Index uint32
  472. }
  473. type RtMsg struct {
  474. Family uint8
  475. Dst_len uint8
  476. Src_len uint8
  477. Tos uint8
  478. Table uint8
  479. Protocol uint8
  480. Scope uint8
  481. Type uint8
  482. Flags uint32
  483. }
  484. type RtNexthop struct {
  485. Len uint16
  486. Flags uint8
  487. Hops uint8
  488. Ifindex int32
  489. }
  490. const (
  491. SizeofSockFilter = 0x8
  492. SizeofSockFprog = 0x8
  493. )
  494. type SockFilter struct {
  495. Code uint16
  496. Jt uint8
  497. Jf uint8
  498. K uint32
  499. }
  500. type SockFprog struct {
  501. Len uint16
  502. Pad_cgo_0 [2]byte
  503. Filter *SockFilter
  504. }
  505. type InotifyEvent struct {
  506. Wd int32
  507. Mask uint32
  508. Cookie uint32
  509. Len uint32
  510. }
  511. const SizeofInotifyEvent = 0x10
  512. type PtraceRegs struct {
  513. Regs [32]uint64
  514. Lo uint64
  515. Hi uint64
  516. Epc uint64
  517. Badvaddr uint64
  518. Status uint64
  519. Cause uint64
  520. }
  521. type FdSet struct {
  522. Bits [32]int32
  523. }
  524. type Sysinfo_t struct {
  525. Uptime int32
  526. Loads [3]uint32
  527. Totalram uint32
  528. Freeram uint32
  529. Sharedram uint32
  530. Bufferram uint32
  531. Totalswap uint32
  532. Freeswap uint32
  533. Procs uint16
  534. Pad uint16
  535. Totalhigh uint32
  536. Freehigh uint32
  537. Unit uint32
  538. X_f [8]int8
  539. }
  540. type Utsname struct {
  541. Sysname [65]int8
  542. Nodename [65]int8
  543. Release [65]int8
  544. Version [65]int8
  545. Machine [65]int8
  546. Domainname [65]int8
  547. }
  548. type Ustat_t struct {
  549. Tfree int32
  550. Tinode uint32
  551. Fname [6]int8
  552. Fpack [6]int8
  553. }
  554. type EpollEvent struct {
  555. Events uint32
  556. PadFd int32
  557. Fd int32
  558. Pad int32
  559. }
  560. const (
  561. AT_FDCWD = -0x64
  562. AT_REMOVEDIR = 0x200
  563. AT_SYMLINK_FOLLOW = 0x400
  564. AT_SYMLINK_NOFOLLOW = 0x100
  565. )
  566. type PollFd struct {
  567. Fd int32
  568. Events int16
  569. Revents int16
  570. }
  571. const (
  572. POLLIN = 0x1
  573. POLLPRI = 0x2
  574. POLLOUT = 0x4
  575. POLLRDHUP = 0x2000
  576. POLLERR = 0x8
  577. POLLHUP = 0x10
  578. POLLNVAL = 0x20
  579. )
  580. type Sigset_t struct {
  581. X__val [32]uint32
  582. }
  583. const RNDGETENTCNT = 0x40045200
  584. const _SC_PAGESIZE = 0x1e
  585. type Termios struct {
  586. Iflag uint32
  587. Oflag uint32
  588. Cflag uint32
  589. Lflag uint32
  590. Line uint8
  591. Cc [23]uint8
  592. Ispeed uint32
  593. Ospeed uint32
  594. }