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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs types_openbsd.go
  3. // +build 386,openbsd
  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. 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. Mode uint32
  67. Dev int32
  68. Ino uint64
  69. Nlink uint32
  70. Uid uint32
  71. Gid uint32
  72. Rdev int32
  73. Atim Timespec
  74. Mtim Timespec
  75. Ctim Timespec
  76. Size int64
  77. Blocks int64
  78. Blksize uint32
  79. Flags uint32
  80. Gen uint32
  81. X__st_birthtim Timespec
  82. }
  83. type Statfs_t struct {
  84. F_flags uint32
  85. F_bsize uint32
  86. F_iosize uint32
  87. F_blocks uint64
  88. F_bfree uint64
  89. F_bavail int64
  90. F_files uint64
  91. F_ffree uint64
  92. F_favail int64
  93. F_syncwrites uint64
  94. F_syncreads uint64
  95. F_asyncwrites uint64
  96. F_asyncreads uint64
  97. F_fsid Fsid
  98. F_namemax uint32
  99. F_owner uint32
  100. F_ctime uint64
  101. F_fstypename [16]int8
  102. F_mntonname [90]int8
  103. F_mntfromname [90]int8
  104. F_mntfromspec [90]int8
  105. Pad_cgo_0 [2]byte
  106. Mount_info [160]byte
  107. }
  108. type Flock_t struct {
  109. Start int64
  110. Len int64
  111. Pid int32
  112. Type int16
  113. Whence int16
  114. }
  115. type Dirent struct {
  116. Fileno uint64
  117. Off int64
  118. Reclen uint16
  119. Type uint8
  120. Namlen uint8
  121. X__d_padding [4]uint8
  122. Name [256]int8
  123. }
  124. type Fsid struct {
  125. Val [2]int32
  126. }
  127. type RawSockaddrInet4 struct {
  128. Len uint8
  129. Family uint8
  130. Port uint16
  131. Addr [4]byte /* in_addr */
  132. Zero [8]int8
  133. }
  134. type RawSockaddrInet6 struct {
  135. Len uint8
  136. Family uint8
  137. Port uint16
  138. Flowinfo uint32
  139. Addr [16]byte /* in6_addr */
  140. Scope_id uint32
  141. }
  142. type RawSockaddrUnix struct {
  143. Len uint8
  144. Family uint8
  145. Path [104]int8
  146. }
  147. type RawSockaddrDatalink struct {
  148. Len uint8
  149. Family uint8
  150. Index uint16
  151. Type uint8
  152. Nlen uint8
  153. Alen uint8
  154. Slen uint8
  155. Data [24]int8
  156. }
  157. type RawSockaddr struct {
  158. Len uint8
  159. Family uint8
  160. Data [14]int8
  161. }
  162. type RawSockaddrAny struct {
  163. Addr RawSockaddr
  164. Pad [92]int8
  165. }
  166. type _Socklen uint32
  167. type Linger struct {
  168. Onoff int32
  169. Linger int32
  170. }
  171. type Iovec struct {
  172. Base *byte
  173. Len uint32
  174. }
  175. type IPMreq struct {
  176. Multiaddr [4]byte /* in_addr */
  177. Interface [4]byte /* in_addr */
  178. }
  179. type IPv6Mreq struct {
  180. Multiaddr [16]byte /* in6_addr */
  181. Interface uint32
  182. }
  183. type Msghdr struct {
  184. Name *byte
  185. Namelen uint32
  186. Iov *Iovec
  187. Iovlen uint32
  188. Control *byte
  189. Controllen uint32
  190. Flags int32
  191. }
  192. type Cmsghdr struct {
  193. Len uint32
  194. Level int32
  195. Type int32
  196. }
  197. type Inet6Pktinfo struct {
  198. Addr [16]byte /* in6_addr */
  199. Ifindex uint32
  200. }
  201. type IPv6MTUInfo struct {
  202. Addr RawSockaddrInet6
  203. Mtu uint32
  204. }
  205. type ICMPv6Filter struct {
  206. Filt [8]uint32
  207. }
  208. const (
  209. SizeofSockaddrInet4 = 0x10
  210. SizeofSockaddrInet6 = 0x1c
  211. SizeofSockaddrAny = 0x6c
  212. SizeofSockaddrUnix = 0x6a
  213. SizeofSockaddrDatalink = 0x20
  214. SizeofLinger = 0x8
  215. SizeofIPMreq = 0x8
  216. SizeofIPv6Mreq = 0x14
  217. SizeofMsghdr = 0x1c
  218. SizeofCmsghdr = 0xc
  219. SizeofInet6Pktinfo = 0x14
  220. SizeofIPv6MTUInfo = 0x20
  221. SizeofICMPv6Filter = 0x20
  222. )
  223. const (
  224. PTRACE_TRACEME = 0x0
  225. PTRACE_CONT = 0x7
  226. PTRACE_KILL = 0x8
  227. )
  228. type Kevent_t struct {
  229. Ident uint32
  230. Filter int16
  231. Flags uint16
  232. Fflags uint32
  233. Data int64
  234. Udata *byte
  235. }
  236. type FdSet struct {
  237. Bits [32]uint32
  238. }
  239. const (
  240. SizeofIfMsghdr = 0xec
  241. SizeofIfData = 0xd4
  242. SizeofIfaMsghdr = 0x18
  243. SizeofIfAnnounceMsghdr = 0x1a
  244. SizeofRtMsghdr = 0x60
  245. SizeofRtMetrics = 0x38
  246. )
  247. type IfMsghdr struct {
  248. Msglen uint16
  249. Version uint8
  250. Type uint8
  251. Hdrlen uint16
  252. Index uint16
  253. Tableid uint16
  254. Pad1 uint8
  255. Pad2 uint8
  256. Addrs int32
  257. Flags int32
  258. Xflags int32
  259. Data IfData
  260. }
  261. type IfData struct {
  262. Type uint8
  263. Addrlen uint8
  264. Hdrlen uint8
  265. Link_state uint8
  266. Mtu uint32
  267. Metric uint32
  268. Pad uint32
  269. Baudrate uint64
  270. Ipackets uint64
  271. Ierrors uint64
  272. Opackets uint64
  273. Oerrors uint64
  274. Collisions uint64
  275. Ibytes uint64
  276. Obytes uint64
  277. Imcasts uint64
  278. Omcasts uint64
  279. Iqdrops uint64
  280. Noproto uint64
  281. Capabilities uint32
  282. Lastchange Timeval
  283. Mclpool [7]Mclpool
  284. }
  285. type IfaMsghdr struct {
  286. Msglen uint16
  287. Version uint8
  288. Type uint8
  289. Hdrlen uint16
  290. Index uint16
  291. Tableid uint16
  292. Pad1 uint8
  293. Pad2 uint8
  294. Addrs int32
  295. Flags int32
  296. Metric int32
  297. }
  298. type IfAnnounceMsghdr struct {
  299. Msglen uint16
  300. Version uint8
  301. Type uint8
  302. Hdrlen uint16
  303. Index uint16
  304. What uint16
  305. Name [16]int8
  306. }
  307. type RtMsghdr struct {
  308. Msglen uint16
  309. Version uint8
  310. Type uint8
  311. Hdrlen uint16
  312. Index uint16
  313. Tableid uint16
  314. Priority uint8
  315. Mpls uint8
  316. Addrs int32
  317. Flags int32
  318. Fmask int32
  319. Pid int32
  320. Seq int32
  321. Errno int32
  322. Inits uint32
  323. Rmx RtMetrics
  324. }
  325. type RtMetrics struct {
  326. Pksent uint64
  327. Expire int64
  328. Locks uint32
  329. Mtu uint32
  330. Refcnt uint32
  331. Hopcount uint32
  332. Recvpipe uint32
  333. Sendpipe uint32
  334. Ssthresh uint32
  335. Rtt uint32
  336. Rttvar uint32
  337. Pad uint32
  338. }
  339. type Mclpool struct {
  340. Grown int32
  341. Alive uint16
  342. Hwm uint16
  343. Cwm uint16
  344. Lwm uint16
  345. }
  346. const (
  347. SizeofBpfVersion = 0x4
  348. SizeofBpfStat = 0x8
  349. SizeofBpfProgram = 0x8
  350. SizeofBpfInsn = 0x8
  351. SizeofBpfHdr = 0x14
  352. )
  353. type BpfVersion struct {
  354. Major uint16
  355. Minor uint16
  356. }
  357. type BpfStat struct {
  358. Recv uint32
  359. Drop uint32
  360. }
  361. type BpfProgram struct {
  362. Len uint32
  363. Insns *BpfInsn
  364. }
  365. type BpfInsn struct {
  366. Code uint16
  367. Jt uint8
  368. Jf uint8
  369. K uint32
  370. }
  371. type BpfHdr struct {
  372. Tstamp BpfTimeval
  373. Caplen uint32
  374. Datalen uint32
  375. Hdrlen uint16
  376. Pad_cgo_0 [2]byte
  377. }
  378. type BpfTimeval struct {
  379. Sec uint32
  380. Usec uint32
  381. }
  382. type Termios struct {
  383. Iflag uint32
  384. Oflag uint32
  385. Cflag uint32
  386. Lflag uint32
  387. Cc [20]uint8
  388. Ispeed int32
  389. Ospeed int32
  390. }