Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

576 строки
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. type Mclpool struct{}
  336. const (
  337. SizeofBpfVersion = 0x4
  338. SizeofBpfStat = 0x8
  339. SizeofBpfProgram = 0x8
  340. SizeofBpfInsn = 0x8
  341. SizeofBpfHdr = 0x14
  342. )
  343. type BpfVersion struct {
  344. Major uint16
  345. Minor uint16
  346. }
  347. type BpfStat struct {
  348. Recv uint32
  349. Drop uint32
  350. }
  351. type BpfProgram struct {
  352. Len uint32
  353. Insns *BpfInsn
  354. }
  355. type BpfInsn struct {
  356. Code uint16
  357. Jt uint8
  358. Jf uint8
  359. K uint32
  360. }
  361. type BpfHdr struct {
  362. Tstamp BpfTimeval
  363. Caplen uint32
  364. Datalen uint32
  365. Hdrlen uint16
  366. _ [2]byte
  367. }
  368. type BpfTimeval struct {
  369. Sec uint32
  370. Usec uint32
  371. }
  372. type Termios struct {
  373. Iflag uint32
  374. Oflag uint32
  375. Cflag uint32
  376. Lflag uint32
  377. Cc [20]uint8
  378. Ispeed int32
  379. Ospeed int32
  380. }
  381. type Winsize struct {
  382. Row uint16
  383. Col uint16
  384. Xpixel uint16
  385. Ypixel uint16
  386. }
  387. const (
  388. AT_FDCWD = -0x64
  389. AT_EACCESS = 0x1
  390. AT_SYMLINK_NOFOLLOW = 0x2
  391. AT_SYMLINK_FOLLOW = 0x4
  392. AT_REMOVEDIR = 0x8
  393. )
  394. type PollFd struct {
  395. Fd int32
  396. Events int16
  397. Revents int16
  398. }
  399. const (
  400. POLLERR = 0x8
  401. POLLHUP = 0x10
  402. POLLIN = 0x1
  403. POLLNVAL = 0x20
  404. POLLOUT = 0x4
  405. POLLPRI = 0x2
  406. POLLRDBAND = 0x80
  407. POLLRDNORM = 0x40
  408. POLLWRBAND = 0x100
  409. POLLWRNORM = 0x4
  410. )
  411. type Sigset_t uint32
  412. type Utsname struct {
  413. Sysname [256]byte
  414. Nodename [256]byte
  415. Release [256]byte
  416. Version [256]byte
  417. Machine [256]byte
  418. }
  419. const SizeofUvmexp = 0x158
  420. type Uvmexp struct {
  421. Pagesize int32
  422. Pagemask int32
  423. Pageshift int32
  424. Npages int32
  425. Free int32
  426. Active int32
  427. Inactive int32
  428. Paging int32
  429. Wired int32
  430. Zeropages int32
  431. Reserve_pagedaemon int32
  432. Reserve_kernel int32
  433. Unused01 int32
  434. Vnodepages int32
  435. Vtextpages int32
  436. Freemin int32
  437. Freetarg int32
  438. Inactarg int32
  439. Wiredmax int32
  440. Anonmin int32
  441. Vtextmin int32
  442. Vnodemin int32
  443. Anonminpct int32
  444. Vtextminpct int32
  445. Vnodeminpct int32
  446. Nswapdev int32
  447. Swpages int32
  448. Swpginuse int32
  449. Swpgonly int32
  450. Nswget int32
  451. Nanon int32
  452. Unused05 int32
  453. Unused06 int32
  454. Faults int32
  455. Traps int32
  456. Intrs int32
  457. Swtch int32
  458. Softs int32
  459. Syscalls int32
  460. Pageins int32
  461. Unused07 int32
  462. Unused08 int32
  463. Pgswapin int32
  464. Pgswapout int32
  465. Forks int32
  466. Forks_ppwait int32
  467. Forks_sharevm int32
  468. Pga_zerohit int32
  469. Pga_zeromiss int32
  470. Unused09 int32
  471. Fltnoram int32
  472. Fltnoanon int32
  473. Fltnoamap int32
  474. Fltpgwait int32
  475. Fltpgrele int32
  476. Fltrelck int32
  477. Fltrelckok int32
  478. Fltanget int32
  479. Fltanretry int32
  480. Fltamcopy int32
  481. Fltnamap int32
  482. Fltnomap int32
  483. Fltlget int32
  484. Fltget int32
  485. Flt_anon int32
  486. Flt_acow int32
  487. Flt_obj int32
  488. Flt_prcopy int32
  489. Flt_przero int32
  490. Pdwoke int32
  491. Pdrevs int32
  492. Pdswout int32
  493. Pdfreed int32
  494. Pdscans int32
  495. Pdanscan int32
  496. Pdobscan int32
  497. Pdreact int32
  498. Pdbusy int32
  499. Pdpageouts int32
  500. Pdpending int32
  501. Pddeact int32
  502. Unused11 int32
  503. Unused12 int32
  504. Unused13 int32
  505. Fpswtch int32
  506. Kmapent int32
  507. }
  508. const SizeofClockinfo = 0x10
  509. type Clockinfo struct {
  510. Hz int32
  511. Tick int32
  512. Stathz int32
  513. Profhz int32
  514. }