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_darwin_386.go 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. // +build 386,darwin
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_darwin.go
  4. package unix
  5. const (
  6. sizeofPtr = 0x4
  7. sizeofShort = 0x2
  8. sizeofInt = 0x4
  9. sizeofLong = 0x4
  10. sizeofLongLong = 0x8
  11. )
  12. type (
  13. _C_short int16
  14. _C_int int32
  15. _C_long int32
  16. _C_long_long int64
  17. )
  18. type Timespec struct {
  19. Sec int32
  20. Nsec int32
  21. }
  22. type Timeval struct {
  23. Sec int32
  24. Usec int32
  25. }
  26. type Timeval32 struct{}
  27. type Rusage struct {
  28. Utime Timeval
  29. Stime Timeval
  30. Maxrss int32
  31. Ixrss int32
  32. Idrss int32
  33. Isrss int32
  34. Minflt int32
  35. Majflt int32
  36. Nswap int32
  37. Inblock int32
  38. Oublock int32
  39. Msgsnd int32
  40. Msgrcv int32
  41. Nsignals int32
  42. Nvcsw int32
  43. Nivcsw int32
  44. }
  45. type Rlimit struct {
  46. Cur uint64
  47. Max uint64
  48. }
  49. type _Gid_t uint32
  50. type Stat_t struct {
  51. Dev int32
  52. Mode uint16
  53. Nlink uint16
  54. Ino uint64
  55. Uid uint32
  56. Gid uint32
  57. Rdev int32
  58. Atimespec Timespec
  59. Mtimespec Timespec
  60. Ctimespec Timespec
  61. Birthtimespec Timespec
  62. Size int64
  63. Blocks int64
  64. Blksize int32
  65. Flags uint32
  66. Gen uint32
  67. Lspare int32
  68. Qspare [2]int64
  69. }
  70. type Statfs_t struct {
  71. Bsize uint32
  72. Iosize int32
  73. Blocks uint64
  74. Bfree uint64
  75. Bavail uint64
  76. Files uint64
  77. Ffree uint64
  78. Fsid Fsid
  79. Owner uint32
  80. Type uint32
  81. Flags uint32
  82. Fssubtype uint32
  83. Fstypename [16]int8
  84. Mntonname [1024]int8
  85. Mntfromname [1024]int8
  86. Reserved [8]uint32
  87. }
  88. type Flock_t struct {
  89. Start int64
  90. Len int64
  91. Pid int32
  92. Type int16
  93. Whence int16
  94. }
  95. type Fstore_t struct {
  96. Flags uint32
  97. Posmode int32
  98. Offset int64
  99. Length int64
  100. Bytesalloc int64
  101. }
  102. type Radvisory_t struct {
  103. Offset int64
  104. Count int32
  105. }
  106. type Fbootstraptransfer_t struct {
  107. Offset int64
  108. Length uint32
  109. Buffer *byte
  110. }
  111. type Log2phys_t struct {
  112. Flags uint32
  113. Contigbytes int64
  114. Devoffset int64
  115. }
  116. type Fsid struct {
  117. Val [2]int32
  118. }
  119. type Dirent struct {
  120. Ino uint64
  121. Seekoff uint64
  122. Reclen uint16
  123. Namlen uint16
  124. Type uint8
  125. Name [1024]int8
  126. Pad_cgo_0 [3]byte
  127. }
  128. type RawSockaddrInet4 struct {
  129. Len uint8
  130. Family uint8
  131. Port uint16
  132. Addr [4]byte /* in_addr */
  133. Zero [8]int8
  134. }
  135. type RawSockaddrInet6 struct {
  136. Len uint8
  137. Family uint8
  138. Port uint16
  139. Flowinfo uint32
  140. Addr [16]byte /* in6_addr */
  141. Scope_id uint32
  142. }
  143. type RawSockaddrUnix struct {
  144. Len uint8
  145. Family uint8
  146. Path [104]int8
  147. }
  148. type RawSockaddrDatalink struct {
  149. Len uint8
  150. Family uint8
  151. Index uint16
  152. Type uint8
  153. Nlen uint8
  154. Alen uint8
  155. Slen uint8
  156. Data [12]int8
  157. }
  158. type RawSockaddr struct {
  159. Len uint8
  160. Family uint8
  161. Data [14]int8
  162. }
  163. type RawSockaddrAny struct {
  164. Addr RawSockaddr
  165. Pad [92]int8
  166. }
  167. type _Socklen uint32
  168. type Linger struct {
  169. Onoff int32
  170. Linger int32
  171. }
  172. type Iovec struct {
  173. Base *byte
  174. Len uint32
  175. }
  176. type IPMreq struct {
  177. Multiaddr [4]byte /* in_addr */
  178. Interface [4]byte /* in_addr */
  179. }
  180. type IPv6Mreq struct {
  181. Multiaddr [16]byte /* in6_addr */
  182. Interface uint32
  183. }
  184. type Msghdr struct {
  185. Name *byte
  186. Namelen uint32
  187. Iov *Iovec
  188. Iovlen int32
  189. Control *byte
  190. Controllen uint32
  191. Flags int32
  192. }
  193. type Cmsghdr struct {
  194. Len uint32
  195. Level int32
  196. Type int32
  197. }
  198. type Inet4Pktinfo struct {
  199. Ifindex uint32
  200. Spec_dst [4]byte /* in_addr */
  201. Addr [4]byte /* in_addr */
  202. }
  203. type Inet6Pktinfo struct {
  204. Addr [16]byte /* in6_addr */
  205. Ifindex uint32
  206. }
  207. type IPv6MTUInfo struct {
  208. Addr RawSockaddrInet6
  209. Mtu uint32
  210. }
  211. type ICMPv6Filter struct {
  212. Filt [8]uint32
  213. }
  214. const (
  215. SizeofSockaddrInet4 = 0x10
  216. SizeofSockaddrInet6 = 0x1c
  217. SizeofSockaddrAny = 0x6c
  218. SizeofSockaddrUnix = 0x6a
  219. SizeofSockaddrDatalink = 0x14
  220. SizeofLinger = 0x8
  221. SizeofIPMreq = 0x8
  222. SizeofIPv6Mreq = 0x14
  223. SizeofMsghdr = 0x1c
  224. SizeofCmsghdr = 0xc
  225. SizeofInet4Pktinfo = 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 uint32
  237. Filter int16
  238. Flags uint16
  239. Fflags uint32
  240. Data int32
  241. Udata *byte
  242. }
  243. type FdSet struct {
  244. Bits [32]int32
  245. }
  246. const (
  247. SizeofIfMsghdr = 0x70
  248. SizeofIfData = 0x60
  249. SizeofIfaMsghdr = 0x14
  250. SizeofIfmaMsghdr = 0x10
  251. SizeofIfmaMsghdr2 = 0x14
  252. SizeofRtMsghdr = 0x5c
  253. SizeofRtMetrics = 0x38
  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. Typelen uint8
  268. Physical uint8
  269. Addrlen uint8
  270. Hdrlen uint8
  271. Recvquota uint8
  272. Xmitquota uint8
  273. Unused1 uint8
  274. Mtu uint32
  275. Metric uint32
  276. Baudrate uint32
  277. Ipackets uint32
  278. Ierrors uint32
  279. Opackets uint32
  280. Oerrors uint32
  281. Collisions uint32
  282. Ibytes uint32
  283. Obytes uint32
  284. Imcasts uint32
  285. Omcasts uint32
  286. Iqdrops uint32
  287. Noproto uint32
  288. Recvtiming uint32
  289. Xmittiming uint32
  290. Lastchange Timeval
  291. Unused2 uint32
  292. Hwassist uint32
  293. Reserved1 uint32
  294. Reserved2 uint32
  295. }
  296. type IfaMsghdr struct {
  297. Msglen uint16
  298. Version uint8
  299. Type uint8
  300. Addrs int32
  301. Flags int32
  302. Index uint16
  303. Pad_cgo_0 [2]byte
  304. Metric int32
  305. }
  306. type IfmaMsghdr struct {
  307. Msglen uint16
  308. Version uint8
  309. Type uint8
  310. Addrs int32
  311. Flags int32
  312. Index uint16
  313. Pad_cgo_0 [2]byte
  314. }
  315. type IfmaMsghdr2 struct {
  316. Msglen uint16
  317. Version uint8
  318. Type uint8
  319. Addrs int32
  320. Flags int32
  321. Index uint16
  322. Pad_cgo_0 [2]byte
  323. Refcount int32
  324. }
  325. type RtMsghdr struct {
  326. Msglen uint16
  327. Version uint8
  328. Type uint8
  329. Index uint16
  330. Pad_cgo_0 [2]byte
  331. Flags int32
  332. Addrs int32
  333. Pid int32
  334. Seq int32
  335. Errno int32
  336. Use int32
  337. Inits uint32
  338. Rmx RtMetrics
  339. }
  340. type RtMetrics struct {
  341. Locks uint32
  342. Mtu uint32
  343. Hopcount uint32
  344. Expire int32
  345. Recvpipe uint32
  346. Sendpipe uint32
  347. Ssthresh uint32
  348. Rtt uint32
  349. Rttvar uint32
  350. Pksent uint32
  351. Filler [4]uint32
  352. }
  353. const (
  354. SizeofBpfVersion = 0x4
  355. SizeofBpfStat = 0x8
  356. SizeofBpfProgram = 0x8
  357. SizeofBpfInsn = 0x8
  358. SizeofBpfHdr = 0x14
  359. )
  360. type BpfVersion struct {
  361. Major uint16
  362. Minor uint16
  363. }
  364. type BpfStat struct {
  365. Recv uint32
  366. Drop uint32
  367. }
  368. type BpfProgram struct {
  369. Len uint32
  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 [2]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. }