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_netbsd_arm.go 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. // cgo -godefs types_netbsd.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build arm && netbsd
  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. Pad_cgo_0 [4]byte
  22. }
  23. type Timeval struct {
  24. Sec int64
  25. Usec int32
  26. Pad_cgo_0 [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. Dev uint64
  53. Mode uint32
  54. _ [4]byte
  55. Ino uint64
  56. Nlink uint32
  57. Uid uint32
  58. Gid uint32
  59. _ [4]byte
  60. Rdev uint64
  61. Atim Timespec
  62. Mtim Timespec
  63. Ctim Timespec
  64. Btim Timespec
  65. Size int64
  66. Blocks int64
  67. Blksize uint32
  68. Flags uint32
  69. Gen uint32
  70. Spare [2]uint32
  71. _ [4]byte
  72. }
  73. type Statfs_t [0]byte
  74. type Statvfs_t struct {
  75. Flag uint32
  76. Bsize uint32
  77. Frsize uint32
  78. Iosize uint32
  79. Blocks uint64
  80. Bfree uint64
  81. Bavail uint64
  82. Bresvd uint64
  83. Files uint64
  84. Ffree uint64
  85. Favail uint64
  86. Fresvd uint64
  87. Syncreads uint64
  88. Syncwrites uint64
  89. Asyncreads uint64
  90. Asyncwrites uint64
  91. Fsidx Fsid
  92. Fsid uint32
  93. Namemax uint32
  94. Owner uint32
  95. Spare [4]uint32
  96. Fstypename [32]byte
  97. Mntonname [1024]byte
  98. Mntfromname [1024]byte
  99. }
  100. type Flock_t struct {
  101. Start int64
  102. Len int64
  103. Pid int32
  104. Type int16
  105. Whence int16
  106. }
  107. type Dirent struct {
  108. Fileno uint64
  109. Reclen uint16
  110. Namlen uint16
  111. Type uint8
  112. Name [512]int8
  113. Pad_cgo_0 [3]byte
  114. }
  115. type Fsid struct {
  116. X__fsid_val [2]int32
  117. }
  118. const (
  119. PathMax = 0x400
  120. )
  121. const (
  122. ST_WAIT = 0x1
  123. ST_NOWAIT = 0x2
  124. )
  125. const (
  126. FADV_NORMAL = 0x0
  127. FADV_RANDOM = 0x1
  128. FADV_SEQUENTIAL = 0x2
  129. FADV_WILLNEED = 0x3
  130. FADV_DONTNEED = 0x4
  131. FADV_NOREUSE = 0x5
  132. )
  133. type RawSockaddrInet4 struct {
  134. Len uint8
  135. Family uint8
  136. Port uint16
  137. Addr [4]byte /* in_addr */
  138. Zero [8]int8
  139. }
  140. type RawSockaddrInet6 struct {
  141. Len uint8
  142. Family uint8
  143. Port uint16
  144. Flowinfo uint32
  145. Addr [16]byte /* in6_addr */
  146. Scope_id uint32
  147. }
  148. type RawSockaddrUnix struct {
  149. Len uint8
  150. Family uint8
  151. Path [104]int8
  152. }
  153. type RawSockaddrDatalink struct {
  154. Len uint8
  155. Family uint8
  156. Index uint16
  157. Type uint8
  158. Nlen uint8
  159. Alen uint8
  160. Slen uint8
  161. Data [12]int8
  162. }
  163. type RawSockaddr struct {
  164. Len uint8
  165. Family uint8
  166. Data [14]int8
  167. }
  168. type RawSockaddrAny struct {
  169. Addr RawSockaddr
  170. Pad [92]int8
  171. }
  172. type _Socklen uint32
  173. type Linger struct {
  174. Onoff int32
  175. Linger int32
  176. }
  177. type Iovec struct {
  178. Base *byte
  179. Len uint32
  180. }
  181. type IPMreq struct {
  182. Multiaddr [4]byte /* in_addr */
  183. Interface [4]byte /* in_addr */
  184. }
  185. type IPv6Mreq struct {
  186. Multiaddr [16]byte /* in6_addr */
  187. Interface uint32
  188. }
  189. type Msghdr struct {
  190. Name *byte
  191. Namelen uint32
  192. Iov *Iovec
  193. Iovlen int32
  194. Control *byte
  195. Controllen uint32
  196. Flags int32
  197. }
  198. type Cmsghdr struct {
  199. Len uint32
  200. Level int32
  201. Type int32
  202. }
  203. type Inet6Pktinfo struct {
  204. Addr [16]byte /* in6_addr */
  205. Ifindex uint32
  206. }
  207. type IPv6MTUInfo struct {
  208. Addr RawSockaddrInet6
  209. Mtu uint32
  210. }
  211. type ICMPv6Filter struct {
  212. Filt [8]uint32
  213. }
  214. const (
  215. SizeofSockaddrInet4 = 0x10
  216. SizeofSockaddrInet6 = 0x1c
  217. SizeofSockaddrAny = 0x6c
  218. SizeofSockaddrUnix = 0x6a
  219. SizeofSockaddrDatalink = 0x14
  220. SizeofLinger = 0x8
  221. SizeofIovec = 0x8
  222. SizeofIPMreq = 0x8
  223. SizeofIPv6Mreq = 0x14
  224. SizeofMsghdr = 0x1c
  225. SizeofCmsghdr = 0xc
  226. SizeofInet6Pktinfo = 0x14
  227. SizeofIPv6MTUInfo = 0x20
  228. SizeofICMPv6Filter = 0x20
  229. )
  230. const (
  231. PTRACE_TRACEME = 0x0
  232. PTRACE_CONT = 0x7
  233. PTRACE_KILL = 0x8
  234. )
  235. type Kevent_t struct {
  236. Ident uint32
  237. Filter uint32
  238. Flags uint32
  239. Fflags uint32
  240. Data int64
  241. Udata int32
  242. Pad_cgo_0 [4]byte
  243. }
  244. type FdSet struct {
  245. Bits [8]uint32
  246. }
  247. const (
  248. SizeofIfMsghdr = 0x98
  249. SizeofIfData = 0x88
  250. SizeofIfaMsghdr = 0x18
  251. SizeofIfAnnounceMsghdr = 0x18
  252. SizeofRtMsghdr = 0x78
  253. SizeofRtMetrics = 0x50
  254. )
  255. type IfMsghdr struct {
  256. Msglen uint16
  257. Version uint8
  258. Type uint8
  259. Addrs int32
  260. Flags int32
  261. Index uint16
  262. Pad_cgo_0 [2]byte
  263. Data IfData
  264. }
  265. type IfData struct {
  266. Type uint8
  267. Addrlen uint8
  268. Hdrlen uint8
  269. Pad_cgo_0 [1]byte
  270. Link_state int32
  271. Mtu uint64
  272. Metric uint64
  273. Baudrate uint64
  274. Ipackets uint64
  275. Ierrors uint64
  276. Opackets uint64
  277. Oerrors uint64
  278. Collisions uint64
  279. Ibytes uint64
  280. Obytes uint64
  281. Imcasts uint64
  282. Omcasts uint64
  283. Iqdrops uint64
  284. Noproto uint64
  285. Lastchange Timespec
  286. }
  287. type IfaMsghdr struct {
  288. Msglen uint16
  289. Version uint8
  290. Type uint8
  291. Addrs int32
  292. Flags int32
  293. Metric int32
  294. Index uint16
  295. Pad_cgo_0 [6]byte
  296. }
  297. type IfAnnounceMsghdr struct {
  298. Msglen uint16
  299. Version uint8
  300. Type uint8
  301. Index uint16
  302. Name [16]int8
  303. What uint16
  304. }
  305. type RtMsghdr struct {
  306. Msglen uint16
  307. Version uint8
  308. Type uint8
  309. Index uint16
  310. Pad_cgo_0 [2]byte
  311. Flags int32
  312. Addrs int32
  313. Pid int32
  314. Seq int32
  315. Errno int32
  316. Use int32
  317. Inits int32
  318. Pad_cgo_1 [4]byte
  319. Rmx RtMetrics
  320. }
  321. type RtMetrics struct {
  322. Locks uint64
  323. Mtu uint64
  324. Hopcount uint64
  325. Recvpipe uint64
  326. Sendpipe uint64
  327. Ssthresh uint64
  328. Rtt uint64
  329. Rttvar uint64
  330. Expire int64
  331. Pksent int64
  332. }
  333. type Mclpool [0]byte
  334. const (
  335. SizeofBpfVersion = 0x4
  336. SizeofBpfStat = 0x80
  337. SizeofBpfProgram = 0x8
  338. SizeofBpfInsn = 0x8
  339. SizeofBpfHdr = 0x14
  340. )
  341. type BpfVersion struct {
  342. Major uint16
  343. Minor uint16
  344. }
  345. type BpfStat struct {
  346. Recv uint64
  347. Drop uint64
  348. Capt uint64
  349. Padding [13]uint64
  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. Pad_cgo_0 [2]byte
  367. }
  368. type BpfTimeval struct {
  369. Sec int32
  370. Usec int32
  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. type Ptmget struct {
  388. Cfd int32
  389. Sfd int32
  390. Cn [1024]byte
  391. Sn [1024]byte
  392. }
  393. const (
  394. AT_FDCWD = -0x64
  395. AT_EACCESS = 0x100
  396. AT_SYMLINK_NOFOLLOW = 0x200
  397. AT_SYMLINK_FOLLOW = 0x400
  398. AT_REMOVEDIR = 0x800
  399. )
  400. type PollFd struct {
  401. Fd int32
  402. Events int16
  403. Revents int16
  404. }
  405. const (
  406. POLLERR = 0x8
  407. POLLHUP = 0x10
  408. POLLIN = 0x1
  409. POLLNVAL = 0x20
  410. POLLOUT = 0x4
  411. POLLPRI = 0x2
  412. POLLRDBAND = 0x80
  413. POLLRDNORM = 0x40
  414. POLLWRBAND = 0x100
  415. POLLWRNORM = 0x4
  416. )
  417. type Sysctlnode struct {
  418. Flags uint32
  419. Num int32
  420. Name [32]int8
  421. Ver uint32
  422. X__rsvd uint32
  423. Un [16]byte
  424. X_sysctl_size [8]byte
  425. X_sysctl_func [8]byte
  426. X_sysctl_parent [8]byte
  427. X_sysctl_desc [8]byte
  428. }
  429. type Utsname struct {
  430. Sysname [256]byte
  431. Nodename [256]byte
  432. Release [256]byte
  433. Version [256]byte
  434. Machine [256]byte
  435. }
  436. const SizeofUvmexp = 0x278
  437. type Uvmexp struct {
  438. Pagesize int64
  439. Pagemask int64
  440. Pageshift int64
  441. Npages int64
  442. Free int64
  443. Active int64
  444. Inactive int64
  445. Paging int64
  446. Wired int64
  447. Zeropages int64
  448. Reserve_pagedaemon int64
  449. Reserve_kernel int64
  450. Freemin int64
  451. Freetarg int64
  452. Inactarg int64
  453. Wiredmax int64
  454. Nswapdev int64
  455. Swpages int64
  456. Swpginuse int64
  457. Swpgonly int64
  458. Nswget int64
  459. Unused1 int64
  460. Cpuhit int64
  461. Cpumiss int64
  462. Faults int64
  463. Traps int64
  464. Intrs int64
  465. Swtch int64
  466. Softs int64
  467. Syscalls int64
  468. Pageins int64
  469. Swapins int64
  470. Swapouts int64
  471. Pgswapin int64
  472. Pgswapout int64
  473. Forks int64
  474. Forks_ppwait int64
  475. Forks_sharevm int64
  476. Pga_zerohit int64
  477. Pga_zeromiss int64
  478. Zeroaborts int64
  479. Fltnoram int64
  480. Fltnoanon int64
  481. Fltpgwait int64
  482. Fltpgrele int64
  483. Fltrelck int64
  484. Fltrelckok int64
  485. Fltanget int64
  486. Fltanretry int64
  487. Fltamcopy int64
  488. Fltnamap int64
  489. Fltnomap int64
  490. Fltlget int64
  491. Fltget int64
  492. Flt_anon int64
  493. Flt_acow int64
  494. Flt_obj int64
  495. Flt_prcopy int64
  496. Flt_przero int64
  497. Pdwoke int64
  498. Pdrevs int64
  499. Unused4 int64
  500. Pdfreed int64
  501. Pdscans int64
  502. Pdanscan int64
  503. Pdobscan int64
  504. Pdreact int64
  505. Pdbusy int64
  506. Pdpageouts int64
  507. Pdpending int64
  508. Pddeact int64
  509. Anonpages int64
  510. Filepages int64
  511. Execpages int64
  512. Colorhit int64
  513. Colormiss int64
  514. Ncolors int64
  515. Bootpages int64
  516. Poolpages int64
  517. }
  518. const SizeofClockinfo = 0x14
  519. type Clockinfo struct {
  520. Hz int32
  521. Tick int32
  522. Tickadj int32
  523. Stathz int32
  524. Profhz int32
  525. }