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

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