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_386.go 11KB

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