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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. // cgo -godefs types_solaris.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build amd64,solaris
  4. package unix
  5. const (
  6. sizeofPtr = 0x8
  7. sizeofShort = 0x2
  8. sizeofInt = 0x4
  9. sizeofLong = 0x8
  10. sizeofLongLong = 0x8
  11. PathMax = 0x400
  12. MaxHostNameLen = 0x100
  13. )
  14. type (
  15. _C_short int16
  16. _C_int int32
  17. _C_long int64
  18. _C_long_long int64
  19. )
  20. type Timespec struct {
  21. Sec int64
  22. Nsec int64
  23. }
  24. type Timeval struct {
  25. Sec int64
  26. Usec int64
  27. }
  28. type Timeval32 struct {
  29. Sec int32
  30. Usec int32
  31. }
  32. type Tms struct {
  33. Utime int64
  34. Stime int64
  35. Cutime int64
  36. Cstime int64
  37. }
  38. type Utimbuf struct {
  39. Actime int64
  40. Modtime int64
  41. }
  42. type Rusage struct {
  43. Utime Timeval
  44. Stime Timeval
  45. Maxrss int64
  46. Ixrss int64
  47. Idrss int64
  48. Isrss int64
  49. Minflt int64
  50. Majflt int64
  51. Nswap int64
  52. Inblock int64
  53. Oublock int64
  54. Msgsnd int64
  55. Msgrcv int64
  56. Nsignals int64
  57. Nvcsw int64
  58. Nivcsw int64
  59. }
  60. type Rlimit struct {
  61. Cur uint64
  62. Max uint64
  63. }
  64. type _Gid_t uint32
  65. const (
  66. S_IFMT = 0xf000
  67. S_IFIFO = 0x1000
  68. S_IFCHR = 0x2000
  69. S_IFDIR = 0x4000
  70. S_IFBLK = 0x6000
  71. S_IFREG = 0x8000
  72. S_IFLNK = 0xa000
  73. S_IFSOCK = 0xc000
  74. S_ISUID = 0x800
  75. S_ISGID = 0x400
  76. S_ISVTX = 0x200
  77. S_IRUSR = 0x100
  78. S_IWUSR = 0x80
  79. S_IXUSR = 0x40
  80. )
  81. type Stat_t struct {
  82. Dev uint64
  83. Ino uint64
  84. Mode uint32
  85. Nlink uint32
  86. Uid uint32
  87. Gid uint32
  88. Rdev uint64
  89. Size int64
  90. Atim Timespec
  91. Mtim Timespec
  92. Ctim Timespec
  93. Blksize int32
  94. Pad_cgo_0 [4]byte
  95. Blocks int64
  96. Fstype [16]int8
  97. }
  98. type Flock_t struct {
  99. Type int16
  100. Whence int16
  101. Pad_cgo_0 [4]byte
  102. Start int64
  103. Len int64
  104. Sysid int32
  105. Pid int32
  106. Pad [4]int64
  107. }
  108. type Dirent struct {
  109. Ino uint64
  110. Off int64
  111. Reclen uint16
  112. Name [1]int8
  113. Pad_cgo_0 [5]byte
  114. }
  115. type _Fsblkcnt_t uint64
  116. type Statvfs_t struct {
  117. Bsize uint64
  118. Frsize uint64
  119. Blocks uint64
  120. Bfree uint64
  121. Bavail uint64
  122. Files uint64
  123. Ffree uint64
  124. Favail uint64
  125. Fsid uint64
  126. Basetype [16]int8
  127. Flag uint64
  128. Namemax uint64
  129. Fstr [32]int8
  130. }
  131. type RawSockaddrInet4 struct {
  132. Family uint16
  133. Port uint16
  134. Addr [4]byte /* in_addr */
  135. Zero [8]int8
  136. }
  137. type RawSockaddrInet6 struct {
  138. Family uint16
  139. Port uint16
  140. Flowinfo uint32
  141. Addr [16]byte /* in6_addr */
  142. Scope_id uint32
  143. X__sin6_src_id uint32
  144. }
  145. type RawSockaddrUnix struct {
  146. Family uint16
  147. Path [108]int8
  148. }
  149. type RawSockaddrDatalink struct {
  150. Family uint16
  151. Index uint16
  152. Type uint8
  153. Nlen uint8
  154. Alen uint8
  155. Slen uint8
  156. Data [244]int8
  157. }
  158. type RawSockaddr struct {
  159. Family uint16
  160. Data [14]int8
  161. }
  162. type RawSockaddrAny struct {
  163. Addr RawSockaddr
  164. Pad [236]int8
  165. }
  166. type _Socklen uint32
  167. type Linger struct {
  168. Onoff int32
  169. Linger int32
  170. }
  171. type Iovec struct {
  172. Base *int8
  173. Len uint64
  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. Pad_cgo_0 [4]byte
  187. Iov *Iovec
  188. Iovlen int32
  189. Pad_cgo_1 [4]byte
  190. Accrights *int8
  191. Accrightslen int32
  192. Pad_cgo_2 [4]byte
  193. }
  194. type Cmsghdr struct {
  195. Len uint32
  196. Level int32
  197. Type int32
  198. }
  199. type Inet6Pktinfo struct {
  200. Addr [16]byte /* in6_addr */
  201. Ifindex uint32
  202. }
  203. type IPv6MTUInfo struct {
  204. Addr RawSockaddrInet6
  205. Mtu uint32
  206. }
  207. type ICMPv6Filter struct {
  208. X__icmp6_filt [8]uint32
  209. }
  210. const (
  211. SizeofSockaddrInet4 = 0x10
  212. SizeofSockaddrInet6 = 0x20
  213. SizeofSockaddrAny = 0xfc
  214. SizeofSockaddrUnix = 0x6e
  215. SizeofSockaddrDatalink = 0xfc
  216. SizeofLinger = 0x8
  217. SizeofIPMreq = 0x8
  218. SizeofIPv6Mreq = 0x14
  219. SizeofMsghdr = 0x30
  220. SizeofCmsghdr = 0xc
  221. SizeofInet6Pktinfo = 0x14
  222. SizeofIPv6MTUInfo = 0x24
  223. SizeofICMPv6Filter = 0x20
  224. )
  225. type FdSet struct {
  226. Bits [1024]int64
  227. }
  228. type Utsname struct {
  229. Sysname [257]int8
  230. Nodename [257]int8
  231. Release [257]int8
  232. Version [257]int8
  233. Machine [257]int8
  234. }
  235. type Ustat_t struct {
  236. Tfree int64
  237. Tinode uint64
  238. Fname [6]int8
  239. Fpack [6]int8
  240. Pad_cgo_0 [4]byte
  241. }
  242. const (
  243. AT_FDCWD = 0xffd19553
  244. AT_SYMLINK_NOFOLLOW = 0x1000
  245. AT_SYMLINK_FOLLOW = 0x2000
  246. AT_REMOVEDIR = 0x1
  247. AT_EACCESS = 0x4
  248. )
  249. const (
  250. SizeofIfMsghdr = 0x54
  251. SizeofIfData = 0x44
  252. SizeofIfaMsghdr = 0x14
  253. SizeofRtMsghdr = 0x4c
  254. SizeofRtMetrics = 0x28
  255. )
  256. type IfMsghdr struct {
  257. Msglen uint16
  258. Version uint8
  259. Type uint8
  260. Addrs int32
  261. Flags int32
  262. Index uint16
  263. Pad_cgo_0 [2]byte
  264. Data IfData
  265. }
  266. type IfData struct {
  267. Type uint8
  268. Addrlen uint8
  269. Hdrlen uint8
  270. Pad_cgo_0 [1]byte
  271. Mtu uint32
  272. Metric uint32
  273. Baudrate uint32
  274. Ipackets uint32
  275. Ierrors uint32
  276. Opackets uint32
  277. Oerrors uint32
  278. Collisions uint32
  279. Ibytes uint32
  280. Obytes uint32
  281. Imcasts uint32
  282. Omcasts uint32
  283. Iqdrops uint32
  284. Noproto uint32
  285. Lastchange Timeval32
  286. }
  287. type IfaMsghdr struct {
  288. Msglen uint16
  289. Version uint8
  290. Type uint8
  291. Addrs int32
  292. Flags int32
  293. Index uint16
  294. Pad_cgo_0 [2]byte
  295. Metric int32
  296. }
  297. type RtMsghdr struct {
  298. Msglen uint16
  299. Version uint8
  300. Type uint8
  301. Index uint16
  302. Pad_cgo_0 [2]byte
  303. Flags int32
  304. Addrs int32
  305. Pid int32
  306. Seq int32
  307. Errno int32
  308. Use int32
  309. Inits uint32
  310. Rmx RtMetrics
  311. }
  312. type RtMetrics struct {
  313. Locks uint32
  314. Mtu uint32
  315. Hopcount uint32
  316. Expire uint32
  317. Recvpipe uint32
  318. Sendpipe uint32
  319. Ssthresh uint32
  320. Rtt uint32
  321. Rttvar uint32
  322. Pksent uint32
  323. }
  324. const (
  325. SizeofBpfVersion = 0x4
  326. SizeofBpfStat = 0x80
  327. SizeofBpfProgram = 0x10
  328. SizeofBpfInsn = 0x8
  329. SizeofBpfHdr = 0x14
  330. )
  331. type BpfVersion struct {
  332. Major uint16
  333. Minor uint16
  334. }
  335. type BpfStat struct {
  336. Recv uint64
  337. Drop uint64
  338. Capt uint64
  339. Padding [13]uint64
  340. }
  341. type BpfProgram struct {
  342. Len uint32
  343. Pad_cgo_0 [4]byte
  344. Insns *BpfInsn
  345. }
  346. type BpfInsn struct {
  347. Code uint16
  348. Jt uint8
  349. Jf uint8
  350. K uint32
  351. }
  352. type BpfTimeval struct {
  353. Sec int32
  354. Usec int32
  355. }
  356. type BpfHdr struct {
  357. Tstamp BpfTimeval
  358. Caplen uint32
  359. Datalen uint32
  360. Hdrlen uint16
  361. Pad_cgo_0 [2]byte
  362. }
  363. const _SC_PAGESIZE = 0xb
  364. type Termios struct {
  365. Iflag uint32
  366. Oflag uint32
  367. Cflag uint32
  368. Lflag uint32
  369. Cc [19]uint8
  370. Pad_cgo_0 [1]byte
  371. }
  372. type Termio struct {
  373. Iflag uint16
  374. Oflag uint16
  375. Cflag uint16
  376. Lflag uint16
  377. Line int8
  378. Cc [8]uint8
  379. Pad_cgo_0 [1]byte
  380. }
  381. type Winsize struct {
  382. Row uint16
  383. Col uint16
  384. Xpixel uint16
  385. Ypixel uint16
  386. }