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_netbsd_386.go 6.7KB

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