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_dragonfly_amd64.go 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. // cgo -godefs types_dragonfly.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build amd64,dragonfly
  4. package unix
  5. const (
  6. sizeofPtr = 0x8
  7. sizeofShort = 0x2
  8. sizeofInt = 0x4
  9. sizeofLong = 0x8
  10. sizeofLongLong = 0x8
  11. )
  12. type (
  13. _C_short int16
  14. _C_int int32
  15. _C_long int64
  16. _C_long_long int64
  17. )
  18. type Timespec struct {
  19. Sec int64
  20. Nsec int64
  21. }
  22. type Timeval struct {
  23. Sec int64
  24. Usec int64
  25. }
  26. type Rusage struct {
  27. Utime Timeval
  28. Stime Timeval
  29. Maxrss int64
  30. Ixrss int64
  31. Idrss int64
  32. Isrss int64
  33. Minflt int64
  34. Majflt int64
  35. Nswap int64
  36. Inblock int64
  37. Oublock int64
  38. Msgsnd int64
  39. Msgrcv int64
  40. Nsignals int64
  41. Nvcsw int64
  42. Nivcsw int64
  43. }
  44. type Rlimit struct {
  45. Cur int64
  46. Max int64
  47. }
  48. type _Gid_t uint32
  49. const (
  50. S_IFMT = 0xf000
  51. S_IFIFO = 0x1000
  52. S_IFCHR = 0x2000
  53. S_IFDIR = 0x4000
  54. S_IFBLK = 0x6000
  55. S_IFREG = 0x8000
  56. S_IFLNK = 0xa000
  57. S_IFSOCK = 0xc000
  58. S_ISUID = 0x800
  59. S_ISGID = 0x400
  60. S_ISVTX = 0x200
  61. S_IRUSR = 0x100
  62. S_IWUSR = 0x80
  63. S_IXUSR = 0x40
  64. )
  65. type Stat_t struct {
  66. Ino uint64
  67. Nlink uint32
  68. Dev uint32
  69. Mode uint16
  70. Padding1 uint16
  71. Uid uint32
  72. Gid uint32
  73. Rdev uint32
  74. Atim Timespec
  75. Mtim Timespec
  76. Ctim Timespec
  77. Size int64
  78. Blocks int64
  79. Blksize uint32
  80. Flags uint32
  81. Gen uint32
  82. Lspare int32
  83. Qspare1 int64
  84. Qspare2 int64
  85. }
  86. type Statfs_t struct {
  87. Spare2 int64
  88. Bsize int64
  89. Iosize int64
  90. Blocks int64
  91. Bfree int64
  92. Bavail int64
  93. Files int64
  94. Ffree int64
  95. Fsid Fsid
  96. Owner uint32
  97. Type int32
  98. Flags int32
  99. Pad_cgo_0 [4]byte
  100. Syncwrites int64
  101. Asyncwrites int64
  102. Fstypename [16]int8
  103. Mntonname [80]int8
  104. Syncreads int64
  105. Asyncreads int64
  106. Spares1 int16
  107. Mntfromname [80]int8
  108. Spares2 int16
  109. Pad_cgo_1 [4]byte
  110. Spare [2]int64
  111. }
  112. type Flock_t struct {
  113. Start int64
  114. Len int64
  115. Pid int32
  116. Type int16
  117. Whence int16
  118. }
  119. type Dirent struct {
  120. Fileno uint64
  121. Namlen uint16
  122. Type uint8
  123. Unused1 uint8
  124. Unused2 uint32
  125. Name [256]int8
  126. }
  127. type Fsid struct {
  128. Val [2]int32
  129. }
  130. type RawSockaddrInet4 struct {
  131. Len uint8
  132. Family uint8
  133. Port uint16
  134. Addr [4]byte /* in_addr */
  135. Zero [8]int8
  136. }
  137. type RawSockaddrInet6 struct {
  138. Len uint8
  139. Family uint8
  140. Port uint16
  141. Flowinfo uint32
  142. Addr [16]byte /* in6_addr */
  143. Scope_id uint32
  144. }
  145. type RawSockaddrUnix struct {
  146. Len uint8
  147. Family uint8
  148. Path [104]int8
  149. }
  150. type RawSockaddrDatalink struct {
  151. Len uint8
  152. Family uint8
  153. Index uint16
  154. Type uint8
  155. Nlen uint8
  156. Alen uint8
  157. Slen uint8
  158. Data [12]int8
  159. Rcf uint16
  160. Route [16]uint16
  161. }
  162. type RawSockaddr struct {
  163. Len uint8
  164. Family uint8
  165. Data [14]int8
  166. }
  167. type RawSockaddrAny struct {
  168. Addr RawSockaddr
  169. Pad [92]int8
  170. }
  171. type _Socklen uint32
  172. type Linger struct {
  173. Onoff int32
  174. Linger int32
  175. }
  176. type Iovec struct {
  177. Base *byte
  178. Len uint64
  179. }
  180. type IPMreq struct {
  181. Multiaddr [4]byte /* in_addr */
  182. Interface [4]byte /* in_addr */
  183. }
  184. type IPv6Mreq struct {
  185. Multiaddr [16]byte /* in6_addr */
  186. Interface uint32
  187. }
  188. type Msghdr struct {
  189. Name *byte
  190. Namelen uint32
  191. Pad_cgo_0 [4]byte
  192. Iov *Iovec
  193. Iovlen int32
  194. Pad_cgo_1 [4]byte
  195. Control *byte
  196. Controllen uint32
  197. Flags int32
  198. }
  199. type Cmsghdr struct {
  200. Len uint32
  201. Level int32
  202. Type int32
  203. }
  204. type Inet6Pktinfo struct {
  205. Addr [16]byte /* in6_addr */
  206. Ifindex uint32
  207. }
  208. type IPv6MTUInfo struct {
  209. Addr RawSockaddrInet6
  210. Mtu uint32
  211. }
  212. type ICMPv6Filter struct {
  213. Filt [8]uint32
  214. }
  215. const (
  216. SizeofSockaddrInet4 = 0x10
  217. SizeofSockaddrInet6 = 0x1c
  218. SizeofSockaddrAny = 0x6c
  219. SizeofSockaddrUnix = 0x6a
  220. SizeofSockaddrDatalink = 0x36
  221. SizeofLinger = 0x8
  222. SizeofIPMreq = 0x8
  223. SizeofIPv6Mreq = 0x14
  224. SizeofMsghdr = 0x30
  225. SizeofCmsghdr = 0xc
  226. SizeofInet6Pktinfo = 0x14
  227. SizeofIPv6MTUInfo = 0x20
  228. SizeofICMPv6Filter = 0x20
  229. )
  230. const (
  231. PTRACE_TRACEME = 0x0
  232. PTRACE_CONT = 0x7
  233. PTRACE_KILL = 0x8
  234. )
  235. type Kevent_t struct {
  236. Ident uint64
  237. Filter int16
  238. Flags uint16
  239. Fflags uint32
  240. Data int64
  241. Udata *byte
  242. }
  243. type FdSet struct {
  244. Bits [16]uint64
  245. }
  246. const (
  247. SizeofIfMsghdr = 0xb0
  248. SizeofIfData = 0xa0
  249. SizeofIfaMsghdr = 0x14
  250. SizeofIfmaMsghdr = 0x10
  251. SizeofIfAnnounceMsghdr = 0x18
  252. SizeofRtMsghdr = 0x98
  253. SizeofRtMetrics = 0x70
  254. )
  255. type IfMsghdr struct {
  256. Msglen uint16
  257. Version uint8
  258. Type uint8
  259. Addrs int32
  260. Flags int32
  261. Index uint16
  262. Pad_cgo_0 [2]byte
  263. Data IfData
  264. }
  265. type IfData struct {
  266. Type uint8
  267. Physical uint8
  268. Addrlen uint8
  269. Hdrlen uint8
  270. Recvquota uint8
  271. Xmitquota uint8
  272. Pad_cgo_0 [2]byte
  273. Mtu uint64
  274. Metric uint64
  275. Link_state uint64
  276. Baudrate uint64
  277. Ipackets uint64
  278. Ierrors uint64
  279. Opackets uint64
  280. Oerrors uint64
  281. Collisions uint64
  282. Ibytes uint64
  283. Obytes uint64
  284. Imcasts uint64
  285. Omcasts uint64
  286. Iqdrops uint64
  287. Noproto uint64
  288. Hwassist uint64
  289. Oqdrops uint64
  290. Lastchange Timeval
  291. }
  292. type IfaMsghdr struct {
  293. Msglen uint16
  294. Version uint8
  295. Type uint8
  296. Addrs int32
  297. Flags int32
  298. Index uint16
  299. Pad_cgo_0 [2]byte
  300. Metric int32
  301. }
  302. type IfmaMsghdr struct {
  303. Msglen uint16
  304. Version uint8
  305. Type uint8
  306. Addrs int32
  307. Flags int32
  308. Index uint16
  309. Pad_cgo_0 [2]byte
  310. }
  311. type IfAnnounceMsghdr struct {
  312. Msglen uint16
  313. Version uint8
  314. Type uint8
  315. Index uint16
  316. Name [16]int8
  317. What uint16
  318. }
  319. type RtMsghdr struct {
  320. Msglen uint16
  321. Version uint8
  322. Type uint8
  323. Index uint16
  324. Pad_cgo_0 [2]byte
  325. Flags int32
  326. Addrs int32
  327. Pid int32
  328. Seq int32
  329. Errno int32
  330. Use int32
  331. Inits uint64
  332. Rmx RtMetrics
  333. }
  334. type RtMetrics struct {
  335. Locks uint64
  336. Mtu uint64
  337. Pksent uint64
  338. Expire uint64
  339. Sendpipe uint64
  340. Ssthresh uint64
  341. Rtt uint64
  342. Rttvar uint64
  343. Recvpipe uint64
  344. Hopcount uint64
  345. Mssopt uint16
  346. Pad uint16
  347. Pad_cgo_0 [4]byte
  348. Msl uint64
  349. Iwmaxsegs uint64
  350. Iwcapsegs uint64
  351. }
  352. const (
  353. SizeofBpfVersion = 0x4
  354. SizeofBpfStat = 0x8
  355. SizeofBpfProgram = 0x10
  356. SizeofBpfInsn = 0x8
  357. SizeofBpfHdr = 0x20
  358. )
  359. type BpfVersion struct {
  360. Major uint16
  361. Minor uint16
  362. }
  363. type BpfStat struct {
  364. Recv uint32
  365. Drop uint32
  366. }
  367. type BpfProgram struct {
  368. Len uint32
  369. Pad_cgo_0 [4]byte
  370. Insns *BpfInsn
  371. }
  372. type BpfInsn struct {
  373. Code uint16
  374. Jt uint8
  375. Jf uint8
  376. K uint32
  377. }
  378. type BpfHdr struct {
  379. Tstamp Timeval
  380. Caplen uint32
  381. Datalen uint32
  382. Hdrlen uint16
  383. Pad_cgo_0 [6]byte
  384. }
  385. type Termios struct {
  386. Iflag uint32
  387. Oflag uint32
  388. Cflag uint32
  389. Lflag uint32
  390. Cc [20]uint8
  391. Ispeed uint32
  392. Ospeed uint32
  393. }