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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  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 arm,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 [6]byte
  96. Size int64
  97. Blksize int32
  98. Pad_cgo_2 [4]byte
  99. Blocks int64
  100. Atim Timespec
  101. Mtim Timespec
  102. Ctim Timespec
  103. Ino uint64
  104. }
  105. type Statfs_t struct {
  106. Type int32
  107. Bsize int32
  108. Blocks uint64
  109. Bfree uint64
  110. Bavail uint64
  111. Files uint64
  112. Ffree uint64
  113. Fsid Fsid
  114. Namelen int32
  115. Frsize int32
  116. Flags int32
  117. Spare [4]int32
  118. Pad_cgo_0 [4]byte
  119. }
  120. type Dirent struct {
  121. Ino uint64
  122. Off int64
  123. Reclen uint16
  124. Type uint8
  125. Name [256]uint8
  126. Pad_cgo_0 [5]byte
  127. }
  128. type Fsid struct {
  129. X__val [2]int32
  130. }
  131. type Flock_t struct {
  132. Type int16
  133. Whence int16
  134. Pad_cgo_0 [4]byte
  135. Start int64
  136. Len int64
  137. Pid int32
  138. Pad_cgo_1 [4]byte
  139. }
  140. type FscryptPolicy struct {
  141. Version uint8
  142. Contents_encryption_mode uint8
  143. Filenames_encryption_mode uint8
  144. Flags uint8
  145. Master_key_descriptor [8]uint8
  146. }
  147. type FscryptKey struct {
  148. Mode uint32
  149. Raw [64]uint8
  150. Size uint32
  151. }
  152. type KeyctlDHParams struct {
  153. Private int32
  154. Prime int32
  155. Base int32
  156. }
  157. const (
  158. FADV_NORMAL = 0x0
  159. FADV_RANDOM = 0x1
  160. FADV_SEQUENTIAL = 0x2
  161. FADV_WILLNEED = 0x3
  162. FADV_DONTNEED = 0x4
  163. FADV_NOREUSE = 0x5
  164. )
  165. type RawSockaddrInet4 struct {
  166. Family uint16
  167. Port uint16
  168. Addr [4]byte /* in_addr */
  169. Zero [8]uint8
  170. }
  171. type RawSockaddrInet6 struct {
  172. Family uint16
  173. Port uint16
  174. Flowinfo uint32
  175. Addr [16]byte /* in6_addr */
  176. Scope_id uint32
  177. }
  178. type RawSockaddrUnix struct {
  179. Family uint16
  180. Path [108]int8
  181. }
  182. type RawSockaddrLinklayer struct {
  183. Family uint16
  184. Protocol uint16
  185. Ifindex int32
  186. Hatype uint16
  187. Pkttype uint8
  188. Halen uint8
  189. Addr [8]uint8
  190. }
  191. type RawSockaddrNetlink struct {
  192. Family uint16
  193. Pad uint16
  194. Pid uint32
  195. Groups uint32
  196. }
  197. type RawSockaddrHCI struct {
  198. Family uint16
  199. Dev uint16
  200. Channel uint16
  201. }
  202. type RawSockaddrCAN struct {
  203. Family uint16
  204. Pad_cgo_0 [2]byte
  205. Ifindex int32
  206. Addr [8]byte
  207. }
  208. type RawSockaddrALG struct {
  209. Family uint16
  210. Type [14]uint8
  211. Feat uint32
  212. Mask uint32
  213. Name [64]uint8
  214. }
  215. type RawSockaddrVM struct {
  216. Family uint16
  217. Reserved1 uint16
  218. Port uint32
  219. Cid uint32
  220. Zero [4]uint8
  221. }
  222. type RawSockaddr struct {
  223. Family uint16
  224. Data [14]uint8
  225. }
  226. type RawSockaddrAny struct {
  227. Addr RawSockaddr
  228. Pad [96]uint8
  229. }
  230. type _Socklen uint32
  231. type Linger struct {
  232. Onoff int32
  233. Linger int32
  234. }
  235. type Iovec struct {
  236. Base *byte
  237. Len uint32
  238. }
  239. type IPMreq struct {
  240. Multiaddr [4]byte /* in_addr */
  241. Interface [4]byte /* in_addr */
  242. }
  243. type IPMreqn struct {
  244. Multiaddr [4]byte /* in_addr */
  245. Address [4]byte /* in_addr */
  246. Ifindex int32
  247. }
  248. type IPv6Mreq struct {
  249. Multiaddr [16]byte /* in6_addr */
  250. Interface uint32
  251. }
  252. type Msghdr struct {
  253. Name *byte
  254. Namelen uint32
  255. Iov *Iovec
  256. Iovlen uint32
  257. Control *byte
  258. Controllen uint32
  259. Flags int32
  260. }
  261. type Cmsghdr struct {
  262. Len uint32
  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 = 0x1c
  336. SizeofCmsghdr = 0xc
  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 = 0x8
  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 [2]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. Uregs [18]uint32
  515. }
  516. type FdSet struct {
  517. Bits [32]int32
  518. }
  519. type Sysinfo_t struct {
  520. Uptime int32
  521. Loads [3]uint32
  522. Totalram uint32
  523. Freeram uint32
  524. Sharedram uint32
  525. Bufferram uint32
  526. Totalswap uint32
  527. Freeswap uint32
  528. Procs uint16
  529. Pad uint16
  530. Totalhigh uint32
  531. Freehigh uint32
  532. Unit uint32
  533. X_f [8]uint8
  534. }
  535. type Utsname struct {
  536. Sysname [65]uint8
  537. Nodename [65]uint8
  538. Release [65]uint8
  539. Version [65]uint8
  540. Machine [65]uint8
  541. Domainname [65]uint8
  542. }
  543. type Ustat_t struct {
  544. Tfree int32
  545. Tinode uint32
  546. Fname [6]uint8
  547. Fpack [6]uint8
  548. }
  549. type EpollEvent struct {
  550. Events uint32
  551. PadFd int32
  552. Fd int32
  553. Pad int32
  554. }
  555. const (
  556. AT_FDCWD = -0x64
  557. AT_REMOVEDIR = 0x200
  558. AT_SYMLINK_FOLLOW = 0x400
  559. AT_SYMLINK_NOFOLLOW = 0x100
  560. )
  561. type PollFd struct {
  562. Fd int32
  563. Events int16
  564. Revents int16
  565. }
  566. const (
  567. POLLIN = 0x1
  568. POLLPRI = 0x2
  569. POLLOUT = 0x4
  570. POLLRDHUP = 0x2000
  571. POLLERR = 0x8
  572. POLLHUP = 0x10
  573. POLLNVAL = 0x20
  574. )
  575. type Sigset_t struct {
  576. X__val [32]uint32
  577. }
  578. const RNDGETENTCNT = 0x80045200
  579. const _SC_PAGESIZE = 0x1e
  580. type Termios struct {
  581. Iflag uint32
  582. Oflag uint32
  583. Cflag uint32
  584. Lflag uint32
  585. Line uint8
  586. Cc [19]uint8
  587. Ispeed uint32
  588. Ospeed uint32
  589. }