Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. // cgo -godefs types_solaris.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go: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. type Stat_t struct {
  66. Dev uint64
  67. Ino uint64
  68. Mode uint32
  69. Nlink uint32
  70. Uid uint32
  71. Gid uint32
  72. Rdev uint64
  73. Size int64
  74. Atim Timespec
  75. Mtim Timespec
  76. Ctim Timespec
  77. Blksize int32
  78. Blocks int64
  79. Fstype [16]int8
  80. }
  81. type Flock_t struct {
  82. Type int16
  83. Whence int16
  84. Start int64
  85. Len int64
  86. Sysid int32
  87. Pid int32
  88. Pad [4]int64
  89. }
  90. type Dirent struct {
  91. Ino uint64
  92. Off int64
  93. Reclen uint16
  94. Name [1]int8
  95. _ [5]byte
  96. }
  97. type _Fsblkcnt_t uint64
  98. type Statvfs_t struct {
  99. Bsize uint64
  100. Frsize uint64
  101. Blocks uint64
  102. Bfree uint64
  103. Bavail uint64
  104. Files uint64
  105. Ffree uint64
  106. Favail uint64
  107. Fsid uint64
  108. Basetype [16]int8
  109. Flag uint64
  110. Namemax uint64
  111. Fstr [32]int8
  112. }
  113. type RawSockaddrInet4 struct {
  114. Family uint16
  115. Port uint16
  116. Addr [4]byte /* in_addr */
  117. Zero [8]int8
  118. }
  119. type RawSockaddrInet6 struct {
  120. Family uint16
  121. Port uint16
  122. Flowinfo uint32
  123. Addr [16]byte /* in6_addr */
  124. Scope_id uint32
  125. _ uint32
  126. }
  127. type RawSockaddrUnix struct {
  128. Family uint16
  129. Path [108]int8
  130. }
  131. type RawSockaddrDatalink struct {
  132. Family uint16
  133. Index uint16
  134. Type uint8
  135. Nlen uint8
  136. Alen uint8
  137. Slen uint8
  138. Data [244]int8
  139. }
  140. type RawSockaddr struct {
  141. Family uint16
  142. Data [14]int8
  143. }
  144. type RawSockaddrAny struct {
  145. Addr RawSockaddr
  146. Pad [236]int8
  147. }
  148. type _Socklen uint32
  149. type Linger struct {
  150. Onoff int32
  151. Linger int32
  152. }
  153. type Iovec struct {
  154. Base *byte
  155. Len uint64
  156. }
  157. type IPMreq struct {
  158. Multiaddr [4]byte /* in_addr */
  159. Interface [4]byte /* in_addr */
  160. }
  161. type IPv6Mreq struct {
  162. Multiaddr [16]byte /* in6_addr */
  163. Interface uint32
  164. }
  165. type Msghdr struct {
  166. Name *byte
  167. Namelen uint32
  168. Iov *Iovec
  169. Iovlen int32
  170. Accrights *int8
  171. Accrightslen int32
  172. _ [4]byte
  173. }
  174. type Cmsghdr struct {
  175. Len uint32
  176. Level int32
  177. Type int32
  178. }
  179. type Inet4Pktinfo struct {
  180. Ifindex uint32
  181. Spec_dst [4]byte /* in_addr */
  182. Addr [4]byte /* in_addr */
  183. }
  184. type Inet6Pktinfo struct {
  185. Addr [16]byte /* in6_addr */
  186. Ifindex uint32
  187. }
  188. type IPv6MTUInfo struct {
  189. Addr RawSockaddrInet6
  190. Mtu uint32
  191. }
  192. type ICMPv6Filter struct {
  193. Filt [8]uint32
  194. }
  195. const (
  196. SizeofSockaddrInet4 = 0x10
  197. SizeofSockaddrInet6 = 0x20
  198. SizeofSockaddrAny = 0xfc
  199. SizeofSockaddrUnix = 0x6e
  200. SizeofSockaddrDatalink = 0xfc
  201. SizeofLinger = 0x8
  202. SizeofIovec = 0x10
  203. SizeofIPMreq = 0x8
  204. SizeofIPv6Mreq = 0x14
  205. SizeofMsghdr = 0x30
  206. SizeofCmsghdr = 0xc
  207. SizeofInet4Pktinfo = 0xc
  208. SizeofInet6Pktinfo = 0x14
  209. SizeofIPv6MTUInfo = 0x24
  210. SizeofICMPv6Filter = 0x20
  211. )
  212. type FdSet struct {
  213. Bits [1024]int64
  214. }
  215. type Utsname struct {
  216. Sysname [257]byte
  217. Nodename [257]byte
  218. Release [257]byte
  219. Version [257]byte
  220. Machine [257]byte
  221. }
  222. type Ustat_t struct {
  223. Tfree int64
  224. Tinode uint64
  225. Fname [6]int8
  226. Fpack [6]int8
  227. _ [4]byte
  228. }
  229. const (
  230. AT_FDCWD = 0xffd19553
  231. AT_SYMLINK_NOFOLLOW = 0x1000
  232. AT_SYMLINK_FOLLOW = 0x2000
  233. AT_REMOVEDIR = 0x1
  234. AT_EACCESS = 0x4
  235. )
  236. const (
  237. SizeofIfMsghdr = 0x54
  238. SizeofIfData = 0x44
  239. SizeofIfaMsghdr = 0x14
  240. SizeofRtMsghdr = 0x4c
  241. SizeofRtMetrics = 0x28
  242. )
  243. type IfMsghdr struct {
  244. Msglen uint16
  245. Version uint8
  246. Type uint8
  247. Addrs int32
  248. Flags int32
  249. Index uint16
  250. Data IfData
  251. }
  252. type IfData struct {
  253. Type uint8
  254. Addrlen uint8
  255. Hdrlen uint8
  256. Mtu uint32
  257. Metric uint32
  258. Baudrate uint32
  259. Ipackets uint32
  260. Ierrors uint32
  261. Opackets uint32
  262. Oerrors uint32
  263. Collisions uint32
  264. Ibytes uint32
  265. Obytes uint32
  266. Imcasts uint32
  267. Omcasts uint32
  268. Iqdrops uint32
  269. Noproto uint32
  270. Lastchange Timeval32
  271. }
  272. type IfaMsghdr struct {
  273. Msglen uint16
  274. Version uint8
  275. Type uint8
  276. Addrs int32
  277. Flags int32
  278. Index uint16
  279. Metric int32
  280. }
  281. type RtMsghdr struct {
  282. Msglen uint16
  283. Version uint8
  284. Type uint8
  285. Index uint16
  286. Flags int32
  287. Addrs int32
  288. Pid int32
  289. Seq int32
  290. Errno int32
  291. Use int32
  292. Inits uint32
  293. Rmx RtMetrics
  294. }
  295. type RtMetrics struct {
  296. Locks uint32
  297. Mtu uint32
  298. Hopcount uint32
  299. Expire uint32
  300. Recvpipe uint32
  301. Sendpipe uint32
  302. Ssthresh uint32
  303. Rtt uint32
  304. Rttvar uint32
  305. Pksent uint32
  306. }
  307. const (
  308. SizeofBpfVersion = 0x4
  309. SizeofBpfStat = 0x80
  310. SizeofBpfProgram = 0x10
  311. SizeofBpfInsn = 0x8
  312. SizeofBpfHdr = 0x14
  313. )
  314. type BpfVersion struct {
  315. Major uint16
  316. Minor uint16
  317. }
  318. type BpfStat struct {
  319. Recv uint64
  320. Drop uint64
  321. Capt uint64
  322. _ [13]uint64
  323. }
  324. type BpfProgram struct {
  325. Len uint32
  326. Insns *BpfInsn
  327. }
  328. type BpfInsn struct {
  329. Code uint16
  330. Jt uint8
  331. Jf uint8
  332. K uint32
  333. }
  334. type BpfTimeval struct {
  335. Sec int32
  336. Usec int32
  337. }
  338. type BpfHdr struct {
  339. Tstamp BpfTimeval
  340. Caplen uint32
  341. Datalen uint32
  342. Hdrlen uint16
  343. _ [2]byte
  344. }
  345. type Termios struct {
  346. Iflag uint32
  347. Oflag uint32
  348. Cflag uint32
  349. Lflag uint32
  350. Cc [19]uint8
  351. _ [1]byte
  352. }
  353. type Termio struct {
  354. Iflag uint16
  355. Oflag uint16
  356. Cflag uint16
  357. Lflag uint16
  358. Line int8
  359. Cc [8]uint8
  360. _ [1]byte
  361. }
  362. type Winsize struct {
  363. Row uint16
  364. Col uint16
  365. Xpixel uint16
  366. Ypixel uint16
  367. }
  368. type PollFd struct {
  369. Fd int32
  370. Events int16
  371. Revents int16
  372. }
  373. const (
  374. POLLERR = 0x8
  375. POLLHUP = 0x10
  376. POLLIN = 0x1
  377. POLLNVAL = 0x20
  378. POLLOUT = 0x4
  379. POLLPRI = 0x2
  380. POLLRDBAND = 0x80
  381. POLLRDNORM = 0x40
  382. POLLWRBAND = 0x100
  383. POLLWRNORM = 0x4
  384. )
  385. type fileObj struct {
  386. Atim Timespec
  387. Mtim Timespec
  388. Ctim Timespec
  389. Pad [3]uint64
  390. Name *int8
  391. }
  392. type portEvent struct {
  393. Events int32
  394. Source uint16
  395. Pad uint16
  396. Object uint64
  397. User *byte
  398. }
  399. const (
  400. PORT_SOURCE_AIO = 0x1
  401. PORT_SOURCE_TIMER = 0x2
  402. PORT_SOURCE_USER = 0x3
  403. PORT_SOURCE_FD = 0x4
  404. PORT_SOURCE_ALERT = 0x5
  405. PORT_SOURCE_MQ = 0x6
  406. PORT_SOURCE_FILE = 0x7
  407. PORT_ALERT_SET = 0x1
  408. PORT_ALERT_UPDATE = 0x2
  409. PORT_ALERT_INVALID = 0x3
  410. FILE_ACCESS = 0x1
  411. FILE_MODIFIED = 0x2
  412. FILE_ATTRIB = 0x4
  413. FILE_TRUNC = 0x100000
  414. FILE_NOFOLLOW = 0x10000000
  415. FILE_DELETE = 0x10
  416. FILE_RENAME_TO = 0x20
  417. FILE_RENAME_FROM = 0x40
  418. UNMOUNTED = 0x20000000
  419. MOUNTEDOVER = 0x40000000
  420. FILE_EXCEPTION = 0x60000070
  421. )
  422. const (
  423. TUNNEWPPA = 0x540001
  424. TUNSETPPA = 0x540002
  425. I_STR = 0x5308
  426. I_POP = 0x5303
  427. I_PUSH = 0x5302
  428. I_LINK = 0x530c
  429. I_UNLINK = 0x530d
  430. I_PLINK = 0x5316
  431. I_PUNLINK = 0x5317
  432. IF_UNITSEL = -0x7ffb8cca
  433. )
  434. type strbuf struct {
  435. Maxlen int32
  436. Len int32
  437. Buf *int8
  438. }
  439. type Strioctl struct {
  440. Cmd int32
  441. Timout int32
  442. Len int32
  443. Dp *int8
  444. }
  445. type Lifreq struct {
  446. Name [32]int8
  447. Lifru1 [4]byte
  448. Type uint32
  449. Lifru [336]byte
  450. }