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ů.
 
 
 

456 řádky
6.8 KiB

  1. // cgo -godefs types_netbsd.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build amd64,netbsd
  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 int32
  25. Pad_cgo_0 [4]byte
  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 uint64
  47. Max uint64
  48. }
  49. type _Gid_t uint32
  50. type Stat_t struct {
  51. Dev uint64
  52. Mode uint32
  53. Pad_cgo_0 [4]byte
  54. Ino uint64
  55. Nlink uint32
  56. Uid uint32
  57. Gid uint32
  58. Pad_cgo_1 [4]byte
  59. Rdev uint64
  60. Atimespec Timespec
  61. Mtimespec Timespec
  62. Ctimespec Timespec
  63. Birthtimespec Timespec
  64. Size int64
  65. Blocks int64
  66. Blksize uint32
  67. Flags uint32
  68. Gen uint32
  69. Spare [2]uint32
  70. Pad_cgo_2 [4]byte
  71. }
  72. type Statfs_t [0]byte
  73. type Flock_t struct {
  74. Start int64
  75. Len int64
  76. Pid int32
  77. Type int16
  78. Whence int16
  79. }
  80. type Dirent struct {
  81. Fileno uint64
  82. Reclen uint16
  83. Namlen uint16
  84. Type uint8
  85. Name [512]int8
  86. Pad_cgo_0 [3]byte
  87. }
  88. type Fsid struct {
  89. X__fsid_val [2]int32
  90. }
  91. const (
  92. PathMax = 0x400
  93. )
  94. const (
  95. FADV_NORMAL = 0x0
  96. FADV_RANDOM = 0x1
  97. FADV_SEQUENTIAL = 0x2
  98. FADV_WILLNEED = 0x3
  99. FADV_DONTNEED = 0x4
  100. FADV_NOREUSE = 0x5
  101. )
  102. type RawSockaddrInet4 struct {
  103. Len uint8
  104. Family uint8
  105. Port uint16
  106. Addr [4]byte /* in_addr */
  107. Zero [8]int8
  108. }
  109. type RawSockaddrInet6 struct {
  110. Len uint8
  111. Family uint8
  112. Port uint16
  113. Flowinfo uint32
  114. Addr [16]byte /* in6_addr */
  115. Scope_id uint32
  116. }
  117. type RawSockaddrUnix struct {
  118. Len uint8
  119. Family uint8
  120. Path [104]int8
  121. }
  122. type RawSockaddrDatalink struct {
  123. Len uint8
  124. Family uint8
  125. Index uint16
  126. Type uint8
  127. Nlen uint8
  128. Alen uint8
  129. Slen uint8
  130. Data [12]int8
  131. }
  132. type RawSockaddr struct {
  133. Len uint8
  134. Family uint8
  135. Data [14]int8
  136. }
  137. type RawSockaddrAny struct {
  138. Addr RawSockaddr
  139. Pad [92]int8
  140. }
  141. type _Socklen uint32
  142. type Linger struct {
  143. Onoff int32
  144. Linger int32
  145. }
  146. type Iovec struct {
  147. Base *byte
  148. Len uint64
  149. }
  150. type IPMreq struct {
  151. Multiaddr [4]byte /* in_addr */
  152. Interface [4]byte /* in_addr */
  153. }
  154. type IPv6Mreq struct {
  155. Multiaddr [16]byte /* in6_addr */
  156. Interface uint32
  157. }
  158. type Msghdr struct {
  159. Name *byte
  160. Namelen uint32
  161. Pad_cgo_0 [4]byte
  162. Iov *Iovec
  163. Iovlen int32
  164. Pad_cgo_1 [4]byte
  165. Control *byte
  166. Controllen uint32
  167. Flags int32
  168. }
  169. type Cmsghdr struct {
  170. Len uint32
  171. Level int32
  172. Type int32
  173. }
  174. type Inet6Pktinfo struct {
  175. Addr [16]byte /* in6_addr */
  176. Ifindex uint32
  177. }
  178. type IPv6MTUInfo struct {
  179. Addr RawSockaddrInet6
  180. Mtu uint32
  181. }
  182. type ICMPv6Filter struct {
  183. Filt [8]uint32
  184. }
  185. const (
  186. SizeofSockaddrInet4 = 0x10
  187. SizeofSockaddrInet6 = 0x1c
  188. SizeofSockaddrAny = 0x6c
  189. SizeofSockaddrUnix = 0x6a
  190. SizeofSockaddrDatalink = 0x14
  191. SizeofLinger = 0x8
  192. SizeofIPMreq = 0x8
  193. SizeofIPv6Mreq = 0x14
  194. SizeofMsghdr = 0x30
  195. SizeofCmsghdr = 0xc
  196. SizeofInet6Pktinfo = 0x14
  197. SizeofIPv6MTUInfo = 0x20
  198. SizeofICMPv6Filter = 0x20
  199. )
  200. const (
  201. PTRACE_TRACEME = 0x0
  202. PTRACE_CONT = 0x7
  203. PTRACE_KILL = 0x8
  204. )
  205. type Kevent_t struct {
  206. Ident uint64
  207. Filter uint32
  208. Flags uint32
  209. Fflags uint32
  210. Pad_cgo_0 [4]byte
  211. Data int64
  212. Udata int64
  213. }
  214. type FdSet struct {
  215. Bits [8]uint32
  216. }
  217. const (
  218. SizeofIfMsghdr = 0x98
  219. SizeofIfData = 0x88
  220. SizeofIfaMsghdr = 0x18
  221. SizeofIfAnnounceMsghdr = 0x18
  222. SizeofRtMsghdr = 0x78
  223. SizeofRtMetrics = 0x50
  224. )
  225. type IfMsghdr struct {
  226. Msglen uint16
  227. Version uint8
  228. Type uint8
  229. Addrs int32
  230. Flags int32
  231. Index uint16
  232. Pad_cgo_0 [2]byte
  233. Data IfData
  234. }
  235. type IfData struct {
  236. Type uint8
  237. Addrlen uint8
  238. Hdrlen uint8
  239. Pad_cgo_0 [1]byte
  240. Link_state int32
  241. Mtu uint64
  242. Metric uint64
  243. Baudrate uint64
  244. Ipackets uint64
  245. Ierrors uint64
  246. Opackets uint64
  247. Oerrors uint64
  248. Collisions uint64
  249. Ibytes uint64
  250. Obytes uint64
  251. Imcasts uint64
  252. Omcasts uint64
  253. Iqdrops uint64
  254. Noproto uint64
  255. Lastchange Timespec
  256. }
  257. type IfaMsghdr struct {
  258. Msglen uint16
  259. Version uint8
  260. Type uint8
  261. Addrs int32
  262. Flags int32
  263. Metric int32
  264. Index uint16
  265. Pad_cgo_0 [6]byte
  266. }
  267. type IfAnnounceMsghdr struct {
  268. Msglen uint16
  269. Version uint8
  270. Type uint8
  271. Index uint16
  272. Name [16]int8
  273. What uint16
  274. }
  275. type RtMsghdr struct {
  276. Msglen uint16
  277. Version uint8
  278. Type uint8
  279. Index uint16
  280. Pad_cgo_0 [2]byte
  281. Flags int32
  282. Addrs int32
  283. Pid int32
  284. Seq int32
  285. Errno int32
  286. Use int32
  287. Inits int32
  288. Pad_cgo_1 [4]byte
  289. Rmx RtMetrics
  290. }
  291. type RtMetrics struct {
  292. Locks uint64
  293. Mtu uint64
  294. Hopcount uint64
  295. Recvpipe uint64
  296. Sendpipe uint64
  297. Ssthresh uint64
  298. Rtt uint64
  299. Rttvar uint64
  300. Expire int64
  301. Pksent int64
  302. }
  303. type Mclpool [0]byte
  304. const (
  305. SizeofBpfVersion = 0x4
  306. SizeofBpfStat = 0x80
  307. SizeofBpfProgram = 0x10
  308. SizeofBpfInsn = 0x8
  309. SizeofBpfHdr = 0x20
  310. )
  311. type BpfVersion struct {
  312. Major uint16
  313. Minor uint16
  314. }
  315. type BpfStat struct {
  316. Recv uint64
  317. Drop uint64
  318. Capt uint64
  319. Padding [13]uint64
  320. }
  321. type BpfProgram struct {
  322. Len uint32
  323. Pad_cgo_0 [4]byte
  324. Insns *BpfInsn
  325. }
  326. type BpfInsn struct {
  327. Code uint16
  328. Jt uint8
  329. Jf uint8
  330. K uint32
  331. }
  332. type BpfHdr struct {
  333. Tstamp BpfTimeval
  334. Caplen uint32
  335. Datalen uint32
  336. Hdrlen uint16
  337. Pad_cgo_0 [6]byte
  338. }
  339. type BpfTimeval struct {
  340. Sec int64
  341. Usec int64
  342. }
  343. type Termios struct {
  344. Iflag uint32
  345. Oflag uint32
  346. Cflag uint32
  347. Lflag uint32
  348. Cc [20]uint8
  349. Ispeed int32
  350. Ospeed int32
  351. }
  352. type Winsize struct {
  353. Row uint16
  354. Col uint16
  355. Xpixel uint16
  356. Ypixel uint16
  357. }
  358. const (
  359. AT_FDCWD = -0x64
  360. AT_SYMLINK_NOFOLLOW = 0x200
  361. )
  362. type PollFd struct {
  363. Fd int32
  364. Events int16
  365. Revents int16
  366. }
  367. const (
  368. POLLERR = 0x8
  369. POLLHUP = 0x10
  370. POLLIN = 0x1
  371. POLLNVAL = 0x20
  372. POLLOUT = 0x4
  373. POLLPRI = 0x2
  374. POLLRDBAND = 0x80
  375. POLLRDNORM = 0x40
  376. POLLWRBAND = 0x100
  377. POLLWRNORM = 0x4
  378. )
  379. type Sysctlnode struct {
  380. Flags uint32
  381. Num int32
  382. Name [32]int8
  383. Ver uint32
  384. X__rsvd uint32
  385. Un [16]byte
  386. X_sysctl_size [8]byte
  387. X_sysctl_func [8]byte
  388. X_sysctl_parent [8]byte
  389. X_sysctl_desc [8]byte
  390. }
  391. type Utsname struct {
  392. Sysname [256]byte
  393. Nodename [256]byte
  394. Release [256]byte
  395. Version [256]byte
  396. Machine [256]byte
  397. }