您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ztypes_dragonfly_amd64.go 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  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. Blksize uint32
  64. Flags uint32
  65. Gen uint32
  66. Lspare int32
  67. Qspare1 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. _ [4]byte
  84. Syncwrites int64
  85. Asyncwrites int64
  86. Fstypename [16]int8
  87. Mntonname [80]int8
  88. Syncreads int64
  89. Asyncreads int64
  90. Spares1 int16
  91. Mntfromname [80]int8
  92. Spares2 int16
  93. _ [4]byte
  94. Spare [2]int64
  95. }
  96. type Flock_t struct {
  97. Start int64
  98. Len int64
  99. Pid int32
  100. Type int16
  101. Whence int16
  102. }
  103. type Dirent struct {
  104. Fileno uint64
  105. Namlen uint16
  106. Type uint8
  107. Unused1 uint8
  108. Unused2 uint32
  109. Name [256]int8
  110. }
  111. type Fsid struct {
  112. Val [2]int32
  113. }
  114. const (
  115. PathMax = 0x400
  116. )
  117. type RawSockaddrInet4 struct {
  118. Len uint8
  119. Family uint8
  120. Port uint16
  121. Addr [4]byte /* in_addr */
  122. Zero [8]int8
  123. }
  124. type RawSockaddrInet6 struct {
  125. Len uint8
  126. Family uint8
  127. Port uint16
  128. Flowinfo uint32
  129. Addr [16]byte /* in6_addr */
  130. Scope_id uint32
  131. }
  132. type RawSockaddrUnix struct {
  133. Len uint8
  134. Family uint8
  135. Path [104]int8
  136. }
  137. type RawSockaddrDatalink struct {
  138. Len uint8
  139. Family uint8
  140. Index uint16
  141. Type uint8
  142. Nlen uint8
  143. Alen uint8
  144. Slen uint8
  145. Data [12]int8
  146. Rcf uint16
  147. Route [16]uint16
  148. }
  149. type RawSockaddr struct {
  150. Len uint8
  151. Family uint8
  152. Data [14]int8
  153. }
  154. type RawSockaddrAny struct {
  155. Addr RawSockaddr
  156. Pad [92]int8
  157. }
  158. type _Socklen uint32
  159. type Linger struct {
  160. Onoff int32
  161. Linger int32
  162. }
  163. type Iovec struct {
  164. Base *byte
  165. Len uint64
  166. }
  167. type IPMreq struct {
  168. Multiaddr [4]byte /* in_addr */
  169. Interface [4]byte /* in_addr */
  170. }
  171. type IPv6Mreq struct {
  172. Multiaddr [16]byte /* in6_addr */
  173. Interface uint32
  174. }
  175. type Msghdr struct {
  176. Name *byte
  177. Namelen uint32
  178. _ [4]byte
  179. Iov *Iovec
  180. Iovlen int32
  181. _ [4]byte
  182. Control *byte
  183. Controllen uint32
  184. Flags int32
  185. }
  186. type Cmsghdr struct {
  187. Len uint32
  188. Level int32
  189. Type int32
  190. }
  191. type Inet6Pktinfo struct {
  192. Addr [16]byte /* in6_addr */
  193. Ifindex uint32
  194. }
  195. type IPv6MTUInfo struct {
  196. Addr RawSockaddrInet6
  197. Mtu uint32
  198. }
  199. type ICMPv6Filter struct {
  200. Filt [8]uint32
  201. }
  202. const (
  203. SizeofSockaddrInet4 = 0x10
  204. SizeofSockaddrInet6 = 0x1c
  205. SizeofSockaddrAny = 0x6c
  206. SizeofSockaddrUnix = 0x6a
  207. SizeofSockaddrDatalink = 0x36
  208. SizeofLinger = 0x8
  209. SizeofIPMreq = 0x8
  210. SizeofIPv6Mreq = 0x14
  211. SizeofMsghdr = 0x30
  212. SizeofCmsghdr = 0xc
  213. SizeofInet6Pktinfo = 0x14
  214. SizeofIPv6MTUInfo = 0x20
  215. SizeofICMPv6Filter = 0x20
  216. )
  217. const (
  218. PTRACE_TRACEME = 0x0
  219. PTRACE_CONT = 0x7
  220. PTRACE_KILL = 0x8
  221. )
  222. type Kevent_t struct {
  223. Ident uint64
  224. Filter int16
  225. Flags uint16
  226. Fflags uint32
  227. Data int64
  228. Udata *byte
  229. }
  230. type FdSet struct {
  231. Bits [16]uint64
  232. }
  233. const (
  234. SizeofIfMsghdr = 0xb0
  235. SizeofIfData = 0xa0
  236. SizeofIfaMsghdr = 0x14
  237. SizeofIfmaMsghdr = 0x10
  238. SizeofIfAnnounceMsghdr = 0x18
  239. SizeofRtMsghdr = 0x98
  240. SizeofRtMetrics = 0x70
  241. )
  242. type IfMsghdr struct {
  243. Msglen uint16
  244. Version uint8
  245. Type uint8
  246. Addrs int32
  247. Flags int32
  248. Index uint16
  249. _ [2]byte
  250. Data IfData
  251. }
  252. type IfData struct {
  253. Type uint8
  254. Physical uint8
  255. Addrlen uint8
  256. Hdrlen uint8
  257. Recvquota uint8
  258. Xmitquota uint8
  259. _ [2]byte
  260. Mtu uint64
  261. Metric uint64
  262. Link_state uint64
  263. Baudrate uint64
  264. Ipackets uint64
  265. Ierrors uint64
  266. Opackets uint64
  267. Oerrors uint64
  268. Collisions uint64
  269. Ibytes uint64
  270. Obytes uint64
  271. Imcasts uint64
  272. Omcasts uint64
  273. Iqdrops uint64
  274. Noproto uint64
  275. Hwassist uint64
  276. Oqdrops uint64
  277. Lastchange Timeval
  278. }
  279. type IfaMsghdr struct {
  280. Msglen uint16
  281. Version uint8
  282. Type uint8
  283. Addrs int32
  284. Flags int32
  285. Index uint16
  286. _ [2]byte
  287. Metric int32
  288. }
  289. type IfmaMsghdr struct {
  290. Msglen uint16
  291. Version uint8
  292. Type uint8
  293. Addrs int32
  294. Flags int32
  295. Index uint16
  296. _ [2]byte
  297. }
  298. type IfAnnounceMsghdr struct {
  299. Msglen uint16
  300. Version uint8
  301. Type uint8
  302. Index uint16
  303. Name [16]int8
  304. What uint16
  305. }
  306. type RtMsghdr struct {
  307. Msglen uint16
  308. Version uint8
  309. Type uint8
  310. Index uint16
  311. _ [2]byte
  312. Flags int32
  313. Addrs int32
  314. Pid int32
  315. Seq int32
  316. Errno int32
  317. Use int32
  318. Inits uint64
  319. Rmx RtMetrics
  320. }
  321. type RtMetrics struct {
  322. Locks uint64
  323. Mtu uint64
  324. Pksent uint64
  325. Expire uint64
  326. Sendpipe uint64
  327. Ssthresh uint64
  328. Rtt uint64
  329. Rttvar uint64
  330. Recvpipe uint64
  331. Hopcount uint64
  332. Mssopt uint16
  333. Pad uint16
  334. _ [4]byte
  335. Msl uint64
  336. Iwmaxsegs uint64
  337. Iwcapsegs uint64
  338. }
  339. const (
  340. SizeofBpfVersion = 0x4
  341. SizeofBpfStat = 0x8
  342. SizeofBpfProgram = 0x10
  343. SizeofBpfInsn = 0x8
  344. SizeofBpfHdr = 0x20
  345. )
  346. type BpfVersion struct {
  347. Major uint16
  348. Minor uint16
  349. }
  350. type BpfStat struct {
  351. Recv uint32
  352. Drop uint32
  353. }
  354. type BpfProgram struct {
  355. Len uint32
  356. _ [4]byte
  357. Insns *BpfInsn
  358. }
  359. type BpfInsn struct {
  360. Code uint16
  361. Jt uint8
  362. Jf uint8
  363. K uint32
  364. }
  365. type BpfHdr struct {
  366. Tstamp Timeval
  367. Caplen uint32
  368. Datalen uint32
  369. Hdrlen uint16
  370. _ [6]byte
  371. }
  372. type Termios struct {
  373. Iflag uint32
  374. Oflag uint32
  375. Cflag uint32
  376. Lflag uint32
  377. Cc [20]uint8
  378. Ispeed uint32
  379. Ospeed uint32
  380. }
  381. type Winsize struct {
  382. Row uint16
  383. Col uint16
  384. Xpixel uint16
  385. Ypixel uint16
  386. }
  387. const (
  388. AT_FDCWD = 0xfffafdcd
  389. AT_SYMLINK_NOFOLLOW = 0x1
  390. )
  391. type PollFd struct {
  392. Fd int32
  393. Events int16
  394. Revents int16
  395. }
  396. const (
  397. POLLERR = 0x8
  398. POLLHUP = 0x10
  399. POLLIN = 0x1
  400. POLLNVAL = 0x20
  401. POLLOUT = 0x4
  402. POLLPRI = 0x2
  403. POLLRDBAND = 0x80
  404. POLLRDNORM = 0x40
  405. POLLWRBAND = 0x100
  406. POLLWRNORM = 0x4
  407. )
  408. type Utsname struct {
  409. Sysname [32]byte
  410. Nodename [32]byte
  411. Release [32]byte
  412. Version [32]byte
  413. Machine [32]byte
  414. }
  415. const SizeofClockinfo = 0x14
  416. type Clockinfo struct {
  417. Hz int32
  418. Tick int32
  419. Tickadj int32
  420. Stathz int32
  421. Profhz int32
  422. }