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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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 ppc64,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__pad2 int32
  95. Rdev uint64
  96. Size int64
  97. Blksize int64
  98. Blocks int64
  99. Atim Timespec
  100. Mtim Timespec
  101. Ctim Timespec
  102. _ uint64
  103. _ uint64
  104. _ uint64
  105. }
  106. type Statfs_t struct {
  107. Type int64
  108. Bsize int64
  109. Blocks uint64
  110. Bfree uint64
  111. Bavail uint64
  112. Files uint64
  113. Ffree uint64
  114. Fsid Fsid
  115. Namelen int64
  116. Frsize int64
  117. Flags int64
  118. Spare [4]int64
  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 uint64
  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. Pad_cgo_0 [4]byte
  256. Iov *Iovec
  257. Iovlen uint64
  258. Control *byte
  259. Controllen uint64
  260. Flags int32
  261. Pad_cgo_1 [4]byte
  262. }
  263. type Cmsghdr struct {
  264. Len uint64
  265. Level int32
  266. Type int32
  267. }
  268. type Inet4Pktinfo struct {
  269. Ifindex int32
  270. Spec_dst [4]byte /* in_addr */
  271. Addr [4]byte /* in_addr */
  272. }
  273. type Inet6Pktinfo struct {
  274. Addr [16]byte /* in6_addr */
  275. Ifindex uint32
  276. }
  277. type IPv6MTUInfo struct {
  278. Addr RawSockaddrInet6
  279. Mtu uint32
  280. }
  281. type ICMPv6Filter struct {
  282. Data [8]uint32
  283. }
  284. type Ucred struct {
  285. Pid int32
  286. Uid uint32
  287. Gid uint32
  288. }
  289. type TCPInfo struct {
  290. State uint8
  291. Ca_state uint8
  292. Retransmits uint8
  293. Probes uint8
  294. Backoff uint8
  295. Options uint8
  296. Pad_cgo_0 [2]byte
  297. Rto uint32
  298. Ato uint32
  299. Snd_mss uint32
  300. Rcv_mss uint32
  301. Unacked uint32
  302. Sacked uint32
  303. Lost uint32
  304. Retrans uint32
  305. Fackets uint32
  306. Last_data_sent uint32
  307. Last_ack_sent uint32
  308. Last_data_recv uint32
  309. Last_ack_recv uint32
  310. Pmtu uint32
  311. Rcv_ssthresh uint32
  312. Rtt uint32
  313. Rttvar uint32
  314. Snd_ssthresh uint32
  315. Snd_cwnd uint32
  316. Advmss uint32
  317. Reordering uint32
  318. Rcv_rtt uint32
  319. Rcv_space uint32
  320. Total_retrans uint32
  321. }
  322. const (
  323. SizeofSockaddrInet4 = 0x10
  324. SizeofSockaddrInet6 = 0x1c
  325. SizeofSockaddrAny = 0x70
  326. SizeofSockaddrUnix = 0x6e
  327. SizeofSockaddrLinklayer = 0x14
  328. SizeofSockaddrNetlink = 0xc
  329. SizeofSockaddrHCI = 0x6
  330. SizeofSockaddrCAN = 0x10
  331. SizeofSockaddrALG = 0x58
  332. SizeofSockaddrVM = 0x10
  333. SizeofLinger = 0x8
  334. SizeofIPMreq = 0x8
  335. SizeofIPMreqn = 0xc
  336. SizeofIPv6Mreq = 0x14
  337. SizeofMsghdr = 0x38
  338. SizeofCmsghdr = 0x10
  339. SizeofInet4Pktinfo = 0xc
  340. SizeofInet6Pktinfo = 0x14
  341. SizeofIPv6MTUInfo = 0x20
  342. SizeofICMPv6Filter = 0x20
  343. SizeofUcred = 0xc
  344. SizeofTCPInfo = 0x68
  345. )
  346. const (
  347. IFA_UNSPEC = 0x0
  348. IFA_ADDRESS = 0x1
  349. IFA_LOCAL = 0x2
  350. IFA_LABEL = 0x3
  351. IFA_BROADCAST = 0x4
  352. IFA_ANYCAST = 0x5
  353. IFA_CACHEINFO = 0x6
  354. IFA_MULTICAST = 0x7
  355. IFLA_UNSPEC = 0x0
  356. IFLA_ADDRESS = 0x1
  357. IFLA_BROADCAST = 0x2
  358. IFLA_IFNAME = 0x3
  359. IFLA_MTU = 0x4
  360. IFLA_LINK = 0x5
  361. IFLA_QDISC = 0x6
  362. IFLA_STATS = 0x7
  363. IFLA_COST = 0x8
  364. IFLA_PRIORITY = 0x9
  365. IFLA_MASTER = 0xa
  366. IFLA_WIRELESS = 0xb
  367. IFLA_PROTINFO = 0xc
  368. IFLA_TXQLEN = 0xd
  369. IFLA_MAP = 0xe
  370. IFLA_WEIGHT = 0xf
  371. IFLA_OPERSTATE = 0x10
  372. IFLA_LINKMODE = 0x11
  373. IFLA_LINKINFO = 0x12
  374. IFLA_NET_NS_PID = 0x13
  375. IFLA_IFALIAS = 0x14
  376. IFLA_MAX = 0x2b
  377. RT_SCOPE_UNIVERSE = 0x0
  378. RT_SCOPE_SITE = 0xc8
  379. RT_SCOPE_LINK = 0xfd
  380. RT_SCOPE_HOST = 0xfe
  381. RT_SCOPE_NOWHERE = 0xff
  382. RT_TABLE_UNSPEC = 0x0
  383. RT_TABLE_COMPAT = 0xfc
  384. RT_TABLE_DEFAULT = 0xfd
  385. RT_TABLE_MAIN = 0xfe
  386. RT_TABLE_LOCAL = 0xff
  387. RT_TABLE_MAX = 0xffffffff
  388. RTA_UNSPEC = 0x0
  389. RTA_DST = 0x1
  390. RTA_SRC = 0x2
  391. RTA_IIF = 0x3
  392. RTA_OIF = 0x4
  393. RTA_GATEWAY = 0x5
  394. RTA_PRIORITY = 0x6
  395. RTA_PREFSRC = 0x7
  396. RTA_METRICS = 0x8
  397. RTA_MULTIPATH = 0x9
  398. RTA_FLOW = 0xb
  399. RTA_CACHEINFO = 0xc
  400. RTA_TABLE = 0xf
  401. RTN_UNSPEC = 0x0
  402. RTN_UNICAST = 0x1
  403. RTN_LOCAL = 0x2
  404. RTN_BROADCAST = 0x3
  405. RTN_ANYCAST = 0x4
  406. RTN_MULTICAST = 0x5
  407. RTN_BLACKHOLE = 0x6
  408. RTN_UNREACHABLE = 0x7
  409. RTN_PROHIBIT = 0x8
  410. RTN_THROW = 0x9
  411. RTN_NAT = 0xa
  412. RTN_XRESOLVE = 0xb
  413. RTNLGRP_NONE = 0x0
  414. RTNLGRP_LINK = 0x1
  415. RTNLGRP_NOTIFY = 0x2
  416. RTNLGRP_NEIGH = 0x3
  417. RTNLGRP_TC = 0x4
  418. RTNLGRP_IPV4_IFADDR = 0x5
  419. RTNLGRP_IPV4_MROUTE = 0x6
  420. RTNLGRP_IPV4_ROUTE = 0x7
  421. RTNLGRP_IPV4_RULE = 0x8
  422. RTNLGRP_IPV6_IFADDR = 0x9
  423. RTNLGRP_IPV6_MROUTE = 0xa
  424. RTNLGRP_IPV6_ROUTE = 0xb
  425. RTNLGRP_IPV6_IFINFO = 0xc
  426. RTNLGRP_IPV6_PREFIX = 0x12
  427. RTNLGRP_IPV6_RULE = 0x13
  428. RTNLGRP_ND_USEROPT = 0x14
  429. SizeofNlMsghdr = 0x10
  430. SizeofNlMsgerr = 0x14
  431. SizeofRtGenmsg = 0x1
  432. SizeofNlAttr = 0x4
  433. SizeofRtAttr = 0x4
  434. SizeofIfInfomsg = 0x10
  435. SizeofIfAddrmsg = 0x8
  436. SizeofRtMsg = 0xc
  437. SizeofRtNexthop = 0x8
  438. )
  439. type NlMsghdr struct {
  440. Len uint32
  441. Type uint16
  442. Flags uint16
  443. Seq uint32
  444. Pid uint32
  445. }
  446. type NlMsgerr struct {
  447. Error int32
  448. Msg NlMsghdr
  449. }
  450. type RtGenmsg struct {
  451. Family uint8
  452. }
  453. type NlAttr struct {
  454. Len uint16
  455. Type uint16
  456. }
  457. type RtAttr struct {
  458. Len uint16
  459. Type uint16
  460. }
  461. type IfInfomsg struct {
  462. Family uint8
  463. X__ifi_pad uint8
  464. Type uint16
  465. Index int32
  466. Flags uint32
  467. Change uint32
  468. }
  469. type IfAddrmsg struct {
  470. Family uint8
  471. Prefixlen uint8
  472. Flags uint8
  473. Scope uint8
  474. Index uint32
  475. }
  476. type RtMsg struct {
  477. Family uint8
  478. Dst_len uint8
  479. Src_len uint8
  480. Tos uint8
  481. Table uint8
  482. Protocol uint8
  483. Scope uint8
  484. Type uint8
  485. Flags uint32
  486. }
  487. type RtNexthop struct {
  488. Len uint16
  489. Flags uint8
  490. Hops uint8
  491. Ifindex int32
  492. }
  493. const (
  494. SizeofSockFilter = 0x8
  495. SizeofSockFprog = 0x10
  496. )
  497. type SockFilter struct {
  498. Code uint16
  499. Jt uint8
  500. Jf uint8
  501. K uint32
  502. }
  503. type SockFprog struct {
  504. Len uint16
  505. Pad_cgo_0 [6]byte
  506. Filter *SockFilter
  507. }
  508. type InotifyEvent struct {
  509. Wd int32
  510. Mask uint32
  511. Cookie uint32
  512. Len uint32
  513. }
  514. const SizeofInotifyEvent = 0x10
  515. type PtraceRegs struct {
  516. Gpr [32]uint64
  517. Nip uint64
  518. Msr uint64
  519. Orig_gpr3 uint64
  520. Ctr uint64
  521. Link uint64
  522. Xer uint64
  523. Ccr uint64
  524. Softe uint64
  525. Trap uint64
  526. Dar uint64
  527. Dsisr uint64
  528. Result uint64
  529. }
  530. type FdSet struct {
  531. Bits [16]int64
  532. }
  533. type Sysinfo_t struct {
  534. Uptime int64
  535. Loads [3]uint64
  536. Totalram uint64
  537. Freeram uint64
  538. Sharedram uint64
  539. Bufferram uint64
  540. Totalswap uint64
  541. Freeswap uint64
  542. Procs uint16
  543. Pad uint16
  544. Pad_cgo_0 [4]byte
  545. Totalhigh uint64
  546. Freehigh uint64
  547. Unit uint32
  548. X_f [0]uint8
  549. Pad_cgo_1 [4]byte
  550. }
  551. type Utsname struct {
  552. Sysname [65]uint8
  553. Nodename [65]uint8
  554. Release [65]uint8
  555. Version [65]uint8
  556. Machine [65]uint8
  557. Domainname [65]uint8
  558. }
  559. type Ustat_t struct {
  560. Tfree int32
  561. Pad_cgo_0 [4]byte
  562. Tinode uint64
  563. Fname [6]uint8
  564. Fpack [6]uint8
  565. Pad_cgo_1 [4]byte
  566. }
  567. type EpollEvent struct {
  568. Events uint32
  569. X_padFd int32
  570. Fd int32
  571. Pad int32
  572. }
  573. const (
  574. AT_FDCWD = -0x64
  575. AT_REMOVEDIR = 0x200
  576. AT_SYMLINK_FOLLOW = 0x400
  577. AT_SYMLINK_NOFOLLOW = 0x100
  578. )
  579. type PollFd struct {
  580. Fd int32
  581. Events int16
  582. Revents int16
  583. }
  584. const (
  585. POLLIN = 0x1
  586. POLLPRI = 0x2
  587. POLLOUT = 0x4
  588. POLLRDHUP = 0x2000
  589. POLLERR = 0x8
  590. POLLHUP = 0x10
  591. POLLNVAL = 0x20
  592. )
  593. type Sigset_t struct {
  594. X__val [16]uint64
  595. }
  596. const RNDGETENTCNT = 0x40045200
  597. const _SC_PAGESIZE = 0x1e
  598. type Termios struct {
  599. Iflag uint32
  600. Oflag uint32
  601. Cflag uint32
  602. Lflag uint32
  603. Cc [19]uint8
  604. Line uint8
  605. Ispeed uint32
  606. Ospeed uint32
  607. }