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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs -- -fsigned-char types_freebsd.go
  3. // +build arm,freebsd
  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. Pad_cgo_0 [4]byte
  22. }
  23. type Timeval struct {
  24. Sec int64
  25. Usec int32
  26. Pad_cgo_0 [4]byte
  27. }
  28. type Rusage struct {
  29. Utime Timeval
  30. Stime Timeval
  31. Maxrss int32
  32. Ixrss int32
  33. Idrss int32
  34. Isrss int32
  35. Minflt int32
  36. Majflt int32
  37. Nswap int32
  38. Inblock int32
  39. Oublock int32
  40. Msgsnd int32
  41. Msgrcv int32
  42. Nsignals int32
  43. Nvcsw int32
  44. Nivcsw int32
  45. }
  46. type Rlimit struct {
  47. Cur int64
  48. Max int64
  49. }
  50. type _Gid_t uint32
  51. const (
  52. S_IFMT = 0xf000
  53. S_IFIFO = 0x1000
  54. S_IFCHR = 0x2000
  55. S_IFDIR = 0x4000
  56. S_IFBLK = 0x6000
  57. S_IFREG = 0x8000
  58. S_IFLNK = 0xa000
  59. S_IFSOCK = 0xc000
  60. S_ISUID = 0x800
  61. S_ISGID = 0x400
  62. S_ISVTX = 0x200
  63. S_IRUSR = 0x100
  64. S_IWUSR = 0x80
  65. S_IXUSR = 0x40
  66. )
  67. type Stat_t struct {
  68. Dev uint32
  69. Ino uint32
  70. Mode uint16
  71. Nlink uint16
  72. Uid uint32
  73. Gid uint32
  74. Rdev uint32
  75. Atimespec Timespec
  76. Mtimespec Timespec
  77. Ctimespec Timespec
  78. Size int64
  79. Blocks int64
  80. Blksize uint32
  81. Flags uint32
  82. Gen uint32
  83. Lspare int32
  84. Birthtimespec Timespec
  85. }
  86. type Statfs_t struct {
  87. Version uint32
  88. Type uint32
  89. Flags uint64
  90. Bsize uint64
  91. Iosize uint64
  92. Blocks uint64
  93. Bfree uint64
  94. Bavail int64
  95. Files uint64
  96. Ffree int64
  97. Syncwrites uint64
  98. Asyncwrites uint64
  99. Syncreads uint64
  100. Asyncreads uint64
  101. Spare [10]uint64
  102. Namemax uint32
  103. Owner uint32
  104. Fsid Fsid
  105. Charspare [80]int8
  106. Fstypename [16]int8
  107. Mntfromname [88]int8
  108. Mntonname [88]int8
  109. }
  110. type Flock_t struct {
  111. Start int64
  112. Len int64
  113. Pid int32
  114. Type int16
  115. Whence int16
  116. Sysid int32
  117. Pad_cgo_0 [4]byte
  118. }
  119. type Dirent struct {
  120. Fileno uint32
  121. Reclen uint16
  122. Type uint8
  123. Namlen 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 [46]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 uint32
  176. }
  177. type IPMreq struct {
  178. Multiaddr [4]byte /* in_addr */
  179. Interface [4]byte /* in_addr */
  180. }
  181. type IPMreqn struct {
  182. Multiaddr [4]byte /* in_addr */
  183. Address [4]byte /* in_addr */
  184. Ifindex int32
  185. }
  186. type IPv6Mreq struct {
  187. Multiaddr [16]byte /* in6_addr */
  188. Interface uint32
  189. }
  190. type Msghdr struct {
  191. Name *byte
  192. Namelen uint32
  193. Iov *Iovec
  194. Iovlen int32
  195. Control *byte
  196. Controllen uint32
  197. Flags int32
  198. }
  199. type Cmsghdr struct {
  200. Len uint32
  201. Level int32
  202. Type int32
  203. }
  204. type Inet6Pktinfo struct {
  205. Addr [16]byte /* in6_addr */
  206. Ifindex uint32
  207. }
  208. type IPv6MTUInfo struct {
  209. Addr RawSockaddrInet6
  210. Mtu uint32
  211. }
  212. type ICMPv6Filter struct {
  213. Filt [8]uint32
  214. }
  215. const (
  216. SizeofSockaddrInet4 = 0x10
  217. SizeofSockaddrInet6 = 0x1c
  218. SizeofSockaddrAny = 0x6c
  219. SizeofSockaddrUnix = 0x6a
  220. SizeofSockaddrDatalink = 0x36
  221. SizeofLinger = 0x8
  222. SizeofIPMreq = 0x8
  223. SizeofIPMreqn = 0xc
  224. SizeofIPv6Mreq = 0x14
  225. SizeofMsghdr = 0x1c
  226. SizeofCmsghdr = 0xc
  227. SizeofInet6Pktinfo = 0x14
  228. SizeofIPv6MTUInfo = 0x20
  229. SizeofICMPv6Filter = 0x20
  230. )
  231. const (
  232. PTRACE_TRACEME = 0x0
  233. PTRACE_CONT = 0x7
  234. PTRACE_KILL = 0x8
  235. )
  236. type Kevent_t struct {
  237. Ident uint32
  238. Filter int16
  239. Flags uint16
  240. Fflags uint32
  241. Data int32
  242. Udata *byte
  243. }
  244. type FdSet struct {
  245. X__fds_bits [32]uint32
  246. }
  247. const (
  248. sizeofIfMsghdr = 0x70
  249. SizeofIfMsghdr = 0x70
  250. sizeofIfData = 0x60
  251. SizeofIfData = 0x60
  252. SizeofIfaMsghdr = 0x14
  253. SizeofIfmaMsghdr = 0x10
  254. SizeofIfAnnounceMsghdr = 0x18
  255. SizeofRtMsghdr = 0x5c
  256. SizeofRtMetrics = 0x38
  257. )
  258. type ifMsghdr struct {
  259. Msglen uint16
  260. Version uint8
  261. Type uint8
  262. Addrs int32
  263. Flags int32
  264. Index uint16
  265. Pad_cgo_0 [2]byte
  266. Data ifData
  267. }
  268. type IfMsghdr struct {
  269. Msglen uint16
  270. Version uint8
  271. Type uint8
  272. Addrs int32
  273. Flags int32
  274. Index uint16
  275. Pad_cgo_0 [2]byte
  276. Data IfData
  277. }
  278. type ifData struct {
  279. Type uint8
  280. Physical uint8
  281. Addrlen uint8
  282. Hdrlen uint8
  283. Link_state uint8
  284. Vhid uint8
  285. Baudrate_pf uint8
  286. Datalen uint8
  287. Mtu uint32
  288. Metric uint32
  289. Baudrate uint32
  290. Ipackets uint32
  291. Ierrors uint32
  292. Opackets uint32
  293. Oerrors uint32
  294. Collisions uint32
  295. Ibytes uint32
  296. Obytes uint32
  297. Imcasts uint32
  298. Omcasts uint32
  299. Iqdrops uint32
  300. Noproto uint32
  301. Hwassist uint64
  302. Epoch int64
  303. Lastchange Timeval
  304. }
  305. type IfData struct {
  306. Type uint8
  307. Physical uint8
  308. Addrlen uint8
  309. Hdrlen uint8
  310. Link_state uint8
  311. Spare_char1 uint8
  312. Spare_char2 uint8
  313. Datalen uint8
  314. Mtu uint32
  315. Metric uint32
  316. Baudrate uint32
  317. Ipackets uint32
  318. Ierrors uint32
  319. Opackets uint32
  320. Oerrors uint32
  321. Collisions uint32
  322. Ibytes uint32
  323. Obytes uint32
  324. Imcasts uint32
  325. Omcasts uint32
  326. Iqdrops uint32
  327. Noproto uint32
  328. Hwassist uint32
  329. Pad_cgo_0 [4]byte
  330. Epoch int64
  331. Lastchange Timeval
  332. }
  333. type IfaMsghdr struct {
  334. Msglen uint16
  335. Version uint8
  336. Type uint8
  337. Addrs int32
  338. Flags int32
  339. Index uint16
  340. Pad_cgo_0 [2]byte
  341. Metric int32
  342. }
  343. type IfmaMsghdr struct {
  344. Msglen uint16
  345. Version uint8
  346. Type uint8
  347. Addrs int32
  348. Flags int32
  349. Index uint16
  350. Pad_cgo_0 [2]byte
  351. }
  352. type IfAnnounceMsghdr struct {
  353. Msglen uint16
  354. Version uint8
  355. Type uint8
  356. Index uint16
  357. Name [16]int8
  358. What uint16
  359. }
  360. type RtMsghdr struct {
  361. Msglen uint16
  362. Version uint8
  363. Type uint8
  364. Index uint16
  365. Pad_cgo_0 [2]byte
  366. Flags int32
  367. Addrs int32
  368. Pid int32
  369. Seq int32
  370. Errno int32
  371. Fmask int32
  372. Inits uint32
  373. Rmx RtMetrics
  374. }
  375. type RtMetrics struct {
  376. Locks uint32
  377. Mtu uint32
  378. Hopcount uint32
  379. Expire uint32
  380. Recvpipe uint32
  381. Sendpipe uint32
  382. Ssthresh uint32
  383. Rtt uint32
  384. Rttvar uint32
  385. Pksent uint32
  386. Weight uint32
  387. Filler [3]uint32
  388. }
  389. const (
  390. SizeofBpfVersion = 0x4
  391. SizeofBpfStat = 0x8
  392. SizeofBpfZbuf = 0xc
  393. SizeofBpfProgram = 0x8
  394. SizeofBpfInsn = 0x8
  395. SizeofBpfHdr = 0x20
  396. SizeofBpfZbufHeader = 0x20
  397. )
  398. type BpfVersion struct {
  399. Major uint16
  400. Minor uint16
  401. }
  402. type BpfStat struct {
  403. Recv uint32
  404. Drop uint32
  405. }
  406. type BpfZbuf struct {
  407. Bufa *byte
  408. Bufb *byte
  409. Buflen uint32
  410. }
  411. type BpfProgram struct {
  412. Len uint32
  413. Insns *BpfInsn
  414. }
  415. type BpfInsn struct {
  416. Code uint16
  417. Jt uint8
  418. Jf uint8
  419. K uint32
  420. }
  421. type BpfHdr struct {
  422. Tstamp Timeval
  423. Caplen uint32
  424. Datalen uint32
  425. Hdrlen uint16
  426. Pad_cgo_0 [6]byte
  427. }
  428. type BpfZbufHeader struct {
  429. Kernel_gen uint32
  430. Kernel_len uint32
  431. User_gen uint32
  432. X_bzh_pad [5]uint32
  433. }
  434. type Termios struct {
  435. Iflag uint32
  436. Oflag uint32
  437. Cflag uint32
  438. Lflag uint32
  439. Cc [20]uint8
  440. Ispeed uint32
  441. Ospeed uint32
  442. }