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

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