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_amd64.go 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  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 amd64,openbsd
  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 int64
  25. }
  26. type Rusage struct {
  27. Utime Timeval
  28. Stime Timeval
  29. Maxrss int64
  30. Ixrss int64
  31. Idrss int64
  32. Isrss int64
  33. Minflt int64
  34. Majflt int64
  35. Nswap int64
  36. Inblock int64
  37. Oublock int64
  38. Msgsnd int64
  39. Msgrcv int64
  40. Nsignals int64
  41. Nvcsw int64
  42. Nivcsw int64
  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 int32
  63. Flags uint32
  64. Gen uint32
  65. _ [4]byte
  66. _ Timespec
  67. }
  68. type Statfs_t struct {
  69. F_flags uint32
  70. F_bsize uint32
  71. F_iosize uint32
  72. _ [4]byte
  73. F_blocks uint64
  74. F_bfree uint64
  75. F_bavail int64
  76. F_files uint64
  77. F_ffree uint64
  78. F_favail int64
  79. F_syncwrites uint64
  80. F_syncreads uint64
  81. F_asyncwrites uint64
  82. F_asyncreads uint64
  83. F_fsid Fsid
  84. F_namemax uint32
  85. F_owner uint32
  86. F_ctime uint64
  87. F_fstypename [16]int8
  88. F_mntonname [90]int8
  89. F_mntfromname [90]int8
  90. F_mntfromspec [90]int8
  91. _ [2]byte
  92. Mount_info [160]byte
  93. }
  94. type Flock_t struct {
  95. Start int64
  96. Len int64
  97. Pid int32
  98. Type int16
  99. Whence int16
  100. }
  101. type Dirent struct {
  102. Fileno uint64
  103. Off int64
  104. Reclen uint16
  105. Type uint8
  106. Namlen uint8
  107. _ [4]uint8
  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 [24]int8
  145. }
  146. type RawSockaddr struct {
  147. Len uint8
  148. Family uint8
  149. Data [14]int8
  150. }
  151. type RawSockaddrAny struct {
  152. Addr RawSockaddr
  153. Pad [92]int8
  154. }
  155. type _Socklen uint32
  156. type Linger struct {
  157. Onoff int32
  158. Linger int32
  159. }
  160. type Iovec struct {
  161. Base *byte
  162. Len uint64
  163. }
  164. type IPMreq struct {
  165. Multiaddr [4]byte /* in_addr */
  166. Interface [4]byte /* in_addr */
  167. }
  168. type IPv6Mreq struct {
  169. Multiaddr [16]byte /* in6_addr */
  170. Interface uint32
  171. }
  172. type Msghdr struct {
  173. Name *byte
  174. Namelen uint32
  175. _ [4]byte
  176. Iov *Iovec
  177. Iovlen uint32
  178. _ [4]byte
  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 = 0x20
  205. SizeofLinger = 0x8
  206. SizeofIPMreq = 0x8
  207. SizeofIPv6Mreq = 0x14
  208. SizeofMsghdr = 0x30
  209. SizeofCmsghdr = 0xc
  210. SizeofInet6Pktinfo = 0x14
  211. SizeofIPv6MTUInfo = 0x20
  212. SizeofICMPv6Filter = 0x20
  213. )
  214. const (
  215. PTRACE_TRACEME = 0x0
  216. PTRACE_CONT = 0x7
  217. PTRACE_KILL = 0x8
  218. )
  219. type Kevent_t struct {
  220. Ident uint64
  221. Filter int16
  222. Flags uint16
  223. Fflags uint32
  224. Data int64
  225. Udata *byte
  226. }
  227. type FdSet struct {
  228. Bits [32]uint32
  229. }
  230. const (
  231. SizeofIfMsghdr = 0xa8
  232. SizeofIfData = 0x90
  233. SizeofIfaMsghdr = 0x18
  234. SizeofIfAnnounceMsghdr = 0x1a
  235. SizeofRtMsghdr = 0x60
  236. SizeofRtMetrics = 0x38
  237. )
  238. type IfMsghdr struct {
  239. Msglen uint16
  240. Version uint8
  241. Type uint8
  242. Hdrlen uint16
  243. Index uint16
  244. Tableid uint16
  245. Pad1 uint8
  246. Pad2 uint8
  247. Addrs int32
  248. Flags int32
  249. Xflags int32
  250. Data IfData
  251. }
  252. type IfData struct {
  253. Type uint8
  254. Addrlen uint8
  255. Hdrlen uint8
  256. Link_state uint8
  257. Mtu uint32
  258. Metric uint32
  259. Rdomain uint32
  260. Baudrate uint64
  261. Ipackets uint64
  262. Ierrors uint64
  263. Opackets uint64
  264. Oerrors uint64
  265. Collisions uint64
  266. Ibytes uint64
  267. Obytes uint64
  268. Imcasts uint64
  269. Omcasts uint64
  270. Iqdrops uint64
  271. Oqdrops uint64
  272. Noproto uint64
  273. Capabilities uint32
  274. _ [4]byte
  275. Lastchange Timeval
  276. }
  277. type IfaMsghdr struct {
  278. Msglen uint16
  279. Version uint8
  280. Type uint8
  281. Hdrlen uint16
  282. Index uint16
  283. Tableid uint16
  284. Pad1 uint8
  285. Pad2 uint8
  286. Addrs int32
  287. Flags int32
  288. Metric int32
  289. }
  290. type IfAnnounceMsghdr struct {
  291. Msglen uint16
  292. Version uint8
  293. Type uint8
  294. Hdrlen uint16
  295. Index uint16
  296. What uint16
  297. Name [16]int8
  298. }
  299. type RtMsghdr struct {
  300. Msglen uint16
  301. Version uint8
  302. Type uint8
  303. Hdrlen uint16
  304. Index uint16
  305. Tableid uint16
  306. Priority uint8
  307. Mpls uint8
  308. Addrs int32
  309. Flags int32
  310. Fmask int32
  311. Pid int32
  312. Seq int32
  313. Errno int32
  314. Inits uint32
  315. Rmx RtMetrics
  316. }
  317. type RtMetrics struct {
  318. Pksent uint64
  319. Expire int64
  320. Locks uint32
  321. Mtu uint32
  322. Refcnt uint32
  323. Hopcount uint32
  324. Recvpipe uint32
  325. Sendpipe uint32
  326. Ssthresh uint32
  327. Rtt uint32
  328. Rttvar uint32
  329. Pad uint32
  330. }
  331. type Mclpool struct{}
  332. const (
  333. SizeofBpfVersion = 0x4
  334. SizeofBpfStat = 0x8
  335. SizeofBpfProgram = 0x10
  336. SizeofBpfInsn = 0x8
  337. SizeofBpfHdr = 0x14
  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. _ [4]byte
  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. _ [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_NOFOLLOW = 0x2
  387. )
  388. type PollFd struct {
  389. Fd int32
  390. Events int16
  391. Revents int16
  392. }
  393. const (
  394. POLLERR = 0x8
  395. POLLHUP = 0x10
  396. POLLIN = 0x1
  397. POLLNVAL = 0x20
  398. POLLOUT = 0x4
  399. POLLPRI = 0x2
  400. POLLRDBAND = 0x80
  401. POLLRDNORM = 0x40
  402. POLLWRBAND = 0x100
  403. POLLWRNORM = 0x4
  404. )
  405. type Sigset_t uint32
  406. type Utsname struct {
  407. Sysname [256]byte
  408. Nodename [256]byte
  409. Release [256]byte
  410. Version [256]byte
  411. Machine [256]byte
  412. }
  413. const SizeofUvmexp = 0x158
  414. type Uvmexp struct {
  415. Pagesize int32
  416. Pagemask int32
  417. Pageshift int32
  418. Npages int32
  419. Free int32
  420. Active int32
  421. Inactive int32
  422. Paging int32
  423. Wired int32
  424. Zeropages int32
  425. Reserve_pagedaemon int32
  426. Reserve_kernel int32
  427. Anonpages int32
  428. Vnodepages int32
  429. Vtextpages int32
  430. Freemin int32
  431. Freetarg int32
  432. Inactarg int32
  433. Wiredmax int32
  434. Anonmin int32
  435. Vtextmin int32
  436. Vnodemin int32
  437. Anonminpct int32
  438. Vtextminpct int32
  439. Vnodeminpct int32
  440. Nswapdev int32
  441. Swpages int32
  442. Swpginuse int32
  443. Swpgonly int32
  444. Nswget int32
  445. Nanon int32
  446. Nanonneeded int32
  447. Nfreeanon int32
  448. Faults int32
  449. Traps int32
  450. Intrs int32
  451. Swtch int32
  452. Softs int32
  453. Syscalls int32
  454. Pageins int32
  455. Obsolete_swapins int32
  456. Obsolete_swapouts int32
  457. Pgswapin int32
  458. Pgswapout int32
  459. Forks int32
  460. Forks_ppwait int32
  461. Forks_sharevm int32
  462. Pga_zerohit int32
  463. Pga_zeromiss int32
  464. Zeroaborts int32
  465. Fltnoram int32
  466. Fltnoanon int32
  467. Fltnoamap int32
  468. Fltpgwait int32
  469. Fltpgrele int32
  470. Fltrelck int32
  471. Fltrelckok int32
  472. Fltanget int32
  473. Fltanretry int32
  474. Fltamcopy int32
  475. Fltnamap int32
  476. Fltnomap int32
  477. Fltlget int32
  478. Fltget int32
  479. Flt_anon int32
  480. Flt_acow int32
  481. Flt_obj int32
  482. Flt_prcopy int32
  483. Flt_przero int32
  484. Pdwoke int32
  485. Pdrevs int32
  486. Pdswout int32
  487. Pdfreed int32
  488. Pdscans int32
  489. Pdanscan int32
  490. Pdobscan int32
  491. Pdreact int32
  492. Pdbusy int32
  493. Pdpageouts int32
  494. Pdpending int32
  495. Pddeact int32
  496. Pdreanon int32
  497. Pdrevnode int32
  498. Pdrevtext int32
  499. Fpswtch int32
  500. Kmapent int32
  501. }
  502. const SizeofClockinfo = 0x14
  503. type Clockinfo struct {
  504. Hz int32
  505. Tick int32
  506. Tickadj int32
  507. Stathz int32
  508. Profhz int32
  509. }