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_netbsd_amd64.go 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs types_netbsd.go
  3. // +build amd64,netbsd
  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 int32
  25. Pad_cgo_0 [4]byte
  26. }
  27. type Rusage struct {
  28. Utime Timeval
  29. Stime Timeval
  30. Maxrss int64
  31. Ixrss int64
  32. Idrss int64
  33. Isrss int64
  34. Minflt int64
  35. Majflt int64
  36. Nswap int64
  37. Inblock int64
  38. Oublock int64
  39. Msgsnd int64
  40. Msgrcv int64
  41. Nsignals int64
  42. Nvcsw int64
  43. Nivcsw int64
  44. }
  45. type Rlimit struct {
  46. Cur uint64
  47. Max uint64
  48. }
  49. type _Gid_t uint32
  50. type Stat_t struct {
  51. Dev uint64
  52. Mode uint32
  53. Pad_cgo_0 [4]byte
  54. Ino uint64
  55. Nlink uint32
  56. Uid uint32
  57. Gid uint32
  58. Pad_cgo_1 [4]byte
  59. Rdev uint64
  60. Atimespec Timespec
  61. Mtimespec Timespec
  62. Ctimespec Timespec
  63. Birthtimespec Timespec
  64. Size int64
  65. Blocks int64
  66. Blksize uint32
  67. Flags uint32
  68. Gen uint32
  69. Spare [2]uint32
  70. Pad_cgo_2 [4]byte
  71. }
  72. type Statfs_t [0]byte
  73. type Flock_t struct {
  74. Start int64
  75. Len int64
  76. Pid int32
  77. Type int16
  78. Whence int16
  79. }
  80. type Dirent struct {
  81. Fileno uint64
  82. Reclen uint16
  83. Namlen uint16
  84. Type uint8
  85. Name [512]int8
  86. Pad_cgo_0 [3]byte
  87. }
  88. type Fsid struct {
  89. X__fsid_val [2]int32
  90. }
  91. type RawSockaddrInet4 struct {
  92. Len uint8
  93. Family uint8
  94. Port uint16
  95. Addr [4]byte /* in_addr */
  96. Zero [8]int8
  97. }
  98. type RawSockaddrInet6 struct {
  99. Len uint8
  100. Family uint8
  101. Port uint16
  102. Flowinfo uint32
  103. Addr [16]byte /* in6_addr */
  104. Scope_id uint32
  105. }
  106. type RawSockaddrUnix struct {
  107. Len uint8
  108. Family uint8
  109. Path [104]int8
  110. }
  111. type RawSockaddrDatalink struct {
  112. Len uint8
  113. Family uint8
  114. Index uint16
  115. Type uint8
  116. Nlen uint8
  117. Alen uint8
  118. Slen uint8
  119. Data [12]int8
  120. }
  121. type RawSockaddr struct {
  122. Len uint8
  123. Family uint8
  124. Data [14]int8
  125. }
  126. type RawSockaddrAny struct {
  127. Addr RawSockaddr
  128. Pad [92]int8
  129. }
  130. type _Socklen uint32
  131. type Linger struct {
  132. Onoff int32
  133. Linger int32
  134. }
  135. type Iovec struct {
  136. Base *byte
  137. Len uint64
  138. }
  139. type IPMreq struct {
  140. Multiaddr [4]byte /* in_addr */
  141. Interface [4]byte /* in_addr */
  142. }
  143. type IPv6Mreq struct {
  144. Multiaddr [16]byte /* in6_addr */
  145. Interface uint32
  146. }
  147. type Msghdr struct {
  148. Name *byte
  149. Namelen uint32
  150. Pad_cgo_0 [4]byte
  151. Iov *Iovec
  152. Iovlen int32
  153. Pad_cgo_1 [4]byte
  154. Control *byte
  155. Controllen uint32
  156. Flags int32
  157. }
  158. type Cmsghdr struct {
  159. Len uint32
  160. Level int32
  161. Type int32
  162. }
  163. type Inet6Pktinfo struct {
  164. Addr [16]byte /* in6_addr */
  165. Ifindex uint32
  166. }
  167. type IPv6MTUInfo struct {
  168. Addr RawSockaddrInet6
  169. Mtu uint32
  170. }
  171. type ICMPv6Filter struct {
  172. Filt [8]uint32
  173. }
  174. const (
  175. SizeofSockaddrInet4 = 0x10
  176. SizeofSockaddrInet6 = 0x1c
  177. SizeofSockaddrAny = 0x6c
  178. SizeofSockaddrUnix = 0x6a
  179. SizeofSockaddrDatalink = 0x14
  180. SizeofLinger = 0x8
  181. SizeofIPMreq = 0x8
  182. SizeofIPv6Mreq = 0x14
  183. SizeofMsghdr = 0x30
  184. SizeofCmsghdr = 0xc
  185. SizeofInet6Pktinfo = 0x14
  186. SizeofIPv6MTUInfo = 0x20
  187. SizeofICMPv6Filter = 0x20
  188. )
  189. const (
  190. PTRACE_TRACEME = 0x0
  191. PTRACE_CONT = 0x7
  192. PTRACE_KILL = 0x8
  193. )
  194. type Kevent_t struct {
  195. Ident uint64
  196. Filter uint32
  197. Flags uint32
  198. Fflags uint32
  199. Pad_cgo_0 [4]byte
  200. Data int64
  201. Udata int64
  202. }
  203. type FdSet struct {
  204. Bits [8]uint32
  205. }
  206. const (
  207. SizeofIfMsghdr = 0x98
  208. SizeofIfData = 0x88
  209. SizeofIfaMsghdr = 0x18
  210. SizeofIfAnnounceMsghdr = 0x18
  211. SizeofRtMsghdr = 0x78
  212. SizeofRtMetrics = 0x50
  213. )
  214. type IfMsghdr struct {
  215. Msglen uint16
  216. Version uint8
  217. Type uint8
  218. Addrs int32
  219. Flags int32
  220. Index uint16
  221. Pad_cgo_0 [2]byte
  222. Data IfData
  223. }
  224. type IfData struct {
  225. Type uint8
  226. Addrlen uint8
  227. Hdrlen uint8
  228. Pad_cgo_0 [1]byte
  229. Link_state int32
  230. Mtu uint64
  231. Metric uint64
  232. Baudrate uint64
  233. Ipackets uint64
  234. Ierrors uint64
  235. Opackets uint64
  236. Oerrors uint64
  237. Collisions uint64
  238. Ibytes uint64
  239. Obytes uint64
  240. Imcasts uint64
  241. Omcasts uint64
  242. Iqdrops uint64
  243. Noproto uint64
  244. Lastchange Timespec
  245. }
  246. type IfaMsghdr struct {
  247. Msglen uint16
  248. Version uint8
  249. Type uint8
  250. Addrs int32
  251. Flags int32
  252. Metric int32
  253. Index uint16
  254. Pad_cgo_0 [6]byte
  255. }
  256. type IfAnnounceMsghdr struct {
  257. Msglen uint16
  258. Version uint8
  259. Type uint8
  260. Index uint16
  261. Name [16]int8
  262. What uint16
  263. }
  264. type RtMsghdr struct {
  265. Msglen uint16
  266. Version uint8
  267. Type uint8
  268. Index uint16
  269. Pad_cgo_0 [2]byte
  270. Flags int32
  271. Addrs int32
  272. Pid int32
  273. Seq int32
  274. Errno int32
  275. Use int32
  276. Inits int32
  277. Pad_cgo_1 [4]byte
  278. Rmx RtMetrics
  279. }
  280. type RtMetrics struct {
  281. Locks uint64
  282. Mtu uint64
  283. Hopcount uint64
  284. Recvpipe uint64
  285. Sendpipe uint64
  286. Ssthresh uint64
  287. Rtt uint64
  288. Rttvar uint64
  289. Expire int64
  290. Pksent int64
  291. }
  292. type Mclpool [0]byte
  293. const (
  294. SizeofBpfVersion = 0x4
  295. SizeofBpfStat = 0x80
  296. SizeofBpfProgram = 0x10
  297. SizeofBpfInsn = 0x8
  298. SizeofBpfHdr = 0x20
  299. )
  300. type BpfVersion struct {
  301. Major uint16
  302. Minor uint16
  303. }
  304. type BpfStat struct {
  305. Recv uint64
  306. Drop uint64
  307. Capt uint64
  308. Padding [13]uint64
  309. }
  310. type BpfProgram struct {
  311. Len uint32
  312. Pad_cgo_0 [4]byte
  313. Insns *BpfInsn
  314. }
  315. type BpfInsn struct {
  316. Code uint16
  317. Jt uint8
  318. Jf uint8
  319. K uint32
  320. }
  321. type BpfHdr struct {
  322. Tstamp BpfTimeval
  323. Caplen uint32
  324. Datalen uint32
  325. Hdrlen uint16
  326. Pad_cgo_0 [6]byte
  327. }
  328. type BpfTimeval struct {
  329. Sec int64
  330. Usec int64
  331. }
  332. type Termios struct {
  333. Iflag uint32
  334. Oflag uint32
  335. Cflag uint32
  336. Lflag uint32
  337. Cc [20]uint8
  338. Ispeed int32
  339. Ospeed int32
  340. }
  341. type Sysctlnode struct {
  342. Flags uint32
  343. Num int32
  344. Name [32]int8
  345. Ver uint32
  346. X__rsvd uint32
  347. Un [16]byte
  348. X_sysctl_size [8]byte
  349. X_sysctl_func [8]byte
  350. X_sysctl_parent [8]byte
  351. X_sysctl_desc [8]byte
  352. }