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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. // cgo -godefs types_dragonfly.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go: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. SizeofIovec = 0x10
  206. SizeofIPMreq = 0x8
  207. SizeofIPv6Mreq = 0x14
  208. SizeofMsghdr = 0x30
  209. SizeofCmsghdr = 0xc
  210. SizeofInet6Pktinfo = 0x14
  211. SizeofIPv6MTUInfo = 0x20
  212. SizeofICMPv6Filter = 0x20
  213. )
  214. const (
  215. PTRACE_TRACEME = 0x0
  216. PTRACE_CONT = 0x7
  217. PTRACE_KILL = 0x8
  218. )
  219. type Kevent_t struct {
  220. Ident uint64
  221. Filter int16
  222. Flags uint16
  223. Fflags uint32
  224. Data int64
  225. Udata *byte
  226. }
  227. type FdSet struct {
  228. Bits [16]uint64
  229. }
  230. const (
  231. SizeofIfMsghdr = 0xb0
  232. SizeofIfData = 0xa0
  233. SizeofIfaMsghdr = 0x18
  234. SizeofIfmaMsghdr = 0x10
  235. SizeofIfAnnounceMsghdr = 0x18
  236. SizeofRtMsghdr = 0x98
  237. SizeofRtMetrics = 0x70
  238. )
  239. type IfMsghdr struct {
  240. Msglen uint16
  241. Version uint8
  242. Type uint8
  243. Index uint16
  244. Flags int32
  245. Addrs int32
  246. Data IfData
  247. }
  248. type IfData struct {
  249. Type uint8
  250. Physical uint8
  251. Addrlen uint8
  252. Hdrlen uint8
  253. Recvquota uint8
  254. Xmitquota uint8
  255. Mtu uint64
  256. Metric uint64
  257. Link_state uint64
  258. Baudrate uint64
  259. Ipackets uint64
  260. Ierrors uint64
  261. Opackets uint64
  262. Oerrors uint64
  263. Collisions uint64
  264. Ibytes uint64
  265. Obytes uint64
  266. Imcasts uint64
  267. Omcasts uint64
  268. Iqdrops uint64
  269. Noproto uint64
  270. Hwassist uint64
  271. Oqdrops uint64
  272. Lastchange Timeval
  273. }
  274. type IfaMsghdr struct {
  275. Msglen uint16
  276. Version uint8
  277. Type uint8
  278. Index uint16
  279. Flags int32
  280. Addrs int32
  281. Addrflags int32
  282. Metric int32
  283. }
  284. type IfmaMsghdr struct {
  285. Msglen uint16
  286. Version uint8
  287. Type uint8
  288. Index uint16
  289. Flags int32
  290. Addrs int32
  291. }
  292. type IfAnnounceMsghdr struct {
  293. Msglen uint16
  294. Version uint8
  295. Type uint8
  296. Index uint16
  297. Name [16]int8
  298. What uint16
  299. }
  300. type RtMsghdr struct {
  301. Msglen uint16
  302. Version uint8
  303. Type uint8
  304. Index uint16
  305. Flags int32
  306. Addrs int32
  307. Pid int32
  308. Seq int32
  309. Errno int32
  310. Use int32
  311. Inits uint64
  312. Rmx RtMetrics
  313. }
  314. type RtMetrics struct {
  315. Locks uint64
  316. Mtu uint64
  317. Pksent uint64
  318. Expire uint64
  319. Sendpipe uint64
  320. Ssthresh uint64
  321. Rtt uint64
  322. Rttvar uint64
  323. Recvpipe uint64
  324. Hopcount uint64
  325. Mssopt uint16
  326. Pad uint16
  327. Msl uint64
  328. Iwmaxsegs uint64
  329. Iwcapsegs uint64
  330. }
  331. const (
  332. SizeofBpfVersion = 0x4
  333. SizeofBpfStat = 0x8
  334. SizeofBpfProgram = 0x10
  335. SizeofBpfInsn = 0x8
  336. SizeofBpfHdr = 0x20
  337. )
  338. type BpfVersion struct {
  339. Major uint16
  340. Minor uint16
  341. }
  342. type BpfStat struct {
  343. Recv uint32
  344. Drop uint32
  345. }
  346. type BpfProgram struct {
  347. Len uint32
  348. Insns *BpfInsn
  349. }
  350. type BpfInsn struct {
  351. Code uint16
  352. Jt uint8
  353. Jf uint8
  354. K uint32
  355. }
  356. type BpfHdr struct {
  357. Tstamp Timeval
  358. Caplen uint32
  359. Datalen uint32
  360. Hdrlen uint16
  361. _ [6]byte
  362. }
  363. type Termios struct {
  364. Iflag uint32
  365. Oflag uint32
  366. Cflag uint32
  367. Lflag uint32
  368. Cc [20]uint8
  369. Ispeed uint32
  370. Ospeed uint32
  371. }
  372. type Winsize struct {
  373. Row uint16
  374. Col uint16
  375. Xpixel uint16
  376. Ypixel uint16
  377. }
  378. const (
  379. AT_FDCWD = 0xfffafdcd
  380. AT_SYMLINK_NOFOLLOW = 0x1
  381. AT_REMOVEDIR = 0x2
  382. AT_EACCESS = 0x4
  383. AT_SYMLINK_FOLLOW = 0x8
  384. )
  385. type PollFd struct {
  386. Fd int32
  387. Events int16
  388. Revents int16
  389. }
  390. const (
  391. POLLERR = 0x8
  392. POLLHUP = 0x10
  393. POLLIN = 0x1
  394. POLLNVAL = 0x20
  395. POLLOUT = 0x4
  396. POLLPRI = 0x2
  397. POLLRDBAND = 0x80
  398. POLLRDNORM = 0x40
  399. POLLWRBAND = 0x100
  400. POLLWRNORM = 0x4
  401. )
  402. type Utsname struct {
  403. Sysname [32]byte
  404. Nodename [32]byte
  405. Release [32]byte
  406. Version [32]byte
  407. Machine [32]byte
  408. }
  409. const SizeofClockinfo = 0x14
  410. type Clockinfo struct {
  411. Hz int32
  412. Tick int32
  413. Tickadj int32
  414. Stathz int32
  415. Profhz int32
  416. }