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 7.3KB

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