Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

475 řádky
6.9 KiB

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