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_openbsd_386.go 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. // cgo -godefs types_openbsd.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build 386,openbsd
  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. Mode uint32
  51. Dev int32
  52. Ino uint64
  53. Nlink uint32
  54. Uid uint32
  55. Gid uint32
  56. Rdev int32
  57. Atim Timespec
  58. Mtim Timespec
  59. Ctim Timespec
  60. Size int64
  61. Blocks int64
  62. Blksize uint32
  63. Flags uint32
  64. Gen uint32
  65. X__st_birthtim Timespec
  66. }
  67. type Statfs_t struct {
  68. F_flags uint32
  69. F_bsize uint32
  70. F_iosize uint32
  71. F_blocks uint64
  72. F_bfree uint64
  73. F_bavail int64
  74. F_files uint64
  75. F_ffree uint64
  76. F_favail int64
  77. F_syncwrites uint64
  78. F_syncreads uint64
  79. F_asyncwrites uint64
  80. F_asyncreads uint64
  81. F_fsid Fsid
  82. F_namemax uint32
  83. F_owner uint32
  84. F_ctime uint64
  85. F_fstypename [16]int8
  86. F_mntonname [90]int8
  87. F_mntfromname [90]int8
  88. F_mntfromspec [90]int8
  89. Pad_cgo_0 [2]byte
  90. Mount_info [160]byte
  91. }
  92. type Flock_t struct {
  93. Start int64
  94. Len int64
  95. Pid int32
  96. Type int16
  97. Whence int16
  98. }
  99. type Dirent struct {
  100. Fileno uint64
  101. Off int64
  102. Reclen uint16
  103. Type uint8
  104. Namlen uint8
  105. X__d_padding [4]uint8
  106. Name [256]int8
  107. }
  108. type Fsid struct {
  109. Val [2]int32
  110. }
  111. const (
  112. PathMax = 0x400
  113. )
  114. type RawSockaddrInet4 struct {
  115. Len uint8
  116. Family uint8
  117. Port uint16
  118. Addr [4]byte /* in_addr */
  119. Zero [8]int8
  120. }
  121. type RawSockaddrInet6 struct {
  122. Len uint8
  123. Family uint8
  124. Port uint16
  125. Flowinfo uint32
  126. Addr [16]byte /* in6_addr */
  127. Scope_id uint32
  128. }
  129. type RawSockaddrUnix struct {
  130. Len uint8
  131. Family uint8
  132. Path [104]int8
  133. }
  134. type RawSockaddrDatalink struct {
  135. Len uint8
  136. Family uint8
  137. Index uint16
  138. Type uint8
  139. Nlen uint8
  140. Alen uint8
  141. Slen uint8
  142. Data [24]int8
  143. }
  144. type RawSockaddr struct {
  145. Len uint8
  146. Family uint8
  147. Data [14]int8
  148. }
  149. type RawSockaddrAny struct {
  150. Addr RawSockaddr
  151. Pad [92]int8
  152. }
  153. type _Socklen uint32
  154. type Linger struct {
  155. Onoff int32
  156. Linger int32
  157. }
  158. type Iovec struct {
  159. Base *byte
  160. Len uint32
  161. }
  162. type IPMreq struct {
  163. Multiaddr [4]byte /* in_addr */
  164. Interface [4]byte /* in_addr */
  165. }
  166. type IPv6Mreq struct {
  167. Multiaddr [16]byte /* in6_addr */
  168. Interface uint32
  169. }
  170. type Msghdr struct {
  171. Name *byte
  172. Namelen uint32
  173. Iov *Iovec
  174. Iovlen uint32
  175. Control *byte
  176. Controllen uint32
  177. Flags int32
  178. }
  179. type Cmsghdr struct {
  180. Len uint32
  181. Level int32
  182. Type int32
  183. }
  184. type Inet6Pktinfo struct {
  185. Addr [16]byte /* in6_addr */
  186. Ifindex uint32
  187. }
  188. type IPv6MTUInfo struct {
  189. Addr RawSockaddrInet6
  190. Mtu uint32
  191. }
  192. type ICMPv6Filter struct {
  193. Filt [8]uint32
  194. }
  195. const (
  196. SizeofSockaddrInet4 = 0x10
  197. SizeofSockaddrInet6 = 0x1c
  198. SizeofSockaddrAny = 0x6c
  199. SizeofSockaddrUnix = 0x6a
  200. SizeofSockaddrDatalink = 0x20
  201. SizeofLinger = 0x8
  202. SizeofIPMreq = 0x8
  203. SizeofIPv6Mreq = 0x14
  204. SizeofMsghdr = 0x1c
  205. SizeofCmsghdr = 0xc
  206. SizeofInet6Pktinfo = 0x14
  207. SizeofIPv6MTUInfo = 0x20
  208. SizeofICMPv6Filter = 0x20
  209. )
  210. const (
  211. PTRACE_TRACEME = 0x0
  212. PTRACE_CONT = 0x7
  213. PTRACE_KILL = 0x8
  214. )
  215. type Kevent_t struct {
  216. Ident uint32
  217. Filter int16
  218. Flags uint16
  219. Fflags uint32
  220. Data int64
  221. Udata *byte
  222. }
  223. type FdSet struct {
  224. Bits [32]uint32
  225. }
  226. const (
  227. SizeofIfMsghdr = 0xec
  228. SizeofIfData = 0xd4
  229. SizeofIfaMsghdr = 0x18
  230. SizeofIfAnnounceMsghdr = 0x1a
  231. SizeofRtMsghdr = 0x60
  232. SizeofRtMetrics = 0x38
  233. )
  234. type IfMsghdr struct {
  235. Msglen uint16
  236. Version uint8
  237. Type uint8
  238. Hdrlen uint16
  239. Index uint16
  240. Tableid uint16
  241. Pad1 uint8
  242. Pad2 uint8
  243. Addrs int32
  244. Flags int32
  245. Xflags int32
  246. Data IfData
  247. }
  248. type IfData struct {
  249. Type uint8
  250. Addrlen uint8
  251. Hdrlen uint8
  252. Link_state uint8
  253. Mtu uint32
  254. Metric uint32
  255. Pad uint32
  256. Baudrate uint64
  257. Ipackets uint64
  258. Ierrors uint64
  259. Opackets uint64
  260. Oerrors uint64
  261. Collisions uint64
  262. Ibytes uint64
  263. Obytes uint64
  264. Imcasts uint64
  265. Omcasts uint64
  266. Iqdrops uint64
  267. Noproto uint64
  268. Capabilities uint32
  269. Lastchange Timeval
  270. Mclpool [7]Mclpool
  271. }
  272. type IfaMsghdr struct {
  273. Msglen uint16
  274. Version uint8
  275. Type uint8
  276. Hdrlen uint16
  277. Index uint16
  278. Tableid uint16
  279. Pad1 uint8
  280. Pad2 uint8
  281. Addrs int32
  282. Flags int32
  283. Metric int32
  284. }
  285. type IfAnnounceMsghdr struct {
  286. Msglen uint16
  287. Version uint8
  288. Type uint8
  289. Hdrlen uint16
  290. Index uint16
  291. What uint16
  292. Name [16]int8
  293. }
  294. type RtMsghdr struct {
  295. Msglen uint16
  296. Version uint8
  297. Type uint8
  298. Hdrlen uint16
  299. Index uint16
  300. Tableid uint16
  301. Priority uint8
  302. Mpls uint8
  303. Addrs int32
  304. Flags int32
  305. Fmask int32
  306. Pid int32
  307. Seq int32
  308. Errno int32
  309. Inits uint32
  310. Rmx RtMetrics
  311. }
  312. type RtMetrics struct {
  313. Pksent uint64
  314. Expire int64
  315. Locks uint32
  316. Mtu uint32
  317. Refcnt uint32
  318. Hopcount uint32
  319. Recvpipe uint32
  320. Sendpipe uint32
  321. Ssthresh uint32
  322. Rtt uint32
  323. Rttvar uint32
  324. Pad uint32
  325. }
  326. type Mclpool struct {
  327. Grown int32
  328. Alive uint16
  329. Hwm uint16
  330. Cwm uint16
  331. Lwm uint16
  332. }
  333. const (
  334. SizeofBpfVersion = 0x4
  335. SizeofBpfStat = 0x8
  336. SizeofBpfProgram = 0x8
  337. SizeofBpfInsn = 0x8
  338. SizeofBpfHdr = 0x14
  339. )
  340. type BpfVersion struct {
  341. Major uint16
  342. Minor uint16
  343. }
  344. type BpfStat struct {
  345. Recv uint32
  346. Drop uint32
  347. }
  348. type BpfProgram struct {
  349. Len uint32
  350. Insns *BpfInsn
  351. }
  352. type BpfInsn struct {
  353. Code uint16
  354. Jt uint8
  355. Jf uint8
  356. K uint32
  357. }
  358. type BpfHdr struct {
  359. Tstamp BpfTimeval
  360. Caplen uint32
  361. Datalen uint32
  362. Hdrlen uint16
  363. Pad_cgo_0 [2]byte
  364. }
  365. type BpfTimeval struct {
  366. Sec uint32
  367. Usec uint32
  368. }
  369. type Termios struct {
  370. Iflag uint32
  371. Oflag uint32
  372. Cflag uint32
  373. Lflag uint32
  374. Cc [20]uint8
  375. Ispeed int32
  376. Ospeed int32
  377. }
  378. type Winsize struct {
  379. Row uint16
  380. Col uint16
  381. Xpixel uint16
  382. Ypixel uint16
  383. }
  384. const (
  385. AT_FDCWD = -0x64
  386. AT_SYMLINK_FOLLOW = 0x4
  387. AT_SYMLINK_NOFOLLOW = 0x2
  388. )
  389. type PollFd struct {
  390. Fd int32
  391. Events int16
  392. Revents int16
  393. }
  394. const (
  395. POLLERR = 0x8
  396. POLLHUP = 0x10
  397. POLLIN = 0x1
  398. POLLNVAL = 0x20
  399. POLLOUT = 0x4
  400. POLLPRI = 0x2
  401. POLLRDBAND = 0x80
  402. POLLRDNORM = 0x40
  403. POLLWRBAND = 0x100
  404. POLLWRNORM = 0x4
  405. )
  406. type Sigset_t uint32
  407. type Utsname struct {
  408. Sysname [256]byte
  409. Nodename [256]byte
  410. Release [256]byte
  411. Version [256]byte
  412. Machine [256]byte
  413. }
  414. const SizeofUvmexp = 0x158
  415. type Uvmexp struct {
  416. Pagesize int32
  417. Pagemask int32
  418. Pageshift int32
  419. Npages int32
  420. Free int32
  421. Active int32
  422. Inactive int32
  423. Paging int32
  424. Wired int32
  425. Zeropages int32
  426. Reserve_pagedaemon int32
  427. Reserve_kernel int32
  428. Anonpages int32
  429. Vnodepages int32
  430. Vtextpages int32
  431. Freemin int32
  432. Freetarg int32
  433. Inactarg int32
  434. Wiredmax int32
  435. Anonmin int32
  436. Vtextmin int32
  437. Vnodemin int32
  438. Anonminpct int32
  439. Vtextminpct int32
  440. Vnodeminpct int32
  441. Nswapdev int32
  442. Swpages int32
  443. Swpginuse int32
  444. Swpgonly int32
  445. Nswget int32
  446. Nanon int32
  447. Nanonneeded int32
  448. Nfreeanon int32
  449. Faults int32
  450. Traps int32
  451. Intrs int32
  452. Swtch int32
  453. Softs int32
  454. Syscalls int32
  455. Pageins int32
  456. Obsolete_swapins int32
  457. Obsolete_swapouts int32
  458. Pgswapin int32
  459. Pgswapout int32
  460. Forks int32
  461. Forks_ppwait int32
  462. Forks_sharevm int32
  463. Pga_zerohit int32
  464. Pga_zeromiss int32
  465. Zeroaborts int32
  466. Fltnoram int32
  467. Fltnoanon int32
  468. Fltnoamap int32
  469. Fltpgwait int32
  470. Fltpgrele int32
  471. Fltrelck int32
  472. Fltrelckok int32
  473. Fltanget int32
  474. Fltanretry int32
  475. Fltamcopy int32
  476. Fltnamap int32
  477. Fltnomap int32
  478. Fltlget int32
  479. Fltget int32
  480. Flt_anon int32
  481. Flt_acow int32
  482. Flt_obj int32
  483. Flt_prcopy int32
  484. Flt_przero int32
  485. Pdwoke int32
  486. Pdrevs int32
  487. Pdswout int32
  488. Pdfreed int32
  489. Pdscans int32
  490. Pdanscan int32
  491. Pdobscan int32
  492. Pdreact int32
  493. Pdbusy int32
  494. Pdpageouts int32
  495. Pdpending int32
  496. Pddeact int32
  497. Pdreanon int32
  498. Pdrevnode int32
  499. Pdrevtext int32
  500. Fpswtch int32
  501. Kmapent int32
  502. }
  503. const SizeofClockinfo = 0x14
  504. type Clockinfo struct {
  505. Hz int32
  506. Tick int32
  507. Tickadj int32
  508. Stathz int32
  509. Profhz int32
  510. }