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_s390x.go 12KB

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