ztypes_openbsd_arm64.go 9.2 KB

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