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_amd64.go 6.8KB

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