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_freebsd_amd64.go 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  1. // +build amd64,freebsd
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_freebsd.go
  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 int64
  46. Max int64
  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. Dev uint32
  67. Ino uint32
  68. Mode uint16
  69. Nlink uint16
  70. Uid uint32
  71. Gid uint32
  72. Rdev uint32
  73. Atimespec Timespec
  74. Mtimespec Timespec
  75. Ctimespec Timespec
  76. Size int64
  77. Blocks int64
  78. Blksize uint32
  79. Flags uint32
  80. Gen uint32
  81. Lspare int32
  82. Birthtimespec Timespec
  83. }
  84. type Statfs_t struct {
  85. Version uint32
  86. Type uint32
  87. Flags uint64
  88. Bsize uint64
  89. Iosize uint64
  90. Blocks uint64
  91. Bfree uint64
  92. Bavail int64
  93. Files uint64
  94. Ffree int64
  95. Syncwrites uint64
  96. Asyncwrites uint64
  97. Syncreads uint64
  98. Asyncreads uint64
  99. Spare [10]uint64
  100. Namemax uint32
  101. Owner uint32
  102. Fsid Fsid
  103. Charspare [80]int8
  104. Fstypename [16]int8
  105. Mntfromname [88]int8
  106. Mntonname [88]int8
  107. }
  108. type Flock_t struct {
  109. Start int64
  110. Len int64
  111. Pid int32
  112. Type int16
  113. Whence int16
  114. Sysid int32
  115. Pad_cgo_0 [4]byte
  116. }
  117. type Dirent struct {
  118. Fileno uint32
  119. Reclen uint16
  120. Type uint8
  121. Namlen uint8
  122. Name [256]int8
  123. }
  124. type Fsid struct {
  125. Val [2]int32
  126. }
  127. const (
  128. FADV_NORMAL = 0x0
  129. FADV_RANDOM = 0x1
  130. FADV_SEQUENTIAL = 0x2
  131. FADV_WILLNEED = 0x3
  132. FADV_DONTNEED = 0x4
  133. FADV_NOREUSE = 0x5
  134. )
  135. type RawSockaddrInet4 struct {
  136. Len uint8
  137. Family uint8
  138. Port uint16
  139. Addr [4]byte /* in_addr */
  140. Zero [8]int8
  141. }
  142. type RawSockaddrInet6 struct {
  143. Len uint8
  144. Family uint8
  145. Port uint16
  146. Flowinfo uint32
  147. Addr [16]byte /* in6_addr */
  148. Scope_id uint32
  149. }
  150. type RawSockaddrUnix struct {
  151. Len uint8
  152. Family uint8
  153. Path [104]int8
  154. }
  155. type RawSockaddrDatalink struct {
  156. Len uint8
  157. Family uint8
  158. Index uint16
  159. Type uint8
  160. Nlen uint8
  161. Alen uint8
  162. Slen uint8
  163. Data [46]int8
  164. }
  165. type RawSockaddr struct {
  166. Len uint8
  167. Family uint8
  168. Data [14]int8
  169. }
  170. type RawSockaddrAny struct {
  171. Addr RawSockaddr
  172. Pad [92]int8
  173. }
  174. type _Socklen uint32
  175. type Linger struct {
  176. Onoff int32
  177. Linger int32
  178. }
  179. type Iovec struct {
  180. Base *byte
  181. Len uint64
  182. }
  183. type IPMreq struct {
  184. Multiaddr [4]byte /* in_addr */
  185. Interface [4]byte /* in_addr */
  186. }
  187. type IPMreqn struct {
  188. Multiaddr [4]byte /* in_addr */
  189. Address [4]byte /* in_addr */
  190. Ifindex int32
  191. }
  192. type IPv6Mreq struct {
  193. Multiaddr [16]byte /* in6_addr */
  194. Interface uint32
  195. }
  196. type Msghdr struct {
  197. Name *byte
  198. Namelen uint32
  199. Pad_cgo_0 [4]byte
  200. Iov *Iovec
  201. Iovlen int32
  202. Pad_cgo_1 [4]byte
  203. Control *byte
  204. Controllen uint32
  205. Flags int32
  206. }
  207. type Cmsghdr struct {
  208. Len uint32
  209. Level int32
  210. Type int32
  211. }
  212. type Inet6Pktinfo struct {
  213. Addr [16]byte /* in6_addr */
  214. Ifindex uint32
  215. }
  216. type IPv6MTUInfo struct {
  217. Addr RawSockaddrInet6
  218. Mtu uint32
  219. }
  220. type ICMPv6Filter struct {
  221. Filt [8]uint32
  222. }
  223. const (
  224. SizeofSockaddrInet4 = 0x10
  225. SizeofSockaddrInet6 = 0x1c
  226. SizeofSockaddrAny = 0x6c
  227. SizeofSockaddrUnix = 0x6a
  228. SizeofSockaddrDatalink = 0x36
  229. SizeofLinger = 0x8
  230. SizeofIPMreq = 0x8
  231. SizeofIPMreqn = 0xc
  232. SizeofIPv6Mreq = 0x14
  233. SizeofMsghdr = 0x30
  234. SizeofCmsghdr = 0xc
  235. SizeofInet6Pktinfo = 0x14
  236. SizeofIPv6MTUInfo = 0x20
  237. SizeofICMPv6Filter = 0x20
  238. )
  239. const (
  240. PTRACE_TRACEME = 0x0
  241. PTRACE_CONT = 0x7
  242. PTRACE_KILL = 0x8
  243. )
  244. type Kevent_t struct {
  245. Ident uint64
  246. Filter int16
  247. Flags uint16
  248. Fflags uint32
  249. Data int64
  250. Udata *byte
  251. }
  252. type FdSet struct {
  253. X__fds_bits [16]uint64
  254. }
  255. const (
  256. sizeofIfMsghdr = 0xa8
  257. SizeofIfMsghdr = 0xa8
  258. sizeofIfData = 0x98
  259. SizeofIfData = 0x98
  260. SizeofIfaMsghdr = 0x14
  261. SizeofIfmaMsghdr = 0x10
  262. SizeofIfAnnounceMsghdr = 0x18
  263. SizeofRtMsghdr = 0x98
  264. SizeofRtMetrics = 0x70
  265. )
  266. type ifMsghdr struct {
  267. Msglen uint16
  268. Version uint8
  269. Type uint8
  270. Addrs int32
  271. Flags int32
  272. Index uint16
  273. Pad_cgo_0 [2]byte
  274. Data ifData
  275. }
  276. type IfMsghdr struct {
  277. Msglen uint16
  278. Version uint8
  279. Type uint8
  280. Addrs int32
  281. Flags int32
  282. Index uint16
  283. Pad_cgo_0 [2]byte
  284. Data IfData
  285. }
  286. type ifData struct {
  287. Type uint8
  288. Physical uint8
  289. Addrlen uint8
  290. Hdrlen uint8
  291. Link_state uint8
  292. Vhid uint8
  293. Baudrate_pf uint8
  294. Datalen uint8
  295. Mtu uint64
  296. Metric uint64
  297. Baudrate uint64
  298. Ipackets uint64
  299. Ierrors uint64
  300. Opackets uint64
  301. Oerrors uint64
  302. Collisions uint64
  303. Ibytes uint64
  304. Obytes uint64
  305. Imcasts uint64
  306. Omcasts uint64
  307. Iqdrops uint64
  308. Noproto uint64
  309. Hwassist uint64
  310. Epoch int64
  311. Lastchange Timeval
  312. }
  313. type IfData struct {
  314. Type uint8
  315. Physical uint8
  316. Addrlen uint8
  317. Hdrlen uint8
  318. Link_state uint8
  319. Spare_char1 uint8
  320. Spare_char2 uint8
  321. Datalen uint8
  322. Mtu uint64
  323. Metric uint64
  324. Baudrate uint64
  325. Ipackets uint64
  326. Ierrors uint64
  327. Opackets uint64
  328. Oerrors uint64
  329. Collisions uint64
  330. Ibytes uint64
  331. Obytes uint64
  332. Imcasts uint64
  333. Omcasts uint64
  334. Iqdrops uint64
  335. Noproto uint64
  336. Hwassist uint64
  337. Epoch int64
  338. Lastchange Timeval
  339. }
  340. type IfaMsghdr struct {
  341. Msglen uint16
  342. Version uint8
  343. Type uint8
  344. Addrs int32
  345. Flags int32
  346. Index uint16
  347. Pad_cgo_0 [2]byte
  348. Metric int32
  349. }
  350. type IfmaMsghdr struct {
  351. Msglen uint16
  352. Version uint8
  353. Type uint8
  354. Addrs int32
  355. Flags int32
  356. Index uint16
  357. Pad_cgo_0 [2]byte
  358. }
  359. type IfAnnounceMsghdr struct {
  360. Msglen uint16
  361. Version uint8
  362. Type uint8
  363. Index uint16
  364. Name [16]int8
  365. What uint16
  366. }
  367. type RtMsghdr struct {
  368. Msglen uint16
  369. Version uint8
  370. Type uint8
  371. Index uint16
  372. Pad_cgo_0 [2]byte
  373. Flags int32
  374. Addrs int32
  375. Pid int32
  376. Seq int32
  377. Errno int32
  378. Fmask int32
  379. Inits uint64
  380. Rmx RtMetrics
  381. }
  382. type RtMetrics struct {
  383. Locks uint64
  384. Mtu uint64
  385. Hopcount uint64
  386. Expire uint64
  387. Recvpipe uint64
  388. Sendpipe uint64
  389. Ssthresh uint64
  390. Rtt uint64
  391. Rttvar uint64
  392. Pksent uint64
  393. Weight uint64
  394. Filler [3]uint64
  395. }
  396. const (
  397. SizeofBpfVersion = 0x4
  398. SizeofBpfStat = 0x8
  399. SizeofBpfZbuf = 0x18
  400. SizeofBpfProgram = 0x10
  401. SizeofBpfInsn = 0x8
  402. SizeofBpfHdr = 0x20
  403. SizeofBpfZbufHeader = 0x20
  404. )
  405. type BpfVersion struct {
  406. Major uint16
  407. Minor uint16
  408. }
  409. type BpfStat struct {
  410. Recv uint32
  411. Drop uint32
  412. }
  413. type BpfZbuf struct {
  414. Bufa *byte
  415. Bufb *byte
  416. Buflen uint64
  417. }
  418. type BpfProgram struct {
  419. Len uint32
  420. Pad_cgo_0 [4]byte
  421. Insns *BpfInsn
  422. }
  423. type BpfInsn struct {
  424. Code uint16
  425. Jt uint8
  426. Jf uint8
  427. K uint32
  428. }
  429. type BpfHdr struct {
  430. Tstamp Timeval
  431. Caplen uint32
  432. Datalen uint32
  433. Hdrlen uint16
  434. Pad_cgo_0 [6]byte
  435. }
  436. type BpfZbufHeader struct {
  437. Kernel_gen uint32
  438. Kernel_len uint32
  439. User_gen uint32
  440. X_bzh_pad [5]uint32
  441. }
  442. type Termios struct {
  443. Iflag uint32
  444. Oflag uint32
  445. Cflag uint32
  446. Lflag uint32
  447. Cc [20]uint8
  448. Ispeed uint32
  449. Ospeed uint32
  450. }