You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

518 lines
7.6 KiB

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