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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502
  1. // +build 386,freebsd
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_freebsd.go
  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 int32
  20. Nsec int32
  21. }
  22. type Timeval struct {
  23. Sec int32
  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 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. Pad_cgo_0 [8]byte
  84. }
  85. type Statfs_t struct {
  86. Version uint32
  87. Type uint32
  88. Flags uint64
  89. Bsize uint64
  90. Iosize uint64
  91. Blocks uint64
  92. Bfree uint64
  93. Bavail int64
  94. Files uint64
  95. Ffree int64
  96. Syncwrites uint64
  97. Asyncwrites uint64
  98. Syncreads uint64
  99. Asyncreads uint64
  100. Spare [10]uint64
  101. Namemax uint32
  102. Owner uint32
  103. Fsid Fsid
  104. Charspare [80]int8
  105. Fstypename [16]int8
  106. Mntfromname [88]int8
  107. Mntonname [88]int8
  108. }
  109. type Flock_t struct {
  110. Start int64
  111. Len int64
  112. Pid int32
  113. Type int16
  114. Whence int16
  115. Sysid int32
  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 uint32
  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. Iov *Iovec
  200. Iovlen int32
  201. Control *byte
  202. Controllen uint32
  203. Flags int32
  204. }
  205. type Cmsghdr struct {
  206. Len uint32
  207. Level int32
  208. Type int32
  209. }
  210. type Inet6Pktinfo struct {
  211. Addr [16]byte /* in6_addr */
  212. Ifindex uint32
  213. }
  214. type IPv6MTUInfo struct {
  215. Addr RawSockaddrInet6
  216. Mtu uint32
  217. }
  218. type ICMPv6Filter struct {
  219. Filt [8]uint32
  220. }
  221. const (
  222. SizeofSockaddrInet4 = 0x10
  223. SizeofSockaddrInet6 = 0x1c
  224. SizeofSockaddrAny = 0x6c
  225. SizeofSockaddrUnix = 0x6a
  226. SizeofSockaddrDatalink = 0x36
  227. SizeofLinger = 0x8
  228. SizeofIPMreq = 0x8
  229. SizeofIPMreqn = 0xc
  230. SizeofIPv6Mreq = 0x14
  231. SizeofMsghdr = 0x1c
  232. SizeofCmsghdr = 0xc
  233. SizeofInet6Pktinfo = 0x14
  234. SizeofIPv6MTUInfo = 0x20
  235. SizeofICMPv6Filter = 0x20
  236. )
  237. const (
  238. PTRACE_TRACEME = 0x0
  239. PTRACE_CONT = 0x7
  240. PTRACE_KILL = 0x8
  241. )
  242. type Kevent_t struct {
  243. Ident uint32
  244. Filter int16
  245. Flags uint16
  246. Fflags uint32
  247. Data int32
  248. Udata *byte
  249. }
  250. type FdSet struct {
  251. X__fds_bits [32]uint32
  252. }
  253. const (
  254. sizeofIfMsghdr = 0x64
  255. SizeofIfMsghdr = 0x60
  256. sizeofIfData = 0x54
  257. SizeofIfData = 0x50
  258. SizeofIfaMsghdr = 0x14
  259. SizeofIfmaMsghdr = 0x10
  260. SizeofIfAnnounceMsghdr = 0x18
  261. SizeofRtMsghdr = 0x5c
  262. SizeofRtMetrics = 0x38
  263. )
  264. type ifMsghdr struct {
  265. Msglen uint16
  266. Version uint8
  267. Type uint8
  268. Addrs int32
  269. Flags int32
  270. Index uint16
  271. Pad_cgo_0 [2]byte
  272. Data ifData
  273. }
  274. type IfMsghdr struct {
  275. Msglen uint16
  276. Version uint8
  277. Type uint8
  278. Addrs int32
  279. Flags int32
  280. Index uint16
  281. Pad_cgo_0 [2]byte
  282. Data IfData
  283. }
  284. type ifData struct {
  285. Type uint8
  286. Physical uint8
  287. Addrlen uint8
  288. Hdrlen uint8
  289. Link_state uint8
  290. Vhid uint8
  291. Baudrate_pf uint8
  292. Datalen uint8
  293. Mtu uint32
  294. Metric uint32
  295. Baudrate uint32
  296. Ipackets uint32
  297. Ierrors uint32
  298. Opackets uint32
  299. Oerrors uint32
  300. Collisions uint32
  301. Ibytes uint32
  302. Obytes uint32
  303. Imcasts uint32
  304. Omcasts uint32
  305. Iqdrops uint32
  306. Noproto uint32
  307. Hwassist uint64
  308. Epoch int32
  309. Lastchange Timeval
  310. }
  311. type IfData struct {
  312. Type uint8
  313. Physical uint8
  314. Addrlen uint8
  315. Hdrlen uint8
  316. Link_state uint8
  317. Spare_char1 uint8
  318. Spare_char2 uint8
  319. Datalen uint8
  320. Mtu uint32
  321. Metric uint32
  322. Baudrate uint32
  323. Ipackets uint32
  324. Ierrors uint32
  325. Opackets uint32
  326. Oerrors uint32
  327. Collisions uint32
  328. Ibytes uint32
  329. Obytes uint32
  330. Imcasts uint32
  331. Omcasts uint32
  332. Iqdrops uint32
  333. Noproto uint32
  334. Hwassist uint32
  335. Epoch int32
  336. Lastchange Timeval
  337. }
  338. type IfaMsghdr struct {
  339. Msglen uint16
  340. Version uint8
  341. Type uint8
  342. Addrs int32
  343. Flags int32
  344. Index uint16
  345. Pad_cgo_0 [2]byte
  346. Metric int32
  347. }
  348. type IfmaMsghdr struct {
  349. Msglen uint16
  350. Version uint8
  351. Type uint8
  352. Addrs int32
  353. Flags int32
  354. Index uint16
  355. Pad_cgo_0 [2]byte
  356. }
  357. type IfAnnounceMsghdr struct {
  358. Msglen uint16
  359. Version uint8
  360. Type uint8
  361. Index uint16
  362. Name [16]int8
  363. What uint16
  364. }
  365. type RtMsghdr struct {
  366. Msglen uint16
  367. Version uint8
  368. Type uint8
  369. Index uint16
  370. Pad_cgo_0 [2]byte
  371. Flags int32
  372. Addrs int32
  373. Pid int32
  374. Seq int32
  375. Errno int32
  376. Fmask int32
  377. Inits uint32
  378. Rmx RtMetrics
  379. }
  380. type RtMetrics struct {
  381. Locks uint32
  382. Mtu uint32
  383. Hopcount uint32
  384. Expire uint32
  385. Recvpipe uint32
  386. Sendpipe uint32
  387. Ssthresh uint32
  388. Rtt uint32
  389. Rttvar uint32
  390. Pksent uint32
  391. Weight uint32
  392. Filler [3]uint32
  393. }
  394. const (
  395. SizeofBpfVersion = 0x4
  396. SizeofBpfStat = 0x8
  397. SizeofBpfZbuf = 0xc
  398. SizeofBpfProgram = 0x8
  399. SizeofBpfInsn = 0x8
  400. SizeofBpfHdr = 0x14
  401. SizeofBpfZbufHeader = 0x20
  402. )
  403. type BpfVersion struct {
  404. Major uint16
  405. Minor uint16
  406. }
  407. type BpfStat struct {
  408. Recv uint32
  409. Drop uint32
  410. }
  411. type BpfZbuf struct {
  412. Bufa *byte
  413. Bufb *byte
  414. Buflen uint32
  415. }
  416. type BpfProgram struct {
  417. Len uint32
  418. Insns *BpfInsn
  419. }
  420. type BpfInsn struct {
  421. Code uint16
  422. Jt uint8
  423. Jf uint8
  424. K uint32
  425. }
  426. type BpfHdr struct {
  427. Tstamp Timeval
  428. Caplen uint32
  429. Datalen uint32
  430. Hdrlen uint16
  431. Pad_cgo_0 [2]byte
  432. }
  433. type BpfZbufHeader struct {
  434. Kernel_gen uint32
  435. Kernel_len uint32
  436. User_gen uint32
  437. X_bzh_pad [5]uint32
  438. }
  439. type Termios struct {
  440. Iflag uint32
  441. Oflag uint32
  442. Cflag uint32
  443. Lflag uint32
  444. Cc [20]uint8
  445. Ispeed uint32
  446. Ospeed uint32
  447. }