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.

ztypes_dragonfly_amd64.go 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. // cgo -godefs types_dragonfly.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build amd64,dragonfly
  4. package unix
  5. const (
  6. SizeofPtr = 0x8
  7. SizeofShort = 0x2
  8. SizeofInt = 0x4
  9. SizeofLong = 0x8
  10. SizeofLongLong = 0x8
  11. )
  12. type (
  13. _C_short int16
  14. _C_int int32
  15. _C_long int64
  16. _C_long_long int64
  17. )
  18. type Timespec struct {
  19. Sec int64
  20. Nsec int64
  21. }
  22. type Timeval struct {
  23. Sec int64
  24. Usec int64
  25. }
  26. type Rusage struct {
  27. Utime Timeval
  28. Stime Timeval
  29. Maxrss int64
  30. Ixrss int64
  31. Idrss int64
  32. Isrss int64
  33. Minflt int64
  34. Majflt int64
  35. Nswap int64
  36. Inblock int64
  37. Oublock int64
  38. Msgsnd int64
  39. Msgrcv int64
  40. Nsignals int64
  41. Nvcsw int64
  42. Nivcsw int64
  43. }
  44. type Rlimit struct {
  45. Cur int64
  46. Max int64
  47. }
  48. type _Gid_t uint32
  49. type Stat_t struct {
  50. Ino uint64
  51. Nlink uint32
  52. Dev uint32
  53. Mode uint16
  54. _1 uint16
  55. Uid uint32
  56. Gid uint32
  57. Rdev uint32
  58. Atim Timespec
  59. Mtim Timespec
  60. Ctim Timespec
  61. Size int64
  62. Blocks int64
  63. _ uint32
  64. Flags uint32
  65. Gen uint32
  66. Lspare int32
  67. Blksize int64
  68. Qspare2 int64
  69. }
  70. type Statfs_t struct {
  71. Spare2 int64
  72. Bsize int64
  73. Iosize int64
  74. Blocks int64
  75. Bfree int64
  76. Bavail int64
  77. Files int64
  78. Ffree int64
  79. Fsid Fsid
  80. Owner uint32
  81. Type int32
  82. Flags int32
  83. Syncwrites int64
  84. Asyncwrites int64
  85. Fstypename [16]byte
  86. Mntonname [80]byte
  87. Syncreads int64
  88. Asyncreads int64
  89. Spares1 int16
  90. Mntfromname [80]byte
  91. Spares2 int16
  92. Spare [2]int64
  93. }
  94. type Flock_t struct {
  95. Start int64
  96. Len int64
  97. Pid int32
  98. Type int16
  99. Whence int16
  100. }
  101. type Dirent struct {
  102. Fileno uint64
  103. Namlen uint16
  104. Type uint8
  105. Unused1 uint8
  106. Unused2 uint32
  107. Name [256]int8
  108. }
  109. type Fsid struct {
  110. Val [2]int32
  111. }
  112. const (
  113. PathMax = 0x400
  114. )
  115. type RawSockaddrInet4 struct {
  116. Len uint8
  117. Family uint8
  118. Port uint16
  119. Addr [4]byte /* in_addr */
  120. Zero [8]int8
  121. }
  122. type RawSockaddrInet6 struct {
  123. Len uint8
  124. Family uint8
  125. Port uint16
  126. Flowinfo uint32
  127. Addr [16]byte /* in6_addr */
  128. Scope_id uint32
  129. }
  130. type RawSockaddrUnix struct {
  131. Len uint8
  132. Family uint8
  133. Path [104]int8
  134. }
  135. type RawSockaddrDatalink struct {
  136. Len uint8
  137. Family uint8
  138. Index uint16
  139. Type uint8
  140. Nlen uint8
  141. Alen uint8
  142. Slen uint8
  143. Data [12]int8
  144. Rcf uint16
  145. Route [16]uint16
  146. }
  147. type RawSockaddr struct {
  148. Len uint8
  149. Family uint8
  150. Data [14]int8
  151. }
  152. type RawSockaddrAny struct {
  153. Addr RawSockaddr
  154. Pad [92]int8
  155. }
  156. type _Socklen uint32
  157. type Linger struct {
  158. Onoff int32
  159. Linger int32
  160. }
  161. type Iovec struct {
  162. Base *byte
  163. Len uint64
  164. }
  165. type IPMreq struct {
  166. Multiaddr [4]byte /* in_addr */
  167. Interface [4]byte /* in_addr */
  168. }
  169. type IPv6Mreq struct {
  170. Multiaddr [16]byte /* in6_addr */
  171. Interface uint32
  172. }
  173. type Msghdr struct {
  174. Name *byte
  175. Namelen uint32
  176. Iov *Iovec
  177. Iovlen int32
  178. Control *byte
  179. Controllen uint32
  180. Flags int32
  181. }
  182. type Cmsghdr struct {
  183. Len uint32
  184. Level int32
  185. Type int32
  186. }
  187. type Inet6Pktinfo struct {
  188. Addr [16]byte /* in6_addr */
  189. Ifindex uint32
  190. }
  191. type IPv6MTUInfo struct {
  192. Addr RawSockaddrInet6
  193. Mtu uint32
  194. }
  195. type ICMPv6Filter struct {
  196. Filt [8]uint32
  197. }
  198. const (
  199. SizeofSockaddrInet4 = 0x10
  200. SizeofSockaddrInet6 = 0x1c
  201. SizeofSockaddrAny = 0x6c
  202. SizeofSockaddrUnix = 0x6a
  203. SizeofSockaddrDatalink = 0x36
  204. SizeofLinger = 0x8
  205. SizeofIPMreq = 0x8
  206. SizeofIPv6Mreq = 0x14
  207. SizeofMsghdr = 0x30
  208. SizeofCmsghdr = 0xc
  209. SizeofInet6Pktinfo = 0x14
  210. SizeofIPv6MTUInfo = 0x20
  211. SizeofICMPv6Filter = 0x20
  212. )
  213. const (
  214. PTRACE_TRACEME = 0x0
  215. PTRACE_CONT = 0x7
  216. PTRACE_KILL = 0x8
  217. )
  218. type Kevent_t struct {
  219. Ident uint64
  220. Filter int16
  221. Flags uint16
  222. Fflags uint32
  223. Data int64
  224. Udata *byte
  225. }
  226. type FdSet struct {
  227. Bits [16]uint64
  228. }
  229. const (
  230. SizeofIfMsghdr = 0xb0
  231. SizeofIfData = 0xa0
  232. SizeofIfaMsghdr = 0x18
  233. SizeofIfmaMsghdr = 0x10
  234. SizeofIfAnnounceMsghdr = 0x18
  235. SizeofRtMsghdr = 0x98
  236. SizeofRtMetrics = 0x70
  237. )
  238. type IfMsghdr struct {
  239. Msglen uint16
  240. Version uint8
  241. Type uint8
  242. Index uint16
  243. Flags int32
  244. Addrs int32
  245. Data IfData
  246. }
  247. type IfData struct {
  248. Type uint8
  249. Physical uint8
  250. Addrlen uint8
  251. Hdrlen uint8
  252. Recvquota uint8
  253. Xmitquota uint8
  254. Mtu uint64
  255. Metric uint64
  256. Link_state uint64
  257. Baudrate uint64
  258. Ipackets uint64
  259. Ierrors uint64
  260. Opackets uint64
  261. Oerrors uint64
  262. Collisions uint64
  263. Ibytes uint64
  264. Obytes uint64
  265. Imcasts uint64
  266. Omcasts uint64
  267. Iqdrops uint64
  268. Noproto uint64
  269. Hwassist uint64
  270. Oqdrops uint64
  271. Lastchange Timeval
  272. }
  273. type IfaMsghdr struct {
  274. Msglen uint16
  275. Version uint8
  276. Type uint8
  277. Index uint16
  278. Flags int32
  279. Addrs int32
  280. Addrflags int32
  281. Metric int32
  282. }
  283. type IfmaMsghdr struct {
  284. Msglen uint16
  285. Version uint8
  286. Type uint8
  287. Index uint16
  288. Flags int32
  289. Addrs int32
  290. }
  291. type IfAnnounceMsghdr struct {
  292. Msglen uint16
  293. Version uint8
  294. Type uint8
  295. Index uint16
  296. Name [16]int8
  297. What uint16
  298. }
  299. type RtMsghdr struct {
  300. Msglen uint16
  301. Version uint8
  302. Type uint8
  303. Index uint16
  304. Flags int32
  305. Addrs int32
  306. Pid int32
  307. Seq int32
  308. Errno int32
  309. Use int32
  310. Inits uint64
  311. Rmx RtMetrics
  312. }
  313. type RtMetrics struct {
  314. Locks uint64
  315. Mtu uint64
  316. Pksent uint64
  317. Expire uint64
  318. Sendpipe uint64
  319. Ssthresh uint64
  320. Rtt uint64
  321. Rttvar uint64
  322. Recvpipe uint64
  323. Hopcount uint64
  324. Mssopt uint16
  325. Pad uint16
  326. Msl uint64
  327. Iwmaxsegs uint64
  328. Iwcapsegs uint64
  329. }
  330. const (
  331. SizeofBpfVersion = 0x4
  332. SizeofBpfStat = 0x8
  333. SizeofBpfProgram = 0x10
  334. SizeofBpfInsn = 0x8
  335. SizeofBpfHdr = 0x20
  336. )
  337. type BpfVersion struct {
  338. Major uint16
  339. Minor uint16
  340. }
  341. type BpfStat struct {
  342. Recv uint32
  343. Drop uint32
  344. }
  345. type BpfProgram struct {
  346. Len uint32
  347. Insns *BpfInsn
  348. }
  349. type BpfInsn struct {
  350. Code uint16
  351. Jt uint8
  352. Jf uint8
  353. K uint32
  354. }
  355. type BpfHdr struct {
  356. Tstamp Timeval
  357. Caplen uint32
  358. Datalen uint32
  359. Hdrlen uint16
  360. _ [6]byte
  361. }
  362. type Termios struct {
  363. Iflag uint32
  364. Oflag uint32
  365. Cflag uint32
  366. Lflag uint32
  367. Cc [20]uint8
  368. Ispeed uint32
  369. Ospeed uint32
  370. }
  371. type Winsize struct {
  372. Row uint16
  373. Col uint16
  374. Xpixel uint16
  375. Ypixel uint16
  376. }
  377. const (
  378. AT_FDCWD = 0xfffafdcd
  379. AT_SYMLINK_NOFOLLOW = 0x1
  380. )
  381. type PollFd struct {
  382. Fd int32
  383. Events int16
  384. Revents int16
  385. }
  386. const (
  387. POLLERR = 0x8
  388. POLLHUP = 0x10
  389. POLLIN = 0x1
  390. POLLNVAL = 0x20
  391. POLLOUT = 0x4
  392. POLLPRI = 0x2
  393. POLLRDBAND = 0x80
  394. POLLRDNORM = 0x40
  395. POLLWRBAND = 0x100
  396. POLLWRNORM = 0x4
  397. )
  398. type Utsname struct {
  399. Sysname [32]byte
  400. Nodename [32]byte
  401. Release [32]byte
  402. Version [32]byte
  403. Machine [32]byte
  404. }
  405. const SizeofClockinfo = 0x14
  406. type Clockinfo struct {
  407. Hz int32
  408. Tick int32
  409. Tickadj int32
  410. Stathz int32
  411. Profhz int32
  412. }