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.
 
 

577 line
9.4 KiB

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