ztypes_openbsd_amd64.go 9.3 KB

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