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_386.go 5.9KB

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