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

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